Efficient Vision-Language Models by Summarizing Visual Tokens into Compact Registers

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Wen, Yuxin, Cao, Qingqing, Fu, Qichen, Mehta, Sachin, Najibi, Mahyar
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866917808118431744
author Wen, Yuxin
Cao, Qingqing
Fu, Qichen
Mehta, Sachin
Najibi, Mahyar
author_facet Wen, Yuxin
Cao, Qingqing
Fu, Qichen
Mehta, Sachin
Najibi, Mahyar
contents Recent advancements in vision-language models (VLMs) have expanded their potential for real-world applications, enabling these models to perform complex reasoning on images. In the widely used fully autoregressive transformer-based models like LLaVA, projected visual tokens are prepended to textual tokens. Oftentimes, visual tokens are significantly more than prompt tokens, resulting in increased computational overhead during both training and inference. In this paper, we propose Visual Compact Token Registers (Victor), a method that reduces the number of visual tokens by summarizing them into a smaller set of register tokens. Victor adds a few learnable register tokens after the visual tokens and summarizes the visual information into these registers using the first few layers in the language tower of VLMs. After these few layers, all visual tokens are discarded, significantly improving computational efficiency for both training and inference. Notably, our method is easy to implement and requires a small number of new trainable parameters with minimal impact on model performance. In our experiment, with merely 8 visual registers--about 1% of the original tokens--Victor shows less than a 4% accuracy drop while reducing the total training time by 43% and boosting the inference throughput by 3.3X.
format Preprint
id arxiv_https___arxiv_org_abs_2410_14072
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Efficient Vision-Language Models by Summarizing Visual Tokens into Compact Registers
Wen, Yuxin
Cao, Qingqing
Fu, Qichen
Mehta, Sachin
Najibi, Mahyar
Computer Vision and Pattern Recognition
Artificial Intelligence
Computation and Language
Recent advancements in vision-language models (VLMs) have expanded their potential for real-world applications, enabling these models to perform complex reasoning on images. In the widely used fully autoregressive transformer-based models like LLaVA, projected visual tokens are prepended to textual tokens. Oftentimes, visual tokens are significantly more than prompt tokens, resulting in increased computational overhead during both training and inference. In this paper, we propose Visual Compact Token Registers (Victor), a method that reduces the number of visual tokens by summarizing them into a smaller set of register tokens. Victor adds a few learnable register tokens after the visual tokens and summarizes the visual information into these registers using the first few layers in the language tower of VLMs. After these few layers, all visual tokens are discarded, significantly improving computational efficiency for both training and inference. Notably, our method is easy to implement and requires a small number of new trainable parameters with minimal impact on model performance. In our experiment, with merely 8 visual registers--about 1% of the original tokens--Victor shows less than a 4% accuracy drop while reducing the total training time by 43% and boosting the inference throughput by 3.3X.
title Efficient Vision-Language Models by Summarizing Visual Tokens into Compact Registers
topic Computer Vision and Pattern Recognition
Artificial Intelligence
Computation and Language
url https://arxiv.org/abs/2410.14072