TabDivER: Enhancing Table Foundation Models with Diversity-Aware Retrieval

TabDivER optimizes context quality via diversity-aware retrieval, boosting cross-table generalization of table foundation models.
The article identifies context quality as the bottleneck in cross-table generalization of table foundation models (TFMs): retrieval-augmented models fall into a homogenization trap, while non-retrieval models introduce semantic noise. It proposes the plug-and-play TabDivER framework, which builds a geometry-preserving retrieval space with an efficient index and re-ranks candidates using a table-specific diversity-adaptive component to balance query similarity and context diversity. Experiments on four mainstream TFMs and three benchmarks (CC18, CTR23, Reg_num) show stable gains on classification and regression without modifying model structure, offering a general context optimization approach for tabular ICL.
Tabular data is ubiquitous across industries, but its inherent heterogeneity makes cross-table generalization a core bottleneck in the development of table foundation models (TFMs). In recent years, in-context learning (ICL) has been regarded as an effective path to cross-table reasoning, using a small number of context samples to adapt the model to new tasks. However, existing ICL-based TFMs have clear deficiencies in context construction: retrieval-augmented models rely excessively on highly homogeneous contexts, while non-retrieval models process all contexts indiscriminately. These two paradigms lead to information redundancy and semantic noise, respectively, constraining the inference pipeline by context quality.

Limitations of the Two ICL Paradigms
Retrieval-augmented models filter context samples via similarity retrieval, but they easily fall into a "homogenization trap"—retrieved samples are highly similar to the query yet lack distributional diversity, causing the model to overfit to local patterns. Non-retrieval models treat the entire training set as context; although they cover more information, semantic noise introduced by irrelevant samples interferes with inference. The common problem is that context quality, not quantity, is the key determinant of ICL performance.
In-Context Learning (ICL) refers to a model adapting to a new task without updating its parameters, solely through a small number of examples (i.e., "context samples") provided in the prompt. In the tabular domain, ICL typically concatenates several labeled table rows as examples before a query sample, letting the table foundation model make predictions accordingly. Unlike traditional fine-tuning, ICL performance depends heavily on the selection and ordering of examples, making "which samples to include in the context" a core design variable. Retrieval-augmented models and non-retrieval models are precisely two different context construction strategies: the former selects examples by similarity, while the latter uses the entire training set as an example pool. The difference between them directly determines the degree of context homogenization and noise level.
TabDivER: Plug-and-Play Diversity-Aware Retrieval
To address these issues, the research team proposes TabDivER, a plug-and-play diversity-aware retrieval framework. Its core idea is to explicitly introduce diversity constraints during retrieval, thereby balancing query similarity and context diversity to mitigate distributional bias in the context.
Geometry-Preserving Retrieval Space
TabDivER first constructs a geometry-preserving retrieval space and builds an efficient index to support fast candidate retrieval. This design ensures that distance relationships between samples are preserved in the retrieval space, laying the foundation for subsequent diversity re-ranking.
A geometry-preserving retrieval space means mapping table samples into a vector space while preserving as much as possible the original distance or similarity relationships between samples. A common approach is to learn an embedding function such that tables that are close in the original feature space remain close in the embedding space, and vice versa. The goal is to ground subsequent similarity retrieval and diversity re-ranking on a reliable metric—if the embedding distorts the true relationships between samples, the retrieved candidates may be neither similar nor diverse. Geometry preservation is typically achieved through contrastive learning or distance constraints, and provides the basis for building approximate nearest neighbor indexes (e.g., vector indexes), enabling fast candidate recall in large-scale table repositories.
Table-Specific Diversity-Adaptive Re-ranking
After obtaining candidate samples, TabDivER uses a table-specific diversity-adaptive component to re-rank the candidates. This component simultaneously considers query similarity and context diversity, preventing retrieval results from being overly concentrated. In this way, the context contains both samples relevant to the query and broader distribution coverage, improving ICL generalization.
Diversity-adaptive re-ranking means re-ordering the candidate list after retrieval, so that the samples finally entering the context remain relevant to the query while covering a broader distribution. Common methods include Maximal Marginal Relevance (MMR) or Determinantal Point Processes (DPP), which trade off between a "relevance score" and "dissimilarity from already selected samples." The term "table-specific" means the diversity metric must adapt to the heterogeneous column types, missing patterns, and mixed numerical/categorical features of tabular data, rather than directly applying cosine distance in a text vector space. "Adaptive" means the diversity strength can be dynamically adjusted according to the query or candidate distribution, avoiding over-dispersing the context when local exact matching is needed.
Experimental Validation: Stable Gains Across Models and Benchmarks
The study conducted extensive experiments on four mainstream TFMs, covering three benchmarks: CC18 (72 tasks), CTR23 (30 tasks), and Reg_num (16 tasks). Results show that TabDivER consistently improves TFM performance on both classification and regression tasks. This effect holds across different models and benchmarks, demonstrating the framework's generality and robustness.
Significance for Table Foundation Models
The value of TabDivER lies in providing a model-agnostic context optimization solution. Without modifying the TFM's own structure or training process, performance gains can be obtained solely by improving the retrieval strategy. This is particularly important for practical applications—users can directly integrate TabDivER into existing models to improve cross-table reasoning at low cost.
From a broader perspective, this work reveals a key insight for ICL in the tabular domain: context diversity is an effective lever for mitigating distributional bias and improving generalization. In the future, how to combine diversity constraints with other context optimization techniques, and how to adapt to larger-scale table repositories, are directions worth exploring.
One-line Summary
TabDivER optimizes context quality through diversity-aware retrieval, improving the cross-table generalization of table foundation models.
Paragraph Summary
The article points out that the bottleneck in cross-table generalization of table foundation models (TFMs) lies in context quality: retrieval-augmented models easily fall into the homogenization trap, while non-retrieval models introduce semantic noise. To address this, the plug-and-play TabDivER framework is proposed: it first constructs a geometry-preserving retrieval space with an efficient index, then uses a table-specific diversity-adaptive component to re-rank candidate samples, balancing query similarity and context diversity. Experiments on four mainstream TFMs and three benchmarks—CC18, CTR23, and Reg_num—show that the method yields stable gains on both classification and regression tasks without modifying model structure, providing a general context optimization solution for tabular ICL.
Related articles

Small-Model Multi-Task Post-Training: SFT Cold Start and RL Fine-Tuning for Recruiting Match
A small-model multi-task post-training practice based on Qwen3-4B: SFT cold start and GSPO reinforcement learning complete resume screening and ad-invitation ranking without CoT reasoning, significantly improving exact-match rates on structured tasks, with online rules for opening LLM reranking by pCVR range and job family.

Pessimistic Process Supervision: A New Method for Error Tracing in Medical Reasoning
Early errors in medical reasoning propagate to later steps. This article introduces a pessimistic process reward model (PRM) that distinguishes original from inherited errors and predicts error sources, enabling correction at the root to improve answer accuracy.

Optio-Audio-Jev: A Unified Audio Decision Interface That Breaks the Option Limit
Optio-Audio-Jev proposes a unified audio decision interface that replaces fixed output heads with [OPT] token matching, breaking the option limit. Trained on only 13 options, it still maintains 86-90% accuracy on 50-option ESC-50 questions, far exceeding the Jev head's 22-24%, with code, models, and server open-sourced.