paper-with-me

홈 › Papers

LookupViT: Compressing visual information to a limited number of tokens

2024-07-17 · Rajat Koner, Gagan Jain, Prateek Jain, Volker Tresp, Sujoy Paul

Vision Transformers (ViT) have emerged as the de-facto choice for numerous industry grade vision solutions. But their inference cost can be prohibitive for many settings, as they compute self-attention in each layer which suffers from quadratic computational complexity in the number of tokens. On the other hand, spatial information in images and spatio-temporal information in videos is usually sparse and redundant. In this work, we introduce LookupViT, that aims to exploit this information sparsity to reduce ViT inference cost. LookupViT provides a novel general purpose vision transformer block that operates by compressing information from higher resolution tokens to a fixed number of tokens. These few compressed tokens undergo meticulous processing, while the higher-resolution tokens are passed through computationally cheaper layers. Information sharing between these two token sets is enabled through a bidirectional cross-attention mechanism. The approach offers multiple advantages - (a) easy to implement on standard ML accelerators (GPUs/TPUs) via standard high-level operators, (b) applicable to standard ViT and its variants, thus generalizes to various tasks, (c) can handle different tokenization and attention approaches. LookupViT also offers flexibility for the compressed tokens, enabling performance-computation trade-offs in a single trained model. We show LookupViT's effectiveness on multiple domains - (a) for image-classification (ImageNet-1K and ImageNet-21K), (b) video classification (Kinetics400 and Something-Something V2), (c) image captioning (COCO-Captions) with a frozen encoder. LookupViT provides $2\times$ reduction in FLOPs while upholding or improving accuracy across these domains. In addition, LookupViT also demonstrates out-of-the-box robustness and generalization on image classification (ImageNet-C,R,A,O), improving by up to $4\%$ over ViT.

📄 PDF Abstract BibTeX arXiv:2407.12753

Code (0)

등록된 구현이 없습니다.

Tasks

Image Captioningimage-classificationImage ClassificationVideo Classification

Methods 이 논문이 사용한 방법론

Attention 설명 없음
Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Residual Connection 설명 없음
Layer Normalization Unlike batch normalization, Layer Normalization directly estimates the normalization statistics from the summed inputs…
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Multi-Head Attention 설명 없음
Dense Connections Dense Connections, or Fully Connected Connections, are a type of layer in a deep neural network that use a linear operation where every input is connected to every output…
Vision Transformer The Vision Transformer, or ViT, is a model for image classification that employs a Transformer-like architecture over…

Similar Papers 제목 키워드 기반

MemOCR: Layout-Aware Visual Memory for Efficient Long-Horizon Reasoning

2026-01-29 · Yaorui Shi, Shugui Liu, Yu Yang, Wenyu Mao 외 arxiv

Long-horizon agentic reasoning necessitates effectively compressing growing interaction histories into a limited context window. Most existing memory systems serialize history as text, where token-level cost is uniform a…

Reinforcement Learning

CompressNet: Generative Compression at Extremely Low Bitrates

2020-06-14 · Suraj Kiran Raman, Aditya Ramesh, Vijayakrishna Naganoor, Shubham Dash 외

Compressing images at extremely low bitrates (< 0.1 bpp) has always been a challenging task since the quality of reconstruction significantly reduces due to the strong imposed constraint on the number of bits allocated f…

PVC: Progressive Visual Token Compression for Unified Image and Video Processing in Large Vision-Language Models

2024-12-12 · CVPR 2025 1 · Chenyu Yang, Xuan Dong, Xizhou Zhu, Weijie Su 외

Large Vision-Language Models (VLMs) have been extended to understand both images and videos. Visual token compression is leveraged to reduce the considerable token length of visual inputs. To meet the needs of different …

Video Understanding

FocusLLaVA: A Coarse-to-Fine Approach for Efficient and Effective Visual Token Compression

2024-11-21 · Yuke Zhu, Chi Xie, Shuang Liang, Bo Zheng 외

Recent advances on Multi-modal Large Language Models have demonstrated that high-resolution image input is crucial for model capabilities, especially for fine-grained tasks. However, high-resolution images lead to a quad…

Visual Question Answering

Feather the Throttle: Revisiting Visual Token Pruning for Vision-Language Model Acceleration

2024-12-17 · Mark Endo, Xiaohan Wang, Serena Yeung-Levy

Recent works on accelerating Vision-Language Models show that strong performance can be maintained across a variety of vision-language tasks despite highly compressing visual information. In this work, we examine the pop…

Language ModelingLanguage Modelling