Context as Filter, Not Signal: Top-Down Fusion for Tiny Objects

Detectors find small things by combining two kinds of feature maps. Early, high-resolution layers still contain the few pixels of a distant person or car. Deep, low-resolution layers know what kind of scene the image shows. The standard way to combine them, a feature pyramid network, upsamples the deep map and adds it to the shallow one. For a target eight pixels wide this addition is harmful. Each deep activation summarizes a large patch of mostly background, so adding it pollutes the very locations where the tiny object's signal lives. Effective Fusion Factor in FPN for Tiny Object Detection showed this directly: turning the deep contribution down with a single dataset-level scalar improves tiny-person detection. The same deep context is still needed to reject false positives, which is why that paper attenuates the deep pathway rather than removing it.

We propose to keep the context but change how it enters the shallow map. The deep, globally informed features should never be added to the shallow features. They should only choose the local filter applied to the shallow features at each location. Concretely, the deep map predicts the weights of a small spatially varying convolution, one whose weights differ from pixel to pixel instead of being shared across the image. That convolution then runs over the shallow high-resolution map. Context can decide "sharpen here, smooth there," but it cannot write its own activations over the target's pixels.

A second benefit follows. Global reasoning only has to happen on the coarsest map, where full softmax attention is cheap. The high-resolution stage then costs time linear in pixel count. This removes the need for linear or windowed attention at high resolution, which is what current tiny-object systems rely on.

Core Claim

Our central hypothesis is that for objects of about 20 pixels or fewer, top-down fusion should be multiplicative through filters rather than additive through features. Let $C_i$ be the shallow lateral feature map at pyramid level $i$, and let $Z$ be the coarsest map after full self-attention. Let $U$ denote bilinear upsampling, and let $\Omega$ be a $K \times K$ neighborhood. Standard fusion computes $P_i = L(C_i) + \alpha\, U(P_{i+1})$, where $L$ is a $1\times1$ convolution and $\alpha$ is the fusion factor. We replace this with

$$P_i(x) = \sum_{\delta \in \Omega} \Big( \sum_{b=1}^{B} a_b(x)\, W_b[\delta] \Big)\, C_i(x+\delta), \qquad a(x) = \mathrm{softmax}\big(h([U(Z)(x),\, C_i(x)])\big).$$

Here the $W_b$ are $B$ learned depthwise basis kernels, one of which is initialized as the identity. The coefficients $a(x)$ are predicted per pixel by a small network $h$ from the upsampled global context and the local shallow feature. The output at $x$ depends linearly on the shallow neighborhood alone; context only selects the mixture.

Storing $B$ coefficients per pixel, rather than a full $K^2 C_{in} C_{out}$ kernel, avoids the memory blow-up that limits naive per-pixel kernels. The basis-mixing form follows the filter-space interpolation used by DISK and the observation from FDConv that diverse, non-redundant bases matter more than many of them. To keep the bases spectrally distinct, we initialize them from disjoint frequency bands in the manner of FDConv. Attention cost is quadratic only in the coarse token count $N/s^2$, where $s$ is the stride of the coarsest level. At stride 32 on an 800×800 input this is 625 tokens. Every finer level costs $O(N K^2)$.

Relation to Prior Work

Several papers motivate the gap. Effective Fusion Factor in FPN establishes the pollution problem, but its remedy is a global scalar fixed from dataset statistics. Our operator is spatially varying and per image, and it removes additive injection rather than scaling it. Scale Match and the normalized Wasserstein distance work in Detecting tiny objects in aerial images fix pre-training scale mismatch and label assignment, respectively. We treat both as orthogonal training choices applied to every model.

Spatially variant filtering supplies the method. Unified Dynamic Convolutional Network for Super-Resolution found that predicted kernels learn to act as smoothers on flat noisy regions and as edge sharpeners on boundaries. That is exactly the behavior we want around tiny targets in clutter. LIP applies a related idea to pooling, using learned importance maps that improved COCO small-object AP for Faster R-CNN from 21.9 to 24.0. LIP's maps are local only; ours are conditioned on global context, and they act in the fusion step rather than in downsampling.

The closest work is OverLoCK. It also lets a coarse "overview" network drive dynamic kernels in a "focus" network. It differs from our proposal in three ways. It is a general-purpose backbone evaluated on ImageNet, COCO and ADE20K with fixed downsampling. Its context is mixed into the focus stream as part of a full context-mixing design. And it does not ask whether additive context harms targets of a few pixels. Our contribution is a narrower and testable claim about the fusion step in a detector neck: forbid the additive path and measure whether pollution disappears.

The tiny-object transformers MGDFIS and Dome-DETR constrain the design.

  • MGDFIS pays for global context at high resolution with linear attention and uses static directional convolutions for detail.
  • Dome-DETR pays for it with density-masked window attention, and its latency varies with image content.

