Exact Conversion of In-Context Learning to Model Weights in Linearized-Attention Transformers
National University of Singapore(新加坡国立大学);Bioinformatics Institute, Agency for Science, Technology and Research (A*STAR)(新加坡科技研究局生物信息学研究所);Huawei Noah’s Ark Lab(华为诺亚方舟实验室);Nanyang Technological University(南洋理工大学);Singapore Eye Research Institute(新加坡眼科研究所);Singapore International Research Laboratory on Artificial Intelligence(新加坡国际人工智能研究实验室);Singapore Institute for Clinical Sciences(新加坡临床科学研究所)
Brian K Chen, Tianyang Hu, Hui Jin, Hwee Kuan Lee, Kenji Kawaguchi
In-Context Learning (ICL) has been a powerful emergent property of large language models that has attracted increasing attention in recent years. In contrast to regular gradient-based learning, ICL is highly interpretable and does not require parameter updates. In this paper, we show that, for linearized transformer networks, ICL can be made explicit and permanent through the inclusion of bias terms. We mathematically demonstrate the equivalence between a model with ICL demonstration prompts and the same model with the additional bias terms. Our algorithm (ICLCA) allows for exact conversion in an inexpensive manner. Existing methods are not exact and require expensive parameter updates. We demonstrate the efficacy of our approach through experiments that show the exact incorporation of ICL tokens into a linear transformer. We further suggest how our method can be adapted to achieve cheap approximate conversion of ICL tokens, even in regular transformer networks that are not linearized. Our experiments on GPT-2 show that, even though the conversion is only approximate, the model still gains valuable context from the included bias terms.
CycleTransGAN-EVC: A CycleGAN-based Emotional Voice Conversion Model with Transformer
Graduate School of Engineering Science, Osaka University(大阪大学工学研究科);Advanced Telecommunications Research Institute International(国际高级电信研究所);RIKEN(理化学研究所)
在本文中,我们首次将Attention Is All You Need中最先进的Transformer中的自注意力应用于与偏微分方程相关的数据驱动算子学习问题。努力放在一起解释的原理,并提高注意力机制的功效。利用Hilbert空间中的算子逼近理论,首次证明了在标度点积注意力中的softmax归一化是充分的,但不是必要的。在没有softmax的情况下,可以证明线性化的Transformer变体的近似能力与逐层的Petrov-Galerkin投影相当,并且估计与序列长度无关。提出了一种新的层归一化方案,该方案模仿Petrov-Galerkin投影,以允许缩放通过注意层传播,这有助于模型在具有未归一化数据的算子学习任务中实现显着的准确性。最后,我们提出了三个操作学习实验,包括粘性Burgers方程,界面达西流,和反界面系数识别问题。新提出的简单的基于注意力的算子学习器Galerkin Transformer,在训练成本和评估精度方面都比其softmax归一化的同类算法有了显着的改进。
Retrofitting Temporal Graph Neural Networks with Transformer
School of Computer Science, Wuhan University(武汉大学计算机学院);Centre for Perceptual and Interactive Intelligence (CPII)(感知与交互智能中心);ETH Zürich(苏黎世联邦理工学院);eBay(易贝);Peking University(北京大学)