Introduction
Probabilistic graphical models (PGMs), often represented as factor graphs, are foundational tools for modeling complex dependencies in physics, statistics, and machine learning. Traditional inference algorithms like Belief Propagation (BP) are robust but lack the ability to adapt through learning from data. While Graph Neural Networks (GNNs) have been proposed as learnable alternatives, they often treat factor graphs as standard bipartite graphs, ignoring unique structural symmetries. This paper introduces Factor-Equivariant Neural Belief Propagation (FE-NBP) and Factor-Equivariant Graph Neural Networks (FE-GNN), which incorporate these symmetries as inductive biases to achieve superior performance and sample efficiency.
Symmetries in Factor Graphs
The core contribution of this work is the formalization and integration of three key symmetries (isomorphisms) inherent to factor graphs:
- Global Symmetry: Equivariance to the permutation of global node indices.
- Local Variable Symmetry: Equivariance to permuting the order of variables connected to a specific factor.
- Variable Assignment Symmetry: Equivariance to permuting the order of state assignments (e.g., 0/1) within a variable.
Existing neural models often fail to respect these properties, wasting model capacity on learning rules that should be structurally guaranteed, leading to suboptimal performance.
Proposed Architectures
The authors propose two models to address different data regimes and expressivity needs:
- FE-NBP: This model augments standard BP by learning adaptive damping ratios for message passing. By calculating these ratios individually for each variable assignment, it strictly respects all three symmetries, providing a strong inductive bias that is highly effective when data is scarce.
- FE-GNN: An end-to-end GNN designed for high expressivity. It uses a novel "tensor sum" operation to combine factor potentials with message vectors, preserving Local Variable Symmetry. While it relaxes Variable Assignment Symmetry for flexibility, it remains significantly more structured than standard GNNs.
Evaluation and Results
The models were evaluated on synthetic Ising models, asymmetric Binary Markov Random Fields (BMRF), and real-world MAP inference tasks.
Sample Complexity Regimes
The experiments reveal a clear spectrum for neural inference. FE-NBP, with its strong inductive bias, achieves state-of-the-art performance in low-data regimes (50-100 training graphs). Conversely, the more expressive FE-GNN takes the lead when training data is abundant (>1000 graphs), outperforming baselines like GGNN and FGNN.
Advantage on Asymmetric Graphs
On the Asymmetric BMRF dataset, FE-GNN demonstrated the power of respecting Local Variable Symmetry. It achieved a KL divergence of 0.0109, whereas standard Gated Graph Neural Networks (GGNN), which flatten factor potentials and thus destroy local symmetry, recorded a much higher 0.3770.
Conclusion
By embedding factor graph symmetries directly into neural architectures, FE-NBP and FE-GNN overcome the limitations of both traditional BP and standard GNNs. The choice between them depends on the available data: FE-NBP offers high sample efficiency through strong inductive bias, while FE-GNN provides the expressivity needed for large-scale datasets. Future research will focus on bridging the gap between these approaches to create models that are both highly expressive and fully symmetry-aware.
Summary updated