Teaching a Network's Downsampling Layers What to Keep, Without Labels

Small objects such as people on a beach seen from 200 meters, vehicles in aerial images, or infrared targets a few pixels wide tend to disappear early in a convolutional network. The cause is the stride-2 layers that halve the image resolution every few blocks. In principle a stride-2 convolution with enough output channels can keep all the information in its input. In practice its weights are learned from labels, and when labels are scarce, as they are in aerial, infrared and inspection imagery, those weights settle on the smoothing behaviour that suits large objects. We propose to train these early downsampling layers in a richer form: several parallel linear branches, including fixed edge filters and a lossless pixel-rearrangement branch. We teach that form from unlabeled in-domain images, using a pretext task that rewards keeping tiny pasted patches findable after downsampling. At deployment the branches are folded algebraically into one ordinary strided convolution, so the deployed network costs exactly what a plain network costs.

The central bet is that, for tiny-object detection under label scarcity, much of the accuracy lost to resolution degradation can be recovered with no added inference cost. Two things at training time should do the recovering. The first is structural re-parameterization: a training-time network with extra parallel linear branches that collapses into a single-path network for inference. The second is a self-supervised objective aimed specifically at the downsampling layers. Existing methods recover tiny-object accuracy either by spending inference compute, through delayed downsampling or content-aware pooling, or by spending labels. This proposal tests whether label-free training signal can substitute for both.

Core Claim

A stride-2 downsampling block trained as a sum of linear branches and pre-trained with a tiny-instance localization pretext on unlabeled target-domain images will collapse into one 3×3 stride-2 convolution. Placed in an otherwise standard detector, it should close a substantial part of the gap to accuracy-oriented but slower tiny-object backbones at 1–20% label budgets. We also make a falsifiable prediction about where the gain comes from. The benefit of the multi-branch training form should be largest at the smallest label fractions and should shrink as labels increase. If instead the benefit is constant across label budgets, it is an ordinary optimization effect of the kind RepVGG already reports, and not a prior that substitutes for labels.

Why This Gap Is Real

Three bodies of work frame the problem. Work on resolution degradation shows that early downsampling is where tiny objects die. Rethinking the backbone architecture for tiny object detection delays downsampling ("bottom-heavy" backbones) and gains +3.51% mAP on TinyPerson over ResNet-50, but it keeps large feature maps through many layers, which costs memory and latency. LIP predicts a spatial importance map with a small sub-network and uses it to weight features before pooling, raising COCO small-object AP from 21.9% to 24.0%. DPNet predicts the downsampling factor for each input. Both LIP and DPNet rely on input-dependent nonlinear weighting, which cannot be folded away at inference. These papers motivate the proposal: they locate the loss in the downsampling layers. They also constrain it, because we must concede that a folded linear downsampler cannot be content-adaptive the way LIP is. Our claim is about what the fixed filter learns, not about matching LIP's adaptivity.

Structural re-parameterization supplies the method. RepVGG folds parallel 3×3, 1×1 and identity branches, each with its batch normalization, into one 3×3 kernel. EFDN adds fixed Sobel and Laplacian branches that still fold into one 3×3 convolution, but it is evaluated only on super-resolution quality. PKINet-v2 folds strip and square kernels into a 19×19 depthwise convolution for aerial detection, and RepSegNet does the same for medical segmentation. All of these re-parameterize stride-1 feature blocks, and all are trained with full labels. None treats the stride-2 layers as the target of re-parameterization, and none asks whether the extra branches help more when labels are scarce.

Label-efficient learning supplies the training signal. InsLoc shows that image-level self-supervised learning misaligns with detection, and fixes this by pasting instances onto backgrounds and pooling their regions during pre-training. It gains 3.3 AP over MoCo-v2 on 10% COCO, but it was never tested on objects under 20 pixels. Its region matching also relies on box overlap (IoU), which Detecting tiny objects in aerial images shows collapses for tiny boxes: a 3-pixel shift moves IoU from 0.54 to 0.14. That paper's remedy, Normalized Wasserstein Distance, treats each box as a 2D Gaussian and compares the distributions. Scale Match shows that pre-training on the wrong object-size distribution costs about 4 AP50 on TinyPerson, but it uses labeled pre-training. We reuse InsLoc's paste-and-localize idea and the Wasserstein matching, and we shrink the instances to the target domain's size distribution. Scale Match uses labels to align scale; we do the alignment without labels.

Research Program

The building block is a downsampling unit that replaces each stride-2 convolution in the first two or three stages of a ResNet-style or RepVGG-style backbone. During training it has five parallel linear branches, each followed by batch normalization, summed before a single ReLU. The first is a learned 3×3 stride-2 convolution. The second is a learned 1×1 stride-2 convolution, zero-padded to 3×3. The third is a 2×2 stride-2 convolution: rearranging each 2×2 pixel neighbourhood into channels and mixing them with a 1×1 convolution is exactly this, and it can lose no information. Because its footprint lies inside the 3×3 stride-2 window, it zero-pads cleanly. The fourth is a fixed 3×3 average filter at stride 2. The fifth is a fixed Sobel/Laplacian depthwise filter at stride 2 followed by a learned 1×1 convolution, a composition of two linear maps that folds into one dense 3×3 stride-2 kernel. Every branch is linear up to the shared nonlinearity, so the block folds exactly by the batch-normalization fusion and kernel summation rules that RepVGG uses. We will verify the equivalence numerically on every model.

