Fast Fourier Transform Reductions for Bayesian Network Inference

Vincent Hsiao, Dana S. Nau, Rina DechterAISTATS 2022

Exact inference in Bayesian Networks (BNs) is a cornerstone of probabilistic reasoning, yet it remains computationally expensive. A primary bottleneck occurs when a node has many "parent" nodes that contribute to a single "child" node, causing the Conditional Probability Table (CPT) to grow exponentially. This paper introduces a novel method to accelerate inference by applying the Fast Fourier Transform (FFT) to summation-based causal independence models.

The Computational Bottleneck

In many real-world domains—such as calculating total power from a fleet of generators or the fitness of an agent in a social game—the child node is simply a sum of its parents. While this "summation-based causal independence" (CI) has significant internal symmetry, standard inference algorithms like Bucket Elimination often fail to exploit it efficiently. As the number of parents ($N$) or the domain size ($D$) grows, these models quickly become intractable.

A convergent network structure where multiple parent nodes $S_1, \dots, S_n$ influence a single child node $K$.

Methods: Probability as Signal Processing

The core insight of this research is recognizing that calculating the probability distribution of a sum of independent random variables is mathematically identical to performing a convolution of their individual distributions. This allows the use of the Fast Fourier Transform (FFT) to move calculations into the frequency domain, where convolution becomes simple multiplication.

The authors propose two primary integration methods:

  1. FFT Reduction: For specific "source-sink" network structures, the authors use the Convolution Theorem to transform distributions into the frequency domain, multiply them, and transform back. This reduces a massive, complex CPT into a manageable one.
  2. ci-elim-FFT Algorithm: This extends the existing ci-elim-bel algorithm. Instead of performing pairwise additions naively, ci-elim-FFT uses the FFT to process buckets, replacing quadratic-time operations with $O(R \log R)$ frequency-domain operations.
The FFT reduction process transforms a complex source-sink network into a simple edge, reducing exponential complexity to polynomial time.

Key Results and Insights

The paper evaluates these methods using synthetic benchmarks modeled after distributed resource applications and evolutionary game theory.

  • Complexity Reduction: For independent and identically distributed (i.i.d.) variables, the time complexity drops from exponential to just $O(N D \log(ND))$. In the frequency domain, combining $N$ identical distributions is simplified to raising a vector to the $N^{th}$ power.
  • Massive Speedups: Empirical tests showed that while naive approaches became untractable with as few as 10-15 nodes, the FFT-based method handled over 60 nodes in a fraction of a second.
  • Scaling: The advantage of the FFT method grows significantly as the domain size ($D$) of the variables increases, making it particularly useful for high-resolution models.

Future Directions

While this work focuses specifically on the addition operator, many systems use other operators like MAX or OR. Extending FFT logic to these types of causal independence remains an open challenge. Additionally, the authors suggest that integrating FFT techniques into general "lifted inference" frameworks—which use symmetry to avoid redundant calculations—could further enhance the scalability of probabilistic AI.

Summary updated

BibTeX
@inproceedings{hsiao2022fast,
  author = {Vincent Hsiao and Dana S. Nau and Rina Dechter},
  title = {{Fast Fourier Transform Reductions for Bayesian Network Inference}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2022},
}
Figure