Constructive Distortion: Improving MLLMs with Attention-Guided Image Warping
Dwip Dalal, Gautam Vashishtha, Utkarsh Mishra, Jeonghwan Kim, Madhav Kanda, Hyeonjeong Ha, Svetlana Lazebnik, Heng Ji, Unnat Jain
TL;DR
AttWarp tackles the challenge of fine-grained perceptual grounding in multimodal large language models by introducing a test-time, attention-guided image warping that reallocates spatial resolution to query-relevant regions while preserving global image structure. The method operates without modifying MLLM weights, deriving a rectilinear warp from cross-modal attention through marginal attention profiles and inverse CDF warping, and extends with AttWarp-Chain for iterative refinement and AttWarp-Distill for fast single-pass inference. Empirical results across five benchmarks and multiple backbones show consistent accuracy gains, improved compositional and spatial reasoning, and reduced hallucinations, with AttWarp-Distill offering significant speedups and AttWarp-Chain providing additional gains via adaptive termination. The findings demonstrate that input-level, information-preserving transformations can meaningfully enhance visual grounding in MLLMs and that AttWarp generalizes across external attention sources and newer architectures, offering a practical, plug-in tool for improving VQA and related tasks.
Abstract
Multimodal large language models (MLLMs) often miss small details and spatial relations in cluttered scenes, leading to errors in fine-grained perceptual grounding. We introduce AttWarp, a lightweight method that allocates more resolution to query-relevant content while compressing less informative areas, all while preserving global context. At test time, the approach uses an MLLM's cross-modal attention to perform rectilinear warping of the input image, reallocating spatial resolution toward regions the model deems important, without changing model weights or architecture. This attention-guided warping preserves all original image information but redistributes it non-uniformly, so small objects and subtle relationships become easier for the same model to read while the global layout remains intact. Across five benchmarks (TextVQA, GQA, DocVQA, POPE, MMMU) and four MLLMs (LLaVA, Qwen-VL, InternVL, and InstructBLIP), AttWarp consistently improves accuracy, strengthens compositional reasoning, and reduces hallucinations, outperforming four competitive baselines that manipulate raw images at test time. Together, these results show that attention-guided warping prioritizes information relevant to the query while preserving context, and that the same MLLMs perform better when given such warped inputs.
