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

揭示大语言模型(LLM)失效的原因:从内部机制到对抗推理轨迹

Uncovering Why LLMs Fail: From Internal Mechanisms to Adversarial Reasoning Trajectories

Institute of Computing Technology, Chinese Academy of Sciences(中国科学院计算技术研究所);University of Chinese Academy of Sciences(中国科学院大学);State Key Laboratory of AI Safety, Institute of Computing Technology, Chinese Academy of Sciences(中国科学院计算技术研究所人工智能安全国家重点实验室);ShanghaiTech University(上海科技大学);Beihang University(北京航空航天大学)

Zirui Ding, Xinxin Fan, Hao Yuan, Shaoye Luo, Men Niu, Quanliang Jing, Yunfeng Lu

AI总结:

本研究提出白盒诊断框架CauTrace,从功能状态等维度分析LLM失效原因,在Qwen和LLaMA系列模型上验证其可表征普通与对抗推理失效,为LLM安全研究提供统一诊断工具。

摘要:

大语言模型(LLM)通常通过最终输出的正确性或安全性进行评估,但端点标签无法揭示失效在推理过程中如何发展。因此,本文探究普通推理失效与对抗诱导失效是否可通过相同的内部坐标表征。为此,本研究采用白盒诊断框架CauTrace,从功能状态、表征传播、时间状态协调与推理轨迹三个基本检查维度,揭示LLM失效的根本原因。首先,创造性定义七个功能状态,表征LLMs中的支持与约束处理;其次,表征变化传播衡量七个状态间的变化如何在后续Transformer块中持续存在;第三,时间状态协调与轨迹拓扑表征相对于支持何时发生承诺与验证,以及主导状态序列如何在整个推理过程中演化。最后,在干净推理失效与配对对抗扰动上评估CauTrace,在Qwen和LLaMA系列模型上,失效轨迹显示支持状态更新的注意力-MLP一致性更弱,且相对于承诺的验证活动更少,而确切的表征级特征与时间偏移因架构而异。保留的修复与引导测试显示与主张一致的一致操作信号,特定模型与设置下,对齐引导在过程测量中产生预测的方向变化。总体而言,CauTrace提供了统一的诊断框架,通过支持、承诺与验证的变化分析失效动态,将为LLM安全的深入研究提供启示。

英文摘要:

Large language models (LLMs) are usually evaluated by final-output correctness or safety, yet an endpoint label does not reveal how a failure develops throughout the reasoning process. We therefore ask whether ordinary reasoning failures and adversarially induced failures can be characterized using the same internal coordinates. Towards this end, we in this paper study a white-box diagnostic framework CauTrace to disclose the root-cause of why LLM fails from three fundamental inspections: Functional States, Propagation of Representation, Temporal-State Coordination and Reasoning Trajectory. First, seven functional states are creatively defined to represent the support and constraint processing in LLMs. Second, the propagation of representation change measures how the changes among the seven states persist across subsequent Transformer blocks. Third, temporal-state coordination and trajectory topology characterize when the commitment and verification occur relative to the support, and how the dominant state sequence evolves over the full inference process. Finally, we evaluate CauTrace on both clean reasoning failures and paired adversarial perturbations. Across Qwen and LLaMA-family models, the failed traces show weaker Attention-MLP agreement on support-state updates and less verification activity relative to commitment, while the exact representation-level signatures and timing shifts vary by architecture. Held-out repair and steering tests demonstrate consistent operational signals that were in line with our claims for certain models and specific settings, with aligned steering producing the predicted directional changes in process measures. Overall, CauTrace provides a unified diagnostic framework for analyzing failure dynamics through changes in support, commitment, and verification, which would shed light on the in-depth research on LLM security.

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

↑