Paired Jitter Views for Shared-Backbone Person Search

Many vision systems find an object first and then run a second model on the cropped box. Person search is a typical case: a detector finds people in a full image, and a re-identification model (re-ID, which decides whether two crops show the same person) compares them. The re-ID model is usually trained on clean, hand-drawn boxes but at test time sees the detector's sloppy ones. The standard fix is box jittering: randomly shifting and rescaling the training boxes so the second model learns to tolerate misalignment. In a single network that shares one backbone between detection and re-ID, this fix creates a problem. A shifted box is exactly the thing the box-regression head must notice and correct. The same shift is a nuisance the re-ID head must ignore. Both heads pull on the same features in opposite directions.

We propose to turn that conflict into a training signal. Each ground-truth box is jittered twice, with offsets we choose and therefore know exactly. One part of the shared region feature is trained to stay the same across the two views and feeds re-ID. The other part is trained to predict the known offset between the views and feeds box regression. The claim is that this separation, imposed through paired views rather than duplicated networks or gradient surgery, lets a single backbone keep the benefits of jitter for re-ID without harming localization. The target is to match the accuracy of decoupled designs at shared-backbone memory cost.

Core Claim

Recent person-search systems deal with the detection/re-ID conflict under noisy boxes in three ways. TCTS splits the pipeline into two separately trained stages and reweights offline detector boxes by IoU quality and hardness. Towards Fully Decoupled End-to-End Person Search freezes the detector, trains a separate re-ID side-network with Spatial-noise Augmentation (random jitter on ground-truth boxes), and accepts a larger memory footprint. TPSN keeps one shared backbone and scales down re-ID gradients from low-confidence proposals. All three treat jitter as noise to be survived.

None of them uses the fact that synthetic jitter comes with a free, exact label: the offset itself. Our claim is that the offset tells the network which features should move with the box and which should not. That is the invariance-versus-covariance split that shared heads need, and it has so far been handled only by architectural decoupling. The closest use of a predicted offset is the Region Feature Alignment module in Weakly Aligned Cross-Modal Learning for Multispectral Pedestrian Detection. That module regresses the color-to-thermal shift in order to align two sensors. We instead use offset prediction between two jittered views of one modality to separate features that should vary with position from features that should be invariant for different tasks.

Research Program

The work has three parts, and the first is a measurement. Gap analyses in this area note that gradient-conflict methods such as CAGrad and RotoGrad have been studied on aligned inputs, and that nobody has measured how box jitter changes the geometry of task gradients. We will train a shared-backbone person-search model with uniform box jitter at magnitudes from none up to IoU around 0.5. Throughout training we will log the cosine similarity between the detection-regression gradient and the re-ID gradient on the shared RoI features and on the last backbone stage. The prediction is that this cosine becomes more negative as jitter grows. If it does not, the conflict story is wrong, and the proposal reduces to "jitter helps," which the decoupled SnA paper already shows.

The second part is the method. For each ground-truth box $b$ we sample offsets $\delta_1, \delta_2$ (translation and log-scale). We pool RoI features $z(b+\delta_1)$ and $z(b+\delta_2)$ and split each into an invariant part $z^{\text{inv}}$ and a covariant part $z^{\text{cov}}$ with a learned linear projection. The added objective is

$$ \mathcal{L}_{\text{pair}} = \lambda_1 \,\| z^{\text{inv}}(b+\delta_1) - z^{\text{inv}}(b+\delta_2) \|^2 + \lambda_2 \,\| h\big(z^{\text{cov}}(b+\delta_1), z^{\text{cov}}(b+\delta_2)\big) - (\delta_1 - \delta_2) \|^2 , $$

where $h$ is a small head that predicts the relative offset and $\lambda_1, \lambda_2$ are weights. Re-ID reads only $z^{\text{inv}}$ and box regression reads only $z^{\text{cov}}$. The consistency term is kept from collapsing by the usual re-ID identity loss on $z^{\text{inv}}$. We also add a decorrelation penalty between the two parts so the split cannot be trivial.

Borrowing TCTS's quality factor, the jitter distribution is adapted rather than fixed. The magnitude grows on a schedule tied to the measured gradient cosine from the first part. It increases while the cosine between the two tasks' gradients on the shared trunk stays above a threshold and backs off when it goes negative. This is a direct answer to the finding in TCTS and TPSN that blind jitter produces harmful samples.

The third part tests whether the mechanism is specific to person search. The same paired-view loss applies to any detector plus fine-grained head. A secondary test will use the single-person pose setting of RMPE, whose offline detector-error jitter is the natural comparison.

Baselines

