弥合上下文差距:面向表格上下文学习的激活对齐

·

研究论文 · 2026/10/07

表格基础模型通过将标注训练样本作为上下文进行上下文学习(ICL)来预测。与传统模型不同,这类模型每次前向传播都必须处理所有训练样本,导致每次预测成本高昂。限制训练样本数量可降低成本,但会显著降低性能。我们提出激活对齐(activation alignment),不丢弃上下文,而是利用完整上下文教会模型在仅看到子集时如何表现。具体做法是在合成无标签数据上训练一个轻量线性变换,将数据受限的“学生”(使用部分上下文)的中间激活映射到全上下文“教师”(使用全部数据)的中间激活。训练对齐器无需 GPU,在普通硬件上几秒到几分钟即可收敛。我们在 TabArena 基准的 38 个分类数据集上,使用领先的两个表格基础模型 TabPFN-3 和 TabFM 进行评估。在所有上下文预算下,对齐后的学生模型相比未对齐基线在两个模型上均取得广泛且统计显著的提升。在低数据场景下,对齐恢复了教师模型近一半的预测优势。该方法提供了一种实用、低开销的途径,在实现紧凑上下文推理速度的同时,缩小了与全上下文教师模型性能差距的显著部分。

该研究针对表格基础模型上下文学习推理成本高的问题,提出了一种无需 GPU、训练极快的激活对齐方法,在多个数据集和模型上验证了其能显著提升性能并缩小与全上下文教师的差距,具有较高的实用价值和效率优势。

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.

阅读原文

参与讨论