Pre-training uses only unlabeled images from the target domain's training split. Following InsLoc, we paste random image crops onto other unlabeled images as pseudo-instances. Unlike InsLoc, we rescale these crops to sizes drawn from the target domain's object-size distribution, for example 6–20 pixels for AI-TOD-v2. That distribution is estimated from the labeled subset, the only label use, and we will also report a version that uses a fixed range. The network must solve two tasks from the stride-8 features alone: discriminate between pasted instances, and regress each instance's location as a Gaussian. Predicted and true regions are matched by Normalized Wasserstein Distance rather than IoU. The full backbone is pre-trained this way, then folded or not folded according to the experimental arm, and then fine-tuned for detection at fixed label fractions.

The analysis has three parts. First, we measure how much tiny-object information survives each downsampling stage. We train linear probes that predict the presence and sub-cell offset of a pasted instance from the stage features, and compare probes across training forms. Second, we look at the folded kernels themselves: their frequency response, and how much energy they put into high frequencies compared with directly trained kernels. Third, we deliberately test whether the folded weights survive INT8 post-training quantization. RepVGG flags quantization fragility, and the fixed edge-filter branches widen the weight range, so this is a real risk for edge deployment.

Baselines

The naive reference point is a standard backbone with ImageNet-supervised initialization and plain stride-2 convolutions, fine-tuned with the same detector head at each label fraction. It anchors every comparison and costs the same at inference as our folded model.

The strongest existing method for the full-label tiny-object setting is NWD-RKA in DetectoRS from Detecting tiny objects in aerial images, which reports 24.7 AP on AI-TOD-v2. We use NWD-RKA label assignment in every arm, so it is a shared component, and our 100%-label result is compared against that 24.7 AP. For the label-scarce regime, the file has no reported AI-TOD-v2 or TinyPerson number at reduced labels: no reported result found on Lacuna for label-scarce tiny-object detection. The strongest label-efficient competitor is therefore InsLoc pre-training on a plain backbone, using the same unlabeled pool, the same number of pre-training epochs, and the same fine-tuning schedule. On TinyPerson the reference numbers are Scale Match's MSM at 47.29% AP50 and the bottom-heavy backbone's reported +3.51% mAP over ResNet-50. On NUDT-SIRST the reference is AEDNet's 82.77% IoU from AEDNet, which uses full masks and an unfolded multi-branch network.

The accuracy-for-compute competitors are a LIP-ResNet and a bottom-heavy ResNet-50. Both are given the same self-supervised pre-training and fine-tuning, so the only difference is the architecture's inference cost. We report accuracy against measured latency on a server GPU and on one embedded device. Beating them means matching their accuracy at the label fractions of interest while running at plain-network latency; slightly lower accuracy at much lower latency is a weaker, Pareto-style win, and we will report it as such.

Two ablations isolate the key ingredients. The first is the plain-convolution arm: a single learned 3×3 stride-2 convolution given the identical self-supervised pre-training. It has the same deployed architecture and the same training signal, only without branches. The second is the multi-branch arm trained with labels only, with no pre-training. Beating the first ablation means the training-time branches matter. Beating the second means the self-supervised signal matters. The label-fraction trend between the two tests the core prediction. All arms receive the same hyperparameter search budget, the same total GPU-hours including pre-training, and three seeds per cell.

Why not just…?

Why not just upscale the input or run a super-resolution model first? Enlarging inputs multiplies compute and, as DPNet reports, floods training with background negatives. Super-resolution networks also add latency: IMDN takes 0.092s per image even in the efficient-SR comparison of EFDN. We will still include a 2× bicubic-upscaled plain detector, matched on label fraction, and report its accuracy and latency. If it dominates at equal latency, our premise fails.

Why not just use InsLoc or MoCo pre-training on a standard backbone? This is the most serious threat. Domain-matched self-supervised pre-training alone may recover most of the gap, and the branches may add little. The plain-convolution ablation, which gets identical pre-training, is designed to settle exactly this question. If it matches our method at every label fraction, we will report that the contribution is the tiny-instance Wasserstein pretext and not the re-parameterization.

Why not just use a bottom-heavy backbone or LIP pooling and accept the cost? For server deployment that may well be the right answer. Our claim is restricted to the latency-matched regime, which is why these baselines are compared on an accuracy-versus-measured-latency plot and not on accuracy alone. If they reach their accuracy at only modest extra latency on the embedded device, the practical case for our method shrinks to the quantized, compute-limited setting.

Why not just rely on the feature pyramid's high-resolution levels? A feature pyramid recombines backbone features after downsampling has already happened. The bottom-heavy study's gain over ResNet-50-FPN suggests detail lost in early stages is not recovered there. All our arms include the pyramid, so any gain we report is on top of it.

Decisive Checks

The experiments run on AI-TOD-v2, TinyPerson and NUDT-SIRST at 1%, 5%, 10%, 20% and 100% of training labels, with the remaining training images used unlabeled. We report AP, AP at IoU 0.75, and the tiny-size breakdowns, or IoU, probability of detection and false-alarm rate for infrared. We also report latency in FP32 and INT8 on a GPU and an embedded device.

Four outcomes would decide the question. First, our method must beat the plain-convolution ablation by a margin that grows as labels shrink, and that margin must exceed seed variance. Second, our method must match bottom-heavy and LIP backbones within about one AP at 10% labels while running at plain-network latency. Third, the stage-wise probes must show more tiny-instance information surviving the folded downsampler than surviving a directly trained one. Fourth, accuracy must not drop materially after INT8 quantization. If the first check fails, re-parameterization is not acting as a label substitute and the proposal reduces to a pretext-task paper. If the fourth check fails, the deployment argument needs a quantization-aware variant before the method is useful.