Test-Time Computing for Referring Multimodal Large Language Models
Organizations: Key Laboratory of Multimedia Trusted Perception and Efficient Computing, Ministry of Education of China, Xiamen University, 361005, P.R. China. · Zhongguancun Academy, Beijing, China.100094. · Tsinghua University. · VCIP, CS, Nankai University.
Abstract
We propose ControlMLLM++, a novel test-time adaptation framework that injects learnable visual prompts into frozen multimodal large language models (MLLMs) to enable fine-grained region-based visual reasoning without any model retraining or fine-tuning. Leveraging the insight that cross-modal attention maps intrinsically encode semantic correspondences between textual tokens and visual regions, ControlMLLM++ optimizes a latent visual token modifier during inference via a task-specific energy function to steer model attention towards user-specified areas. To enhance optimization stability and mitigate language prompt biases, ControlMLLM++ incorporates an improved optimization strategy (Optim++) and a prompt debiasing mechanism (PromptDebias). Supporting diverse visual prompt types including bounding boxes, masks, scribbles, and points, our method demonstrates strong out-of-domain generalization and interpretability. The code is available at https://github.com/mrwu-mac/ControlMLLM.
Figures & tables
| Models | ROC (In-Domain) | RTC (Out-of-Domain) | ||||
| Box | Mask | Scribble | Point | Box | Mask | |
| Training Methods: | ||||||
| Kosmos-2 ( Peng et al., 2023 ) | 55.17 | - | - | - | 23.12 | - |
| GPT4-ROI ( Zhang et al., 2023b ) | 58.59 | - | - | - | 57.17 | - |
| Shikra-7B ( Chen et al., 2023b ) | 64.60 | - | - | 56.27 | 60.41 | - |
| Ferret-7B ( You et al., 2023 ) | 71.71 | 72.39 | 71.58 | 68.54 | 58.70 | 59.81 |
| Models | ROC | RTC |
|---|---|---|
| LLaVA-1.5 ( Liu et al., 2024 ) | 54.72 | 57.42 |
| LLaVA-1.5 + ControlMLLM | 60.59 | 63.06 |
| LLaVA-1.5 + ControlMLLM++ | 71.19 | 74.66 |
| LLaVA-HR ( Luo et al., 2024b ) | 53.81 | 57.00 |
| LLaVA-HR + ControlMLLM | 58.92 | 66.89 |
| LLaVA-HR + ControlMLLM++ | 69.06 | 82.68 |
| Model | RefCOCOg (In-Domain) | Screenshot (Out-of-Domain) | ||||||
|---|---|---|---|---|---|---|---|---|
| B@4 | M | C | S | B@4 | M | C | S | |
| LLaVA-1.5 | 5.02 | 13.15 | 55.61 | 17.61 | 0.32 | 3.96 | 9.80 | 3.58 |
| LLaVA-1.5 + ControlMLLM | 5.53 | 14.00 | 59.75 | 19.08 | 0.45 | 5.08 | 19.74 | 5.81 |
| LLaVA-1.5 + ControlMLLM++ | 6.24 | 15.05 | 67.37 | 21.46 | 0.57 | 6.53 | 40.01 | 9.14 |
| LLaVA-HR | 5.28 | 13.45 | 56.29 | 18.55 | 0.29 | 4.27 | 10.88 | 4.59 |
| LLaVA-HR + ControlMLLM | 6.32 | 15.00 | 68.82 | 21.55 | 0.64 | 6.79 | 37.10 | 8.54 |
| 0 | 4 | 5 | |
|---|---|---|---|
| Acc. | 57.00 | 60.50 | 62.50 |
| Optim++ | ||||
| Adam | LayerSelection | PromptDebias | Acc. | |
| 60.59 | ||||
| ✓ | 66.93 | |||
| ✓ | ✓ | 65.70 | ||
| ✓ | ✓ | 65.70 | ||
| ✓ | ✓ | ✓ | 68.02 | |
| Models | Vanilla | ControlMLLM | ControlMLLM++ |
|---|---|---|---|
| LLaVA-1.5-7B | 54.72 | 60.59 | 71.19 |
| LLaVA-1.5-13B | 55.69 | 58.40 | 68.22 |
| Qwen2.5-VL-3B | 75.84 | 76.23 | 77.84 |
| Qwen2.5-VL-7B | 78.81 | 79.20 | 79.20 |
| Models | Latency(s) | GPU Mem. |
|---|---|---|
| LLaVA-1.5 (6 tokens) | 0.94 | 7.6G |
| +ControlMLLM | 1.88 | 13.6G |
| +ControlMLLM++ | 1.79 | 13.0G |
| (w/o PromptDebias) | ||
| +ControlMLLM++ | 2.54 | 21.3G |
| LLaVA-1.5 (436 tokens) | 21.28 | 8.9G |
Test-Time Adaptation of VLMs
Test-time adaptation of vision-language models uses unlabeled deployment data to improve predictions under domain shifts without retraining.
See all 79 papers