Exact inference for a class of non-linear hidden Markov models on general state spaces

summary

The gist

Exact inference for hidden Markov models requires the evaluation of all distributions of interest - filtering, prediction…

In short

The paper provides sufficient conditions and algorithms for exact inference in non-linear hidden Markov models with indirect observations. It introduces a dual process that allows filtering, prediction, and smoothing distributions to be represented as finite mixtures of elementary densities. This method achieves polynomial computational complexity and significantly outperforms generic approximation schemes like particle filters.

Key concepts

Dual Process
A mathematical duality found in the time reversal of the signal. It establishes that conditional expectations between the original signal process and this dual process are equal, allowing complex distributions to be represented as finite mixtures of simpler densities.
Finite Mixtures
The paper shows that filtering and smoothing distributions can always be expressed as a finite mixture of elementary probability density functions. The number of components in this mixture depends on the number of observations but remains finite, leading to polynomial complexity.
Automatic Mixture Pruning
A strategy proposed to reduce computational cost by intelligently removing redundant mixture components. By using fixed number, mass, or threshold pruning rules, this scheme achieves linear computational costs and outperforms particle filters in both accuracy and speed.

Terminology used across episodes

This episode discusses

The paper

Exact inference for a class of non-linear hidden Markov models on general state spaces · Read on arXiv

Université Paris-Saclay · INRAE · ICREA and Universitat Pompeu Fabra · University of Torino and Collegio Carlo Alberto

DOI: 10.1214/21-EJS1841

Transcript

Introduction to the show: ident: Statistics. The day in statistics: methods, theory and the inference under them.

Tom: We're looking at the paper: "Exact inference for a class of non-linear hidden Markov models on general state spaces".

Paper summary: Tom: So we're looking at this paper, "Exact inference for a class of non-linear hidden Markov models on general state spaces." Basically, the main point is that exact inference for these kinds of hidden Markov models can be done with finite computational effort.

Jane: That sounds huge because usually when you have these complex models and you want to know things like filtering or smoothing distributions, the computation just explodes.

Tom: Exactly. This paper says they found sufficient conditions for this exact inference, and they give us practical algorithms for it too, even for models on general state spaces given indirect observations that are linked non linearly to the signal.

Lu: The core idea they establish is about a certain dual process that's embedded in the time reversal of the signal. This duality is what lets them represent all these distributions as finite mixtures of elementary densities or products of those densities > <ref:2006.03452#pg1>.

Meng: Finite mixtures sound manageable, but how do you actually get there without just throwing millions of components at a problem? What's the mechanism here that makes it finite?

Jane: Well, they define this duality by Assumption two which basically says there's a family of functions h where the conditional expectations between the signal process and its dual process are equal > <ref:2006.03452#pg8> <ref:2006.03452#pg2>. And then Assumption three gives them conjugacy between the emission density and densities in a parametric family F, which is what makes those distributions characterizable as finite mixtures > <ref:2006.03452#pg8> <ref:2006.03452#pg2>.

Tom: It’s like they found a mathematical trick, this dual process, that lets them represent what we usually need—filtering, prediction, smoothing—as these mixtures. They derive general recursive formulae for updating the representations of filtering and prediction distributions > <ref:2006.03452#pg9>.

Jane: And they show that the likelihood itself takes the form of a finite product of mixtures > <ref:2006.03452#pg10>. That’s pretty strong because we usually have to integrate out the hidden trajectory to get it, which is computationally tough > <ref:2006.03452#pg3>.

Lu: For smoothing densities too, they characterize them as finite mixtures based on a cost-to-go function that comes from backward computations > <ref:2006.03452#pg11>. This suggests a systematic way to build up the necessary distributions without needing an infinite sum or integral over the hidden path.

Meng: Okay, so this sounds like it has some structure that lets us stop summing things up and start using these recursive formulas instead. What are some concrete examples they use to show this actually works?