We argue that neither cost is necessary if global context is computed once at coarse resolution and passed down as filter choices. DQ-DETR warns that tiny-object specialization can hurt general detection: it reports 50.2 versus DINO's 51.3 mAP on COCO. We therefore treat COCO as a required no-regression check.

Research Program

We build the operator above as a drop-in replacement for every top-down fusion step of an FPN neck. Three things stay unchanged: the backbone, the full softmax self-attention block on the coarsest level, and the detection heads. A fused CUDA kernel for the basis mixing makes the latency claim measurable rather than just a FLOP count.

The work has three stages, in order of importance.

The first is a mechanistic study of pollution. We define the deep-pathway contribution at ground-truth tiny-object centers as the change in the classification score when the deep input is replaced by its spatial mean. We compare this quantity across additive FPN, the fusion-factor variant, a learned per-pixel gate, and our operator.

The second is detection accuracy under matched compute.

The third is a synthetic test, described below, in which the target's local pixels are held fixed while the distant background changes.

Baselines

The naive reference is a RetinaNet detector with a standard FPN, $\alpha=1$, trained on TinyPerson. Effective Fusion Factor reports 46.56 $AP^{tiny}_{50}$ for this configuration. The strongest fusion-level competitor on that benchmark is the same detector with the statistical fusion factor plus Scale Match. That paper reports 52.56 $AP^{tiny}_{50}$, against 48.34 with the fusion factor alone. We reproduce both under our training schedule and also apply Scale Match to our model. Beating the baseline means exceeding the reproduced fusion-factor-plus-Scale-Match number by more than the seed-to-seed spread over three seeds.

On AI-TOD-v2, the strongest system in the file is Dome-DETR, with 34.6 AP for Dome-DETR-L. It also reports 39.0 AP on VisDrone. DQ-DETR reports 30.2% mAP on AI-TOD-v2 and 37.0% on VisDrone. For the detector-transformer comparison, we insert our neck into the D-FINE detector that Dome-DETR builds on and leave the rest of D-FINE unchanged. We then compare at matched GFLOPs and report measured latency, together with its variance across images. Matching Dome-DETR's AP with lower and constant latency would count as a win, even without exceeding it.

Two ablations isolate the key ingredient, each using the same context network $h$ and the same parameter count:

  • Spatial-gate ablation: context produces a per-pixel sigmoid gate on the additive deep features.
  • Static-basis ablation: the coefficients $a(x)$ are replaced by image-level averages, so the kernel no longer varies across space.

All models share the backbone, schedule, augmentation, normalized Wasserstein label assignment, and a fixed tuning budget of the same number of learning-rate and weight-decay trials.

Why not just…?

Why not just make the fusion factor a learned per-pixel gate? This is the real threat. It is far simpler, and it might capture most of the gain. A gate can only scale deep activations; it still adds them at the target's pixels, and it cannot reshape how the shallow map is filtered. Our operator does both. The gate ablation above is constructed to have identical inputs and parameters. If it matches our operator on TinyPerson and AI-TOD-v2, and it equally reduces the measured deep contribution at tiny-object centers, then the "filter, not signal" claim is false and we would report the gate as the finding.

Why not just keep a stride-4 level, upsample the input, or tile the image? DPNet describes upsizing as a computational trap that also raises the share of background negatives. That is an argument, not a compute-matched result on our benchmarks. We therefore include a P2-level FPN and a 1.5× input-scale baseline at matched GFLOPs. If they win, the extra machinery is not justified.

Why not just use linear or windowed attention at high resolution, as MGDFIS and Dome-DETR do? Those methods do work. Dome-DETR's 34.6 AP on AI-TOD-v2 is the bar. Our claim is not that they fail. It is that high-resolution attention is unnecessary once context is passed down as filters. The matched-latency comparison settles this. A clear loss in AP at equal latency would mean that high-resolution token interaction carries information that coarse context plus local filtering cannot recover.

Why not just use CondConv- or ODConv-style dynamic convolution in the neck? These methods mix whole kernels per image, not per pixel. FDConv also reports that they carry heavy parameter overhead and redundant experts. The static-basis ablation is the per-image version of our operator, and it tests this alternative directly.

Decisive Checks

The first check is a synthetic paste test. We paste AI-TOD-v2 tiny instances into backgrounds whose content beyond a 32-pixel radius is varied, from empty water to dense urban clutter, while the local 32-pixel neighborhood is held fixed. Under additive fusion, recall should fall as distant clutter rises. Under our operator, recall should be largely flat, because distant content can change the filter but cannot inject activations. If our operator degrades just as much, the hypothesis fails regardless of benchmark AP.

The second check uses the deep-contribution measure from the mechanistic study. It should be markedly smaller for our operator than for additive fusion and the gate, while background false positives should also fall. Lower false positives would show that context is still being used.

The third check is no regression on COCO 2017 $AP_l$ and overall AP relative to the same detector with standard FPN. DQ-DETR's drop on COCO is the failure mode we must avoid. Together these three checks decide whether the result is a mechanism or a benchmark gain.