Learning Bayesian Network Classifiers to Minimize the Class Variable Parameters

Shouta Sugahara, Koya Kato, Maomi UenoAAAI 2024

Abstract

Bayesian Network Classifiers (BNCs) offer an interpretable alternative to black-box models but often suffer from "parameter explosion" when the class variable has multiple parents. This paper introduces the No Parent Class Directed Acyclic Graph (NPCDAG) model, which restricts the class variable to have no parents, thereby minimizing its parameter count. We propose an efficient learning framework using a Depth-First Branch and Bound (DFB&B) algorithm guided by a novel heuristic based on Naive Bayes. Our results across 24 UCI datasets and various synthetic structures demonstrate that this approach achieves state-of-the-art accuracy while remaining computationally efficient and scalable to high-dimensional datasets.

Introduction

In probabilistic graphical modeling, Bayesian Network Classifiers (BNCs) are valued for their transparency, providing both labels and a map of variable dependencies. However, a significant challenge lies in the trade-off between generative and discriminative learning. Standard Marginal Likelihood (ML) maximization often results in complex models where the class variable has numerous parents, leading to a skyrocketing number of parameters. When data is sparse relative to these parameters, model stability and accuracy decline. While Conditional Log-Likelihood (CLL) is more effective for classification, its optimization is computationally intensive due to the lack of a closed-form solution. This research seeks a middle ground: a model as accurate as CLL-optimized networks but as efficient as ML-based ones.

Methodology: The NPCDAG Model

The core of the proposed approach is the NPCDAG (No Parent Class Directed Acyclic Graph) structure. In this configuration, the class variable acts as a "sink"—it has no parents, only children. This restriction directly addresses the parameter explosion problem.

To identify the optimal NPCDAG, the authors focus on minimizing the Number of Class Variable Parameters (NCP). The learning process is framed as a shortest-path problem on an "NPC Reverse Order Graph" (NROG). To navigate this NP-hard search space, a Depth-First Branch and Bound (DFB&B) algorithm is employed.

Figure 2: Illustration of the NPC Reverse Order Graph (a) and the pruning process (b) using the proposed heuristic.

A key innovation is the use of a novel heuristic: the authors proved that the NCP of a Naive Bayes classifier serves as a mathematical lower bound for their model. This allows the DFB&B algorithm to effectively "prune" large sections of the search space that cannot contain an optimal solution, as illustrated in the figure above.

Experimental Setup

The method was evaluated using two distinct data sources:

  1. UCI Machine Learning Repository: 24 real-world datasets of varying sizes, from small (e.g., "Lenses") to very large (e.g., "PAMAP2" with over 170,000 instances).
  2. Simulation Datasets: Three synthetic networks—Cancer, Asia, and a Markov network—were used to test the algorithm's ability to recover true underlying distributions.
Figure 4: The three synthetic structures used for simulation testing: Structure(1) Cancer, Structure(2) Asia, and Structure(3) Markov network.

Key Insights and Results

The research yields several critical insights:

  • The "Less is More" Paradox: Intentionally limiting the class variable's parents makes the model more robust. It prevents prior probabilities from dominating the posterior, a common failure mode in standard BNs with excessive parent configurations.
  • Asymptotic Equivalence: The authors mathematically demonstrated that the simplified NPCDAG structure is "classification-equivalent" to the true structure as sample size increases, ensuring that simplification does not sacrifice long-term accuracy.
  • Superior Performance: The proposed DFB&B method outperformed benchmarks like Naive Bayes and GBN-CMDL, particularly on datasets with a low sample-per-pattern (SPP) ratio.
  • Efficiency and Scalability: The DFB&B algorithm provided massive speedups (e.g., reducing "Hepatitis" dataset runtime from 10,000s to 250s) and successfully handled datasets with up to 116 variables, where other exact methods typically fail.

Conclusion

By minimizing class variable parameters through the NPCDAG structure and an optimized DFB&B search, this work provides a scalable and accurate framework for Bayesian classification. Future research will focus on enhancing the qualitative explainability of these minimized-parameter graphs to help human experts better interpret the underlying logic of the classifications.

Summary updated

BibTeX
@inproceedings{sugahara2024learning,
  author = {Shouta Sugahara and Koya Kato and Maomi Ueno},
  title = {{Learning Bayesian Network Classifiers to Minimize the Class Variable Parameters}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i18.30039},
}
Figure