GRAIN: Shared-Budget Complementary Re-observation for Object Detection
Organizations: Nanjing University of Posts and Telecommunications · Hohai University · Fudan University · Shanghai Jiaotong University
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.
Figures & tables
| COCO val2017 | CrowdHuman validation | VisDrone-DET validation | ||||||||||||||
| Family | Size | Tile | GRAIN | Tile | GRAIN | Tile | GRAIN | |||||||||
| Coarse | Coarse | Coarse | ||||||||||||||
| RF-DETR [ 46 ] (ICLR’26) | N | 47.90 | 50.54 | 51.75 | 52.39 | 53.59 | 44.18 | 46.37 | 47.96 | 50.08 | 50.82 | 23.12 | 28.16 | 29.96 | 28.87 | 30.48 |
| S | 52.65 | 54.49 | 55.33 | 55.73 | 56.24 | 45.27 | 47.32 | 48.91 | 51.13 | 51.82 | 23.38 | 28.63 | 30.46 | 29.46 | 30.84 | |
| M | 54.53 | 55.84 | 56.46 | 56.94 | 57.24 | 45.74 | 47.80 | 49.32 | 51.48 | 52.18 | 23.68 | 28.77 | 30.52 | 29.53 | 31.29 | |
| L | 56.37 | 57.06 | 57.36 | 58.02 | 58.08 | 46.88 | 48.65 | 50.08 | 52.15 | 52.76 | 25.11 | 29.68 | 31.24 | 29.97 | 31.23 | |
| CrowdHuman | VisDrone-DET | ||||||
| Method | AP | MR | JI | ms | AP | AP | ms |
| Tile [ 1 ] | 48.91 | 74.10 | 76.63 | 8.1 | 30.46 | 21.65 | 8.4 |
| DAHI † [ 52 ] | 49.00 | 73.60 | 76.68 | 13.1 | 29.35 | 20.87 | 14.7 |
| Dynamic Tiling † [ 41 ] | 50.26 | 73.53 | 77.61 | 9.9 | 30.04 | 21.64 | 9.8 |
| SAHI+CGS+SBA | 49.48 | 73.92 | 77.48 | 8.3 | 30.85 | 21.88 | 8.9 |
| DAHI+CGS+SBA | 51.55 | 71.65 | 78.61 | 17.6 | 30.71 | 22.81 | 21.2 |
| COCO | CrowdHuman | VisDrone-DET | ||||
| Pipeline | AP | Calls | AP | Calls | AP | Calls |
| Coarse | 52.65 | 1.00 | 45.27 | 1.00 | 23.38 | 1.00 |
| GRAIN | 56.24 | 3.00 | 51.82 | 3.00 | 30.84 | 3.00 |
| SAHI [ 1 ] | 41.67 | 5.00 | 19.31 | 5.00 | 26.59 | 5.00 |
| GRAIN | 56.49 | 5.00 | 52.07 | 5.00 | 31.97 | 5.00 |
| DAHI [ 52 ] | 32.28 | 10.62 | 26.12 | 9.42 | 25.86 | 11.62 |
| Pipeline | Calls | Pixels | COCO | CrowdHuman | VisDrone-DET |
| Coarse (native) | 1 | 1 | 52.65 | 45.27 | 23.38 |
| Side | 1 | 1.56 | 54.68 | 47.98 | 24.86 |
| Side | 1 | 2.25 | 56.18 | 49.51 | 24.69 |
| Side | 1 | 4 | 57.02 | 50.49 | 22.70 |
| Native side | 2 | 3.25 | 54.87 | 45.41 | 25.97 |
| Model one size up a | 1 | 1.27/1 | 54.53 | 45.74 | 23.68 |
| Modules | CrowdHuman | VisDrone-DET | |||||||||||
| LWS | CGS | SBA | PRF | AP | AP 50 | AP S | AP M | AP L | AP | AP 50 | AP S | AP M | AP L |
| 40.95 | 73.92 | 34.91 | 42.47 | 42.04 | 27.46 | 45.79 | 18.99 | 37.64 | 59.20 | ||||
| 43.20 | 76.68 | 32.62 | 42.97 | 45.96 | 25.73 | 43.87 | 16.71 | 37.57 | 59.14 | ||||
| 43.26 | 75.80 | 37.86 | 44.31 | 44.26 | 27.76 | 46.11 | 20.03 | 37.05 | 60.07 | ||||
| 43.61 | 75.55 | 36.41 | 42.19 | 46.26 | 27.78 | 46.13 | 19.46 | 37.76 | 60.32 | ||||
| 46.38 | 78.47 | 40.53 | 45.83 | 48.04 | 27.89 | 46.37 | 20.34 | 37.07 | 60.04 | ||||
| Check | COCO | CrowdHuman | VisDrone-DET |
| Spearman, all / fixed | 0.98 / 0.98 | 0.96 / 0.95 | 0.98 / 0.98 |
| AUROC, CGS / static | 0.74 / 0.61 | 0.75 / 0.58 | 0.73 / 0.57 |
| LWS / exact optimum | 0.993 | 0.984 | 0.996 |
| SBA gain over quota | +0.77 | +2.57 | +0.26 |
| Call Gini / uncropped | 0.75 / 62% | 0.74 / 60% | 0.40 / 27% |
| p95 (ms), / cap 4 | 24.9 / 14.6 | 26.4 / 17.0 | 17.5 / 17.5 |
Appendix figures & tables24 assets
Supplementary material from the paper’s appendix.
Appendix
| Min. | Max. | Grid | |
| Benchmark | (%) | (%) | (%) |
| COCO | 99.69 | 3.80 | +0.91–2.95 |
| CrowdHuman | 99.87 | 0.29 | +0.49–2.47 |
| VisDrone-DET | 99.97 | 0.04 | +0.86–2.30 |
| Solver Variant | Pool & Local Search | Budget Rule | Formal Bound | Empirical Guarantee and Validation |
| Idealized Fixed-Pool Solvers | ||||
| Exact Uncapped Greedy | Fixed , exact gain | Monotone submodular floor in Proposition 1 | ||
| Exact Capped Greedy | Fixed , exact gain | Separable partition floor in Proposition 3 | ||
| Deployed Discrete and Streaming Solvers | ||||
| Offline GRAIN (LWS+SBA) | Nominal sweep, rounded | Proposition 2 , with in Table 7 | ||
| Capped GRAIN | Nominal sweep, rounded | – | to p95 and at cap in Figure 12(a) | |
| COCO val2017 | CrowdHuman validation | VisDrone-DET validation | |||||||||||
| Family | Size | Coarse | Tile | Coarse | Tile | Coarse | Tile | ||||||
| RF-DETR (ICLR’26) | N | +4.49 0.20 | +5.69 0.22 | +1.85 0.18 | +1.84 0.16 | +5.90 0.18 | +6.64 0.18 | +3.71 0.11 | +2.86 0.09 | +5.75 0.25 | +7.36 0.26 | +0.71 0.23 | +0.52 0.21 |
| S | +3.08 0.17 | +3.60 0.19 | +1.23 0.14 | +0.91 0.13 | +5.86 0.18 | +6.55 0.19 | +3.81 0.12 | +2.91 0.10 | +6.08 0.27 | +7.47 0.28 | +0.82 0.26 | +0.39 0.22 | |
| M | +2.41 0.15 | +2.72 0.16 | +1.10 0.12 | +0.79 0.13 | +5.74 0.18 | +6.44 0.19 | +3.67 0.12 | +2.86 0.10 | +5.84 0.26 | +7.61 0.28 | +0.75 0.23 | +0.77 0.19 | |
| L | +1.66 0.13 | +1.72 0.14 | +0.96 0.10 | +0.72 0.10 | +5.27 0.18 | +5.88 0.18 | +3.50 0.11 | +2.68 0.09 | +4.85 0.26 | +6.12 0.29 | +0.28 0.23 | 0.01 0.18 | |
| (a) CrowdHuman Validation | |||||
| Pipeline | AP | MR | AP | MR | |
| Coarse | 0 | 45.27 | 44.44 | 46.85 | 44.17 |
| Tile [ 1 ] | 1 | 47.32 | 40.81 | 48.81 | 40.41 |
| GRAIN | 1 | 51.13 | 36.22 | 53.03 | 35.45 |
| Tile [ 1 ] | 2 | 48.91 | 39.26 | 50.53 | 38.77 |
| AP@100 ( AP) | ||||
| Benchmark | Policy | Overlap (%) | ||
| COCO | One-shot | 55.73 | 56.24 | 100.0 |
| Confirm. | 55.73 (+0.01 0.03 ) | 56.31 (+0.07 0.04 ) | 86.3 | |
| Expand | 55.73 (+0.01 0.03 ) | 56.27 (+0.03 0.05 ) | 83.6 | |
| CrowdHuman | One-shot | 51.13 | 51.83 | 100.0 |
| Confirm. | 51.20 (+0.08 0.03 ) | 51.84 (+0.01 0.03 ) | 69.9 | |
| Pipeline | Calls | AP | AP | AP |
| COCO val2017 | ||||
| Coarse | 1.0 | 31.61 | 58.04 | 73.00 |
| SAHI [ 1 ] | 5.0 | 30.93 | 48.65 | 56.22 |
| DAHI [ 52 ] | 10.6 | 32.58 | 36.52 | 38.92 |
| Dynamic Tiling [ 41 ] (full) | 11.0 | 38.34 | 51.28 | 45.13 |
| Dynamic Tiling [ 41 ] (tiles) | 10.0 | 39.36 | 41.78 | 10.54 |
| (a) VisDrone-DET Dynamic Crop Batching (Mean / p95 ms) | |||
| Pipeline (Budget) | Static | Batched ( ) | Speedup |
| Tile ( ) | 3.17 / 3.29 | 1.86 / 1.91 | |
| GRAIN ( ) | 3.17 / 4.75 | 1.86 / 2.41 | |
| Tile ( ) | 4.74 / 4.77 | 2.70 / 2.74 | |
| GRAIN ( ) | 4.75 / 6.47 | 2.71 / 3.39 | |
| GRAIN ( , cap ) | 4.74 / 6.46 | 2.71 / 3.37 | |
| (a) RF-DETR-S Orthogonal Decoupling of Budget Control and Squeeze Priors (AP@100 ) | ||||||||
| COCO | CrowdHuman | VisDrone-DET | ||||||
| Deployment Regime | Budget Controller | Squeeze Prior | ||||||
| Offline reference | Global SBA ( ) | Test collection | 55.73 | 56.24 | 51.13 | 51.83 | 29.46 | 30.84 |
| Causal (prefix squeeze) | Causal quantile | Stream prefix | 55.75 | 56.19 | 50.87 | 51.65 | 29.47 | 30.90 |
| Micro-batch (GRAIN) | Block SBA ( ) | Frozen train | 55.77 | 56.25 | 51.02 | 51.70 | 29.31 | 30.61 |
| Causal stream (GRAIN) | Causal quantile | Frozen train | 55.75 | 56.19 | 50.87 | 51.65 | 29.29 | 30.68 |
| Parameter / Module | Frozen Protocol Value and Rule |
| Stage I: Planning (SCP) and Budget Controllers | |
| Target scale | , , , and px on COCO, CrowdHuman, VisDrone-DET, and AI-TOD-v2 |
| Zoom lattice | for with -window origin step, border-clipped |
| Coarse floor | , with planner saturation cutoff |
| Offline / online budget | with cap , and online window , warmup , horizon , cap |
| Stage II: Fusion (PRF) and Tiling Baseline | |
| Symbol | Definition | Unit / Domain | Reference |
| 1. Collection Geometry, Budgets, and Resolution-Deficit Surrogate | |||
| Image count, nominal per-image crop budget, and integer collection call allowance . | count, calls/img, calls | Section 3 | |
| Native resolution of image and fixed input canvas of the frozen detector . | native / input px | Appendix A.1 | |
| Coarse box, confidence score, effective input side length, and domain half-saturation scale. | box, , input px | Eq. ( A.1 ) | |
| Confidence salience , Hill support , and deficit weight . | dimensionless | Eq. ( A.2 ) | |
| Inward internal-edge margin and contracted interior positive region of crop window . | native px, region | Eq. ( A.3 ) | |
| COCO | CrowdHuman | VisDrone-DET | ||||
| Planner Rule | ||||||
| No residual ( ) | 53.16 | 53.27 | 46.37 | 46.85 | 23.87 | 24.02 |
| Hard IoU veto ( ) | 54.10 | 54.48 | 48.45 | 49.61 | 25.33 | 26.76 |
| Hard IoS veto ( ) | 55.49 | 56.03 | 50.47 | 51.30 | 28.01 | 29.71 |
| Continuous (GRAIN) | 55.73 | 56.24 | 51.13 | 51.82 | 29.46 | 30.84 |
| Paradigm | Representative Works | Frozen Weights | Black-Box Inputs | Shared Budget | Aligned Fusion | Parallel Batching |
| High-res. detectors | FPN [ 28 ] , DEIM [ 17 ] , SET [ 53 ] , BDNet [ 13 ] , PaQ-DETR [ 21 ] , YOLO-Master [ 29 ] | – | ||||
| Uniform tiling | Power of Tiling [ 54 ] , SAHI [ 1 ] , ASAHI [ 65 ] | |||||
| Adaptive tiling | DAHI [ 52 ] , DAASD [ 30 ] , Dynamic Tiling [ 41 ] | |||||
| Proposal / attn. gating | ROI-Gated SAHI [ 45 ] , ViCrop-Det [ 57 ] | |||||
| Learned zoom heads | ClusDet [ 63 ] , DMNet [ 25 ] , QueryDet [ 62 ] , CZ Det [ 34 ] | |||||
| Sequential RL zoom | Dynamic Zoom-in [ 11 ] , PatchDrop [ 55 ] , AdaZoom [ 61 ] , ZoomEarth [ 32 ] |
Object Detection
Object detection locates and classifies objects in images or video, balancing localization accuracy, robustness, and inference speed.
See all 696 papers