TransformerFAM:反馈注意力即工作记忆
TransformerFAM: Feedback attention is working memory
AI总结:
本文提出TransformerFAM架构,通过反馈回路让Transformer关注自身潜在表示以形成工作记忆,无需额外权重即可无缝集成预训练模型,并在1B、8B和24B模型规模的长上下文任务上显著提升性能。
摘要:
尽管Transformer已经彻底改变了深度学习,但其二次方的注意力复杂度阻碍了它们处理无限长输入的能力。我们提出反馈注意力记忆(Feedback Attention Memory,FAM),这是一种新颖的Transformer架构,利用反馈回路使网络能够关注其自身的潜在表示。这种设计促进了Transformer内部工作记忆的形成,使其能够处理无限长的序列。TransformerFAM不需要额外的权重,从而能够与预训练模型无缝集成。我们的实验表明,TransformerFAM在各种模型规模(1B、8B和24B)的长上下文任务上显著提升了Transformer的性能。这些结果展示了赋予大语言模型(LLMs)处理无限长度序列能力的潜力。
英文摘要:
While Transformers have revolutionized deep learning, their quadratic attention complexity hinders their ability to process infinitely long inputs. We propose Feedback Attention Memory (FAM), a novel Transformer architecture that leverages a feedback loop to enable the network to attend to its own latent representations. This design fosters the emergence of working memory within the Transformer, allowing it to process indefinitely long sequences. TransformerFAM requires no additional weights, enabling seamless integration with pre-trained models. Our experiments show that TransformerFAM significantly improves Transformer performance on long-context tasks across various model sizes (1B, 8B, and 24B). These results showcase the potential to empower Large Language Models (LLMs) to process sequences of unlimited length.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。