arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2512.19135cs.AI
收藏

通过拓扑数据分析理解大语言模型中的推理链

Understanding Chain-of-Thought in Large Language Models via Topological Data Analysis

UESTC;CNU;KHU;CAS;Tongji Univ(同济大学)

Chenghao Li, Chaoning Zhang, Yi Lu, Shuxu Chen, Xudong Wang, Jiaquan Zhang, Zhicheng Wang, Zhengxun Jin, Kuien Liu, Sung-Ho Bae, Guoqing Wang, Yang Yang, Heng Tao Shen

AI总结:

本文通过拓扑数据分析评估大语言模型推理链的结构复杂性,揭示其与准确性的正相关关系,为优化推理过程提供新视角。

摘要:

随着大语言模型(LLMs)的发展,特别是长推理链技术的引入,LLMs在复杂问题解决中的推理能力得到了显著增强。尽管承认长推理链的威力,我们不禁会问:为什么不同的推理链在推理中表现不同?推理链中的哪些组成部分起关键作用?现有研究主要从功能角度评估推理链,对结构性机制关注较少。为填补这一空白,本文首次从结构性角度分析和评估推理链的质量。我们应用拓扑数据分析(TDA)中的持续同调,将推理步骤映射到语义空间,提取拓扑特征,并分析结构变化。这些变化揭示了语义连贯性、逻辑冗余以及识别逻辑断点和空白。通过计算同调群,我们在不同尺度上评估连接性和冗余性,利用条形码和持续图来量化稳定性和一致性。我们的结果表明,推理链的拓扑结构复杂性与准确性呈正相关。更复杂的链更早识别出正确答案,而成功的推理表现出更简单的拓扑结构,减少了冗余和循环,提高了效率和可解释性。本工作为推理链质量评估提供了新的视角,并为未来优化提供了指导。

英文摘要:

With the development of large language models (LLMs), particularly with the introduction of the long reasoning chain technique, the reasoning ability of LLMs in complex problem-solving has been significantly enhanced. While acknowledging the power of long reasoning chains, we cannot help but wonder: Why do different reasoning chains perform differently in reasoning? What components of the reasoning chains play a key role? Existing studies mainly focus on evaluating reasoning chains from a functional perspective, with little attention paid to their structural mechanisms. To address this gap, this work is the first to analyze and evaluate the quality of the reasoning chain from a structural perspective. We apply persistent homology from Topological Data Analysis (TDA) to map reasoning steps into semantic space, extract topological features, and analyze structural changes. These changes reveal semantic coherence, logical redundancy, and identify logical breaks and gaps. By calculating homology groups, we assess connectivity and redundancy at various scales, using barcode and persistence diagrams to quantify stability and consistency. Our results show that the topological structural complexity of reasoning chains correlates positively with accuracy. More complex chains identify correct answers sooner, while successful reasoning exhibits simpler topologies, reducing redundancy and cycles, enhancing efficiency and interpretability. This work provides a new perspective on reasoning chain quality assessment and offers guidance for future optimization.

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

↑