Edge Statistics Before Downsampling: Telling a Vision-Language Model Where to Zoom

Vision-language models are systems that read an image and answer questions about it in text. They cannot afford to look at a large image at full resolution, so the strongest recent systems first look at a small downscaled copy (a "thumbnail"), decide where the answer probably is, and then crop that region at full resolution. This plan breaks in a predictable way. Downscaling acts as a blur, and it erases exactly the objects the model most needs to find: a line of small text, a thin wire, a distant sign. A model cannot decide to zoom into a region whose contents it never saw. We propose a fix that costs almost nothing and comes from classical computer vision. Before the image is downscaled, a tiny learnable edge-histogram layer counts what kinds of fine edges occur inside each thumbnail cell: how many there are, at what orientations, and at what contrasts. That count is added to the thumbnail's patch embeddings. The thumbnail is still blurry, but every cell now carries a fingerprint of its fine detail, a few hundred parameters in size. Because the fingerprint is added to existing patches, the model receives no extra visual tokens.

The underlying point is the order of operations. Blurring and then measuring discards fine structure permanently. Measuring with a nonlinear statistic and then pooling keeps a summary of that structure. Classical hand-crafted descriptors such as edge histograms were built to produce that kind of summary, and recent work has made them trainable. Our claim is that such a pre-downsampling statistic, given only to the coarse "where to look" stage of an active-zoom model, lets the model localize targets smaller than the thumbnail can resolve. We expect this to improve high-resolution question answering at the same token budget as current zoom methods. We also design the experiments so that a reviewer can tell whether the hand-crafted histogram structure matters, or whether any full-resolution side channel would do.

What exists and where the gap is

Three lines of work attack the resolution bottleneck in vision-language models, each in a different way.

The first line tiles the image. UReader slices documents into native-resolution crops and raised DocVQA from 22.0 to 65.4. Monkey and MG-LLaVA combine local high-resolution patches with a global thumbnail. Tiling preserves detail, but the token count grows with image area.

The second line prunes tokens. HERO drops tiled tokens using the attention patterns of the image encoder, the pretrained vision network (here CLIP) that turns image patches into tokens. Pruning can only discard information the encoder has already computed. It cannot restore signal that was smoothed away when patches were embedded.

The third line zooms actively. ERGO trains Qwen2.5-VL-7B with reinforcement learning to reason over the thumbnail, output a single crop box, and answer from that crop. It reports 81.7 on V* using 1,025 visual tokens, against 77.0 for the full-resolution model using 4,471 tokens. CogCoM and ViGoRL also zoom, using explicit manipulation chains and coordinate-anchored steps. ERGO's own solution to vanishing targets is indirect: the model reasons from visible proxies, for example finding the cup in order to guess where an invisible straw must be. That works only when a proxy exists. Our proposal attacks the same failure directly, by making the target's presence detectable in the coarse view, and it leaves ERGO's training recipe untouched.

The method comes from Histogram Layers for Neural Engineered Features (see also the companion version). That work turns the classical edge histogram descriptor into a trainable layer, the Neural Edge Histogram Descriptor (NEHD), which combines learnable difference kernels with soft histogram bins whose centers and widths are learned. It reached 89.74% on FashionMNIST with 162 parameters, versus 86.94% for the fixed descriptor. It was tested only on small classification images, never on high-resolution inputs and never inside a multimodal model. We reuse the layer for a different job. Instead of acting as a classifier's feature extractor, it becomes a sensor that summarizes full-resolution detail inside each thumbnail cell.

Two papers motivate the premise that low-level structure needs an explicit pathway. SparseViT shows that a standard transformer gravitates toward semantic objects and misses non-semantic traces unless its attention is constrained. DAVE shows that natural-image encoders drop the edge and layout structure that documents and web pages depend on. DAVE fixes this by retraining the whole encoder on 20 million images. We instead ask whether a few hundred parameters, applied before downsampling, can carry the specific signal "fine structure is here."

VisualOverload supplies a hard dense-scene test set. In dense 4K paintings, the best counting accuracy across 37 models was 41.7%, and the best model scored 19.6% on the hardest split.

Unveiling the Visual Counting Bottleneck constrains what we may claim. Its linear probes recover object counts from the encoder with over 99% accuracy, yet the model fails to state the number, because the visual and textual counting circuits barely overlap. So for counting, better perception alone may not help. We therefore do not claim counting gains. We treat counting as a place where our method should help only to the extent that crop selection was the actual bottleneck.

Core Claim

Downscaling with anti-aliasing is a linear low-pass filter. Any structure narrower than roughly the downscaling factor $s$ (in native pixels) is attenuated toward the local average, so the model cannot recover it. The neural edge histogram instead first computes local responses at native resolution, applies a nonlinear soft binning, and only then averages. For a thumbnail cell whose native-pixel footprint is $P$, edge kernel $k$ with response $r_k(x)$ at pixel $x$, and bin $b$ with learnable center $\mu_{k,b}$ and width $w_{k,b}$, the cell feature is

$$h_{k,b} = \frac{1}{|P|}\sum_{x \in P} \exp\!\left(-\left(\frac{r_k(x)-\mu_{k,b}}{w_{k,b}}\right)^2\right).$$

Fine text produces many high-magnitude, sign-alternating responses. Simple averaging cancels these out, but the histogram keeps them as mass in the outer bins. The vector $h$ is passed through a small projection and added to the thumbnail patch embedding of that cell. The claim is that this sensor lets the coarse stage localize targets well below the thumbnail's resolving scale. It should therefore raise high-resolution question-answering accuracy at a fixed token budget, with the largest gains on targets that have no visible contextual proxy.

