2026

LLMs or Naive Bayes? Old Gems or New Ways

Sada, Mohammad Firas, Mishin, Dmitry, Graham, John et al.

Understand

Large language models (LLMs) prompt a recurring question in research computing: should classical methods like Naive Bayes (NB) be retired? We benchmark Complement Naive Bayes against zero-shot and few-shot LLMs spanning four model families and a 37x range in scale (27B to a 1T-parameter mixture-of-experts) across text classification tasks.

  • LLMs dominate only in zero-data regimes (98.0% vs 88.2% on Amazon Polarity sentiment), and even that win is contamination-prone: on a low-contamination sentiment task NB beats the zero-shot LLM (81.7% vs 73.0%).
  • However, once labeled data is available (e.g., AG News), NB reaches 89.1% accuracy, statistically indistinguishable from the zero-shot 27B LLM (89.0%) and better than the 397B frontier model (84.8%), at thousands of samples/sec on a commodity CPU.
  • Fine-tuned DistilBERT reaches 90.6% but at far lower throughput than NB at batch size 1 (Table 2).

Reading the bibliography…