使用Perceiver AR的通用长上下文自回归建模
General-purpose, long-context autoregressive modeling with Perceiver AR
摘要:
现实世界的数据是高维的:一本书、一张图像或一场音乐表演,即使经过压缩,也可以轻松地包含数十万个元素。然而,最常用的自回归模型,Transformers,要扩展到捕获这种长范围结构所需的输入和层的数量,成本非常高。我们开发了Perceiver AR,这是一种自回归,模态不可知的架构,它使用交叉注意将远程输入映射到少量的潜伏期,同时还保持端到端的因果掩蔽。感知器AR可以直接处理超过10万个令牌,从而实现实际的长上下文密度估计,而无需手工构建稀疏模式或内存机制。当接受图像或音乐训练时,Perceiver AR会生成具有清晰长期连贯性和结构的输出。我们的架构还在长序列基准测试中获得了最先进的可能性,包括64 x 64 ImageNet图像和PG-19书籍。
英文摘要:
Real-world data is high-dimensional: a book, image, or musical performance can easily contain hundreds of thousands of elements even after compression. However, the most commonly used autoregressive models, Transformers, are prohibitively expensive to scale to the number of inputs and layers needed to capture this long-range structure. We develop Perceiver AR, an autoregressive, modality-agnostic architecture which uses cross-attention to map long-range inputs to a small number of latents while also maintaining end-to-end causal masking. Perceiver AR can directly attend to over a hundred thousand tokens, enabling practical long-context density estimation without the need for hand-crafted sparsity patterns or memory mechanisms. When trained on images or music, Perceiver AR generates outputs with clear long-term coherence and structure. Our architecture also obtains state-of-the-art likelihood on long-sequence benchmarks, including 64 x 64 ImageNet images and PG-19 books.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。