arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2501.15857cs.AIcs.CLcs.LG
收藏

Transformers能否通过连接训练数据中的分离知识进行推理?

Are Transformers Able to Reason by Connecting Separated Knowledge in Training Data?

Northwestern University(西北大学)

Yutong Yin, Zhaoran Wang

AI总结:

本文引入FTCT任务验证Transformers连接分离知识进行组合推理的能力,发现少样本思维链提示能促使其推断完整因果图轨迹,且该能力与模型复杂度和训练-测试数据相似度高度相关。

摘要:

人类通过整合来自不同来源的知识,展现出卓越的组合推理能力。例如,如果某人从一个来源学到(B = f(A)),从另一个来源学到(C = g(B)),即使没有同时遇到(ABC),他们也能推断出(C=g(B)=g(f(A))),这展示了人类智能的泛化能力。本文引入了一个合成学习任务“FTCT”(训练时碎片化,测试时链式化),以验证Transformers在复制这一技能方面的潜力并解释其内在机制。在训练阶段,数据由来自整体因果图的分离知识片段组成。在测试期间,Transformers必须通过整合这些片段来推断完整的因果图轨迹。我们的研究结果表明,少样本思维链提示通过揭示片段的正确组合,使Transformers能够在FTCT上执行组合推理,即使这些组合在训练数据中不存在。此外,组合推理能力的出现与模型复杂度和训练-测试数据相似度高度相关。我们从理论和经验上提出,Transformers从训练中学习了一个底层可泛化程序,从而在测试期间实现有效的组合推理。

英文摘要:

Humans exhibit remarkable compositional reasoning by integrating knowledge from various sources. For example, if someone learns ( B = f(A) ) from one source and ( C = g(B) ) from another, they can deduce ( C=g(B)=g(f(A)) ) even without encountering ( ABC ) together, showcasing the generalization ability of human intelligence. In this paper, we introduce a synthetic learning task, "FTCT" (Fragmented at Training, Chained at Testing), to validate the potential of Transformers in replicating this skill and interpret its inner mechanism. In the training phase, data consist of separated knowledge fragments from an overall causal graph. During testing, Transformers must infer complete causal graph traces by integrating these fragments. Our findings demonstrate that few-shot Chain-of-Thought prompting enables Transformers to perform compositional reasoning on FTCT by revealing correct combinations of fragments, even if such combinations were absent in the training data. Furthermore, the emergence of compositional reasoning ability is strongly correlated with the model complexity and training-testing data similarity. We propose, both theoretically and empirically, that Transformers learn an underlying generalizable program from training, enabling effective compositional reasoning during testing.

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

↑