特征相似性:迈向对Transformer中类比推理的理论理解
Feature Resemblance: Towards a Theoretical Understanding of Analogical Reasoning in Transformers
AI总结:
本文通过最小化Transformer抽象模型,从理论上证明联合训练和特定课程顺序能使实体在表示空间中对齐,从而通过特征相似性实现属性转移,即类比推理。
摘要:
理解大型语言模型中的推理因评估混淆多种推理类型而变得复杂。我们分离出类比推理,即模型在共享已知属性的实体之间转移属性,并研究这种转移何时能从训练中涌现。为了使问题在分析上易于处理,我们研究了一个最小化的Transformer风格抽象,该抽象隔离了学习到的表示如何支持类比推理。在此设置中,我们证明了三个关键结果。首先,对相似性和属性前提的联合训练通过对齐表示实现类比推理。其次,顺序训练仅在相似性结构先于特定属性学习时成功,揭示了课程不对称性。第三,在我们的风格化设置中,两跳推理$(a \to b, b \to c \Rightarrow a \to c)$可被视为具有身份桥$(b=b)$的类比推理,这些身份桥在训练数据中明确出现。这些结果共同揭示了一个统一机制:具有共享属性的实体在表示空间中对齐,从而通过特征相似性实现属性转移。使用高达8B参数的架构进行的实验与理论定性一致,并表明表示几何在风格化模型之外的类比推理中扮演重要角色。
英文摘要:
Understanding reasoning in large language models is complicated by evaluations that conflate multiple reasoning types. We isolate analogical reasoning, where a model transfers an attribute between entities that share known properties, and study when such transfer can emerge from training. To make the problem analytically tractable, we study a minimal transformer-style abstraction that isolates how learned representations support analogical reasoning. Within this setting, we prove three key results. First, joint training on similarity and attribution premises enables analogical reasoning through aligned representations. Second, sequential training succeeds only when similarity structure is learned before specific attributes, revealing a curriculum asymmetry. Third, in our stylized setting, two-hop reasoning $(a \to b, b \to c \Rightarrow a \to c)$ can be viewed as analogical reasoning with identity bridges $(b=b)$, which appear explicitly in training data. Together, these results reveal a unified mechanism: entities with shared properties become aligned in representation space, enabling property transfer through feature resemblance. Experiments with architectures up to 8B parameters show qualitative agreement with the theory and suggest that representational geometry plays an important role in analogical reasoning beyond the stylized model.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。