Gap-Aware Appearance Matching from Embedding Variograms

Multi-object trackers follow people through video by combining two cues: where each box is moving, and what the person looks like, summarized as a feature vector from a re-identification network, a model trained to give the same person similar vectors across images. On benchmarks where everyone wears the same costume, the appearance cue becomes unreliable. The best current trackers respond in one of two ways. They switch appearance off when it looks ambiguous, or they drop it for long-range linking altogether. We propose a different response.

Motion tracking already learned that velocity measured between adjacent frames is mostly noise, and that measuring displacement over a wider gap fixes this. Appearance vectors can be treated the same way. For every direction in embedding space, we measure how much a person's vector changes as a function of the frame gap. Changes that appear at a gap of one frame and stay flat are jitter. Changes that grow with the gap are real drift, such as pose or lighting. Separation between different people is measured against both. We then match a lost track to a new detection using only the directions that, at that particular occlusion length, still separate identities better than they drift.

The payoff is a training-free and label-free way to recover the part of a redundant embedding that carries identity information, rather than choosing between trusting all 512 dimensions and trusting none. It also yields a principled answer to how much each dimension of the appearance template should be smoothed over time. The statistics come from the tracker's own confident tracklets. Detections in the same frame are guaranteed to be different people, and short unambiguous motion chains are almost certainly the same person, so no identity labels are needed.

Core Claim

The appearance embedding does not fail uniformly on crowds of identically dressed people. Its variance is dominated by directions that encode costume, pose, and detector jitter, while a small set of directions keeps identity-separating structure. The two can be told apart without labels by the shape of each direction's temporal variogram, which is the expected squared change of the embedding as a function of frame gap. Weighting appearance distance by a gap-dependent ratio of between-identity spread to within-track change should improve association accuracy over confidence-gated appearance on DanceTrack. It should do so without hurting results on the pedestrian benchmarks.

Why this intersection, and what already exists

The motion side supplies the mechanism.

  • Observation-Centric SORT computes box velocity between observations at least three frames apart, because single-frame differences are dominated by detector jitter.
  • MeanCache makes the same move in generative sampling, where the "velocity" is the direction a flow-matching image generator moves its intermediate image at each step. It replaces that per-step velocity with the average velocity over an interval.
  • SeaCache shows that different frequency components of diffusion features evolve at different cadences.

All three average over one global baseline, and none applies the idea to the embedding axis of an identity feature. We borrow the lag-structured view and make it dimension-specific.

The redundancy side supplies the motivating evidence and a constraint.

  • Gaussian Image Anomaly Detection with Greedy Eigencomponent Selection shows that the highest-variance principal components of deep features are often task-irrelevant. The useful components are few and scattered through the spectrum. However, finding them requires labelled validation AUROC.
  • FRET shows that correlation between feature channels rises under distribution shift, and removes it with a training loss at test time.

Our proposal keeps the insight from both: pick directions by usefulness, not by variance. It replaces their supervision and gradient updates with free temporal structure and closed-form statistics.

The tracking literature defines the gap we fill.

  • DanceTrack documents that appearance-heavy trackers collapse on uniformly dressed dancers.
  • Deep OC-SORT reintegrates appearance through heuristic gates on detector confidence and similarity margin. When the margin is small, it zeros appearance weight entirely.
  • StrongSORT smooths templates with one exponential moving average factor shared by all channels. Its long-range link model uses boxes only.

Each of these treats the embedding as one block that is either trusted or not. None models how its individual directions change with time.

Method

For each video, we first run OC-SORT to collect pseudo-tracklets. We keep only high-confidence, spatially isolated detections that motion associates with a large margin. We then rotate the Re-ID embeddings into their principal basis, fitted on the same video, and write $z_{t,d}$ for coordinate $d$ of a track's embedding at frame $t$. For each coordinate we estimate the within-track variogram

$$\gamma_d(k) = \tfrac{1}{2}\,\mathbb{E}\big[(z_{t,d} - z_{t-k,d})^2\big] \approx \sigma_d^2 + q_d\,k,$$

where $k$ is the frame gap. The intercept $\sigma_d^2$ is per-frame jitter and the slope $q_d$ is genuine drift per frame. The linear form is what a random-walk-plus-noise model predicts. We fit the empirical curve directly and do not trust the line beyond the gaps we observe. Separately, we estimate $b_d$, half the mean squared difference in coordinate $d$ between detections that co-occur in the same frame. Co-occurring detections are necessarily different people, so $b_d$ measures identity spread without labels.

The appearance distance between a track last seen $k$ frames ago and a new detection is then a weighted sum over coordinates with weight

$$w_d(k) = \max\!\Big(0,\ \log \frac{b_d}{\gamma_d(k)}\Big),$$

which is zero for any direction whose within-track change at that gap already matches the spread between people. Two consequences follow:

  1. Gap-dependent weighting. After a short gap, many directions contribute. After a long occlusion, only slowly drifting identity directions survive. This is the embedding-space analogue of OC-SORT's wider motion baseline.
  2. Per-dimension template smoothing. The template update becomes a per-coordinate steady-state Kalman filter. Its gain follows from the ratio $q_d/\sigma_d^2$, replacing StrongSORT's single shared smoothing factor.

Statistics are refreshed online over a sliding window, so the method stays causal and adds only per-video eigendecomposition and running sums. Everything is plugged into Deep OC-SORT's pipeline in place of its adaptive appearance weighting. The detector, Re-ID network, and motion model stay unchanged.

Research Program

The work has three stages.

