arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.09782cs.AIcs.CLcs.LGcs.LO
收藏

推理的几何学:表示空间中的流动逻辑

The Geometry of Reasoning: Flowing Logics in Representation Space

Duke University(杜克大学)

Yufa Zhou, Yixiao Wang, Xunjian Yin, Shuyan Zhou, Anru R. Zhang

AI总结:

研究通过几何框架分析LLM推理过程,揭示其在表示空间中的流动特性,并验证逻辑结构与语义的关系。

摘要:

我们研究大型语言模型(LLMs)如何通过其表示空间进行推理。我们提出了一种新的几何框架,将LLM的推理建模为流动——即嵌入轨迹的演变,其中逻辑流动。通过使用相同的自然演绎命题但不同的语义载体,我们解构了逻辑结构与语义之间的关系,从而测试LLM是否在表面形式之外内化了逻辑。这种视角将推理与位置、速度和曲率等几何量联系起来,使我们在表示和概念空间中能够进行形式分析。我们的理论确立了两点:(1)LLM的推理对应于表示空间中的光滑流动;(2)逻辑陈述作为这些流动速度的局部控制器。利用学习到的表示代理,我们设计了受控实验来可视化和量化推理流动,为我们的理论框架提供了实证验证。我们的发现表明,仅通过下一个标记预测训练LLM可以使其在表示空间中内化逻辑不变量为更高阶的几何结构,挑战了“随机鹦鹉”论点。在Qwen和LLaMA模型家族上的实验进一步表明,存在一种普遍的、可能普遍的表示定律,它在机器理解和人类语言规律中普遍存在,与具体的训练配方或模型架构 largely 无关。我们的工作为研究推理现象提供了概念基础和实用工具,提供了一个新的视角来解释和形式分析LLM的行为。

英文摘要:

We study how large language models (LLMs) ``think'' through their representation space. We propose a novel geometric framework that models an LLM's reasoning as flows -- embedding trajectories evolving where logic goes. We disentangle logical structure from semantics by employing the same natural deduction propositions with varied semantic carriers, allowing us to test whether LLMs internalize logic beyond surface form. This perspective connects reasoning with geometric quantities such as position, velocity, and curvature, enabling formal analysis in representation and concept spaces. Our theory establishes: (1) LLM reasoning corresponds to smooth flows in representation space, and (2) logical statements act as local controllers of these flows' velocities. Using learned representation proxies, we design controlled experiments to visualize and quantify reasoning flows, providing empirical validation of our theoretical framework. Our findings indicate that training solely via next-token prediction can lead LLMs to internalize logical invariants as higher-order geometry in representation space, challenging the ``stochastic parrot'' argument. Experiments across Qwen and LLaMA model families further suggest the presence of a general, possibly universal, representational law underlying machine understanding and human linguistic regularities, largely independent of specific training recipes or model architectures. Our work serves as both a conceptual foundation and practical tools for studying reasoning phenomena, offering a new lens for interpretability and formal analysis of LLMs' behavior.

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

↑