差异学习动力学决定上下文学习中从记忆到泛化的转变
Differential learning kinetics govern the transition from memorization to generalization during in-context learning
AI总结:
本研究通过小型Transformer的理论与实验,发现记忆与泛化子电路相对独立,其差异学习动力学而非容量约束决定上下文学习中记忆到泛化的转变,还揭示记忆标度律并定量解释多种ICL相关现象。
摘要:
Transformer 展现出上下文学习(ICL)能力:无需额外权重更新即可利用上下文中呈现的新信息的能力。近期研究表明,当模型在足够多样化的任务集上训练时,ICL 会出现,且随着任务多样性增加,从记忆到泛化的转变是急剧的。一种解释是,网络有限的记忆容量会促进泛化。本文中,我们使用应用于合成 ICL 任务的小型 Transformer 研究了这一转变的机制基础。通过理论与实验,我们发现负责记忆和泛化的子电路可被视为大体独立的。这些子电路的相对学习速率解释了从记忆到泛化的转变,而非容量约束。我们揭示了一条记忆标度律,它决定了网络实现泛化的任务多样性阈值。该理论定量解释了多种其他 ICL 相关现象,包括 ICL 习得时间的长尾分布、接近任务多样性阈值时解的双峰行为、上下文与数据分布统计量对 ICL 的影响,以及 ICL 的瞬态特性。
英文摘要:
Transformers exhibit in-context learning (ICL): the ability to use novel information presented in the context without additional weight updates. Recent work shows that ICL emerges when models are trained on a sufficiently diverse set of tasks and the transition from memorization to generalization is sharp with increasing task diversity. One interpretation is that a network's limited capacity to memorize favors generalization. Here, we examine the mechanistic underpinnings of this transition using a small transformer applied to a synthetic ICL task. Using theory and experiment, we show that the sub-circuits that memorize and generalize can be viewed as largely independent. The relative rates at which these sub-circuits learn explains the transition from memorization to generalization, rather than capacity constraints. We uncover a memorization scaling law, which determines the task diversity threshold at which the network generalizes. The theory quantitatively explains a variety of other ICL-related phenomena, including the long-tailed distribution of when ICL is acquired, the bimodal behavior of solutions close to the task diversity threshold, the influence of contextual and data distributional statistics on ICL, and the transient nature of ICL.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。