A Compositional Atlas for Algebraic Circuits

Benjie Wang, Denis Mauá, Guy Van den Broeck, YooJung Choi

TL;DR

This paper introduces a unified algebraic framework that breaks down complex inference queries—such as causal reasoning or marginal MAP—into three basic building blocks: aggregation, product, and elementwise mapping. By defining how circuit properties like "determinism" and "compatibility" flow through these blocks, the authors provide a blueprint that simplifies proving tractability and speeds up existing algorithms for causal inference.

What Problem Does This Paper Address?

In the world of AI, Algebraic Circuits (ACs)—which include Boolean circuits and Probabilistic Circuits—are powerful tools for representing complex functions. Their primary advantage is tractability: if a circuit possesses certain structural properties (like being "smooth" or "decomposable"), we can answer questions like "What is the probability of X?" in linear time, even if the underlying problem is normally NP-hard.

However, as queries get more complex—such as "What is the most likely scenario given this evidence?" (Marginal MAP) or "What happens if I intervene in this causal system?" (Causal Inference)—the math gets messy. Historically, researchers had to derive custom algorithms and tractability proofs for every single new query.

A compositional pipeline breaking down a complex query into basic operators.

This paper addresses this fragmentation by creating a "compositional atlas"—a systematic way to analyze any complex query by breaking it into a pipeline of simpler, reusable parts.

Methods

The authors take an algebraic perspective, treating circuits as functions over semirings (mathematical structures that define how to "add" and "multiply" values, whether those values are probabilities, truth values, or costs).

They identify three fundamental operators that can describe almost any inference query:

  1. Aggregation: Summing or maximizing out variables (e.g., marginalization).
  2. Product: Combining two different circuits (e.g., multiplying a prior by a likelihood).
  3. Elementwise Mapping: Transforming the values at the leaves or nodes (e.g., converting a Boolean "True/False" into a "1/0" probability).
Table summarizing the composability conditions and complexity for the three basic operators.

The core of their method is a set of Composability Conditions. They rigorously prove how structural properties of the input circuits (like $X$-determinism or $X$-compatibility) are maintained or transformed when you apply these three operators. This allows a researcher to look at a complex pipeline of operations and immediately know if the final result will be tractable.

Key Insights and Results

  • The Power of Mapping: The authors show that "Elementwise Mapping" is the secret sauce for complex queries. It allows you to move between different semirings, which is essential for problems like Probabilistic Answer Set Programming.
  • Support-Compatibility: They introduce a new property called "support-compatibility." This allows for the multiplication of two circuits in linear time, even if they don't share the same rigid "vtree" structure previously thought necessary for efficiency.
  • Causal Inference Speedup: By applying their framework to causal "do-calculus," the authors reduced the computational complexity of Backdoor Adjustment from quadratic $O(|C|^2)$ to linear $O(|C|)$ and Frontdoor Adjustment from cubic $O(|C|^3)$ to quadratic $O(|C|^2)$.
  • 2AMC Tractability: They clarified the conditions for "Second-level Algebraic Model Counting" (2AMC). They proved that while some previously proposed conditions were insufficient (making the problem #P-hard), adding a property called "$X$-determinism" makes these problems tractable in $O(|C|)$ time.
  • A Unified Hierarchy: The paper unifies several disparate fields—causal inference, probabilistic logic programming, and bilevel optimization—under one mathematical roof, providing blueprints for tractability. If your query fits the atlas, it's guaranteed to be efficient.

Limitations and Future Work

  • Sufficient vs. Necessary: The conditions provided are sufficient for tractability, but not always necessary. Some queries might still be efficient to compute even if they don't meet the strict structural requirements outlined in the atlas.
  • Exact vs. Approximate: The framework focuses entirely on exact inference. In many massive-scale AI applications, approximate inference is required, and extending this compositional approach to approximations remains an open challenge.
  • Learning Circuits: While the paper tells us what properties a circuit needs to have, it doesn't tell us how to learn such circuits from data. Future work could involve developing new machine learning objectives that encourage these specific structural properties during training.

Summary updated

BibTeX
@inproceedings{wang2024compositional,
  author = {Benjie Wang and Denis Mauá and Guy Van den Broeck and YooJung Choi},
  title = {{A Compositional Atlas for Algebraic Circuits}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=mXlR1FLFDc},
}
Figure