Tom: They illustrate this with two specific models: a one-dimensional signal driven by a Cox–Ingersoll–Ross diffusion with Poisson observations, and another one driven by a Wright–Fisher diffusion on the simplex with categorical observations > <ref:2006.03452#pg12>.

Jane: For the CIR model, they find that all filtering and predictive distributions turn out to be finite mixtures of gamma densities > <ref:2006.03452#pg13>. And for the Wright–Fisher model, it's all finite mixtures of Dirichlet densities > <ref:2006.03452#pg15>.

Paper summary: Lu: Those specific results are really illuminating because they show how the structure of the signal process dictates the shape of these mixture components—the gamma and Dirichlet distributions, respectively > <ref:2006.03452#pg13>, <ref:2006.03452#pg15>.

Tom: Now they tackle a big problem: if you have many components in these mixtures, the computation gets slow. So they propose an automatic mixture pruning scheme that results in linear computational costs > <ref:2006.03452#pg18>.

Meng: Linear costs sound great for production, but how do you decide which components to keep? What's the practical trade-off when you prune them?

Jane: They discuss three pruning strategies: fixed number, fixed mass, and fixed threshold > <ref:2006.03452#pg19>. And they show these strategies actually outperform particle filters both in accuracy and computational efficiency > <ref:2006.03452#pg18>.

Tom: I like that they compare it directly against particle filters because that’s the standard go-to for complex inference problems, but this is much faster on the numbers > <ref:2006.03452#pg25>.

Lu: The real win, though, is how they use these pruned likelihood approximations to do inference on model parameters > <ref:2006.03452#pg19>. They use Metropolis–Hastings algorithms with Gaussian jumps to find the joint inference of signal and parameters > <ref:2006.03452#pg27>.

Meng: So you can infer the hidden path and the parameters together efficiently because of this pruning, which is something I need when I'm trying to deploy something at scale > <ref:2006.03452#pg19>.

Jane: The authors show that all pruning strategies are very fast and accurate alternatives to their exact strategies, outperforming particle filtering by orders of magnitude > <ref:2006.03452#pg25>. They even have analytical expressions for the L2 distance between mixtures of gamma distributions and Dirichlet distributions when certain conditions are met > <ref:2006.03452#pg43>, <ref:2006.03452#pg45>.

Tom: Those analytical distances let you check how accurate your approximation is against the true smoothing distribution, which is a big deal for validation > <ref:2006.03452#pg47>. The autocorrelation function plots even show that the joint CIR inference chain has more autocorrelation than the marginal CIR inference chain for their simulated data > <ref:2006.03452#pg5>.

Lu: That suggests that when they prune, they actually reduce the number of components in filtering distributions with non negligible weight as time increases, which means the effective number of components might be stationary or grow much slower than polynomial complexity suggests > <ref:2006.03452#pg19>.

Meng: If the effective number of components stays small or grows slowly, then my concerns about running costs at scale get a lot better. What's the actual cost saving they claim?

Jane: The results confirm that for the Wright–Fisher case, pruning strategies entail a gain in terms of computing time by three orders of magnitude and for the CIR case, it’s four to five orders of magnitude > <ref:2006.03452#pg25>. That is a massive speedup when you're dealing with these non-linear models.

Tom: And they even say the pruning approximations to the smoothing distributions are even more efficient than for filtering and likelihood > <ref:2006.03452#pg47>. It sounds like this technique is robust across different statistical objects > <ref:2006.03452#pg18>.

Paper summary: Lu: The authors make a point about how they built the training signal conditional on the entire dataset using both backward and forward decomposition methods > <ref:2006.03452#pg16>. The forward kernel for the Wright–Fisher model involves an infinite mixture of Dirichlet distributions with respect to m, l and k > <ref:2006.03452#pg34>.

Meng: I'm curious about that infinite mixture part. How do you actually sample from something infinite when you're trying to build a signal trajectory?

Jane: They achieve the simulation from the Wright–Fisher forward kernel by sampling from this infinite mixture using a strategy based on alternating series > <ref:2006.03452#pg37>. It involves drawing indices and then sampling from a Dirichlet distribution whose parameters are determined by those indices > <ref:2006.03452#pg37>.

