Delayed-Reliability Replay for Online Tracker Updates

A visual tracker is given one box around an object in the first frame and must follow that object through thousands of later frames. Trackers that keep learning during the video store their own past predictions in a small memory and retrain on samples drawn from it. That memory has two problems. It contains no labels after frame one, only the tracker's guesses. And it is managed by rules that nobody has examined carefully: first-in-first-out queues, periodic updates, hard confidence cutoffs, or diversity heuristics. Reinforcement learning has studied the same "which stored experience should I train on?" question for a decade, using two schemes. Experience replay with uniform sampling draws stored transitions at random. Prioritized replay draws them in proportion to how surprising they were. Recent work also shows when each scheme actually helps.

This note proposes to carry two specific RL lessons into tracker memory and test whether they hold. The first is that whether non-uniform sampling beats uniform sampling depends on how many times each stored sample gets replayed. The second is that "surprise" is a bad priority when the training target is itself unreliable, and that reliability is better judged by what happens downstream of a sample than at the moment it is stored. The concrete method scores each stored frame retrospectively. A frame earns trust if the tracker's trajectory over the next several frames stayed consistent after that frame entered memory, and loses it otherwise. Replay then samples with a cheap bias toward recent frames that never fully drops older ones. The paper's claim is conditional and falsifiable. We expect retrospective reliability to beat instantaneous confidence as a replay priority only in low-replay update regimes. In high-replay regimes we expect uniform sampling over a clean buffer to be as good, and we will report it if so.

Core Claim

Two RL results set up the claim. When Does Non-Uniform Replay Matter in Reinforcement Learning? breaks replay into three quantities: replay volume (updates per environment step times batch size), the expected age of sampled data, and the spread of sampling over the buffer. Recency bias gave large gains only when volume was low. It reports up to 1.35x faster learning and a 14.1% gain in area under the learning curve for FastTD3 on HumanoidBench, but only a "modest ~1.2% gain" in the high-volume regime. Reliability-Adjusted Prioritized Experience Replay shows that a large temporal-difference error often reflects a bad bootstrap target rather than something worth learning. It down-weights a transition by the sum of the errors that occur after it in the episode.

Tracking has an exact analog of the unreliable target, namely the pseudo-label. It also has an analog of downstream error: if a frame was mislabeled, the tracker's behavior in the frames after training on it tends to degrade. Our claim is that a retrospective, downstream-consistency reliability score catches some of the "confidently wrong" frames that both Reliable Memory Model for Visual Tracking and Memory as Dynamics identify as the failure mode of confidence-based gating. Combined with a recency-biased sampler that still covers the whole buffer, it should reduce drift. The benefit should shrink as update volume grows, in the same pattern the RL study found.

Mechanism

We start from an adaptive discriminative tracker of the DiMP family, the class used by Dynamic Template Selection Through Change Detection for Adaptive Siamese Tracking. In these trackers a small target classifier is periodically re-optimized on a memory of a few dozen past frames. Each memory slot $i$ holds features, a pseudo-label box, its age $a_i$ in frames, and a reliability $R_i$.

When frame $i$ enters memory, $R_i$ is set from the tracker's instantaneous confidence. After a delay of $k$ frames it is overwritten by a retrospective score. That score is

$$R_i = \exp\Big(-\lambda \sum_{j=i+1}^{i+k} e_j\Big),$$

where $e_j$ is a downstream inconsistency score at frame $j$ and $\lambda$ sets how sharply inconsistency reduces trust. We build $e_j$ only from quantities the tracker already computes: the drop in peak classifier score relative to its running median, the ratio of the second-highest to the highest score-map peak, and the jump between consecutive boxes after compensating for motion. Because nothing new is computed, the added cost is bookkeeping over a buffer of roughly fifty entries.

The first frame is ground truth, so it is pinned at $R_1 = 1$. Replay then samples slot $i$ with probability

$$P(i) \propto \rho^{a_i}\, R_i^{\omega} + \epsilon,$$

where $\rho \in (0,1)$ is the truncated-geometric recency factor borrowed from the RL study, $\omega$ controls how strongly reliability matters, and $\epsilon$ is a small floor that keeps every slot sampleable. Keeping every slot sampleable is what keeps older appearance modes in play.

Importance-sampling correction is part of the standard prioritized-replay recipe from Prioritized Experience Replay Tom Schaul. We treat it as an ablation rather than a core ingredient. In tracking, the stored buffer is not a distribution we want to estimate without bias, so there is no strong reason to expect the correction to help.

The design has to answer one conflicting result directly. Memory as Dynamics found that soft blending of uncertain predictions into memory caused drift, and that hard suppression worked better. Our soft weighting applies to sampling probability, not to blending memory state. But the risk is real: a floor $\epsilon > 0$ still replays bad frames occasionally. We therefore include a variant that evicts any slot whose retrospective $R_i$ falls below a threshold. Hard versus soft is decided by experiment, not assumed.

Research Program

The program has three parts, and the first is a measurement study that stands on its own. We will instrument several adaptive trackers to report their effective replay volume per frame and the average number of times each memory slot is replayed during its lifetime. The trackers are ADiMP/APrDiMP-style periodic updates, change-triggered updates as in Dynamic Template Selection, and the active-frozen memory of Reliable Memory Model. This places each tracker on the volume axis of When Does Non-Uniform Replay Matter.

Our hypothesis is that change-triggered and sparse-update trackers sit in the low-volume regime, and that trackers which re-optimize over the whole buffer on every update sit in the high-volume regime. This is not obvious. A buffer of fifty frames optimized for many steps may be high-volume even at 30 frames per second.

