Most vision backbones shrink their feature maps step by step. Every few layers, each 2×2 block of neighbouring features is fused into one. This is cheap and works well for large objects. For an object only six to twelve pixels wide, such as a distant vehicle in aerial imagery, a swimmer off a beach, or a hairline defect, each fusion averages the object's few informative features with background, and after two or three fusions the object is largely gone. Convolutional networks have a known partial fix. LIP: Local Importance-Based Pooling learns a per-location importance score and pools with those weights, which raised small-object detection AP on COCO from 21.9 to 24.0. That fix has only been trained with labels and only in convolutional networks. Hierarchical vision transformers, which are attention-based backbones that also shrink their maps in stages, still fuse uniformly. So do the efficient self-supervised pretraining methods built for them.
We propose to put learned importance pooling into the stage transitions of a hierarchical transformer pretrained with masked image modeling, and to train that pooling without labels. Masked image modeling means hiding most image patches and training the network to fill them in. The new ingredient is the training signal. After each fusion step, a tiny decoder must reconstruct the fine-detail band that the fusion would otherwise discard. That band is the Laplacian residual: the image at the finer scale minus its blurred, downsampled-and-upsampled version. The pooling is therefore rewarded for keeping exactly the information that uniform fusion loses. The weighting acts only inside each 2×2 group and outputs one feature per group, so the feature grid stays regular. This lets us keep the token-dropping speedups that make hierarchical masked pretraining affordable.
Core Claim
The claim has two halves. First, uniform stage-wise fusion is a measurable, avoidable cause of tiny-object failure in masked-pretrained hierarchical transformers. Second, it can be fixed during pretraining at almost no extra compute. Training importance pooling against a "reconstruct what you just threw away" target should improve tiny-object detection on AI-TOD-v2, TinyPerson and DIOR. The gain should exceed what the same pooling module yields when it is inserted only at supervised fine-tuning. Pretraining throughput should stay within a few percent of the unmodified backbone.
The grid-compatibility point is what makes the idea feasible. The research file correctly flags a tension: content-aware merging that drops or regroups tokens breaks the regular grids that hierarchical transformers need, and both HiViT and GreenMIM worked hard to make masked pretraining run on those grids. Importance-weighted aggregation sidesteps the tension because it changes only how a group is summarized, not which groups exist.
Research Program
We build on HiViT, which serves both as the method we modify and as the main constraint on the design. HiViT makes masked pretraining of a hierarchical model as cheap as plain MAE. It does this by replacing early windowed attention with per-token MLPs, so that every operation before the main stage stays inside a 16×16-pixel masking unit. Masked units can then be discarded at the input. Its two fusion steps, from 1/4 to 1/8 and from 1/8 to 1/16 resolution, act on 2×2 groups that lie inside a unit, so a learned weighting over each group is also unit-local and remains compatible with dropping. We replace each fusion with an importance-weighted pooling. For a 2×2 group $G$ of features $x_i$, a small linear scorer produces logits $s_i$, and the fused feature is
$$z_G = W \sum_{i \in G} \frac{e^{s_i}}{\sum_{j \in G} e^{s_j}}\, x_i ,$$
where $W$ is the usual projection that doubles the channel count. This is LIP's weighted local sum moved onto transformer tokens. The scorer adds well under 1% of parameters and FLOPs.
The training signal comes from the multi-stage idea in LocalMIM, which attaches one-block decoders to intermediate stages and supervises them locally, but we change what those decoders predict. LocalMIM's fine-to-coarse schedule asks upper stages for coarser targets. That actively tells the network detail may be discarded, which is the opposite of what tiny objects need. Instead, the decoder after fusion step $k$ reconstructs the Laplacian band lost at that step, $r_k = I_k - \mathrm{up}(\mathrm{down}(I_k))$, where $I_k$ is the image at the resolution just before the fusion. The decomposition is the one LapFlow uses to separate scale-specific detail, here used as a target rather than for generation. The decoder predicts $r_k$ for masked units, the standard reconstruction task. It also predicts $r_k$ for visible units, which forces the fused visible feature to carry the detail its four inputs held. The second term gives the scorer its most direct gradient. It is cheap because only about a quarter of units are visible. The final stage keeps HiViT's ordinary pixel target.
The main failure mode we must watch for is that the scorer learns to favour all high-frequency texture, such as waves, grass and roof tiles, rather than small objects, since texture also has a large residual. We treat this as an empirical question. If it occurs, we test one remedy: dividing $r_k$ by the local average residual energy, so that repetitive texture costs little to drop while isolated detail costs a lot.
Pretraining uses ViT-B-scale models. The data are ImageNet-1K plus, in a second setting, the unlabeled training images of DIOR and AI-TOD-v2, so that the scale gap documented by Scale Match for Tiny Person Detection is not baked in by the pretraining data alone.
Baselines
The naive reference point is HiViT-B with its standard masked pretraining and uniform fusion, trained on the same data, for the same epochs, at the same resolution and masking ratio. This isolates everything we add. Its reported numbers are 84.2% ImageNet-1K fine-tuning top-1 and 49.5 COCO box AP (HiViT). We found no reported small-object AP or AI-TOD-v2 result for HiViT on Lacuna, so we will measure those ourselves. Beating it means a clear gain in COCO small-object AP and AI-TOD-v2 AP, with ImageNet accuracy within 0.2 points and pretraining throughput within 5%.
The strongest efficient hierarchical competitor is LocalMIM on Swin-B. It reports 84.1% top-1 and a 6.4× speedup over GreenMIM, and LocalMIM-HOG reaches 49.5 ADE20K mIoU (LocalMIM). It is the strongest rival because it already supervises intermediate stages cheaply. If its HOG or pixel targets preserve small objects as well as our residual target does, our contribution reduces to the pooling alone. We rerun it on our data at matched GPU-hours. We also run GreenMIM on Swin-B as the method that keeps windowed attention (GreenMIM), which reports 85.1% top-1 for Swin-L.
On remote sensing, the strongest existing method is OCMIM. It reports 69.5% DIOR mAP, against 68.3% for scene-level masked pretraining and 56.1% for supervised pretraining, and 89.3% on NWPU VHR-10 (OCMIM). It uses an isotropic ViT plus an offline attention pass and object splicing. We compare against it both at its reported numbers and at matched total compute, with OCMIM's preprocessing pass counted in that compute. Beating 69.5 DIOR mAP without any guidance pass would be the headline result. Matching it at substantially lower total cost would still be meaningful.
For tiny-object detection we report against NWD-RKA, whose DetectoRS reaches 24.7 AP on AI-TOD-v2, and against Monotone Scale Match at 47.29% AP50 on TinyPerson (Scale Match). These use different detectors, so they serve as context rather than the controlled comparison. In our controlled runs we also use the NWD assignment in the detection head, so that gains are attributable to the backbone.
Three ablations isolate the key ingredient. The first uses importance pooling with HiViT's plain pixel target and no residual decoders, which tests whether masked reconstruction alone trains the scorer. The second keeps the residual decoders with uniform fusion, which tests whether the target alone helps. The third uses uniform pretraining with the importance scorer inserted only at fine-tuning, which is LIP's original supervised regime.
Why not just…?
Why not just add LIP-style pooling during supervised fine-tuning? This is the most serious threat. LIP's own gains came entirely from supervised training. If the fine-tuning-only ablation recovers most of the small-object gain, then the self-supervised part of our story is unnecessary and we will report it that way. Our reason to expect a gap is that downstream sets like TinyPerson, with 1,610 images, give too few labeled tiny objects to train a pooling module throughout a deep backbone. Pretraining also shapes all subsequent features around whatever survived the fusions. The low-label regime, where we fine-tune on 10% and 100% of AI-TOD-v2, is where the gap should be largest and is the decisive test.
Why not just feed higher-resolution images or use finer patches? Upsampling the input makes a 6-pixel object 12 pixels wide and postpones its dilution by one stage. Its cost grows with the square of the scale factor, and the gain fades as soon as the object reaches the fused stages. We test this directly by pretraining and fine-tuning HiViT at 1.5× input side length, with FLOPs matched against our model run at native resolution, and comparing small-object AP per unit of compute. If upsampling wins at equal FLOPs, the idea is not worth its complexity.
Why not just use object-centric masking as OCMIM does? OCMIM's attention-guided masking does target small foreground objects. However, it needs a pretrained ViT to produce attention maps and a cropping and splicing pipeline, and it does nothing about the dilution that happens inside the backbone. The approaches are complementary rather than exclusive. We run OCMIM-style splicing on top of both HiViT and our model, to check whether the backbone fix still adds value once the data side is handled.
Why not just use LocalMIM's HOG targets at intermediate stages? HOG, a classic edge-orientation descriptor, is already a detail-oriented target. The difference is that it describes the remaining resolution, whereas our target describes what was lost at the fusion. The LocalMIM rerun and our second ablation settle whether this distinction matters.
Decisive Checks
The first check is mechanistic, and it runs before any large benchmark. On the AI-TOD-v2 and DIOR validation sets, we measure how much of each fused feature's importance weight falls inside annotated tiny boxes, compared with background regions of matched residual energy. We also probe how well a linear classifier can recover tiny-object presence from stage-3 features, compared with uniform fusion. If the scorer merely tracks texture, normalizing the target is tried once. If it still fails, the project stops there.
The second check is the controlled detection comparison. On COCO small-object AP, AI-TOD-v2 AP and its very-tiny and tiny breakdowns, TinyPerson AP50 and AP75, and DIOR mAP, we compare our model with the naive HiViT reference, LocalMIM and the three ablations. All use the same detector, schedule and pretraining GPU-hours. We report pretraining wall-clock time and peak memory alongside accuracy.
The third check guards against regressions: ImageNet-1K fine-tuning and linear probing, and ADE20K mIoU. These confirm that preserving detail does not cost semantics. Linear probing is the regime where local reconstruction objectives have been reported to hurt in LoMaR.
References
- LIP: Local Importance-Based Pooling
- HiViT: Hierarchical Vision Transformer Meets Masked Image Modeling
- Green Hierarchical Vision Transformer for Masked Image Modeling
- Masked Image Modeling with Local Multi-Scale Reconstruction
- LapFlow: Laplacian Multi-scale Flow Matching for Generative Modeling
- Scale Match for Tiny Person Detection
- Object-Centric Masked Image Modeling-Based Self-Supervised Pretraining for Remote Sensing Object Detection
- Detecting tiny objects in aerial images: A normalized Wasserstein distance and a new benchmark
- Efficient Self-supervised Vision Pretraining with Local Masked Reconstruction