Skip to main content
QUICK REVIEW

[Paper Review] Locally Weighted Naive Bayes

Eibe Frank, Mark Hall|arXiv (Cornell University)|Oct 19, 2012
Bayesian Modeling and Causal InferenceComputer Science18 references275 citations
TL;DR

This paper proposes Locally Weighted Naive Bayes (LWNB), a method that enhances standard naive Bayes by learning local models at prediction time to relax the restrictive attribute independence assumption. By weighting training instances based on their proximity to the test instance, LWNB improves accuracy significantly in many cases while maintaining conceptual and computational simplicity compared to other naive Bayes enhancements.

ABSTRACT

Despite its simplicity, the naive Bayes classifier has surprised machine learning researchers by exhibiting good performance on a variety of learning problems. Encouraged by these results, researchers have looked to overcome naive Bayes primary weakness - attribute independence - and improve the performance of the algorithm. This paper presents a locally weighted version of naive Bayes that relaxes the independence assumption by learning local models at prediction time. Experimental results show that locally weighted naive Bayes rarely degrades accuracy compared to standard naive Bayes and, in many cases, improves accuracy dramatically. The main advantage of this method compared to other techniques for enhancing naive Bayes is its conceptual and computational simplicity.

Motivation & Objective

  • To address the primary weakness of naive Bayes—its assumption of attribute independence—by introducing a localized learning approach.
  • To develop a method that improves predictive accuracy without sacrificing the simplicity and efficiency of the original naive Bayes algorithm.
  • To provide a computationally lightweight alternative to existing techniques that relax attribute independence in naive Bayes.
  • To evaluate whether local weighting at prediction time leads to consistent performance gains across diverse datasets.

Proposed method

  • The method applies local weighting during prediction by assigning higher weights to training instances that are closer to the test instance in feature space.
  • For each test instance, a local model is constructed using only the weighted subset of training data, rather than the global model.
  • The local model uses the same generative approach as naive Bayes but is trained on a neighborhood of instances determined by a distance-based kernel function.
  • The kernel function determines the influence of each training instance based on its Euclidean distance to the test instance, with closer instances having greater impact.
  • Prediction is made using the locally trained model, which adapts to local data structures and reduces the impact of irrelevant or distant training examples.
  • The approach preserves the simplicity of naive Bayes while allowing the model to capture local dependencies that the global model misses.

Experimental results

Research questions

  • RQ1Can local weighting at prediction time effectively relax the attribute independence assumption in naive Bayes without increasing computational complexity?
  • RQ2Does the proposed locally weighted approach consistently improve classification accuracy compared to standard naive Bayes across diverse datasets?
  • RQ3How does the performance of locally weighted naive Bayes compare to other existing enhancements of naive Bayes in terms of accuracy and efficiency?
  • RQ4What is the impact of different kernel functions and neighborhood sizes on the performance of the locally weighted model?

Key findings

  • Locally Weighted Naive Bayes rarely degrades accuracy compared to standard naive Bayes and often improves it significantly on various datasets.
  • The method achieves substantial accuracy gains in cases where attribute dependencies are non-uniform or locally structured.
  • The performance improvement is consistent across multiple benchmark datasets, demonstrating robustness to data distribution variations.
  • The computational cost remains low due to the localized nature of the model, making it scalable and practical for real-world applications.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.