The naive reference point is a shared-backbone Faster-R-CNN-style person-search model trained on clean boxes with no jitter. It uses the same backbone as our method and can be thought of as an OIM/NAE-class model. As reported inside TPSN, NAE reaches 44.0% mAP and OIM 21.3% mAP on PRW. We will reproduce our own version so that every comparison shares a backbone and schedule.

The strongest shared-backbone competitor is TPSN. It reports 93.3% mAP and 94.2% top-1 on CUHK-SYSU and 53.3% mAP on PRW, and its ablation loses 2.2% detection AP and 1.2% re-ID mAP without its confidence-based gradient weighting. TPSN is the right target because it holds the parameter budget fixed, as we do, while handling noisy proposals. Beating it means exceeding 53.3% PRW mAP at equal backbone size, or matching it while improving detection AP.

The strongest decoupled competitor is Towards Fully Decoupled End-to-End Person Search. It reports 93.4% mAP and 94.2% top-1 on CUHK-SYSU and 49.0% mAP and 87.1% top-1 on PRW, rising to 54.0% PRW mAP with transformer modules. TCTS holds the best CUHK-SYSU number in the file, 93.9% mAP and 95.1% rank-1, with 46.8% PRW mAP. We will compare against these at matched backbone and report peak training memory and parameter count. For these methods, success means matching accuracy within about half a point while using less memory, not necessarily beating them outright.

To isolate the key ingredient, we will run the same backbone with single-view uniform jitter plus CAGrad. We will also run paired views with the invariance term but no offset-prediction term, and the full method with the feature split but fixed rather than adaptive jitter. All shared-backbone variants get the same number of epochs and the same hyperparameter search budget, about eight trials per method over loss weights and jitter range. Everything is run on CUHK-SYSU and PRW with three seeds.

Why not just…?

Why not just decouple the two tasks, as the side-network and two-stage methods do? Decoupling works. The fully decoupled model reaches 93.4% CUHK-SYSU mAP, and TCTS reaches 93.9%. So this is a real threat to accuracy, not a strawman. The case against it is cost and lost sharing: the decoupled paper acknowledges a significantly larger memory footprint from duplicated side-networks, and freezing the detector removes any benefit re-ID could pass back to detection. Our experiments settle this with a memory-versus-accuracy comparison at matched backbone. If our method cannot come within about half a point of the decoupled model while using clearly less memory, decoupling is the better answer and we will say so.

Why not just apply a gradient-conflict optimizer such as CAGrad on top of ordinary jitter? CAGrad reports a 0.20% average per-task drop on NYUv2, and its detection variant in Conflict-Alleviated Gradient Descent for Adaptive Object Detection adds roughly 1.4 to 2.7 mAP in domain-adaptive detection. These methods reshape the update given the current losses. They do not tell the network which features should track position, and the file contains no evidence of them being tested under box jitter. The single-view jitter plus CAGrad ablation tests this directly. If it matches the paired-view method, the contribution collapses to the gradient-geometry measurement, and we would report that honestly.

Why not just weight or gate noisy boxes by IoU, extending TPSN's confidence gating? Scalar weighting, whether by TPSN's detection confidence or TCTS's IoU quality factor, decides how much a sample counts. It does not change what the shared features encode, and it discards exactly the heavily shifted samples that carry the most information about invariance. We include an IoU-gated jitter variant of TPSN in the ablations. The paired-view method should outperform it most at high jitter magnitude and on PRW, where detector boxes are poorest.

Proposed Experiments

The main runs are on CUHK-SYSU (18,184 images, 8,432 identities) and PRW (11,816 images, 932 identities). We report mAP and top-1 for search, detection AP separately, and peak GPU memory and parameters.

Three checks decide the outcome. First, the gradient cosine between regression and re-ID on the shared trunk must fall as jitter grows; this validates the premise. Second, the full method must beat single-view jitter plus CAGrad on PRW mAP across seeds. Third, it must not lower detection AP relative to the no-jitter baseline, since the central promise is that jitter helps re-ID without harming localization.

A stress test evaluates every model on CUHK-SYSU gallery boxes perturbed to fixed IoU levels of 0.9, 0.7 and 0.5 with the ground truth, isolating robustness from detector quality. A probe will check whether $z^{\text{inv}}$ really discards the offset: a linear regressor trained on $z^{\text{inv}}$ to predict $\delta$ should do near chance, while one trained on $z^{\text{cov}}$ should not.

The secondary transfer test replaces RMPE's offline detector-error jitter with paired views on MSCOCO keypoints, where RMPE reports 61.8 AP on test-dev. This shows whether the idea extends beyond person search.