arXiv cs.CL· Purva Pruthi, Andrew Yuan, Alexander D'Amour, David Jensen·· 10 小时前AI 评分34
评估 Transformer 的组合泛化能力:组合等价性与模块覆盖的作用
Evaluating Compositional Generalization in Transformers: The Role of Composition Equivalence and Module Coverage
AI 导读
系统评估发现,仅在最终输出上训练的 direct 模型在组合泛化基准上的表现主要来自利用组合等价性——不同模块序列归约为相同端到端函数。当基准消除这些等价性后,模型性能显著下降,无法泛化到已知模块产生新端到端函数的组合。模块覆盖偏移增大时性能单调下降,同时影响 direct 模型与逐步模型;以 Llama3-8B 在 LiveCodeBench 代码输出预测任务上的表现为例验证了组合等价性的作用。
正文 · 原文
Abstract:Compositional generalization is an important form of out-of-distribution generalization, defined as the ability to train on some combinations of modules (e.g., functions such as sort, filter) and then generalize to unseen combinations. Despite substantial empirical work evaluating compositional generalization in transformers, findings have been inconsistent because evaluations were often conducted on a limited set of train-test splits, defined in an ad hoc manner. Through a systematic evaluation, we identify two key aspects of the train-test distribution that strongly affect performance: composition equivalence and module coverage. We show that the apparent performance of direct models (trained only on final outputs) results primarily from exploiting composition equivalences, meaning different sequences of modules that reduce to identical end-to-end functions. When benchmarks eliminate these equivalences, performance drops significantly, showing their inability to generalize to compositions of known modules that produce novel end-to-end functions. We further demonstrate that performance degrades monotonically as module coverage shifts increase (when modules appear in different contexts between train and test), affecting both direct and step-by-step models (trained on intermediate and final outputs). These findings have concrete implications for benchmark design: benchmarks that include compositional equivalences can lead to significant overestimation of the generalization abilities of direct models, and benchmarks that include both module coverage violations and compositional equivalences can exacerbate shortcut learning. As a case study, we demonstrate the role of compositional equivalence on the generalization performance of the pre-trained model Llama3-8B on the code-output prediction task in the coding benchmark LiveCodeBench.
| Comments: | 40th Conference on Neural Information Processing Systems (NeurIPS 2026). Track on Evaluations and Datasets |
| Subjects: | Machine Learning (cs.LG); Computation and Language (cs.CL) |
| Cite as: | arXiv:2611.13498 [cs.LG] |
| (or arXiv:2611.13498v1 [cs.LG] for this version) | |
| https://doi.org/10.48550/arXiv.2611.13498 arXiv-issued DOI via DataCite (pending registration) |
Submission history
From: Purva Pruthi [view email]
[v1]
Tue, 10 Nov 2026 03:09:02 UTC (1,657 KB)
来源:arXiv cs.CL · arxiv.org