Bayesian Network Classifiers with Reduced Precision Parameters

Sebastian Tschiatschek, Peter Reinprecht, Manfred Mücke, Franz Pernkopf

Introduction

In modern machine learning, high-precision numerical representations—typically 64-bit double-precision floats—are the standard for model parameters. While this ensures numerical stability during training, it imposes significant overhead in storage and computation, particularly for resource-constrained environments like IoT devices and embedded sensors. This paper challenges the necessity of high precision for Bayesian Network Classifiers (BNCs), demonstrating that these models are remarkably robust to drastic bit-width reduction.

Methodology

The researchers investigated the performance of BNCs under varying levels of parameter precision. They focused on two primary graph structures: Naive Bayes (NB) and Tree Augmented Networks (TAN). The study compared generative learning (Maximum Likelihood) with discriminative learning objectives (Maximum Conditional Likelihood and Maximum Margin).

A central contribution of this work is the systematic reduction of bit-widths for both the mantissa and the exponent of logarithmic probability parameters. Furthermore, the authors developed a mathematical framework to map the entire classification process into the integer domain. By scaling and rounding reduced-precision log-probabilities, the final decision (the "argmax" over classes) can be computed using simple integer addition, bypassing the need for expensive floating-point units (FPUs).

Robustness to Precision Reduction

The core finding of the study is the asymmetric sensitivity of BNCs to different components of floating-point numbers. The experiments revealed that the bit-width of the exponent is far more critical than that of the mantissa.

Classification rate vs. mantissa bit-width

As shown in the analysis of mantissa bit-width, classification accuracy plateaus almost immediately. In many scenarios, a mantissa of just 1 or 2 bits is sufficient to achieve performance parity with full 64-bit precision. This suggests that the fine-grained fractional details of the probabilities are less important for the final classification decision than their overall magnitude.

Classification rate vs. exponent bit-width

In contrast, the exponent bit-width has a more pronounced impact. Accuracy drops sharply if the exponent is too restricted, as the model loses the ability to represent the wide range of probabilities necessary for effective class separation. However, even here, "high precision" is relative; near-optimal performance is typically reached with only 4 to 5 bits for the exponent.

Key Results

The robustness of BNCs was validated across three benchmark datasets: USPS (handwritten digits), MNIST (down-sampled digits), and TIMIT (speech phonemes).

  • Extreme Compression: On the USPS dataset, a configuration using only 4 bits for the exponent and 1 bit for the mantissa (5 bits total per parameter) yielded classification rates nearly identical to 64-bit models.
  • Discriminative Robustness: A common theoretical concern is that discriminative learning produces "extreme" probabilities (near 0 or 1), which sensitivity analysis suggests should be more fragile. However, the empirical results showed that discriminatively trained models (MCL and MM) are just as robust to precision reduction as generative models, while maintaining their superior baseline accuracy.
  • Resource Efficiency: By reducing parameter width from 64 bits to approximately 8 bits, storage requirements are slashed by a factor of 8x. Combined with integer-only inference, this enables high-performance classification on low-power hardware that lacks floating-point support.

Conclusion

This research demonstrates that Bayesian Network Classifiers are ideal candidates for deployment in hardware-limited environments. Their inherent robustness to precision reduction allows for massive compression and the use of efficient integer arithmetic without sacrificing predictive power. Future work may involve developing automated methods for selecting optimal bit-widths and benchmarking these models on specific FPGA or microcontroller architectures to quantify power and latency gains.

Summary updated

BibTeX
@inproceedings{tschiatschek2012bayesian,
  author = {Sebastian Tschiatschek and Peter Reinprecht and Manfred Mücke and Franz Pernkopf},
  title = {{Bayesian Network Classifiers with Reduced Precision Parameters}},
  booktitle = {ECML/PKDD},
  year = {2012},
  doi = {10.1007/978-3-642-33460-3\_10},
}
Figure