arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2504.20752cs.CLcs.AIcs.LG
收藏

野外 grokking:面向 Transformer 真实世界多跳推理的数据增强

Grokking in the Wild: Data Augmentation for Real-World Multi-Hop Reasoning with Transformers

Technical University of Munich(慕尼黑工业大学)

Roman Abramov, Felix Steinbauer, Gjergji Kasneci

AI总结:

本文首次将 grokking 扩展到真实世界多跳推理,通过合成数据增强知识图谱以提高推断事实与原子事实的比率 $ϕ_r$,使 Transformer 在 2WikiMultiHopQA 上达到 95-100% 准确率,并揭示了泛化回路的形成机制。

摘要:

Transformer 在众多自然语言处理任务中取得了巨大成功,但在多步事实推理方面仍表现出明显差距,尤其是在真实世界知识稀疏的情况下。grokking 领域的最新进展表明,神经网络一旦检测到底层逻辑模式,就能从记忆转变为完美泛化——然而这些研究主要使用小型合成任务。在本文中,我们首次将 grokking 扩展到真实世界事实数据,并通过用精心设计的合成数据增强现有知识图谱来应对数据集稀疏性的挑战,从而将推断事实与原子事实的比率 $ϕ_r$ 提高到 grokking 所需的阈值以上。令人惊讶的是,我们发现即使是事实上不正确的合成数据也能强化涌现的推理回路,而不是降低准确率,因为它迫使模型依赖关系结构而非记忆。在多跳推理基准上评估时,我们的方法在 2WikiMultiHopQA 上实现了高达 95-100% 的准确率——大幅优于强基线,并达到或超过了当前最先进的结果。我们进一步深入分析了提高 $ϕ_r$ 如何驱动 Transformer 内部泛化回路的形成。我们的发现表明,基于 grokking 的数据增强可以解锁隐式的多跳推理能力,为大规模语言模型中更稳健、更可解释的事实推理打开大门。

英文摘要:

Transformers have achieved great success in numerous NLP tasks but continue to exhibit notable gaps in multi-step factual reasoning, especially when real-world knowledge is sparse. Recent advances in grokking have demonstrated that neural networks can transition from memorizing to perfectly generalizing once they detect underlying logical patterns - yet these studies have primarily used small, synthetic tasks. In this paper, for the first time, we extend grokking to real-world factual data and address the challenge of dataset sparsity by augmenting existing knowledge graphs with carefully designed synthetic data to raise the ratio $ϕ_r$ of inferred facts to atomic facts above the threshold required for grokking. Surprisingly, we find that even factually incorrect synthetic data can strengthen emergent reasoning circuits rather than degrade accuracy, as it forces the model to rely on relational structure rather than memorization. When evaluated on multi-hop reasoning benchmarks, our approach achieves up to 95-100% accuracy on 2WikiMultiHopQA - substantially improving over strong baselines and matching or exceeding current state-of-the-art results. We further provide an in-depth analysis of how increasing $ϕ_r$ drives the formation of generalizing circuits inside Transformers. Our findings suggest that grokking-based data augmentation can unlock implicit multi-hop reasoning capabilities, opening the door to more robust and interpretable factual reasoning in large-scale language models.

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

↑