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

大语言模型从哪一层开始计算指令?

Where does an LLM begin computing an instruction?

Indian Institute of Technology, Hyderabad(印度海得拉巴印度理工学院)

Aditya Pola, Vineeth N. Balasubramanian

AI总结:

针对大语言模型指令遵循的起始计算层位置问题,本文构建三类简单数据集及两跳组合任务,基于激活修补测量逐层翻转率,在Llama系列模型中发现统一的指令执行起始拐点,提供了可复现的定位对比方法。

摘要:

遵循指令包含读取内容、读取指令、执行指令、生成答案等不同子过程。本研究探究在Transformer层栈中,遵循指令的起始位置,即从读取转向执行的分界点。我们构建了三个简单数据集(Key-Value、Quote Attribution、Letter Selection)以及这些任务的两跳组合形式。通过在最小差异提示对上使用激活修补技术,我们测量逐层翻转率,该指标可反映替换选定残差激活何时会改变预测答案。在Llama家族的所有模型中,我们观测到一个拐点,将其命名为起始点:在该点之前能改变预测结果的干预操作,在该点之后大多失效。多跳组合任务也呈现出相似的起始点位置。这些结果提供了一种简单可复现的方法,可定位遵循指令的起始位置,并跨任务、跨模型规模对比该位置。

英文摘要:

Following an instruction involves distinct sub-processes, such as reading content, reading the instruction, executing it, and producing an answer. We ask where, along the layer stack, instruction following begins, the point where reading gives way to doing. We introduce three simple datasets (Key-Value, Quote Attribution, Letter Selection) and two hop compositions of these tasks. Using activation patching on minimal-contrast prompt pairs, we measure a layer-wise flip rate that indicates when substituting selected residual activations changes the predicted answer. Across models in the Llama family, we observe an inflection point, which we term onset, where interventions that change predictions before this point become largely ineffective afterward. Multi-hop compositions show a similar onset location. These results provide a simple, replicable way to locate where instruction following begins and to compare this location across tasks and model sizes.

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

↑