Tom: So, to summarize this paper, they provide exact expressions for filtering distributions as mixtures whose number of components is finite but depends on the number of observations, leading to polynomial computational complexity > <ref:2006.03452#pg29>.

Lu: And most importantly for me as a researcher, they demonstrate that this approach vastly outperforms generic approximation schemes like particle filtering in terms of both accuracy and computing time > <ref:2006.03452#pg31>. The code for optimal filtering, smoothing and parameter inference is available in the Julia package called DualOptimalFiltering > <ref:2006.03452#pg18>.

Meng: If I'm looking to deploy a system where I need to run these kinds of inference tasks on production traffic, this paper gives me a concrete method that scales better than what I was expecting from generic methods > <ref:2006.03452#pg18>.

Jane: It seems like the existence of that dual process is the key structural insight here, leading to those exact expressions for filtering distributions as mixtures whose number of components varies with the number of observations but is always finite > <ref:2006.03452#pg29>. This means we can get polynomial complexity instead of whatever exponential complexity we were facing before > <ref:2006.03452#pg31>.

Tom: Exactly, and the authors prove this by showing that their approach vastly outperforms generic approximation schemes like particle filtering by orders of magnitude in both accuracy and computing time > <ref:2006.03452#pg31>. The code for optimal filtering, smoothing and parameter inference is made available in the Julia package DualOptimalFiltering > <ref:2006.03452#pg18>.

Lu: So, to wrap up, this work proves that the existence of a dual process leads to exact expressions for filtering distributions as mixtures whose number of components varies with the number of observations but is always finite > <ref:2006.03452#pg29>. This entails polynomial computational complexity and it vastly outperforms generic approximation schemes like particle filtering by orders of magnitude in both accuracy and computing time > <ref:2006.03452#pg31>.

Meng: It’s a lot to digest, but for anyone dealing with complex state spaces where you need exact results on inference, this paper points toward a much more efficient path than the ones we were using before > <ref:2006.03452#pg18>.

Jane: I think the existence of this dual process is the key structural insight here, leading to those exact expressions for filtering distributions as mixtures whose number of components varies with the number of observations but is always finite > <ref:2006.03452#pg29>. That’s what makes the paper really matter for science communicators > <ref:2006.03452#pg31>.

Conclusion: Tom: So we're wrapping up this look at the paper "Exact inference for a class of non-linear hidden Markov models on general state spaces." It boils down to finding a way to get exact answers for these complex models without needing infinite computation.

Jane: But how do they actually do that? Because usually when you have these kinds of hidden Markov models, you just end up with an impossible amount of math to calculate the filtering or smoothing distributions.

Lu: The authors found a specific mathematical trick, this dual process embedded in the time reversal of the signal. This duality lets them represent all those tricky distributions as finite mixtures, which is key because it means the number of components they need to track stays finite.

Meng: Finite components sound promising for production work, but what's the actual payoff here? Is this just a theoretical trick that doesn't translate to real-world speed improvements?

Tom: It translates directly into speed. They show that this approach vastly outperforms standard approximation methods like particle filtering in both accuracy and computing time by orders of magnitude.

Jane: So, the big question then becomes, what does this mean for us who are actually building these complex AI models? What kind of problems can we tackle now that we have exact inference available?

Lalam: I’m confident this is a solid direction. The authors provide concrete algorithms, and they show how you can even infer the model parameters along with the hidden signal efficiently using these pruned likelihood approximations.

Tom: And they make that code available in a Julia package called DualOptimalFiltering, which is pretty cool for anyone actually trying to implement something on their own.

Jane: It points toward a new way of thinking about inference where we can move away from heavy approximation schemes and get the exact answers we usually strive for.

Lalam: The next thing I want to connect this to is how these structural properties—this duality—might apply to even more complex, real-world systems, maybe those with continuous states instead of just discrete ones.

More episodes

← Home