arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.12138cs.CV
收藏

基于双向交叉注意力Transformer的更长序列感知

Perceiving Longer Sequences With Bi-Directional Cross-Attention Transformers

School of Computing and Information Systems(计算与信息系统学院);The University of Melbourne(墨尔本大学)

Markus Hiller, Krista A. Ehinger, Tom Drummond

AI总结:

本研究提出双向交叉注意力Transformer架构BiXT,突破类Perceiver架构瓶颈,可高效处理多模态长序列,在多项视觉与序列任务中以更低算力成本取得媲美甚至优于大模型的性能。

摘要:

我们提出了一种新型双向Transformer架构(BiXT),其计算成本和内存消耗随输入规模线性增长,却不会出现其他高效Transformer类方法常见的性能下降,也不受限于单一输入模态。BiXT受Perceiver架构启发,但用高效的双向交叉注意力模块替代了迭代注意力:在该模块中,输入token与潜变量同时相互关注,利用二者间自然形成的注意力对称性。这一方法突破了类Perceiver架构的关键瓶颈,使得语义(“是什么”)和位置(“在哪里”)的处理与解读能在多层网络中协同发展,可直接应用于密集预测任务和基于实例的任务。通过兼具效率与完整Transformer架构的通用性和性能,BiXT能以更高的特征分辨率处理点云、文本、图像等更长序列,并在点云部件分割、语义图像分割、图像分类、分层序列建模、文档检索等一系列任务上取得具有竞争力的性能。我们的实验表明,在分类、分割等视觉任务中,BiXT模型通过更高效地处理更长序列,性能优于规模更大的同类模型;在序列建模和文档检索任务上,其表现与完整Transformer变体相当,但浮点运算量(FLOPs)减少28%,速度最高提升8.4倍。

英文摘要:

We present a novel bi-directional Transformer architecture (BiXT) which scales linearly with input size in terms of computational cost and memory consumption, but does not suffer the drop in performance or limitation to only one input modality seen with other efficient Transformer-based approaches. BiXT is inspired by the Perceiver architectures but replaces iterative attention with an efficient bi-directional cross-attention module in which input tokens and latent variables attend to each other simultaneously, leveraging a naturally emerging attention-symmetry between the two. This approach unlocks a key bottleneck experienced by Perceiver-like architectures and enables the processing and interpretation of both semantics ('what') and location ('where') to develop alongside each other over multiple layers -- allowing its direct application to dense and instance-based tasks alike. By combining efficiency with the generality and performance of a full Transformer architecture, BiXT can process longer sequences like point clouds, text or images at higher feature resolutions and achieves competitive performance across a range of tasks like point cloud part segmentation, semantic image segmentation, image classification, hierarchical sequence modeling and document retrieval. Our experiments demonstrate that BiXT models outperform larger competitors by leveraging longer sequences more efficiently on vision tasks like classification and segmentation, and perform on par with full Transformer variants on sequence modeling and document retrieval -- but require $28\%$ fewer FLOPs and are up to $8.4\times$ faster.

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

↑