ViR: Towards Efficient Vision Retention Backbones

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Hatamizadeh, Ali, Ranzinger, Michael, Lan, Shiyi, Alvarez, Jose M., Fidler, Sanja, Kautz, Jan
Formato: Preprint
Publicado: 2023
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866917575728824320
author Hatamizadeh, Ali
Ranzinger, Michael
Lan, Shiyi
Alvarez, Jose M.
Fidler, Sanja
Kautz, Jan
author_facet Hatamizadeh, Ali
Ranzinger, Michael
Lan, Shiyi
Alvarez, Jose M.
Fidler, Sanja
Kautz, Jan
contents Vision Transformers (ViTs) have attracted a lot of popularity in recent years, due to their exceptional capabilities in modeling long-range spatial dependencies and scalability for large scale training. Although the training parallelism of self-attention mechanism plays an important role in retaining great performance, its quadratic complexity baffles the application of ViTs in many scenarios which demand fast inference. This effect is even more pronounced in applications in which autoregressive modeling of input features is required. In Natural Language Processing (NLP), a new stream of efforts has proposed parallelizable models with recurrent formulation that allows for efficient inference in generative applications. Inspired by this trend, we propose a new class of computer vision models, dubbed Vision Retention Networks (ViR), with dual parallel and recurrent formulations, which strike an optimal balance between fast inference and parallel training with competitive performance. In particular, ViR scales favorably for image throughput and memory consumption in tasks that require higher-resolution images due to its flexible formulation in processing large sequence lengths. The ViR is the first attempt to realize dual parallel and recurrent equivalency in a general vision backbone for recognition tasks. We have validated the effectiveness of ViR through extensive experiments with different dataset sizes and various image resolutions and achieved competitive performance. Code: https://github.com/NVlabs/ViR
format Preprint
id arxiv_https___arxiv_org_abs_2310_19731
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle ViR: Towards Efficient Vision Retention Backbones
Hatamizadeh, Ali
Ranzinger, Michael
Lan, Shiyi
Alvarez, Jose M.
Fidler, Sanja
Kautz, Jan
Computer Vision and Pattern Recognition
Artificial Intelligence
Machine Learning
Vision Transformers (ViTs) have attracted a lot of popularity in recent years, due to their exceptional capabilities in modeling long-range spatial dependencies and scalability for large scale training. Although the training parallelism of self-attention mechanism plays an important role in retaining great performance, its quadratic complexity baffles the application of ViTs in many scenarios which demand fast inference. This effect is even more pronounced in applications in which autoregressive modeling of input features is required. In Natural Language Processing (NLP), a new stream of efforts has proposed parallelizable models with recurrent formulation that allows for efficient inference in generative applications. Inspired by this trend, we propose a new class of computer vision models, dubbed Vision Retention Networks (ViR), with dual parallel and recurrent formulations, which strike an optimal balance between fast inference and parallel training with competitive performance. In particular, ViR scales favorably for image throughput and memory consumption in tasks that require higher-resolution images due to its flexible formulation in processing large sequence lengths. The ViR is the first attempt to realize dual parallel and recurrent equivalency in a general vision backbone for recognition tasks. We have validated the effectiveness of ViR through extensive experiments with different dataset sizes and various image resolutions and achieved competitive performance. Code: https://github.com/NVlabs/ViR
title ViR: Towards Efficient Vision Retention Backbones
topic Computer Vision and Pattern Recognition
Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2310.19731