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

正确的 token,正确的时机:从逐 token 门控到轨迹感知的激活引导

Right Token, Right Time: From Per-Token Gating to Trajectory-Aware Activation Steering

The Vanguard Group, Inc.(先锋集团);University of Toronto(多伦多大学)

Nima Eshraghi, Lovedeep Gondara, Sagarika Suresh, Xiaotong Xu, Jithin Pradeep, Fanny Chevalier

AI总结:

该研究提出两种轨迹感知的激活引导门控机制 CFP 和 CLABS,将引导转化为逐 token 分配问题,在固定预算下实现大语言模型的行为控制,同时提升生成质量。

摘要:

通过稀疏自编码器(SAEs)实现的激活引导,能够在无需特定任务微调的情况下控制大语言模型的行为。然而,标准方法会在每个生成的 token 上应用引导信号,使表征偏离模型训练时的分布,进而降低生成质量。我们发现,在生成过程中何时应用干预是一个关键的控制维度。我们将引导问题转化为在可引导 token 的固定预算下的逐 token 分配问题,因此不同方法的差异仅在于它们选择哪些 token,分配成为唯一变量。在该框架内,我们引入了两种门控机制:第一种是对比特征投影(CFP),它是无记忆的,通过稀疏、可解释的特征投影选择与目标行为对齐度最低的 token;第二种是闭环自适应伯努利引导(CLABS),它是轨迹感知的,将分配视为闭环反馈控制,跟踪生成过程中累计的对齐度,并在轨迹落后的地方使用预算。在线性引导-响应模型上,我们推导了一个显式增益区域,可保证 CLABS 的闭环稳定性,且其积分项能减小稳态跟踪偏差。实验表明,在匹配的预算下,CFP 和 CLABS 在预算门控中实现了最大的行为偏移,其中 CLABS 在分配最为关键的紧预算下表现最强,同时能最好地保持生成流畅性。

英文摘要:

Activation steering via sparse autoencoders (SAEs) enables behavioral control of large language models without task-specific fine-tuning. Yet, standard methods apply the steering signal at every generated token, displacing representations from the distribution the model was trained on and eroding generation quality. We show that \emph{when} along a generation the intervention is applied is a decisive axis of control. We cast steering as a per-token allocation problem under a fixed budget of steerable tokens, so that methods differ only in which tokens they select, making allocation the sole variable. Within this framework we introduce two gates. The first, Contrastive Feature Projection (CFP), is memoryless and selects the tokens least aligned with the target behavior through a sparse, interpretable feature projection. The second, Closed-Loop Adaptive Bernoulli Steering (CLABS), is trajectory aware. It treats allocation as closed-loop feedback control, tracking the alignment a generation has accumulated so far and spending budget where the trajectory falls behind. On a linear steering-response model we derive an explicit gain region that guarantees closed-loop stability of CLABS and show that its integral term reduces the steady-state tracking offset. Empirically, CFP and CLABS achieve the largest behavioral shift among budgeted gates at matched budgets, with CLABS strongest under the tight budgets where allocation matters most, while best preserving fluency.

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

↑