GRAIN: Shared-Budget Complementary Re-observation for Object Detection

Chengxuan Zhou, Shaoyang Zhang, Rui Qian, Juntao Cheng, Feng Liu, Wanru SongarXiv 2026

It’s late, you’re tired, and you’ve spent all day looking at data. Imagine you’re playing a high-stakes game of "Where’s Waldo?" across a thousand different pages. You have a magical magnifying glass, but here’s the catch: you only have enough "mana" to use it 500 times.

Do you use it exactly once on every other page? Of course not. You’d skip the pages that look like empty fields and save your mana for the ones that look like a crowded beach at noon.

This is the core intuition behind GRAIN (Shared-Budget Complementary Re-observation). It’s a framework that helps object detectors "zoom in" on the hard parts of an image collection without blowing their computational budget.

TL;DR

GRAIN intelligently allocates a fixed "budget" of extra detector calls across an entire collection of images, rather than treating each image in isolation. By using a clever mathematical "surrogate" to predict where a zoom-in will yield the most new information, it achieves better accuracy than standard tiling methods while using up to 8x fewer computations.

What Problem Does This Paper Address?

Modern object detectors have a "Goldilocks" problem with resolution. If an image is too small, tiny objects (like a distant car or a person in a dense crowd) don't have enough "pixel support"—they're just blurry blobs the detector ignores.

The standard fix is slicing: you chop the image into overlapping tiles, resize each tile to be large, and run the detector again. The problem? Every tile costs a full "call" to the detector. If you have a million images and you tile each one into four pieces, you’ve just quintupled your cloud bill.

Existing "adaptive" methods try to be smarter by only cropping interesting areas, but they usually work on one image at a time. They don't realize that a "boring" image might not need any crops at all, while a "busy" image might need ten. GRAIN fixes this by sharing the budget across the whole dataset.

Figure 1. The difference between fixed tiling and GRAIN's shared budget. GRAIN saves "calls" on sparse images to spend them on crowded ones.

Methods

GRAIN works as a "wrapper" around any existing, "frozen" detector. It doesn't require retraining. It operates in two main stages:

  1. Shared-Budget Complementary Planning (SCP):
    • The Coarse Pass: First, it runs the detector once on every image at low resolution to get a "coarse" idea of what's there.
  2. Resolution Deficit: It calculates a "weight" for every detected object based on how much it would benefit from being seen at a higher resolution.
  3. Submodular Optimization: It uses a greedy algorithm to pick crop windows that maximize "new" information. If two objects are close together, one crop might cover both, so the "gain" of a second overlapping crop is discounted.
  4. Global Max-Heap: It puts all potential crops from all images into one big priority queue and picks the best ones until the budget is empty.
  5. Positive-Region Fusion (PRF):
    • Once the crops are processed, GRAIN has to merge the results.
  6. Boundary Safety: It ignores detections that touch the edge of a crop (which are often truncated "zombies") and only trusts the "interior" region.
  7. Class-Balanced Squeezing: In super-crowded scenes, common objects (like people) can "drown out" rare ones because of output limits. PRF re-weights these to ensure a diverse set of detections.
Figure 2. Overview of GRAIN. A frozen detector first runs one coarse pass over the image collection. SCP plans all crop calls before crop inference, as LWS builds multi-zoom gain maps from the residual credits of CGS and SBA assigns each call to the largest collection gain while refreshing only the chosen image. After the same detector evaluates the selected crops, PRF filters inferred crop boxes with the planned interior region, merges views into at most 2K candidates, and selects K class-balanced outputs per image.

Datasets

The authors tested GRAIN across 17 different "frozen" detectors (from YOLO to DETR families) on four major benchmarks:

  • COCO: The standard "everything" dataset.
  • CrowdHuman: Extremely dense crowds where people overlap.
  • VisDrone-DET: Aerial images with thousands of tiny vehicles and pedestrians.
  • AI-TOD-v2: Tiny objects in satellite-style imagery.

Key Insights and Ideas

  • The "Resolution-Closure" Surrogate: The authors derived a parameter-free way to estimate how much a zoom-in helps. It’s based on a "Hill function" that models how detection probability saturates as you add more pixels.
  • Submodularity is Key: By treating crop selection as a submodular coverage problem, they ensure that the "diminishing returns" of looking at the same spot twice are mathematically accounted for.
  • Integral Images for Speed: To find the best crop window quickly, they use 2D prefix sums (a classic computer vision trick). This lets them "score" millions of possible windows on the CPU in just a few milliseconds.

Key Results

  • Efficiency: On the CrowdHuman dataset, GRAIN matched the accuracy of a standard 2-tile-per-image approach while using 2.4x fewer detector calls on average. In some cases, it achieved similar results with 1/8th the calls.
  • Consistency: Across 102 different experimental settings, GRAIN beat the standard tiling baseline in 100 of them.
  • Plug-and-Play: Because it works with "frozen" weights, you can take a state-of-the-art detector off the shelf and immediately make it better at finding small objects just by adding GRAIN.
Figure 3. Accuracy vs. Budget. GRAIN (the red line) consistently stays above the tiling and coarse baselines across different datasets.

Limitations and Future Work

  • The Coarse Pass Requirement: GRAIN still needs that initial low-res pass on every image. If your images are truly massive (like gigapixel pathology slides), even a coarse pass might be expensive.
  • Latency vs. Throughput: While GRAIN is great for batch processing (offline collections), the authors had to implement a "causal" version for streaming video. This version is slightly less optimal because it can't "see the future" to know if a better image is coming later.
  • False Positives: In very noisy backgrounds (like textured road markings), zooming in can sometimes trick the detector into seeing "ghost" objects, though the PRF stage helps mitigate this.

In short, GRAIN is a masterclass in "work smarter, not harder." It proves that in the world of computer vision, where you look is just as important as how you look.

Summary updated

Abstract

Re-running a frozen detector on enlarged image crops recovers small and crowded objects without retraining, yet every crop costs an extra detector call. Existing slicing and adaptive-cropping pipelines plan crops per image in isolation, even though inspection demand varies widely across an image collection. We present GRAIN, which unifies cross-image call allocation and bounded-output admission around cross-image comparable resolution-closure gains over boundary-safe crop interiors. Coarse hypotheses carry resolution deficits, crops close a geometric share of those deficits for hypotheses enclosed in their interior positive region, and multiplicative residuals discount covered evidence within a monotone submodular surrogate. Prefix sums and a global max-heap execute this collection-wide plan on CPU before crop inference, and Positive-Region Fusion aligns post-inference spatial admission with the planned interior support before class-balanced top- selection. Across 17 frozen detectors from five families on COCO, CrowdHuman, and VisDrone-DET, GRAIN beats call-matched tiling in 100 of 102 AP@100 settings and transfers to AI-TOD-v2. With RF-DETR-S on CrowdHuman, it nearly matches two-crop tiling using one eighth of the crop calls. At fixed budgets, the surrogate orders candidate plans with Spearman correlations of 0.95 to 0.99 while the sweep attains at least 98% of the exact surrogate optimum. Code will be publicly released.
BibTeX
@misc{zhou2026grain,
  author = {Chengxuan Zhou and Shaoyang Zhang and Rui Qian and Juntao Cheng and Feng Liu and Wanru Song},
  title = {{GRAIN: Shared-Budget Complementary Re-observation for Object Detection}},
  year = {2026},
  eprint = {2611.30770},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.30770},
}
Figure