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

探究大语言模型的难度感知机制

Probing the Difficulty Perception Mechanism of Large Language Models

Institute of Digital Twin, EIT(数字孪生研究所,EIT);Wuhan University of Science and Technology(武汉科技大学);Zhejiang University(浙江大学);Hong Kong Polytechnic University(香港理工大学);Shenzhen Institutes of Advanced Technology, CAS(深圳先进技术研究院,中国科学院)

Sunbowen Lee, Qingyu Yin, Chak Tou Leong, Jialiang Zhang, Yicheng Gong, Shiwen Ni, Min Yang, Xiaoyu Shen

AI总结:

研究大语言模型内部评估问题难度的能力,通过线性探测和定位特定注意力头实现难度感知建模,经消融实验验证,为用LLMs作自动难度注释器提供支持,揭示token级差异,表明难度感知有结构组织,提供新方向。

摘要:

大语言模型(LLMs)越来越多地应用于复杂推理任务,但对其内部评估问题难度的能力知之甚少,而这是自适应推理和高效资源分配的关键能力。本文研究LLMs是否在其内部表示中隐式编码问题难度。通过对LLMs最终token表示进行线性探测,证明数学问题难度可线性建模。进一步定位了最终Transformer层的特定注意力头,其对简单和困难问题有相反激活模式以实现难度感知,消融实验验证了定位准确性。实验为将LLMs用作自动难度注释器提供支持,还揭示了token级熵和难度感知的显著差异。研究表明LLMs中的难度感知不仅存在且有结构组织,为未来研究提供了新理论见解和实践方向。

英文摘要:

Large language models (LLMs) are increasingly deployed on complex reasoning tasks, yet little is known about their ability to internally evaluate problem difficulty, which is an essential capability for adaptive reasoning and efficient resource allocation. In this work, we investigate whether LLMs implicitly encode problem difficulty in their internal representations. Using a linear probe on the final-token representations of LLMs, we demonstrate that the difficulty level of math problems can be linearly modeled. We further locate the specific attention heads of the final Transformer layer: these attention heads have opposite activation patterns for simple and difficult problems, thus achieving perception of difficulty. Our ablation experiments prove the accuracy of the location. Crucially, our experiments provide practical support for using LLMs as automatic difficulty annotators, potentially substantially reducing reliance on costly human labeling in benchmark construction and curriculum learning. We also uncover that there is a significant difference in entropy and difficulty perception at the token level. Our study reveals that difficulty perception in LLMs is not only present but also structurally organized, offering new theoretical insights and practical directions for future research. Our code is available at https://github.com/Aegis1863/Difficulty-Perception-of-LLMs.

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

↑