arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2605.05741cs.AI
收藏

HyperLens: 通过细粒度置信轨迹量化大语言模型中的认知努力

HyperLens: Quantifying Cognitive Effort in LLMs with Fine-grained Confidence Trajectory

IIIS, Tsinghua University(清华大学信息学院);Shanghai Qi Zhi Institute(上海启智研究院)

Chengda Lu, Xiaoyu Fan, Wei Xu

AI总结:

HyperLens通过分析大语言模型推理过程中的置信轨迹,量化认知努力,揭示复杂任务对更高认知努力的需求,并诊断监督微调对领域任务性能的影响。

摘要:

尽管大语言模型(LLMs)在多样任务上表现出色,但其推理动态仍因现有分析工具分辨率有限而难以理解。本文识别了transformer架构中的内在放大机制:更深层的层会放大层间置信度的微小变化,提供细粒度的置信轨迹。基于此洞察,我们引入HyperLens,一种高分辨率探针,用于追踪置信轨迹并量化推理中的认知努力。在LLMs和数据集上,HyperLens揭示了置信轨迹的一致分歧,将复杂任务与简单任务分开。我们将此模式抽象为一个定量的认知努力度量。我们的分析揭示了基本原理:复杂任务始终需要更高的认知努力。最后,我们提供了监督微调(SFT)常见副作用的机理诊断:它会降低认知努力并进而影响领域任务性能。

英文摘要:

While Large Language Models (LLMs) achieve strong performance across diverse tasks, their inference dynamics remain poorly understood because of the limited resolution of existing analysis tools. In this work, we identify an intrinsic magnification mechanism in transformer architectures: deeper layers inherently magnify the small changes of layer-wise confidence, providing a fine-grained confidence trajectory. Building on this insight, we introduce HyperLens, a high-resolution probe designed to trace confidence trajectories and quantify the cognitive effort during inference. Across LLMs and datasets, HyperLens reveals a consistent divergence in confidence trajectories that separates complex from simple tasks. We abstract this pattern into a quantitative cognitive effort metric. Our analysis reveals a fundamental principle: complex tasks consistently require higher cognitive effort. Finally, we provide a mechanistic diagnosis of a common side effect of standard Supervised Fine-Tuning (SFT): it can reduce cognitive effort and consequently degrade performance on in-domain tasks.

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

↑