Abstract
Probabilistic graphical models, capturing dependencies among random variables, have proven their capability in many practical tasks. However, their opaque inference mechanisms prevent broader applications. Unlike explaining deep neural networks, the explainability challenges in graphical models stem from recursive and extensive dependencies coupled with intricate inference processes. To address these challenges, the explanation of probabilistic inferences task is formulated as a faithful subgraph extraction problem, formally defined as a constrained minimization problem. We prove that the objective function with cardinality constraints is NP-hard and lacks monotonicity and submodularity, critical to guarantee efficient greedy solutions. A general beam search algorithm, GraphExp, is proposed to extract faithful, user-friendly, and diverse trees as explanations. We explore various instantializations of GraphExp to meet diverse practical requirements, and justify these variants by analyzing the underlying mechanism of the inference in graphs. Experimentally, GraphExp outperforms existing methods on 13 networks from 4 distinct domains. Additionally, we present the usability of the explanations within an interactive interface that enables humans to explore more diverse and personalized explanations.
Introduction
Probabilistic Graphical Models (PGMs), such as Markov Random Fields (MRFs), are powerful tools for modeling structured data with complex dependencies. However, their reliance on algorithms like Belief Propagation (BP) often results in a "black box" problem. In BP, messages are passed recursively through the graph, meaning a single prediction can be influenced by thousands of distant variables and cyclic dependencies. This complexity makes it nearly impossible for humans to trace the reasoning behind a model's decision.
The GraphExp Framework
To bridge this gap, the authors introduce GraphExp, a framework that formulates the explanation task as a constrained minimization problem. The goal is to identify a small, acyclic subgraph (a tree) that faithfully mimics the original model's prediction. Trees are prioritized because they are inherently more interpretable for humans and avoid the logical circularity found in cyclic graphs.
GraphExp employs a greedy beam search algorithm with two primary variants:
- GE-G (Global): This variant evaluates every candidate subgraph by running a full BP session, ensuring high faithfulness at the cost of higher computation.
- GE-L (Local): Designed for massive datasets, this variant uses local heuristics—such as message similarity—to select nodes, achieving up to 60x speedups while maintaining competitive accuracy.
Theoretical Insights and Challenges
The research highlights several mathematical hurdles in explaining PGMs. The authors prove that finding the optimal explanatory subgraph is NP-hard. Furthermore, they identify a "More is Less" paradox: the objective function is non-monotonic, meaning that adding more nodes to an explanation does not always improve its faithfulness; in some cases, distant or noisy nodes can actually degrade the explanation's quality.
Experimental Results
GraphExp was tested on 13 diverse networks across domains including spam detection, citation analysis, and social networks. It consistently achieved the lowest faithfulness loss (measured by KL-divergence) compared to established baselines like LIME and GNNExplainer.
Beyond performance metrics, GraphExp proved valuable for model auditing. For instance, in analyzing Yelp review data, the framework revealed that a model was incorrectly flagging reviews based on user activity levels rather than content, allowing researchers to identify and address a potential security flaw.
Conclusion
GraphExp offers a scalable and human-centric solution for interpreting large-scale probabilistic models. By extracting faithful, acyclic subgraphs, it provides a clear window into the recursive logic of Belief Propagation, facilitating better model debugging and fostering trust in automated decision-making systems.
Summary updated