Scalable In-Context Learning on Tabular Data via Retrieval-Augmented Large Language Models
Xumeng Wen, Shun Zheng, Zhen Xu, Yiming Sun, Jiang Bian
TL;DR
This work tackles scalable TabICL by introducing retrieval-augmented TabICL (TabRAG) that decouples context retrieval from generation. A universal, non-parametric TabRAG selects relevant in-context tabular instances, while a post-trained Phi-3 LLM (Phi3-GTL) performs predictions with extended context; alignment between TabRAG and the LLM is achieved via retrieval-guided training. Across 69 held-out datasets, TabRAG improves LLM-based TabICL and reveals distinct decision boundaries and ensemble diversity, though it generally lags the best tuned numeric models. The results underscore the promise of using language as a universal interface for scalable tabular learning and highlight retrieval engineering as a key direction for future gains. The approach demonstrates that leveraging large-scale retrieval and longer context length can unlock new capabilities for tabular data tasks within an LLM framework, with potential impact across domains and interfaces.
Abstract
Recent studies have shown that large language models (LLMs), when customized with post-training on tabular data, can acquire general tabular in-context learning (TabICL) capabilities. These models are able to transfer effectively across diverse data schemas and different task domains. However, existing LLM-based TabICL approaches are constrained to few-shot scenarios due to the sequence length limitations of LLMs, as tabular instances represented in plain text consume substantial tokens. To address this limitation and enable scalable TabICL for any data size, we propose retrieval-augmented LLMs tailored to tabular data. Our approach incorporates a customized retrieval module, combined with retrieval-guided instruction-tuning for LLMs. This enables LLMs to effectively leverage larger datasets, achieving significantly improved performance across 69 widely recognized datasets and demonstrating promising scaling behavior. Extensive comparisons with state-of-the-art tabular models reveal that, while LLM-based TabICL still lags behind well-tuned numeric models in overall performance, it uncovers powerful algorithms under limited contexts, enhances ensemble diversity, and excels on specific datasets. These unique properties underscore the potential of language as a universal and accessible interface for scalable tabular data learning.
