arXiv:2604.22027cs.CLcs.AI2026-04中稿 · ICML

发现大模型行为差异源于共享的词汇任务头激活程度不同。

Shared Lexical Task Representations Explain Behavioral Variability In LLMs

论文配图:Shared Lexical Task Representations Explain Behavioral Variability In LLMs
图 1 · 摘自论文原文
  • 识别出跨提示风格共享的特定注意力头,直接描述任务
  • 行为差异由这些头部激活强度决定,失败常因竞争任务信号
  • 适合研究模型内部机制与提示工程优化的读者

大型语言模型(LLMs)常因提示敏感性而表现不稳定——同一任务在不同表述下结果差异显著。本文比较了指令型提示(自然语言描述任务)与示例型提示(少样本示范对)两种常见方式,发现尽管性能随提示变化大,但模型在不同提示间存在共同的底层机制。具体而言,我们识别出任务特定的注意力头(称为‘词汇任务头’),其输出直接描述任务内容,并在不同提示风格间共享,且触发后续答案生成。进一步发现,提示间的性能差异可归因于这些头部的激活程度,失败往往源于竞争性任务表征稀释目标信号。结果揭示了大模型内部表示如何解释看似随意的行为表现。

原文摘要 · Abstract (English)

One of the most common complaints about large language models (LLMs) is their prompt sensitivity -- that is, the fact that their ability to perform a task or provide a correct answer to a question can depend unpredictably on the way the question is posed. We investigate this variation by comparing two very different but commonly-used styles of prompting: instruction-based prompts, which describe the task in natural language, and example-based prompts, which provide in-context few-shot demonstration pairs to illustrate the task. We find that, despite large variation in performance as a function of the prompt, the model engages some common underlying mechanisms across different prompts of a task. Specifically, we identify task-specific attention heads whose outputs literally describe the task -- which we dub lexical task heads -- and show that these heads are shared across prompting styles and trigger subsequent answer production. We further find that behavioral variation between prompts can be explained by the degree to which these heads are activated, and that failures are at least sometimes due to competing task representations that dilute the signal of the target task. Our results together present an increasingly clear picture of how LLMs' internal representations can explain behavior that otherwise seems idiosyncratic to users and developers.

大模型机制提示敏感性注意力头分析

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。