arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2512.03803cs.CL
收藏

增强序列到序列模型的指令遵循能力:T5的DoLA适应

Enhancing Instruction-Following Capabilities in Seq2Seq Models: DoLA Adaptations for T5

University College London(伦敦大学学院)

Huey Sun, Anabel Yong, Lorenzo Gilly, Felipe Jin

AI总结:

通过梯度激活引导方法改进T5模型的指令遵循能力,显著提升MemoTrap性能

摘要:

基于编码器-解码器模型的FLAN-T5通过微调来遵循指令,但当指令与训练期间固化的记忆延续冲突时,往往表现不佳。为了理解这种行为,我们将DoLa适应到FLAN-T5并检查解码器中表示如何演变。我们的发现表明,T5的中间层受到交叉注意力到编码器的驱动而快速变化。当通过语言建模头部投影时,每个深度层都表现出高度波动的token偏好,导致在对比解码中行为不可靠。受此启发,我们引入了一种基于梯度的激活引导方法,该方法在中层解码器中注入一个“指令一致性”方向,使得表示既有意义又仍然可塑。这种干预显著提高了MemoTrap性能(52%到99.7%),证明了在序列到序列架构中,机械引导可以在对比解码失败的地方取得成功。

英文摘要:

Encoder-decoder models such as FLAN-T5 are finetuned to follow instructions, but often fail when the instructions conflict with memorized continuations ingrained during training. To understand this behavior, we adapt DoLa to FLAN-T5 and examine how representations evolve in the decoder. Our findings show that T5's intermediate layers undergo rapid shifts driven by cross-attention to the encoder. When projected through the language modeling head, each depth presents highly volatile token preferences, leading to unreliable behavior with contrastive decoding. Motivated by this, we introduce a gradient-based activation-steering method that injects an "instruction-compliance" direction into mid-decoder layers, where the representation is both meaningful and still malleable. This intervention dramatically improves MemoTrap performance (52% to 99.7%), demonstrating that mechanistic steering can succeed where contrastive decoding fails in Seq2Seq architectures.

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

↑