arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1912.12180cs.CV
收藏

多维Transformers中的轴向注意

Axial Attention in Multidimensional Transformers

UC Berkeley(加州大学伯克利分校);Google Brain(谷歌大脑)

Jonathan Ho, Nal Kalchbrenner, Dirk Weissenborn, Tim Salimans

摘要:

我们提出了轴向Transformers,一个自我关注的自回归模型的图像和其他数据组织为高维张量。现有的自回归模型要么遭受过大的计算资源需求的高维数据,或作出妥协的分布表现力或易于实现,以减少资源需求。相比之下,我们的架构既保持了对数据联合分布的完整表达能力,又易于使用标准深度学习框架实现,同时需要合理的内存和计算,并在标准生成建模基准上实现最先进的结果。我们的模型基于轴向注意力,这是对自我注意力的简单概括,它自然地与编码和解码设置中张量的多个维度保持一致。值得注意的是,所提出的层结构允许在解码期间并行计算绝大多数上下文,而不引入任何独立性假设。这种半并行结构在使从甚至非常大的轴向Transformer进行解码的广泛适用性方面大有帮助。我们在ImageNet-32和ImageNet-64图像基准测试以及BAIR机器人推送视频基准测试上展示了轴向Transformer的最新结果。我们开源了Axial Transformers的实现。

英文摘要:

We propose Axial Transformers, a self-attention-based autoregressive model for images and other data organized as high dimensional tensors. Existing autoregressive models either suffer from excessively large computational resource requirements for high dimensional data, or make compromises in terms of distribution expressiveness or ease of implementation in order to decrease resource requirements. Our architecture, by contrast, maintains both full expressiveness over joint distributions over data and ease of implementation with standard deep learning frameworks, while requiring reasonable memory and computation and achieving state-of-the-art results on standard generative modeling benchmarks. Our models are based on axial attention, a simple generalization of self-attention that naturally aligns with the multiple dimensions of the tensors in both the encoding and the decoding settings. Notably the proposed structure of the layers allows for the vast majority of the context to be computed in parallel during decoding without introducing any independence assumptions. This semi-parallel structure goes a long way to making decoding from even a very large Axial Transformer broadly applicable. We demonstrate state-of-the-art results for the Axial Transformer on the ImageNet-32 and ImageNet-64 image benchmarks as well as on the BAIR Robotic Pushing video benchmark. We open source the implementation of Axial Transformers.

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

↑