Beyond Static Cropping: Layer-Adaptive Visual Localization and Decoding Enhancement

Zipeng Zhu, Zhanghao Hu, Qinglin Zhu, Yuxi Hong, Yijun Liu, Jingyong Su, Yulan He, Lin GuiarXiv 2026

TL;DR

Current training-free methods to mitigate hallucinations in Large Vision-Language Models (LVLMs) rely on a fixed "magic layer" to localize and crop important image regions. This paper reveals that visual grounding is actually a dynamic process: as query complexity increases, the model's focus shifts to deeper layers. To exploit this, the authors introduce LASER, a training-free inference framework that adaptively selects the optimal layer for visual localization and contrastive decoding, significantly boosting performance on complex reasoning tasks.

What Problem Does This Paper Address?

Large Vision-Language Models (LVLMs) frequently suffer from a "visual token bottleneck." Because input images must be resized to a uniform, fixed resolution during pretraining, fine-grained details—such as small objects, text, or subtle attributes—are often erased. When visual evidence is weak or missing, LVLMs tend to fall back on language priors, leading to confident hallucinations.

A popular training-free solution is region refinement: using the model's internal attention maps to localize informative regions, cropping them, and re-feeding them at a higher resolution. However, existing methods assume that the optimal layer for extracting these attention maps is static (typically a middle layer chosen empirically).

The authors challenge this assumption, demonstrating that a fixed-layer heuristic is brittle. Simple recognition tasks might rely on middle layers, but complex visual search and multi-step reasoning require visual information to be reactivated much deeper in the network.

Figure 1: Visualization of LVLM attention maps across varying lay- ers and query complexities. Red dashed circles mark the regions with the highest attention. Top: For a simple query, the model at- tends to the correct visual evidence effectively at a middle layer. Bottom: For a complex query requiring multi-step reasoning, the model initially focuses on visually salient but query-irrelevant re- gions and converges on the correct target at a deeper layer. Our work dynamically finds the correct layer to zoom in to visual evidence.

Methods

The authors propose LASER (Layer-adaptive Attention-guided Selective visual and decoding Enhancement for Reasoning), a training-free inference procedure consisting of three main stages:

  1. Layer Selection via Contrastive Attention: Raw attention maps are often corrupted by "attention sinks"—tokens that receive high attention regardless of the query. To isolate true query-driven attention, LASER computes a Contrastive Attention Map by subtracting the attention weights generated without the query from those generated with the query. It then calculates Visual Activation by Query (VAQ), a metric that measures how strongly each layer's attention is modulated by the query. The layer with the highest VAQ score ($\ell^*$) is dynamically selected.
  2. Constrained Visual Cropping (Con-ViCrop): Using the contrastive attention map from the optimal layer $\ell^*$, LASER identifies the most relevant bounding box and crops the image to generate a high-resolution, focused visual input ($I^+$).
  3. Decoding via Counterfactual Verification: To further refine the output, LASER creates a counterfactual negative image ($I^-$) by masking out the query-relevant patches. During decoding, it measures the Visual Activation of Tokens (VAT)—the difference in logits between the positive cropped image and the negative masked image. Tokens with high VAT are strongly supported by visual evidence and are prioritized during text generation.
Figure 3: Overview of the LASER framework. LASER operates in three stages to improve visual grounding and enhance image compre- hension for LVLMs. (1) Layer Selection: for each layer, we compute query-conditioned contrastive attention by subtracting visual attention without the query from that with the query, yielding a layer-wise VAQ score that measures how strongly visual attention is modulated by the query; the most visually activated layer ℓ∗is selected dynamically per instance. (2) VAQ-guided Localization: the contrastive attention map at ℓ∗is used to localize query-relevant regions and perform constrained visual cropping, producing a focused image input that strengthens visual evidence. (3) Decoding: counterfactual verification is enabled by masking the most query-relevant visual evidence to form a negative view; logits from positive and counterfactual streams are contrasted to compute VAT and guide contrastive decoding, while easier cases decode directly from the cropped image. This design adaptively aligns visual evidence selection, localization, and decoding with query difficulty.

Datasets

The framework was evaluated across two primary capabilities using LLaVA-1.5 and Qwen-VL:

  • Visual Localization: Evaluated on RefCOCO, RefCOCO+, and RefCOCOg using the Attention Aggregation metric to verify if the model correctly focuses on target objects described by natural language.
  • Visual Question Answering (VQA): Tested across three benchmarks with varying complexity:
  • POPE: Probes object existence and hallucination robustness.
  • TextVQA: Focuses on fine-grained text reading and visual search.
  • A-OKVQA: Focuses on complex, open-ended reasoning requiring external world knowledge.

Key Insights and Ideas

  • Grounding is Dynamic, Not Static: The depth at which an LVLM successfully grounds a query depends entirely on the query's complexity. Simple object detection tasks (like POPE) show a sharp sensitivity spike in the middle layers (e.g., layer 14), whereas complex reasoning tasks (like A-OKVQA) activate deeper layers (layers 20–24).
  • Counterfactuals Eliminate Attention Sinks: Simply looking at where a model attends is deceptive because certain tokens act as structural anchors (sinks). Contrasting the "with-query" and "without-query" states effectively purges these artifacts, leaving a clean signal of what the model actually needs to answer the question.

Key Results

LASER consistently outperformed standard sampling and competitive training-free baselines (like VCD and ViCrop) across all VQA benchmarks:

  • TextVQA (Fine-grained OCR): On LLaVA-1.5, LASER boosted accuracy to 53.92%, a significant jump from the baseline sample accuracy of 42.82% and the static cropping method (ViCrop) at 47.04%.
  • A-OKVQA (Complex Reasoning): LLaVA-1.5's direct answer accuracy improved from 23.63% (Sample) to 28.18% (LASER).
  • Localization: In RefCOCO benchmarks, LASER's contrastive attention strategy achieved substantially higher Attention Aggregation ratios inside ground-truth bounding boxes compared to raw or relative attention mechanisms.

Limitations and Future Work

The primary trade-off for LASER's training-free performance gains is computational overhead. Because it requires parallel forward passes to compute the contrastive attention maps and counterfactual logits, it introduces an additional 33% to 43% time cost during the prefill stage of inference. Furthermore, achieving low latency requires roughly double the GPU memory to run these streams concurrently.

Future work could explore optimizing these parallel passes or distilling the dynamic layer-selection mechanism into the model during training to eliminate inference-time overhead.

Summary updated

BibTeX
@misc{zhu2026beyond,
  author = {Zipeng Zhu and Zhanghao Hu and Qinglin Zhu and Yuxi Hong and Yijun Liu and Jingyong Su and Yulan He and Lin Gui},
  title = {{Beyond Static Cropping: Layer-Adaptive Visual Localization and Decoding Enhancement}},
  year = {2026},
  eprint = {2602.04304},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2602.04304},
}
Figure