AdaptVision: Dynamic Input Scaling in MLLMs for Versatile Scene Understanding

Yonghui Wang, Wengang Zhou, Hao Feng, Houqiang Li
8/30/2024
cs.CV

Official code: harrytea/AdaptVision (3 stars, last commit 2025-10-04).

Abstract

Over the past few years, the advancement of Multimodal Large Language Models (MLLMs) has captured the wide interest of researchers, leading to numerous innovations to enhance MLLMs' comprehension. In this paper, we present AdaptVision, a multimodal large language model specifically designed to dynamically process input images at varying resolutions. We hypothesize that the requisite number of visual tokens for the model is contingent upon both the resolution and content of the input image. Generally, natural images with a lower information density can be effectively interpreted by the model using fewer visual tokens at reduced resolutions. In contrast, images containing textual content, such as documents with rich text, necessitate a higher number of visual tokens for accurate text interpretation due to their higher information density. Building on this insight, we devise a dynamic image partitioning module that adjusts the number of visual tokens according to the size and aspect ratio of images. This method mitigates distortion effects that arise from resizing images to a uniform resolution and dynamically optimizing the visual tokens input to the LLMs. Our model is capable of processing images with resolutions up to $1008\times 1008$. Extensive experiments across various datasets demonstrate that our method achieves impressive performance in handling vision-language tasks in both natural and text-related scenes. The source code and dataset are now publicly available at \url{https://github.com/harrytea/AdaptVision}.

View on arXivView PDF

Code Implementations(1)

AdaptVision: Dynamic Input Scaling in MLLMs for Versatile Scene Understanding

30Shell, PythonJul 17, 20241 years ago

Similar Papers

Cite this paper

@article{wang2024adaptvision,
  title  = {AdaptVision: Dynamic Input Scaling in MLLMs for Versatile Scene Understanding},
  author = {Yonghui Wang and Wengang Zhou and Hao Feng and Houqiang Li},
  year   = {2024},
  eprint = {2408.16986},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2408.16986v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2408.16986.svg)](https://codeofpaper.com/paper/2408.16986)

Discussion