TL;DR
VisLens introduces a single-pass, fully interpretable method for fine-grained visual search in Multimodal LLMs (MLLMs). By using a lightweight "tuned-lens" to decode object semantics from very early hidden states, it localizes small or rare targets and generates precise crops within a single forward pass. This approach matches or outperforms existing methods while running up to 22.2× faster than multi-pass search techniques.
What Problem Does This Paper Address?
Multimodal Large Language Models (MLLMs) excel at general visual tasks like captioning, but they notoriously struggle with fine-grained Visual Search—the task of locating tiny or rare objects hidden inside high-resolution images. Because MLLMs typically process images at a fixed resolution, the signal from a small object gets diluted across the global representation.
Existing remedies fall into two unsatisfactory camps:
- Training-free multi-pass methods: These inspect attention maps or uncertainty scores to zoom into candidate regions, but they require querying the massive MLLM multiple times per image, making them painfully slow.
- Reinforcement Learning (RL) tool-use models: These train the MLLM to call cropping or zooming tools. While faster at inference, they require expensive, task-specific training data and act as uninterpretable "black boxes," making it hard to diagnose why a specific crop failed.
VisLens bridges this gap by achieving fast, single-pass visual search without sacrificing interpretability or requiring heavy retraining.
Methods
The core insight behind VisLens is that an MLLM already knows where objects are in its early layers; we just need a way to read its mind.
The authors build on the concept of a logit lens—a technique that projects intermediate hidden states through the model's final output head to see what vocabulary tokens it is predicting at that layer. However, because early-layer representations don't perfectly match the final layer's space, the raw logit lens degrades early on. VisLens fixes this by training a tuned-lens: a lightweight translator (a small residual MLP comprising just ~0.05% of the model's parameters) that maps early hidden states into the final layer's representational space.
The full pipeline operates as follows:
- Target Extraction: The natural language query is parsed using part-of-speech tagging to extract localizable target nouns (e.g., "sculpture", "vehicle").
- Token Logits Generation & Semantic Matching: The image is passed through the vision encoder. Right after the visual projector (at "pre-layer 1"), the tuned-lens decodes the top-$K$ vocabulary tokens for each image patch. These tokens are matched against the target nouns to create a spatial probability heatmap.
- Clustering & Box Merging: High-probability patches are grouped into connected components and merged into tight bounding boxes.
- VQA with Crops: The generated crops are fed back into the MLLM alongside the original image to produce the final answer. Crucially, because the localization happens at the very first layer, the entire process fits within a single forward pass.
Datasets
The authors evaluated VisLens across several benchmarks:
- V*Bench and HR-Bench (4K & 8K): Standard benchmarks specifically designed for fine-grained visual search where targets occupy a tiny fraction of high-resolution scenes.
- A-OKVQA, POPE, and GQA: Standard Visual Question Answering benchmarks used to verify that VisLens doesn't degrade performance on general tasks that lack a small-target bottleneck.
- MS COCO: A held-out subset of small objects was used for the source-layer ablation study.
Key Insights and Ideas
- Early Layers Know Best: Surprisingly, the semantic information needed to localize small objects is fully formed right after the visual projector (pre-layer 1). Waiting for deeper language layers provides almost no additional localization accuracy.
- Interpretability for Free: Because the crops are generated directly from decoded vocabulary tokens (e.g., seeing the words "pants" or "carriage" pop up over specific pixels), failures are completely transparent. If the model fails to find an object, you can look at the lens readout to see if it was distracted by background context or simply lacked the concept.
- No MLLM Fine-Tuning Required: The base MLLM remains completely frozen. The tuned-lens is trained purely via knowledge distillation (minimizing KL divergence against the model's own final-layer distribution), meaning it requires zero human-annotated bounding boxes or costly RL trajectories.
Key Results
- Massive Speedups: VisLens runs 8.5× to 9.9× faster than the RL-based tool-use model Thyme, and up to 22.2× faster than training-free multi-pass methods like ZoomEye on high-resolution (8K) images.
- Accuracy Gains: It consistently improves performance across multiple MLLM backbones (LLaVA-OneVision, Qwen2.5-VL, InternVL3). For instance, it delivered a +10.5 point boost on Direct Attribute tasks for InternVL3 and up to +12.8 points on HR-Bench-8K Single for LLaVA-OneVision.
- Zero General Degradation: On standard VQA benchmarks (GQA, POPE, A-OKVQA), VisLens performs within 1 point of the vanilla baselines, meaning it can be left "always on" without harming general performance.
Limitations and Future Work
- Local vs. Global Semantics: VisLens relies on independent patch-level vocabulary matching. This makes it highly effective for object-centric search but less reliable for symbolic, textual (OCR), or highly distributed structural data (like complex charts or scientific diagrams) where a single patch only contains a meaningless fragment (e.g., a line segment or a single digit).
- Future Directions: The authors suggest extending lens-based localization to incorporate structural grouping, OCR capabilities, and relation-aware matching to handle non-object-centric visual search tasks.
Summary updated