When a vision transformer pre-trained on whole images is fine-tuned to detect objects, most of the training signal comes from medium and large objects, because they are easier to match to boxes and produce steadier losses. This proposal asks whether that imbalance leaves a measurable trace inside the network. We suspect that fine-tuning narrows the set of feature directions the backbone uses to describe the image regions around tiny objects, and that this narrowing happens faster than it does for large objects. We will measure it with a size-stratified version of effective rank, a simple count of how many feature directions a set of activations actually uses. If the narrowing is real and comes early, it explains why small-object accuracy stalls. It also suggests a direct fix: a regularizer that keeps the small-object feature space from collapsing during fine-tuning.
The opportunity comes from a gap between two literatures. Work on training dynamics has built good spectral tools for tracking how representations expand and compress. Almost all of it studies one-dimensional token sequences in language models. Detection research has built many multi-scale architectures and losses, but, as the research file notes, it has "little foundational understanding of how internal activations encode multiple scales simultaneously." We apply the first literature's tools to the second's hardest failure mode, and we commit in advance to a test that could show the geometry is only a readout and not a lever.
Core Claim
Our first claim is a measurement: in a plain vision transformer fine-tuned as a detector, the effective rank of token features sampled from small-object regions falls with fine-tuning steps in the late backbone layers. It falls more sharply than the rank of features from large-object regions. The small-object drop comes before small-object average precision (AP_s) stops improving.
Our second claim is an intervention: a regularizer that places a floor under that stratified rank will raise AP_s without costing large-object accuracy. It should beat approaches that act only on the loss or only on which layers are updated.
Both claims can fail independently, and we treat the first as valuable even if the second fails.
Relation to Prior Work
Three detection papers supply the setting and motivate the question, but none looks inside the representation.
Exploring Plain Vision Transformer Backbones for Object Detection (ViTDet) builds its whole multi-scale pyramid from the final stride-16 feature map of a masked-autoencoder-pretrained ViT, and it still competes with hierarchical backbones. It never asks what that single map retains about small objects after fine-tuning. We use ViTDet as our testbed.
AlignDet diagnoses data, model and task mismatches between pre-training and detection. It fixes them with an extra box-level pre-training stage in which the backbone is frozen. It reports gains such as +3.3 mAP on Faster R-CNN, but provides no layer-wise or scale-wise geometric account.
Multi-Scale Cross Distillation (MSCD) distills 0.5x, 1.0x and 1.5x branches into a single-scale aerial detector. It explicitly leaves open whether this changes feature rank.
Our proposal differs from all three because it studies scale as a property of the representation's geometry during fine-tuning, not as an architectural add-on.
Two papers explain why small objects might be the ones that suffer, and so they shape the hypothesis. Finding Tiny Faces argues that tiny objects are recognized mostly from their surroundings. For that reason we measure rank separately on tokens inside a box and on a ring of context tokens around it. ARUBA treats size imbalance as an ordered long-tail problem and reweights the regression loss toward small targets, gaining 0.99% mAP over ReDet on DOTA-v1.0. ARUBA is the loss-side competitor to our geometry-side intervention.
The methods come from the dynamics literature.
- Measurement tool. RankMe defines effective rank as the exponentiated entropy of normalized singular values. It predicts transfer quality to within 0.5% of an oracle across 110 self-supervised models.
- Direction of change. Tracing the representation geometry of language models from pretraining to post-training shows that different post-training objectives push rank in opposite directions, and that compression can narrow exploratory capacity.
- Where change happens. What Happens To BERT Embeddings During Fine-tuning? shows that fine-tuning changes mostly the top layers, and that the depth that must be tuned depends on the task.
- Possible harm. Diagnosing Transformers finds that fine-tuning on imbalanced data distorts pre-trained geometry.
Together these suggest that scale-imbalanced detection fine-tuning could compress late layers unevenly.
Two findings constrain the design:
- RankMe is reliable mainly for relative comparisons within one architecture family.
- RankMe can plateau while downstream accuracy keeps moving.
We therefore compare only within one backbone, use fixed sample counts, and never rely on rank alone as a model-selection signal.
Research Program
The measurement. For a backbone layer $l$, a fine-tuning step $t$ and an object-size bin $s$, we collect a matrix $Z_{l,t,s}$. It contains $n$ token feature vectors (with $n$ fixed across bins, since effective rank grows with sample count) taken from validation-image tokens that fall inside ground-truth boxes of bin $s$. A parallel matrix $Z^{ctx}_{l,t,s}$ holds tokens from a ring one box-width wide around each box. We then compute
$$R_{l,t,s} = \exp\Big(-\sum_k p_k \log p_k\Big), \quad p_k = \frac{\sigma_k(Z_{l,t,s})}{\sum_i \sigma_i(Z_{l,t,s})},$$
where $\sigma_k$ is the $k$-th singular value of the centered matrix.
We use the COCO size bins (small, medium and large at $32^2$ and $96^2$ pixels) together with finer bins for DOTA. To rule out trivial explanations, we compute the same statistic after two controls: normalizing each token to unit length, and matching the number of distinct images across bins.
The analysis. We save many checkpoints during ViTDet fine-tuning and track $R_{l,t,s}$ at every layer, alongside AP_s, AP_m and AP_l. The questions are:
- Do the small-bin and large-bin trajectories diverge?
- At which depth does the divergence appear?
- Does it hold for interior tokens, context tokens, or both?
- Does the small-bin decline come before the AP_s plateau across random seeds?
Timing is essential here. A drop that comes after AP_s has already plateaued would be a symptom, not a cause.
The intervention. We add a penalty during fine-tuning:
$$\mathcal{L}_{floor} = \lambda \, \max\big(0, \; \rho R_{l,0,s} - R_{l,t,s}\big).$$
It penalizes the small-bin rank at a chosen layer $l$ for falling below a fraction $\rho$ of its value at the pre-trained checkpoint. The rank is computed on a minibatch of small-object tokens, and gradients pass through a differentiable singular value decomposition.
The analysis stage decides which layer $l$ to target. Region choice is fixed in advance: interior versus context is set by whichever showed the larger decline. The medium and large bins receive no constraint, so any drop in AP_l would show up as a cost.
Baselines
The naive reference is standard ViTDet fine-tuning with its default recipe and a ViT-Base backbone pre-trained with masked autoencoding. We run it with at least three seeds. It sets both the baseline AP numbers and the reference geometry trajectory.
The strongest published system in the file is full-scale ViTDet, which reports 61.3 AP on COCO with ViT-Huge (ViTDet). We will not match that compute. All our comparisons are at ViT-Base with identical schedules, and we cite 61.3 only as context. The file reports no ViTDet AP_s figure and no ViTDet result on DOTA (no reported result found on Lacuna for either). Our own runs therefore define the within-study baseline.
On DOTA-v1.0 the reported points of comparison are RoI Transformer at 69.56 mAP (RoI Transformer) and MSCD's +6.50 mAP over that baseline. We place our oriented ViTDet runs relative to these numbers but do not claim a head-to-head comparison.
Competitor 1: loss reweighting (ARUBA). We apply ARUBA on top of the same ViTDet recipe. It is the most direct competitor, because it attacks the same imbalance through the loss instead of the geometry.
Competitor 2: tuning depth. This is a sweep over how many backbone layers are frozen and over the per-layer learning-rate decay. It follows the finding in Merchant et al. that tuning depth matters and depends on the task.
Competitor 3: multi-scale training. We use weight-shared 0.5x/1.0x/1.5x branches in the style of MSCD. Its compute is matched by giving the other methods the same number of image passes.
Fairness rules. Every method gets the same data and the same number of training steps. Each gets the same hyperparameter search: eight configurations tuned on a held-out split of the training set, never on validation.
Ablations of the regularizer. Three ablations isolate its key ingredient:
- The same rank floor applied to large-object tokens instead.
- The floor applied to all tokens without size stratification, equivalent to a plain RankMe regularizer.
- A norm-matching penalty with no spectral term, which tests whether keeping feature scale alone does the work.
What counts as success. The regularizer beats the field if it improves AP_s over both the naive baseline and the best-tuned ARUBA and freezing configurations by more than the seed-to-seed spread. It must do so while AP_l stays within that spread, and the unstratified and large-bin ablations must fail to reproduce the gain.
Why not just…?
Why not just reweight the loss toward small objects, as ARUBA does? This is the most serious threat. If ARUBA reaches the same AP_s gain and also restores small-bin rank, then the geometry is a downstream readout of gradient imbalance, and our regularizer adds nothing. We will measure $R_{l,t,s}$ under ARUBA training. If ARUBA matches us on both AP_s and rank, we will report the intervention claim as failed and keep only the diagnostic result.
There is also a reason to expect a difference. Loss reweighting changes how strongly small objects pull on the features, not which directions stay available. It could even compress the large-object subspace, a distortion of the kind Hsu et al. observed under imbalanced fine-tuning. The combination of ARUBA with the rank floor tests whether the two effects are complementary.
Why not just freeze more of the backbone or lower its learning rate? If late-layer compression is the problem, keeping the late layers near their pre-trained values might be enough. This is plausible because Merchant et al. show that fine-tuning is concentrated at the top. The cost is that freezing blocks all adaptation, including the changes that help large objects and localization. AlignDet likewise freezes the backbone during its box-level stage, and the research file flags that choice as possibly limiting restructuring for tiny objects. Our depth sweep reports AP_s against AP_l for each freezing setting. The rank floor has to lie above that trade-off curve, not merely match one point on it.
Why not just train at several scales so small objects appear larger? MSCD-style multi-scale training reports large gains on aerial data (+7.12 mAP on DIOR-R), and it may prevent collapse without any new loss. We test this directly by measuring whether multi-scale training keeps small-bin rank from falling. If it does, that is itself a finding about how MSCD works. The rank floor then has to add AP_s on top of multi-scale training at matched compute to justify itself.
Why not just use global RankMe? Global rank is dominated by the many large-region and background tokens, and RankMe is known to plateau. The unstratified-floor ablation settles whether stratifying by size matters.
Proposed Experiments
The primary benchmarks are COCO val2017, reported as AP_s, AP_m and AP_l (COCO), and DOTA-v1.0, where more than 57% of instances fall between 10 and 50 pixels (DOTA). DOTA uses an oriented-box head on the ViTDet backbone and 1,024-pixel crops.
First decisive check: timing. Across seeds, a late-layer small-bin rank decline beyond the controls must appear significantly earlier than the AP_s plateau, while the large-bin rank stays flat or declines less. If the decline appears in neither dataset, or only after the normalization control is removed, the first claim fails.
Second decisive check: causality. The rank floor must raise AP_s beyond seed noise over the strongest tuned competitor, with no AP_l loss. The large-bin and unstratified ablations must not reproduce the gain.
Third check: the interior-versus-context split. It tests the Finding Tiny Faces picture of tiny objects. If context-ring rank predicts AP_s better than interior rank, that result guides where the floor should be applied, and it gives a representational explanation for why ViTDet's final-layer pyramid can still support small objects.
References
- Exploring Plain Vision Transformer Backbones for Object Detection
- AlignDet: Aligning Pre-training and Fine-tuning in Object Detection
- Multi-Scale Cross Distillation for Object Detection in Aerial Images
- Finding Tiny Faces
- ARUBA: An Architecture-Agnostic Balanced Loss for Aerial Object Detection
- RankMe: Assessing the Downstream Performance of Pretrained Self-Supervised Representations by Their Rank
- Tracing the representation geometry of language models from pretraining to post-training
- What Happens To BERT Embeddings During Fine-tuning?
- Diagnosing Transformers: Illuminating Feature Spaces for Clinical Decision-Making
- Learning RoI Transformer for Oriented Object Detection in Aerial Images
- Microsoft COCO: Common Objects in Context
- DOTA: A Large-Scale Dataset for Object Detection in Aerial Images