Scale-Selective View Confusion for Re-Identification

Re-identification models match the same car or person across different cameras. They tend to fail because their features group images by camera angle instead of by identity. The standard fix is adversarial "view confusion." A small classifier tries to guess the camera or viewpoint from the feature, and the encoder is trained to defeat it. This is usually done with a gradient reversal layer, a layer that passes features forward unchanged but flips the sign of the gradient on the way back. The fix is blunt. Reversal is applied to one pooled feature vector, so it erases everything that predicts viewpoint. That includes the small, angle-specific details (a windshield sticker, a collar pattern) that separate one white sedan from another.

This note proposes applying view confusion only to the features that see the whole object, and deliberately shielding the features that see only small patches. In convolutional networks, the size of the image region a feature "looks at" (its receptive field) is a controllable architectural property. The hypothesis is that it is the right axis along which to decide what must be view-invariant. Global layout should look the same across views. Local detail should be allowed to be view-specific and matched only when visible. The claim is testable: if view information is equally present at all receptive-field scales, or if a random split of the same capacity works as well, the idea is wrong.

Core Claim

Enforcing view invariance only on wide-receptive-field features will beat three alternatives at equal compute: whole-vector gradient reversal, learned common/specific splits, and receptive-field expansion alone. It should improve cross-view retrieval and lose less fine-grained discrimination than whole-vector reversal. The receptive-field split, not the extra branch, is what does the work.

Where this sits in prior work

The whole-vector approach is the target of this proposal.

Neither paper distinguishes features by spatial extent. The research file's own synthesis names the resulting risk "feature whitening," but no experiment in the file measures it directly. Measuring it is the first thing this proposal does.

The closest competitor is Disentangled Feature Learning Network for Vehicle Re-Identification (DFLNet). It already argues that orientation-specific detail should be protected. It splits features into an orientation-common branch, trained with an "odd-one-out" adversarial game on image triplets, and an attention-based orientation-specific branch. It reports 73.29% mAP on VeRi-776. We differ in two ways. Our split is fixed by receptive-field scale, not learned by branch. We also need no orientation classifier at inference, which DFLNet relies on and which its authors report corrupts re-ranking at low resolution and unusual angles.

Attentive Part-Based Alignment Network for Vehicle Re-Identification (APANet) mixes receptive fields through a pyramid attention module. It aligns parts across views with losses rather than adversaries. It is the strongest reported number in the file but asks a different question: it expands receptive fields, while we assign invariance by receptive field.

On the receptive-field side, this work reuses two methods:

Two further results motivate the question and constrain the design:

  • Motivation: Towards Viewpoint-Invariant Visual Recognition via Adversarial Training (VIAT) found Vision Transformers, which have global receptive fields from the first layer, more viewpoint-robust than ResNet-50. It offered no mechanism. Our analysis tests one candidate mechanism.
  • Constraint: VIAT relies on neural radiance field rendering, a learned 3D scene model used to synthesize new views. This pushes us toward a method that needs only 2D surveillance data and camera IDs.

Research Program

Step 1: a diagnostic. - On a ResNet-50 re-identification model trained with only identity losses, we tap features at matched depth through heads of controlled receptive field. These range from 1×1 and 3×3 convolutions on stage-4 maps to a criss-cross attention head with full-image context. - We confirm each head's effective receptive field with the gradient method of Luo et al. - We then train linear probes to predict camera ID (and coarse orientation where labels exist) from each head's pooled features. We also train identity probes restricted to cross-camera pairs. - This yields a curve of view-decodability and cross-view identity signal as a function of effective receptive-field radius. - The method is only motivated if two things hold. View information must be substantially more decodable from wide heads than it is useful for cross-view identity there. Local heads must carry identity signal that survives camera changes.

Step 2: the method. - The model has a local branch, which keeps stage-4 resolution with small kernels and part pooling, and a global branch built on recurrent criss-cross attention. - Both are trained with identity classification and triplet losses. - A camera/view discriminator reads only the global branch through gradient reversal. Its adversarial gradient is stopped before it reaches local-branch parameters. - A second, monitor-only discriminator reads the local branch with no gradient to the encoder, so we can see how much view information the local branch keeps. - At retrieval, the two embeddings are concatenated, with no orientation classifier. - The total objective is $L = L_{id}(g) + L_{id}(\ell) - \lambda\, L_{view}(D(g))$. Here $g$ and $\ell$ are the global and local embeddings, $L_{id}$ is the identity loss (classification plus triplet), $D$ is the view discriminator, $L_{view}$ is its cross-entropy, and $\lambda$ is the reversal weight. The adversarial term deliberately has no path into $\ell$.

