Closing the Context Gap: Activation Alignment for Tabular In-Context Learning
Abstract
Tabular foundation models perform in-context learning (ICL) by conditioning predictions on labeled training examples provided as context. Unlike traditional models that separate training from inference, these models must process all training examples in every forward pass, making each prediction expensive. Restricting the number of training examples reduces this cost but substantially degrades performance. Instead of discarding context, we propose activation alignment, a method that leverages the full context to teach a model how to behave when seeing only a subset. This is achieved by training a lightweight linear transformation on synthetic unlabeled data to map the intermediate activations of a data-constrained "student" (using partial context) toward those of a full-context "teacher" (using all data). Training the aligner requires no GPU and converges in seconds to minutes on commodity hardware. We evaluate on 38 classification datasets from the TabArena benchmark using the leading two tabular foundation models, TabPFN-3 and TabFM. Across all context budgets, the aligned student yields broad, statistically significant improvements over the unaligned baseline for both models. In low-data regimes, alignment recovers nearly half of the teacher's predictive advantage. The method provides a practical, low-overhead approach to achieving the inference speed of compact contexts while closing a significant fraction of the performance gap to the full-context teacher.
Community
Tabular foundation models (TabPFN-3, TabFM) run in-context learning over the full training set on every prediction (or KV-cache their activations, which costs memory), so cost and latency grow with dataset size. We fit a lightweight linear aligner that steers the activations of a small-context student toward those of the same frozen model with the full context. It's trained only on unlabeled synthetic queries and costs one matrix multiply at inference.
Visit the interactive explainer here: https://yoel-zeldes.github.io/tabalign
Feedback is welcome!
This is an automated message from the Librarian Bot. I found the following papers similar to this paper.
The following papers were recommended by the Semantic Scholar API
- Distillation of Tabular Foundation Models into Efficient Predictors (2026)
- GEAR: Generative Expansion and Real Anchoring for Two-Stage Distillation of Tabular Foundation Models (2026)
- SOMTab: Set-Order Mamba for Efficient Tabular In-Context Learning (2026)
- Localized TabICLv2: Scaling Tabular In-Context Learning through k-NN (2026)
- Adapting Linear-Time Architectures for Tabular In-Context Learning (2026)
- EXAONE Tabular 1.0 : Technical Report (2026)
- TabFM: A Zero-Shot Foundation Model for Tabular Data (2026)
Please give a thumbs up to this comment if you found it helpful!
If you want recommendations for any Paper on Hugging Face checkout this Space
You can directly ask Librarian Bot for paper recommendations by tagging it in a comment: @librarian-bot recommend
Get this paper in your agent:
hf papers read 2610.06679 Don't have the latest CLI?
curl -LsSf https://hf.co/cli/install.sh | bash Models citing this paper 0
No model linking this paper
Datasets citing this paper 0
No dataset linking this paper
Spaces citing this paper 0
No Space linking this paper
Collections including this paper 0
No Collection including this paper