arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.21908cs.NEcs.AIcs.LG
收藏

通过赫布型与基于梯度的可塑性赋予Transformer稳健的上下文记忆与快速任务适应能力

Enabling Robust In-Context Memory and Rapid Task Adaptation in Transformers with Hebbian and Gradient-Based Plasticity

St Paul’s School(圣保罗学校)

Siddharth Chaudhary

AI总结:

本文在仅解码器Transformer中引入赫布型与基于梯度的快速权重可塑性模块,发现赫布规则在小样本泛化上更强,梯度更新擅长长时程信用分配,并揭示了可塑性有效的边界条件。

摘要:

大型语言模型展现出随规模涌现的上下文学习能力,但在推理过程中依赖静态权重。相比之下,生物系统通过突触可塑性持续适应。我们研究显式的、受生物启发的可塑性是否能为Transformer赋予更快的序列内适应能力。为此,我们在仅解码器Transformer中增加快速权重模块,其更新方式为(i)神经调制的赫布规则或(ii)Duan等人(2023)提出的基于梯度的可塑性机制。在复制、回归和小样本分类任务(CIFAR-FS、Omniglot)中,赫布可塑性始终取得更低的损失和更强的小样本泛化能力,而基于梯度的更新在长时程信用分配上表现最佳。当关联较短且线性可分时,静态权重已足够,这为可塑性何时有益定义了清晰的边界条件。对学习到的调制信号的分析表明,基于梯度的规则维持较大且持续的更新,而赫布可塑性在显著事件周围被锐利地门控。综合来看,这些结果表明显式可塑性通过实现快速、任务特定的适应来补充注意力机制,并阐明了不同可塑性机制在何种条件下最为有效。

英文摘要:

Large language models display in-context learning as an emergent effect of scale, but they rely on static weights during inference. In contrast, biological systems continually adapt via synaptic plasticity. We investigate whether explicit, biologically inspired plasticity can endow Transformers with faster in-sequence adaptation. To this end, we augment decoder-only Transformers with fast-weight modules updated either by (i) a neuromodulated Hebbian rule or (ii) the gradient-based plasticity mechanism of Duan et al. (2023). Across copying, regression, and few-shot classification tasks (CIFAR-FS, Omniglot), Hebbian plasticity consistently achieves lower loss and stronger few-shot generalization, while gradient-based updates perform best on long-horizon credit assignment. When associations are short and linearly separable, static weights suffice, defining a clear boundary condition for when plasticity helps. Analysis of learned modulatory signals reveals that gradient-based rules maintain large, persistent updates, whereas Hebbian plasticity is sharply gated around salient events. Together, these results show that explicit plasticity complements attention by enabling rapid, task-specific adaptation, and clarify when different plasticity mechanisms are most effective.

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

↑