arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2408.16986cs.CV
收藏

AdaptVision:面向多场景理解的多模态大语言模型动态输入缩放

AdaptVision: Dynamic Input Scaling in MLLMs for Versatile Scene Understanding

University of Science and Technology of China(中国科学技术大学);Hefei Comprehensive National Science Center(合肥综合性国家科学中心)

Yonghui Wang, Wengang Zhou, Hao Feng, Houqiang Li

AI总结:

AdaptVision 提出根据图像分辨率与内容动态调整视觉 token 数量的多模态大语言模型,通过动态图像划分模块缓解统一缩放失真,在自然与文本场景视觉语言任务中取得优异性能。

摘要:

在过去几年中,多模态大语言模型(MLLMs)的进步引起了研究者的广泛关注,催生了众多旨在提升 MLLMs 理解能力的创新。本文提出了 AdaptVision,一个专门设计用于动态处理不同分辨率输入图像的多模态大语言模型。我们假设模型所需的视觉 token 数量取决于输入图像的分辨率和内容。通常,信息密度较低的自然图像可以在较低分辨率下用更少的视觉 token 被模型有效理解。相比之下,包含文本内容的图像(如富含文本的文档)由于其较高的信息密度,需要更多的视觉 token 才能准确解读文本。基于这一认识,我们设计了一个动态图像划分模块,根据图像的尺寸和宽高比调整视觉 token 的数量。该方法缓解了将图像缩放到统一分辨率时产生的失真效应,并动态优化输入到 LLMs 的视觉 token。我们的模型能够处理分辨率高达 $1008\ imes 1008$ 的图像。在多个数据集上的大量实验表明,我们的方法在处理自然场景和文本相关场景中的视觉语言任务时均取得了出色的性能。源代码和数据集现已公开,地址为 \url{https://github.com/harrytea/AdaptVision}。

英文摘要:

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}.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