AVG-LLaVA: A Large Multimodal Model with Adaptive Visual Granularity
<|reference_start|>AVG-LLaVA: A Large Multimodal Model with Adaptive Visual Granularity: Recently, when dealing with high-resolution images, dominant LMMs usually divide them into multiple local images and one global image, which will lead to a large number of visual tokens. In this work, we introduce AVG-LLaVA, an LMM that can adaptively select the appropriate visual granularity based on the input image and instruction. This approach not only reduces the number of visual tokens and speeds up inference, but also improves the overall model performance. Specifically, we introduce the following modules based on LLaVA-NeXT: (a) a visual granularity scaler that includes multiple pooling layers to obtain visual tokens with different granularities; (b) a visual granularity router, which includes a Transformer layer, an MLP layer, and a voter layer, used to select the appropriate visual granularity based on the image and instruction. Furthermore, we propose RGLF, a novel training paradigm that aims at aligning the granularity predicted by the router with the preferences of the LMM, without the need for additional manually annotated data. Extensive experiments and analysis show that AVG-LLaVA achieves superior performance across 11 benchmarks, as well as significantly reduces the number of visual tokens and speeds up inference (e.g., an 85.3% reduction in visual tokens and a 2.53$\times$ increase in inference speed on the AI2D benchmark).<|reference_end|>
@article{lan2024avg-llava:,
    title={AVG-LLaVA: A Large Multimodal Model with Adaptive Visual Granularity},
    author={Zhibin Lan, Liqiang Niu, Fandong Meng, Wenbo Li, Jie Zhou, Jinsong Su},
    journal={arXiv preprint arXiv:2410.02745},
    year={2024},
    archivePrefix={arXiv},
    eprint={2410.02745},
    primaryClass={cs.CV cs.AI cs.CL}
}