Lazy naive credal classifier

Giorgio Corani, Marco ZaffalonKnowledge Discovery from Uncertain Data @ KDD 2009

Abstract

Traditional Bayesian classifiers like Naive Bayes (NB) are efficient but often fragile due to strong independence assumptions and a lack of principled uncertainty handling. This paper discusses the Lazy Naive Credal Classifier (LNCC), which addresses these limitations by combining "lazy" local learning with imprecise probabilities. By focusing on local neighborhoods and allowing for set-valued predictions when uncertain, LNCC significantly improves classification reliability and accuracy over its global counterparts.

Introduction

Naive Bayes (NB) is a staple of machine learning, yet it suffers from two major drawbacks: the "naive" assumption that all features are independent given the class, and a tendency toward "fragile confidence"—forcing a single-class prediction even when data is scarce or ambiguous.

The Naive Credal Classifier (NCC) was previously introduced to mitigate this by using a set of prior distributions (imprecise probabilities) to issue "indeterminate" classifications (returning multiple classes) when evidence is insufficient. However, NCC still relies on global independence assumptions. The Lazy Naive Credal Classifier (LNCC) seeks to overcome this by shifting from global to local modeling.

Methodology

LNCC introduces two key innovations to the credal classification framework:

1. Lazy Learning for Local Modeling

Instead of training a single global model, LNCC defers computation until a query instance is presented. It identifies the most similar instances (neighbors) in the training set and constructs a local model specifically for that point. This approach reduces bias and minimizes the impact of feature dependencies that may be strong globally but are often weaker within localized clusters.

2. Adaptive Neighborhood Selection

A novel "stop when determinate" heuristic is used to select the neighborhood size ($k$). LNCC starts with a small neighborhood ($k=25$). If the classifier is confident enough to return a single class (determinate), it stops. If it remains indeterminate, it incrementally adds neighbors ($+20$ at a time) until it reaches a determinate state or exhausts the dataset. This feedback loop uses the model's own uncertainty to optimize the amount of local data used.

Experimental Evaluation

The researchers evaluated LNCC on 36 datasets from the UCI Machine Learning Repository, covering diverse domains such as medical diagnosis, image recognition, and social data.

Comparison of d-acc between LNCC and NCC.

Performance Results

LNCC demonstrated a clear advantage over the global NCC. In a statistical rank test across the 36 datasets, LNCC achieved 15 wins, 20 ties, and only 1 loss. The model was significantly more "determinate" than NCC, narrowing predictions to a single class more frequently without losing accuracy.

Detailed performance metrics across 36 UCI datasets.

As shown in the detailed results, the improvements in "discounted accuracy" (a metric penalizing indeterminate predictions) were often substantial. For example, on the anneal dataset, LNCC improved accuracy by 21.3 percentage points over NCC. A notable exception was the splice dataset, where the neighborhood selection heuristic failed, indicating that while the heuristic is generally effective, it is not infallible.

Key Insights

  • Uncertainty as a Guide: Using determinacy as a stopping criterion for neighborhood expansion effectively treats the lack of a single-class prediction as a signal that the local data is uninformative.
  • Mitigating the Naive Assumption: Local modeling makes the independence assumption more realistic, as complex global dependencies often simplify within small clusters.
  • Reliability over Guesswork: LNCC identifies "hard" instances and returns a set of classes rather than a high-confidence wrong answer, preserving the reliability of the decision-making process.

Conclusion

LNCC represents a robust evolution of the Naive Bayes family, successfully merging local learning with imprecise probabilities. While the "lazy" approach introduces higher computational costs at query time, the gains in accuracy and reliability make it a powerful tool for applications where "I don't know" is a more valuable answer than a forced guess. Future work will explore feature weighting and more sophisticated neighborhood selection heuristics to further refine performance.

Summary updated

BibTeX
@inproceedings{corani2009lazy,
  author = {Giorgio Corani and Marco Zaffalon},
  title = {{Lazy naive credal classifier}},
  booktitle = {Knowledge Discovery from Uncertain Data @ KDD},
  year = {2009},
  doi = {10.1145/1610555.1610560},
}
Figure