Probabilistic Inference with Generating Functions for Poisson Latent Variable Models

Kevin Winner, Daniel R. SheldonNeurIPS 2016

This paper tackles a long-standing headache in ecological modeling and time-series analysis: how to perform exact inference when "hidden" variables are counts that could theoretically range from zero to infinity.

The authors introduce the first exact inference algorithms for Poisson latent variable models by representing countably infinite probability factors as Probability Generating Functions (PGFs). This approach bypasses the need for slow, biased approximations like truncation or Markov Chain Monte Carlo (MCMC), providing a "pseudo-polynomial" time solution that is orders of magnitude faster and more accurate.

The Challenge of Infinite Support

In many fields—especially population ecology—researchers deal with latent (hidden) count variables. For example, an "N-mixture model" tries to estimate the true number of animals at a site ($n$) based on repeated, imperfect surveys ($y$).

Standard exact inference tools like Variable Elimination or Belief Propagation require summing over all possible values of a variable. If a variable is discrete and finite (like a coin flip), this is trivial. If it’s Gaussian, closed-form math exists. But if the variable is a count (e.g., Poisson-distributed), it has countably infinite support ($0, 1, 2, \dots, \infty$).

N-mixture model, prior/posterior distribution, and its Probability Generating Function representation.

To deal with this, researchers usually "truncate" the sum at some large number $N_{max}$. This creates a dilemma: set $N_{max}$ too low, and you get biased results; set it too high, and the computation becomes glacially slow.

Exact Inference via Generating Functions

The core innovation of this paper is shifting the mathematics from the "probability space" to the "transform space" using PGFs. A PGF represents a probability distribution as a power series: $F(s) = \sum_{n=0}^{\infty} p(n)s^n$.

The beauty of PGFs is that complex operations in probability space become simple calculus or algebra:

  • Marginalization becomes evaluating the function at $s=1$.
  • Conditioning (Evidence) involves taking derivatives.
  • Summing independent variables becomes simple multiplication of their PGFs.
A Hidden Markov Model (HMM) chain structure for latent count variables.

Using this mathematical foundation, the authors develop two main algorithms for models like Hidden Markov Models (HMMs):

  1. PGF-FORWARD: An exact version of the HMM forward algorithm. The authors prove a critical insight: for Poisson HMMs, the intermediate factors always maintain a specific functional form—a polynomial multiplied by an exponential. This "invariant form" allows the computer to store just a few coefficients rather than an infinite list of probabilities, making the representation compact and exact.
  2. PGF-TAIL-ELIMINATE: A specialized algorithm for computing posterior marginals (the probability of a specific hidden state given all data) that avoids the complexities of a traditional "backward" pass in the PGF domain.

Key Results and Performance

The authors evaluated their methods using both simulated data (based on insect populations) and a real-world Northern Dusky Salamander dataset consisting of counts from 15 sites over 7 years.

  • Massive Speedups: PGF-FORWARD proved to be 2 to 3 orders of magnitude faster than the standard truncated forward algorithm, even when the truncation point was optimally chosen by an "oracle."
  • Bias Elimination: In simulations, the PGF method produced unbiased estimates of population size. Conversely, the truncated method systematically "chopped off" the possibility of high population counts, leading to severe underestimates as the true population size increased.
  • Real-world Efficiency: On the salamander dataset, the model computed posterior marginals for all latent variables in about 1.6 seconds per site—a task that typically requires intensive MCMC sampling or heavy approximation.

Limitations and Future Work

While highly effective, the algorithm's runtime depends on the magnitude of the observed counts ($Y = \sum y_k$), giving it pseudo-polynomial complexity. It remains incredibly efficient for most ecological applications, but could slow down if observing millions of individuals.

Currently, the framework is tailored to Poisson distributions and "binomial thinning" (where individuals survive or are detected with some probability). Extending this to other common count distributions, like the Negative Binomial (which handles overdispersed data), and adapting the algorithms for more complex graphical models with high treewidth remain exciting avenues for future research.

Summary updated

BibTeX
@inproceedings{winner2016probabilistic,
  author = {Kevin Winner and Daniel R. Sheldon},
  title = {{Probabilistic Inference with Generating Functions for Poisson Latent Variable Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2016},
  url = {https://openreview.net/forum?id=HJZ06DWObB},
}
Figure