通过Transformer上下文学习实现片上学习
On-Chip Learning via Transformer In-Context Learning
AI总结:
提出一种利用片上可塑性处理器计算自注意力的神经形态纯解码器Transformer模型,通过在Loihi 2上解决小样本分类问题,展示了无需反向传播的硬件友好型片上上下文学习能力。
摘要:
自回归的纯解码器Transformer已成为可扩展序列处理和生成模型的关键组件。然而,Transformer的自注意力机制要求在每个时间步(token)从主存中传输先前的token投影,从而严重限制了它们在传统处理器上的性能。自注意力可以被视为一个动态前馈层,其矩阵依赖于输入序列,类似于局部突触可塑性的结果。利用这一见解,我们提出了一种神经形态的纯解码器Transformer模型,该模型利用片上可塑性处理器来计算自注意力。有趣的是,Transformer的训练使它们能够在推理期间“学习”输入上下文。我们通过在Loihi 2处理器上解决一个小样本分类问题,展示了Transformer的这种上下文学习能力。借此我们强调了预训练模型的重要性,特别是它们找到简单、局部、无需反向传播的学习规则的能力,从而以硬件友好的方式实现片上学习与适应。
英文摘要:
Autoregressive decoder-only transformers have become key components for scalable sequence processing and generation models. However, the transformer's self-attention mechanism requires transferring prior token projections from the main memory at each time step (token), thus severely limiting their performance on conventional processors. Self-attention can be viewed as a dynamic feed-forward layer, whose matrix is input sequence-dependent similarly to the result of local synaptic plasticity. Using this insight, we present a neuromorphic decoder-only transformer model that utilizes an on-chip plasticity processor to compute self-attention. Interestingly, the training of transformers enables them to ``learn'' the input context during inference. We demonstrate this in-context learning ability of transformers on the Loihi 2 processor by solving a few-shot classification problem. With this we emphasize the importance of pretrained models especially their ability to find simple, local, backpropagation free, learning rules enabling on-chip learning and adaptation in a hardware friendly manner.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。