Stage 1: diagnosis. Before building anything, we verify the premise on DanceTrack validation using ground-truth identities, which are used only for analysis. For each principal direction we plot the variogram and the true identity spread. The questions are:

  1. Do identity-separating directions exist?
  2. Are they scattered away from the top of the variance spectrum, as the anomaly-detection work would predict?
  3. Do they flatten at large gaps while costume and pose directions keep growing?

If the true identity spread falls within within-track change for nearly all directions at typical occlusion lengths, the idea is dead and we report that.

Stage 2: pseudo-statistics. We measure how closely the label-free estimates ($b_d$ from co-occurrence, $\gamma_d$ from confident tracklets) match their ground-truth counterparts. We also measure how badly ID switches inside the pseudo-tracklets contaminate them. A switch inflates $\gamma_d$ at large $k$, which errs toward caution rather than false matches. That asymmetry should be confirmed empirically.

Stage 3: tracking. We run full tracking evaluation and ablations.

Baselines

Naive reference points. We use two. The first is SORT, which uses motion only; Observation-Centric SORT reports it at 47.9 HOTA on DanceTrack. HOTA is higher-order tracking accuracy, which balances detection and association. The second is OC-SORT itself, reported at 54.6 HOTA on DanceTrack in the same paper. Together they bound what motion alone achieves.

Strongest existing method. This is Deep OC-SORT, which its paper reports at 61.3 HOTA on DanceTrack, 64.9 on MOT17, and 63.9 on MOT20. It is the right competitor because it already combines OC-SORT's wide-baseline motion with appearance, and addresses appearance ambiguity through gating. Our method changes exactly that component. We will rerun it from its public configuration with the identical detector outputs and Re-ID weights, and report our reproduction next to the published figure. The ablations below attribute any gain. Beating it means an improvement in HOTA and in association accuracy (AssA) on DanceTrack test over our reproduction. The improvement must be consistent across three seeds of any stochastic component, with no loss on MOT17 or MOT20. Because the change touches only association, we expect detection accuracy to stay fixed. A gain that appears in detection accuracy instead of association accuracy would signal a confound.

Pedestrian-benchmark reference. On MOT17 we also compare against StrongSORT++, reported at 64.4 HOTA and 79.5 IDF1 in StrongSORT, and at 62.6 HOTA on MOT20. We found no reported DanceTrack HOTA for StrongSORT++ on Lacuna, so we will run it ourselves there.

Ablations isolating the key ingredient. There are three:

  1. A gap-independent version that uses the whitening $b_d/\gamma_d(1)$ at every gap. This tests whether the lag structure matters or whether plain within-track whitening suffices.
  2. A version that keeps the top principal components by variance, with the same number of active directions. This tests the variance-fallacy claim in this setting.
  3. An oracle that computes $b_d$ and $\gamma_d$ from ground-truth identities. This bounds what better pseudo-labelling could add.

All variants share the same tuning budget: one threshold on the summed appearance weight, tuned on DanceTrack validation.

Why not just…?

Why not just smooth the embeddings with an exponential moving average, as StrongSORT does? A shared smoothing factor cannot distinguish a jitter-dominated direction, which wants heavy smoothing, from an identity direction that drifts with pose, which wants light smoothing. It also leaves costume directions in the distance at full weight. Our per-coordinate Kalman update contains the moving average as the special case where all $q_d/\sigma_d^2$ are equal. The comparison is therefore direct: we will run StrongSORT's moving-average template inside the Deep OC-SORT pipeline, with its factor tuned on validation.

Why not just whiten the embedding with the within-track covariance, i.e. use a Mahalanobis distance? This is the most serious simpler competitor, since it captures much of the redundancy removal. What it cannot do is change with occlusion length. A single covariance mixes one-frame jitter with long-gap drift, so it is either too permissive after long occlusions or too strict after short ones. Ablation 1 is exactly this alternative. If it matches the full method, we will report that the gain comes from label-free whitening and drop the gap-dependence claim.

Why not just fine-tune the Re-ID network on DanceTrack's training identities? This is a real threat on DanceTrack, which has labelled training videos, and it may beat any training-free fix in-domain. We will run it: a fine-tuned Re-ID network inside Deep OC-SORT, with and without our weighting on top. The proposal survives in either of two cases. Our weighting may still add gains on top of the fine-tuned features, because costume redundancy is specific to each video, and the per-video statistics adapt where fixed weights cannot. Or it may recover a substantial share of the fine-tuning gain with no labels, which matters for deployment. If fine-tuning wins and our method adds nothing on top, we will say so.

Why not just drop appearance, as AFLink and pure-motion trackers do? The published gap of 54.6 HOTA for OC-SORT against 61.3 for Deep OC-SORT on DanceTrack already shows that appearance carries recoverable signal even among identical costumes. The open question is how much more lies in the directions that gating throws away. Stage 1 answers it directly.

Decisive Checks

The idea is worth pursuing if three things hold. First, the Stage 1 diagnosis finds directions with identity spread well above within-track change at median occlusion gaps. Second, the full method beats both the gap-independent whitening ablation and our Deep OC-SORT reproduction on DanceTrack association accuracy. Third, MOT17 and MOT20 HOTA do not drop. MOT20 matters because its density makes co-occurrence negatives plentiful but tracklets short.

Two outcomes would refute the specific claim even if tracking improves. One is the variance-ranked ablation performing as well as variogram-based weighting. The other is the oracle and pseudo-statistic versions diverging sharply. The ConsistencyTrack codebase (resource) provides an additional public DanceTrack pipeline. We can check there that the weighting transfers to a tracker other than Deep OC-SORT.