arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2610.27711cs.AI
收藏

微调目标如何塑造大语言模型幻觉检测中的分层信息

How Fine-Tuning Objectives Shape Layer-Wise Information in LLM Hallucination Detection

PAIR Systems, Inc.(PAIR系统公司);INSAIT;Sofia University “St. Kliment Ohridski”(索非亚大学“圣·克利门特·奥赫里德斯基”)

Kaiyang Wan, Forrest Sheng Bao, Amin Ahmad, Yuxia Wang

AI总结:

该研究对比了分类器头微调(\textsc{cls})与序列到序列(\textsc{s2s})在大语言模型幻觉检测中的性能,揭示了分层信息机制,提出移除信息窗口上方层的方法,可在保持准确率的同时降低延迟,且具有模型迁移性。

摘要:

在匹配条件下,分类器头微调(\textsc{cls})范式在二元幻觉检测任务中始终优于“大语言模型作为评判者”的序列到序列(\textsc{s2s})范式。我们将该性能差距追溯至两种目标诱导的表示差异。静态分析显示,\textsc{cls}学习到了任务特定的判别方向,将隐藏状态推向清晰的两簇几何结构,具有更强的类别区分度和可线性解码的标签信息;相比之下,\textsc{s2s}依赖预训练的语言模型头进行决策,这降低了表示重组的压力,使得隐藏状态更接近预训练主干。我们的分析还揭示,\textsc{cls}信号在最终层之前就已饱和,之后上层形成统计上可互换且冗余度较高的表示平台。但仅端点冗余无法判断这些层在训练过程中是否可舍弃。进一步的训练动态分析显示:1)存在一个较低的预训练基底;2)存在一个狭窄的中上部“信息窗口(InfoWindow)”,任务信息在此处出现;3)存在一个同步较晚的上部平台,其镜像了该信号。该机制促使我们移除信息窗口上方的层。在Qwen3-4B和8B模型上,截断网络31%的层后,准确率在种子噪声范围内保持不变,延迟降低1.4倍。在未对目标模型进行任何分析前就固定相同深度比例,该方法可迁移至Llama-3.2-3B和Mistral-7B-v0.3模型,且其背后的层结构在这些模型及QNLI、SST-2数据集上均有重现。我们希望这一发现能为高效的任务特定大语言模型设计提供指导。

英文摘要:

Under matched conditions, classifier-head fine-tuning (\textsc{cls}) paradigm consistently outperforms the LLM-as-Judge sequence-to-sequence (\textsc{s2s}) on binary hallucination detection. We trace this gap to the representations induced by the two objectives. Static analysis shows that \textsc{cls} learns a task-specific discriminative direction, pushing hidden states into a clear two-cluster geometry with stronger class separation and linearly decodable label information. By contrast, \textsc{s2s} relies on the pretrained language-modeling head to make decisions. This minimizes the pressure to reorganize representations, leaving the hidden states much closer to the pretrained backbone. Our analysis also reveals that the \textsc{cls} signal saturates before the final layer, after which upper layers form a plateau of statistically interchangeable and largely redundant representations. However, endpoint redundancy alone does not show whether these layers are dispensable during training. Further training-dynamics analysis reveals 1) a lower pretrained substrate, 2) a narrow upper-middle \textbf{InfoWindow} where task information emerges, and 3) a later-synchronizing upper plateau that mirrors this signal. This mechanism motivates us to remove layers above the InfoWindow. Truncating 31\% of the network leaves accuracy unchanged within seed noise on Qwen3-4B and 8B and cuts latency by $1.4\times$. The same depth fraction, fixed before any analysis of the target models, transfers to Llama-3.2-3B and Mistral-7B-v0.3, and the layer structure behind it reappears there and on QNLI and SST-2. We hope this helps guide efficient task-specific LLM design.

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

↑