Research Program

We build on Qwen2.5-VL-7B and the ERGO recipe, so that the only change is the side channel. The sensor applies $K$ learnable 3×3 difference kernels to the native-resolution grayscale image and to one color-opponent channel. It then soft-bins the responses into $B$ bins, at two scales (native and 2× downsampled), and pools over each thumbnail cell's footprint. With $K=8$ and $B=8$, the sensor has a few hundred parameters plus a projection into the model's embedding width. Its compute cost is negligible next to the vision encoder, even on 4K inputs.

Training has two phases. In the first, we train only the sensor and projector, with low-rank adapters on the language model, on a localization task. Tiny targets are pasted into large natural and document images, and the model must output their bounding boxes from the thumbnail alone. In the second, we run ERGO's reinforcement learning with its region-verification reward. We use identical data, number of steps, and token budget, and we allow ERGO's single crop.

Analysis has three parts. First, we measure sensitivity: we sweep target size relative to $s$ and find where localization breaks with and without the sensor. Second, we inspect which bins the model uses. Third, on VisualOverload, we check whether the sensor shifts where crops land in dense scenes, using a variant that permits up to three crops. This variant addresses ERGO's acknowledged single-crop limitation.

Baselines

The naive reference point is Qwen2.5-VL-7B answering from its standard input with no zoom. The file reports the full-resolution configuration at 77.0 on V* with 4,471 tokens, from ERGO. No reported result found on Lacuna for the thumbnail-only configuration, so we will measure it.

The strongest existing method is ERGO, which reports 81.7 on V with 1,025 tokens; the file also says ERGO beats baselines on HR-Bench by 5–10 points without giving exact figures. We will cite ERGO's reported number but compare against our own re-run of its recipe, with the same seeds, reinforcement learning budget, data, and crop budget. Beating ERGO means a gain over the re-run, consistent across three seeds, on V and HR-Bench at an equal visual-token count. We also expect a larger gain on the subset of V* and synthetic items whose targets fall below the thumbnail's resolving scale.

HERO is the strongest training-free alternative. We run it on tiled inputs and set its token budget to match ours. No reported result found on Lacuna for HERO on V* or VisualOverload, so we will measure it ourselves.

Four ablations isolate the key ingredient. The first uses the fixed, hand-crafted edge histogram with no learning, which tests whether learning matters. The second computes the same histogram on the thumbnail after downscaling, which tests whether pre-downsampling order matters. The third substitutes a learned small convolutional network followed by average pooling, at matched parameters and FLOPs and again at 10× parameters, which tests whether the histogram structure matters. The fourth feeds a random side channel with the same training, which tests whether the gains come only from extra fine-tuning.

Why not just…?

Why not just give the coarse stage a higher-resolution thumbnail? This approach does work, but it pays in tokens, and its benefit flattens out; the file notes diminishing returns beyond about 512 pixels, though without a citable paper. We will plot accuracy against coarse-stage tokens for thumbnails at several resolutions. Our sensor adds zero tokens, so our curve should sit above theirs at every budget. If a modestly larger thumbnail matches our method at a small token cost, the method's value shrinks to a constant-factor saving, and we will say so.

Why not just learn a small convolutional side channel instead of an engineered histogram? This is the real threat. A convolution followed by a ReLU and average pooling also measures before pooling, and it may capture most of the effect. The matched-FLOP and 10× ablations decide the question. If the learned network matches the histogram, the contribution becomes "pre-downsampling statistics for where-to-look," and the hand-crafted structure is a cheap, interpretable instance of it rather than the cause. We expect the histogram to have an advantage in data efficiency during the small first training phase, and we will test this by varying that data budget by 10×.

Why not just tile everything and prune, as HERO does? Pruning operates on tokens the encoder has already produced. Its attention-based scores are known to collapse onto background tokens in late layers and to spread out across repetitive dense content. In addition, tiling a 4K image costs the full encoder pass on every tile before anything is dropped. The matched-budget comparison above, together with prefill compute measurements, settles whether pruning recovers the same small targets at lower cost.

Why not just run an external OCR engine or object detector? The DocVQA baseline shows what happens when OCR text is flattened into a single string: it reaches 0.665 ANLS against 0.981 for humans (DocVQA). UReader also reports that OCR pipelines break on stylized text. More importantly, a detector cannot flag unnamed fine structure such as wires, marks, or texture changes. We will include an OCR-boxes-as-hints variant on the text-heavy subset of HR-Bench, and we will report the comparison honestly if it wins there.

Proposed Experiments

The decisive check is the synthetic size sweep. We paste text snippets and small objects at sizes from $0.25s$ to $4s$ native pixels into large backgrounds and measure coarse-stage box intersection-over-union. If the sensor works as claimed, the without-sensor curve should collapse near $s$ while the with-sensor curve stays high below $s$. The post-downsampling histogram ablation should collapse at the same point as the plain thumbnail. If it does not, our explanation is wrong.

For the main evaluation, we use V, HR-Bench, and MME-RWL, reporting accuracy and visual-token count against the re-run of ERGO. We also break V down by whether a contextual proxy object is visible, which we will annotate on a 200-item subset. The stress test is VisualOverload, broken out by category. We predict gains on OCR and attribute questions, where crop placement matters, and little change on counting, consistent with the decoding failure reported by the counting-bottleneck paper. Large counting gains would therefore themselves be informative.

Finally, we run DocVQA with the sensor attached to a tiled UReader-style pipeline that keeps only the top-ranked tiles. This tests whether the same signal can rank tiles in text-dense documents, the setting where DAVE argues low-level structure matters most.