mlsanityData to 14 Oct 2026

LLMs or Naive Bayes? Old Gems or New Ways

arXiv 2609.13185 ↗First posted 31 Jul 2026cs.LG cs.AI cs.CLcited by 0

Not on the map. Why?

Abstract (arXiv)

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). Our measured GPU throughput analysis shows small-LLM batched inference is 40-486x slower than NB CPU inference (the multiplier depends strongly on the host CPU), exposing a structural gap bounded by memory bandwidth, with roughly two orders of magnitude lower energy per sample. For resource-constrained HPC practitioners performing text classification with labeled data, NB remains the optimal choice. We show the decision line is task-dependent (NB reaches LLM parity around N ~ 104 labels for topic classification, while zero-data sentiment favors the LLM at all N tested) and provide a Kubernetes Helm operator that automates model selection using configurable thresholds and verifiable Prometheus metrics.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 14 of its 22 references that are in the map. First posted on arXiv 31 Jul 2026.

Builds on

14 of 22 references.

References · 14

  1. 2020Language Models are Few-Shot Learnerscited by 32,419
  2. 2022Training language models to follow instructions with human feedbackcited by 15,971
  3. 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,307
  4. 2015Character-level Convolutional Networks for Text Classificationcited by 2,330
  5. 2022Few-Shot Parameter-Efficient Fine-Tuning is Better and Cheaper than In-Context Learningcited by 896
  6. 2019Green AIcited by 627
  7. 2024OLMo: Accelerating the Science of Language Modelscited by 613
  8. 2022Efficient Few-Shot Learning Without Promptscited by 137
  9. 2023Few-shot Fine-tuning vs. In-context Learning: A Fair Comparison and Evaluationcited by 136
  10. 2024Fine-Tuned 'Small' LLMs (Still) Significantly Outperform Zero-Shot Generative AI Models in Text Classificationcited by 70
  11. 2025The National Research Platform: Stretched, Multi-Tenant, Scientific Kubernetes Clustercited by 17
  12. 2025Real-Time In-Network Machine Learning on P4-Programmable FPGA SmartNICs with Fixed-Point Arithmetic and Taylorcited by 2
2 more
  1. 2025Serving LLMs in HPC Clusters: A Comparative Study of Qualcomm Cloud AI 100 Ultra and NVIDIA Data Center GPUscited by 1
  2. 2026BTZSC: A Benchmark for Zero-Shot Text Classification Across Cross-Encoders, Embedding Models, Rerankers and LLMscited by 1

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2025Reliable Decision Support with LLMs: A Framework for Evaluating Consistency in Binary Text Classification Applications
  2. 2025Large Language Models as Universal Predictors? An Empirical Study on Small Tabular Datasets
  3. 2025Do Large Language Models (Really) Need Statistical Foundations?
  4. 2026Text Analytics Evaluation Framework: A Case Study on LLMs and Social Media
  5. 2023Task Contamination: Language Models May Not Be Few-Shot Anymore
  6. 2024Efficacy of Synthetic Data as a Benchmark
  7. 2025Large Language Models For Text Classification: Case Study And Comprehensive Review
  8. 2025Biases in Large Language Model-Elicited Text: A Case Study in Natural Language Inference