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

CoT Vectors:迁移与探究大语言模型的推理机制

CoT Vectors: Transferring and Probing the Reasoning Mechanisms of LLMs

School of Computer Science & Engineering, Key Laboratory of New Generation Artificial Intelligence Technology and Its Interdisciplinary Applications (Southeast University), Ministry of Education, China(计算机科学与工程学院,新一代人工智能技术及其交叉应用关键实验室(东南大学),教育部,中国);Data Science & AI Department at Faculty of IT, Monash University, Australia(信息学院数据科学与人工智能部门,墨尔本大学,澳大利亚)

Li Li, Ziyi Wang, Yongliang Wu, Jianfei Cai, Xu Yang

AI总结:

针对大语言模型思维链推理现有实现成本高的问题,提出编码通用推理知识的CoT Vectors,优化后性能媲美参数高效微调且参数更少,还可用于探究LLM推理机制。

摘要:

思维链(Chain-of-Thought, CoT)提示已成为提升大语言模型(Large Language Models, LLMs)推理能力的有效方法。然而,现有实现方式(如上下文学习和微调)成本高且效率低。为以更低成本优化CoT推理,受任务向量范式启发,我们提出CoT Vectors——一种编码通用任务多步推理知识的紧凑表示。通过提取式CoT Vectors的实验,我们观察到显著的层间不稳定性,表现为U型性能曲线,反映了LLMs中系统性的三阶段推理过程。为解决这一局限,我们提出可学习CoT Vectors,在师生框架下优化以提供更稳定鲁棒的引导。在多个基准和模型上的广泛评估表明,CoT Vectors不仅优于现有基线,性能还可与参数高效微调方法媲美,且所需可训练参数更少。此外,将CoT Vectors作为探针,我们揭示了其有效性因潜在空间结构、信息密度、获取机制和预训练差异而变化的规律,为LLMs多步推理的功能组织提供了新见解。源代码将公开发布。

英文摘要:

Chain-of-Thought (CoT) prompting has emerged as a powerful approach to enhancing the reasoning capabilities of Large Language Models (LLMs). However, existing implementations, such as in-context learning and fine-tuning, remain costly and inefficient. To improve CoT reasoning at a lower cost, and inspired by the task vector paradigm, we introduce CoT Vectors, compact representations that encode task-general, multi-step reasoning knowledge. Through experiments with Extracted CoT Vectors, we observe pronounced layer-wise instability, manifesting as a U-shaped performance curve that reflects a systematic three-stage reasoning process in LLMs. To address this limitation, we propose Learnable CoT Vectors, optimized under a teacher-student framework to provide more stable and robust guidance. Extensive evaluations across diverse benchmarks and models demonstrate that CoT Vectors not only outperform existing baselines but also achieve performance comparable to parameter-efficient fine-tuning methods, while requiring fewer trainable parameters. Moreover, by treating CoT Vectors as a probe, we uncover how their effectiveness varies due to latent space structure, information density, acquisition mechanisms, and pre-training differences, offering new insights into the functional organization of multi-step reasoning in LLMs. The source code will be released.

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

↑