arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2403.11703cs.CVcs.AI
收藏

LLaVA-UHD:一种感知任意宽高比和高分辨率图像的大型多模态模型

LLaVA-UHD: an LMM Perceiving Any Aspect Ratio and High-Resolution Images

Tsinghua University(清华大学);National University of Singapore(新加坡国立大学);University of Chinese Academy of Sciences(中国科学院大学)

Ruyi Xu, Yuan Yao, Zonghao Guo, Junbo Cui, Zanlin Ni, Chunjiang Ge, Tat-Seng Chua, Zhiyuan Liu, Maosong Sun, Gao Huang

AI总结:

针对传统LMMs在固定尺寸和低分辨率下视觉编码的缺陷,提出LLaVA-UHD,通过图像模块化、压缩模块和空间模式实现任意宽高比和高分辨率的高效感知,在9个基准上超越数据量多2-3个数量级的模型,并显著提升推理效率与准确率。

摘要:

视觉编码构成了大型多模态模型(LMMs)理解视觉世界的基础。传统的LMMs以固定尺寸和有限分辨率处理图像,而该方向的最新探索在适应性、效率和甚至正确性方面均有限。在本工作中,我们首先以GPT-4V和LLaVA-1.5为代表,揭示其视觉编码策略中固有的系统性缺陷。为应对这些挑战,我们提出了LLaVA-UHD,一种能够高效感知任意宽高比和高分辨率图像的大型多模态模型。LLaVA-UHD包含三个关键组件:(1)图像模块化策略,将原生分辨率图像划分为较小的可变大小切片,以实现高效且可扩展的编码;(2)压缩模块,进一步压缩来自视觉编码器的图像令牌;(3)空间模式,用于组织供LLMs使用的切片令牌。综合实验表明,LLaVA-UHD在9个基准测试上优于使用多2-3个数量级数据训练的既有LMMs。值得注意的是,我们基于LLaVA-1.5 336x336构建的模型仅使用94%的推理计算即可支持6倍更大(即672x1088)分辨率的图像,并在TextVQA上实现了6.4的准确率提升。此外,该模型可在学术环境中高效训练,在8个A100 GPU上仅需23小时(而LLaVA-1.5需26小时)。我们已在https://github.com/thunlp/LLaVA-UHD公开数据和代码。

英文摘要:

Visual encoding constitutes the basis of large multimodal models (LMMs) in understanding the visual world. Conventional LMMs process images in fixed sizes and limited resolutions, while recent explorations in this direction are limited in adaptivity, efficiency, and even correctness. In this work, we first take GPT-4V and LLaVA-1.5 as representative examples and expose systematic flaws rooted in their visual encoding strategy. To address the challenges, we present LLaVA-UHD, a large multimodal model that can efficiently perceive images in any aspect ratio and high resolution. LLaVA-UHD includes three key components: (1) An image modularization strategy that divides native-resolution images into smaller variable-sized slices for efficient and extensible encoding, (2) a compression module that further condenses image tokens from visual encoders, and (3) a spatial schema to organize slice tokens for LLMs. Comprehensive experiments show that LLaVA-UHD outperforms established LMMs trained with 2-3 orders of magnitude more data on 9 benchmarks. Notably, our model built on LLaVA-1.5 336x336 supports 6 times larger (i.e., 672x1088) resolution images using only 94% inference computation, and achieves 6.4 accuracy improvement on TextVQA. Moreover, the model can be efficiently trained in academic settings, within 23 hours on 8 A100 GPUs (vs. 26 hours of LLaVA-1.5). We make the data and code publicly available at https://github.com/thunlp/LLaVA-UHD.

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

↑