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

当上下文粘附:研究上下文学习中的干扰

When Context Sticks: Studying Interference in In-Context Learning

Hanna Rød, Dagny Streit, Nils Valseth Selte, Justin Li

AI总结:

本文研究了上下文学习中上下文粘性现象,通过合成回归任务分析模型在不同训练课程下的任务切换表现,发现先前上下文对预测误差有持续干扰,且训练课程显著影响模型恢复能力。

摘要:

本文研究了上下文学习(ICL)中的上下文粘性现象,即提示中早期示例如何干扰Transformer适应后续任务的能力。通过在线性及二次函数上进行合成回归任务,分析了模型在连续、混合及随机课程下在推理过程中突变任务切换的表现。通过扫描结构化的误导线性示例后接恢复二次示例的组合,量化了先前上下文对预测误差的偏移以及模型重新对齐的速度。结果表明存在显著的持续干扰:更多先前线性示例可靠地降低二次预测,而额外二次示例减少误差但效果递减。进一步发现训练课程显著调节了恢复能力,顺序训练目标函数类别的模型恢复最快,令人惊讶的是随机训练产生最不稳健的行为。

英文摘要:

This paper investigates context stickiness in in-context learning (ICL), a phenomenon where earlier examples in a prompt interfere with a transformer's ability to adapt to later tasks. Using synthetic regression tasks over linear and quadratic functions, we examine how models trained under sequential, mixed, and random curricula handle abrupt task switches during inference. By sweeping over structured combinations of misleading linear examples followed by recovery quadratic examples, we quantify how prior context biases prediction error and how quickly models realign. Our results show strong evidence of persistent interference: more preceding linear examples reliably degrade quadratic predictions, while additional quadratic examples reduce error but with diminishing returns. We further find that training curricula significantly modulate resilience, with sequential training on the target function class yielding the fastest recovery, and surprisingly, random training producing the least robust behavior.

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

↑