The second part is the sampler itself, built in stages: uniform, then recency only, then instantaneous-confidence priority, then retrospective-reliability priority, then the combined sampler with and without eviction and with and without importance weights.

The third part sweeps update volume directly. We vary optimizer steps per update and update frequency. The aim is to trace the gap between the combined sampler and uniform as a function of volume, at matched wall-clock cost per frame.

Baselines

The naive reference point is uniform sampling from a first-in-first-out buffer with the first frame pinned. This is the default memory behavior of the DiMP family. The file has no reported LaSOT or OTB number for plain DiMP or PrDiMP, so we will reproduce it ourselves under our harness. That reproduced number anchors every comparison.

The strongest existing memory-management method on our base tracker is Dynamic Template Selection Through Change Detection for Adaptive Siamese Tracking. It triggers updates on detected appearance change and fills an auxiliary memory by maximizing feature entropy. It is the most direct competitor because it already replaces uniform memory with a non-uniform rule on the same tracker family. It reports "an average improvement of 2% in AUC" across OTB, UAV123, LaSOT and TrackingNet, with larger gains on UAV123 than on OTB. We will run it on the same backbone, with the same buffer size and the same per-frame compute cap, and give both methods the same hyperparameter search budget on a held-out split of LaSOT training sequences. Beating it means a higher success AUC on LaSOT and UAV123 at equal frames per second, over three seeds of the update schedule.

The strongest reliability-gating baseline is the Adaptive Evaluation Strategy with active-frozen memory from Reliable Memory Model for Visual Tracking. It gives each new sample a binary trust bit from confidence plus similarity to stored history. That paper reports 69.4% AUC on OTB-2015, 52.8% AUC on UAV123, and an expected average overlap of 0.389 on VOT2016 at 35 FPS. Because its backbone differs from ours, we will reimplement its gating rule inside our tracker, so that only the trust signal changes. Its published numbers serve as a sanity reference, not the head-to-head comparison.

On the long-sequence benchmark, Memory as Dynamics reports 60.9 AUC on LaSOText against 55.5 for SAM2.1. That system does not update weights at all. We cite it as the strongest frozen-model reference for what is achievable on LaSOText, not as a like-for-like competitor.

Two ablations isolate the key ingredient. The first replaces retrospective $R_i$ with the instantaneous confidence at storage time, keeping everything else fixed. If this matches the full method, the "delayed" idea contributes nothing. The second removes the recency factor, to separate the volume-dependent effect from the reliability effect.

Why not just…?

Why not just keep uniform sampling and run more update steps? The RL evidence says this is the most serious threat. In high-volume regimes uniform sampling nearly closed the gap, with only a "modest ~1.2% gain" for recency bias in When Does Non-Uniform Replay Matter. Trackers, however, have a hard per-frame time budget, and more steps cost frames per second. The volume sweep answers the question directly by plotting AUC against frames per second for uniform and the proposed sampler. If uniform sampling with extra steps reaches the same accuracy at the same speed, we will report that tracker memory is effectively high-volume and that the sampler is unnecessary there. That would itself be a useful negative result.

Why not just use standard surprise-based prioritized replay on the classifier loss? With no labels after frame one, a large loss on a stored frame usually means its pseudo-label was wrong. That is exactly the bad-target problem Reliability-Adjusted Prioritized Experience Replay documents in RL. There, adjusting for reliability beat plain prioritized replay by 34.98% in a partially observable Atari variant. Experience Replay Optimization, which learns a replay policy instead of hand-designing one, found that the learned policy favored low-error and recent samples. We include loss-prioritized replay as a baseline and expect it to drift fastest on occlusion-heavy LaSOT sequences.

Why not just threshold on confidence before storing? Both Reliable Memory Model and Memory as Dynamics report that trackers can be confidently wrong, which is why the former adds a similarity check and the latter adds a consistency check. The instantaneous-confidence ablation tests this alternative exactly. We will also be candid that retrospective scoring cannot catch a stable lock onto a distractor, because consistent tracking of the wrong object looks reliable downstream. We will report results separately on LaSOT sequences with similar distractors, where we expect our gain to shrink.

Why not just freeze a strong pretrained tracker? Frozen matching fails under non-rigid deformation (Deformable Object Tracking With Gated Fusion). Even SAM2 needs memory regulation to gain on LaSOText, rising from 55.5 to 60.9 AUC with Memory as Dynamics. Our contribution is specific to trackers that update online. Whether such trackers can match frozen foundation models is outside this note's claim.

Proposed Experiments

The primary benchmarks are LaSOT and LaSOText (LaSOT), whose roughly 2,500-frame sequences are where forgetting and drift dominate. UAV123 is included because memory methods already show their largest gains there, and OTB-100 and TrackingNet (TrackingNet) are included to check that short sequences are not hurt. We report success AUC and precision, plus VOT2016 expected average overlap for robustness. Every result is paired with measured frames per second and effective replays per slot.

Three checks decide the outcome. First, at matched frames per second, retrospective reliability must beat instantaneous-confidence priority on LaSOT. If it does not, the core idea fails. Second, the gain over uniform sampling must shrink as update volume grows, following the pattern seen in RL. If the gain is flat across volume, the RL decomposition does not transfer and we say so. Third, we will log, per sequence, the frame at which the tracker is lost. On the sequences where the base tracker drifts, the proposed sampler should delay or prevent loss more often than the entropy-memory method. Seeing where the method helps tells us more than the average AUC gain does.