Loss-Oriented Ranking for Automated Visual Prompting in LVLMs
Yuan Zhang, Chun-Kai Fan, Tao Huang, Ming Lu, Sicheng Yu, Junwen Pan, Kuan Cheng, Qi She, Shanghang Zhang
TL;DR
This work tackles the challenge of manually crafting visual prompts for LVLMs by introducing AutoV, a retrieval-based framework that automatically picks the best visual prompt from a compact pool conditioned on each image-question pair. AutoV uses a lightweight ranking network that fuses visual-prompt tokens with text, trained with reward-based supervision derived from LVLM prediction losses via automated data generation, and a robust inference pipeline that filters and selects the top prompt. The approach yields consistent, model-agnostic gains across a wide set of LVLM architectures and benchmarks, including notable improvements on VizWiz and MMMU, and demonstrates strong transferability to closed-source models. The results indicate that adaptive, data-driven visual prompting can substantially enhance multimodal reasoning without model fine-tuning, offering a practical path to plug-in improvements for LVLMs in diverse applications.
Abstract
Inspired by text prompts in large language models (LLMs), visual prompts have been explored to enhance the reasoning capabilities of large vision-language models (LVLMs). Current methods design heuristic visual prompts, such as overlaying a text-query-guided attention heatmap on the original input image. However, designing effective prompts manually is challenging and time-consuming, and it often fails to explore the benefits of different visual prompts, leading to sub-optimal performance. To this end, we propose \textbf{AutoV} that learns to automatically select the optimal visual prompt from various candidates based on given textual queries and the input image. To train AutoV, we develop an automatic data collection and labeling pipeline that evaluates various visual prompts with a pre-trained LVLM. We input a set of visual prompts into the LVLM and rank them according to the prediction losses generated by the model. Using the ranking as a supervision signal, we train AutoV to automatically choose the optimal visual prompt from various visual prompts for LVLMs. Experiments indicate that AutoV enhances the performance of various LVLMs across multiple image understanding tasks. For instance, LLaVA-OV with AutoV achieves $\textbf{10.2}\%$ accuracy gain on VizWiz, and AutoV boosts Qwen2.5-VL by $\textbf{3.8}\%$ on MMMU, highlighting its potential as an optimal visual prompting method.
