arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2501.08537cs.CLcs.LG
收藏

复杂度控制促进Transformer中基于推理的组合泛化

Complexity Control Facilitates Reasoning-Based Compositional Generalization in Transformers

School of Artificial Intelligence, Shanghai Jiao Tong University(上海交通大学人工智能学院);Institute for Advanced Algorithms Research, Shanghai Seres Information Technology Co., Ltd(上海赛尔斯信息技术有限公司高级算法研究院)

Zhongwang Zhang, Pengxiao Lin, Zhiwei Wang, Yaoyu Zhang, Zhi-Qin John Xu

AI总结:

该研究探究Transformer组合任务行为的内部机制,发现复杂度控制策略影响其学习推理规则还是依赖记忆映射,基于推理的方案有更低复杂度偏差,且结论在多类真实任务中得到验证。

摘要:

Transformer已在各类任务中展现出令人瞩目的能力,但其在组合问题上的表现仍存争议。本研究探究了Transformer在组合任务中行为的内部机制。我们发现,复杂度控制策略会显著影响模型是学习可实现分布外泛化的基元级规则(基于推理的解决方案),还是仅依赖记忆的映射(基于记忆的解决方案)。通过对模型的信息回路施加掩码策略,并采用多种复杂度指标,我们揭示了与不同解决方案类型相关的独特内部工作机制。进一步分析表明,基于推理的解决方案表现出更低的复杂度偏差,这与已被充分研究的神经元凝聚现象相一致。研究假设,这种更低的复杂度偏差是使这类解决方案能够学习推理规则的关键因素。我们在多个真实数据集(包括图像生成和自然语言处理任务)上验证了这些结论,证实了研究发现的广泛适用性。

英文摘要:

Transformers have demonstrated impressive capabilities across various tasks, yet their performance on compositional problems remains a subject of debate. In this study, we investigate the internal mechanisms underlying Transformers' behavior in compositional tasks. We find that complexity control strategies significantly influence whether the model learns primitive-level rules that generalize out-of-distribution (reasoning-based solutions) or relies solely on memorized mappings (memory-based solutions). By applying masking strategies to the model's information circuits and employing multiple complexity metrics, we reveal distinct internal working mechanisms associated with different solution types. Further analysis reveals that reasoning-based solutions exhibit a lower complexity bias, which aligns with the well-studied neuron condensation phenomenon. This lower complexity bias is hypothesized to be the key factor enabling these solutions to learn reasoning rules. We validate these conclusions across multiple real-world datasets, including image generation and natural language processing tasks, confirming the broad applicability of our findings.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