Step 3: an analysis of what reversal does to receptive fields. - We measure how the global branch's effective receptive field changes under whole-vector versus scale-selective reversal. - We also measure how it changes between query views. This directly addresses VIAT's unexplained architecture gap.

Baselines

Do-nothing reference. The same ResNet-50 two-branch architecture trained only with identity and triplet losses and standard flip/crop augmentation. Every gain is reported relative to it.

Receptive-field expansion alone. The identical architecture including the criss-cross global branch, with no view discriminator. If this matches the full method, the gain comes from context, not selective invariance.

Whole-vector reversal (the direct competitor). Reversal applied to the concatenated embedding, as in VCFL. It is the strongest direct competitor because it is the standard practice our claim says is miscalibrated. It gets the same number of tuning trials over $\lambda$ as our method, on the same data, schedule and backbone. We report the best setting, not a default.

Strongest external methods. DFLNet reports 73.29% mAP on VeRi-776. APANet reports 79.8% mAP and 96.4% Rank-1 on VeRi-776 and 89.2% Rank-1 on VERI-Wild Small. APANet is the strongest competitor in the file. No code for it is listed, so we cite its reported numbers. We also, as a stretch goal, attach scale-selective reversal to a reimplemented APANet-style pyramid, so the comparison is additive rather than head-to-head against a heavier model.

On Market-1501, VCFL reports 89.25% Top-1 (90.91% with re-ranking). On VehicleID, DFLNet reports a 12% cross-view mAP gain over its baseline; no absolute value is found on Lacuna.

Ablations that isolate the key ingredient. - Random-channel split: the same two-branch capacity with reversal on a random half of channels at a single receptive-field scale. - Inverted split: reversal on the local branch, shielding the global branch.

What counts as beating the competitors. Beating whole-vector reversal means higher cross-view mAP at its best-tuned $\lambda$, not at a chosen point, plus lower loss of same-view accuracy. Beating the random-split ablation by more than seed-to-seed variation (three seeds) is the test that matters for the claim. Exceeding APANet's 79.8% is desirable but not required, because APANet adds part losses we do not use.

Why not just…?

Why not just tune the reversal weight on the whole vector? This is the most serious threat. The whitening problem may simply be $\lambda$ set too high. We settle it by sweeping $\lambda$ for both whole-vector and scale-selective reversal. We plot the resulting curves of view-decodability (probe accuracy) against cross-view mAP. If the whole-vector curve reaches the same region as ours at some $\lambda$, the proposal is refuted and we will say so.

Why not just use DFLNet's learned common/specific split? A learned split might find the same partition without architectural constraints. However, DFLNet's reported weakness is its dependence on an inference-time orientation classifier that fails on hard views. Our method has none. The random-channel ablation and a DFLNet-style odd-one-out variant trained under our budget show whether receptive-field scale is a better partition than a learned one. The comparison is limited to mAP differences on VeRi-776 and VehicleID's front/rear cross-view setting.

Why not just switch to a Vision Transformer? VIAT shows transformers are more view-robust, which could make the question moot. But VIAT also reports that robustness still needs explicit adversarial training. Transformers also have per-head attention distances that play the role of receptive fields. As an extension, we apply scale-selective reversal to a transformer by routing the discriminator only through long-attention-distance heads. If the gain vanishes there, the result is specific to convolutional networks, and we will report it as such.

Why not just augment views more aggressively? VIAT reports ResNet-50 reaching only about 33% under adversarial viewpoints with standard augmentation, against 59.61% with its structured training. We include strong augmentation in every arm, so it is controlled, not competing.

Decisive Checks

The benchmarks are VeRi-776 and VERI-Wild with camera IDs as view labels, VehicleID with its front/rear cross-view protocol, and Market-1501 with the four VCFL viewpoint classes. Metrics are mAP and Rank-1 in three settings: all pairs, cross-camera-only pairs, and same-camera pairs. Same-camera pairs measure the fine-grained loss that whitening should cause. We add the monitor-probe view accuracy per branch and the effective receptive-field radius per branch.

Two results are decisive:

  • First, the Step 1 curve must show view information concentrated in wide receptive fields while local features carry cross-view identity signal. If it is flat, we stop.
  • Second, scale-selective reversal must beat both the random-channel and inverted splits on cross-camera mAP, while keeping same-camera mAP closer to the do-nothing reference than best-tuned whole-vector reversal does.

If both hold, receptive-field scale becomes a principled, cheap rule for where to impose invariance. If only the first holds, the diagnostic itself is a useful account of why transformers resist viewpoint change.