cs.IROct 21, 2026

Beyond the Vote: When Do LLMs Add Value to Retrieval-Based Tabular Classification?

Authors: Ziquan Wang, Yuxuan Nie, Jian Ma, Yingjie Li

Organizations: Hangzhou International Innovation Institute, Beihang University, Hangzhou, China · Peking University, Beijing, China

Abstract

Retrieval-based in-context learning (ICL) enables large language models (LLMs) to predict tabular labels from similar examples, but it remains unclear whether LLM inference improves on direct voting over those same examples. We address this question by comparing four general-purpose LLMs with distance-weighted nearest-neighbor voting (Distance-KNN) using identical retrieved neighbors across 19 tabular classification datasets. With the number of demonstrations fixed, enlarging the retrieval candidate pool improves accuracy for all predictors, yet Distance-KNN achieves the highest mean accuracy at every pool size. More detailed analyses reveal that LLM gains are concentrated where retrieved neighbors exhibit low label consensus and vary across models. These gains further depend on the average feature-space distance to the test query: under low label consensus, some LLMs outperform Distance-KNN in close and intermediate neighborhoods, but all fall behind on average in the most distant group. Complementary experiments on the number of demonstrations, prompt formulation, retrieval representation, and label-balanced demonstration selection largely preserve the overall findings. These results characterize when LLM inference adds predictive value beyond distance-weighted voting in retrieval-based tabular ICL.

Figures & tables

Appendix figures & tables12 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. EdgeLM: Edge Demonstrations for Language Models' Table Understanding

    Aug 5, 2026Soroush Omidvartehrani, Mohammadamin Habibollah, Mohammadreza Daviran +1In-Context Example SelectionIn-Context Learning

  2. Localized TabICLv2: Scaling Tabular In-Context Learning through k-NN

    Aug 17, 2026Beimnet Bekele GutaTabular ICLTabular Classification

  3. Do You Even Need More Data? Rethinking LLM Deployment for Label-Scarce Tabular Classification with TabLens

    May 23, 2026Daria Grushina, Kseniia Kuvshinova, Alina Kostromina +3Zero-Shot LearningLLM Evaluation