On Discriminative Bayesian Network Classifiers and Logistic Regression

Teemu Roos, Hannes Wettig, Peter Grünwald, Petri Myllymäki, Henry TirriMachine Learning 2005 · DOI

Introduction

Bayesian Networks (BNs) are traditionally employed as generative models, optimized to maximize the joint likelihood of all observed variables. However, in classification tasks, the primary objective is discriminative performance—maximizing the conditional likelihood of a class label given the features. While discriminative training often leads to superior accuracy, it presents significant optimization challenges; the conditional log-likelihood surface for general BNs is frequently non-concave, leading to local maxima. This paper establishes a theoretical bridge between BN classifiers and logistic regression, identifying structural conditions under which discriminative training is globally optimal.

The Equivalence to Logistic Regression

The authors demonstrate that for a specific class of network structures, discriminative training is mathematically equivalent to logistic regression. This equivalence is predicated on the "perfectness" of the graph structure. A directed acyclic graph (DAG) is defined as perfect if every set of nodes sharing a common child is also directly connected to each other.

Figure 2: Comparison of Bayesian Network structures. Structure (a) satisfies the perfectness condition where parents of the 'Disease' node are interconnected, whereas structure (b) does not.

When a BN satisfies this condition, its conditional likelihood can be reparameterized as a softmax function of linear combinations of data statistics. This transformation ensures that the log-likelihood surface is concave, allowing simple local optimization methods, such as hill-climbing or coordinate-wise line search, to reliably find the global maximum.

Methodology

The research introduces several key concepts to formalize this relationship:

  • Canonical Form ($\mathcal{B}^*$): A simplified BN structure focusing on the Markov blanket of the class variable, ensuring all parents of the class variable are fully connected.
  • Reparameterization: Mapping BN parameters into a logistic framework (log-probabilities) to avoid "wrinkles" or local maxima that can occur even in perfect structures when using standard probability parameterization (0 to 1).
  • Pruned Naive Bayes (pNB): A heuristic strategy designed to remove redundant parameters from a Conditional Naive Bayes model, acting as a form of regularization to prevent overfitting.

Experimental Evaluation

The theoretical findings were validated using 18 datasets from the UCI Machine Learning Repository, ranging from medical diagnostics (e.g., BC Wisconsin, Hepatitis) to social data (e.g., Congressional Voting) and large-scale benchmarks (e.g., Mushrooms, Waveform).

Key Results

  • Superiority of Discriminative Training: Conditional Naive Bayes (cNB) and pNB consistently outperformed standard generative Naive Bayes (NB) in terms of log-loss, particularly on larger datasets where independence assumptions were violated.
  • Global Convergence: For perfect structures like Tree-Augmented Naive Bayes (TAN), local optimization reached the same global maximum regardless of initialization, confirming the predicted concavity.
  • Efficiency of Pruning: The pNB strategy often reduced parameter counts by a factor of six without sacrificing predictive performance, highlighting the redundancy of many features in standard models.

Conclusion

This work provides a rigorous foundation for understanding the relationship between graphical models and linear classifiers. By identifying the perfectness condition, the authors offer a guarantee for the global optimality of discriminative training in popular models like TAN. While challenges remain in structure learning and handling continuous variables, this research clarifies why and when discriminative BNs can be expected to perform as robustly as logistic regression.

Summary updated

BibTeX
@article{roos2005discriminative,
  author = {Teemu Roos and Hannes Wettig and Peter Grünwald and Petri Myllymäki and Henry Tirri},
  title = {{On Discriminative Bayesian Network Classifiers and Logistic Regression}},
  journal = {Machine Learning},
  year = {2005},
  doi = {10.1007/s10994-005-0471-6},
}
Figure