跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

计算机科学 > 计算机视觉与模式识别

arXiv:2107.02239 (cs)
[提交于 2021年10月4日]

标题:Vision Xformers: Efficient Attention for Image Classification

作者:Pranav Jeevan, Amit Sethi
查看论文《Vision Xformers: Efficient Attention for Image Classification》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:Although transformers have become the neural architectures of choice for natural language processing, they require orders of magnitude more training data, GPU memory, and computations in order to compete with convolutional neural networks for computer vision. The attention mechanism of transformers scales quadratically with the length of the input sequence, and unrolled images have long sequence lengths. Plus, transformers lack an inductive bias that is appropriate for images. We tested three modifications to vision transformer (ViT) architectures that address these shortcomings. Firstly, we alleviate the quadratic bottleneck by using linear attention mechanisms, called X-formers (such that, X in {Performer, Linformer, Nystr\"omformer}), thereby creating Vision X-formers (ViXs). This resulted in up to a seven times reduction in the GPU memory requirement. We also compared their performance with FNet and multi-layer perceptron mixers, which further reduced the GPU memory requirement. Secondly, we introduced an inductive bias for images by replacing the initial linear embedding layer by convolutional layers in ViX, which significantly increased classification accuracy without increasing the model size. Thirdly, we replaced the learnable 1D position embeddings in ViT with Rotary Position Embedding (RoPE), which increases the classification accuracy for the same model size. We believe that incorporating such changes can democratize transformers by making them accessible to those with limited data and computing resources.
评论: 11 pages, 4 figures
主题: 计算机视觉与模式识别 (cs.CV); 人工智能 (cs.AI); 计算复杂性 (cs.CC); 机器学习 (cs.LG)
引用方式: arXiv:2107.02239 [cs.CV]
  (或者 arXiv:2107.02239v1 [cs.CV] 对于此版本)
  https://doi.org/10.48550/arXiv.2107.02239

提交历史

来自:Pranav Jeevan P
[v1] 2021年10月4日 星期一 00:00:00 UTC
全文链接:

访问论文:

  • 查看原文 PDF
  • 中文 PDF (下批处理)
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

cs.CV
< 上一篇   |   下一篇 >
最新 | 近期 | 2021-10
切换浏览方式为:
cs
cs.AI
cs.CC
cs.LG

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站