Priced Detections: Augmented Lagrangian Association for Multi-Frame, Many-Target Tracking

Multi-object trackers link detections across video frames into trajectories. The dominant method compares each frame only with the one before it, and that works until motion stops being smooth. On dance and sports video, people look alike and change direction abruptly. In that setting the useful evidence is whether a candidate link keeps a person's velocity plausible across three or more frames, and frame-pair matching cannot see this. Adding such three-frame terms turns association from a polynomial matching problem into an NP-hard one.

A decade ago, two papers made this tractable with Lagrangian relaxation. The idea is to turn the hard rule "each detection belongs to at most one track" into a price that rises whenever the rule is broken. The problem then splits into easy pieces that are solved repeatedly while the prices adjust. Those methods oscillate, need greedy repair at the end, and were only tested on slow pedestrian footage.

This note proposes to revisit the idea with the augmented Lagrangian method. That method adds a quadratic penalty on violations alongside the prices, which damps oscillation without needing a huge penalty weight. We solve it one trajectory at a time, so cost grows linearly with the number of targets. Prices are carried forward between overlapping time windows, so the tracker runs online with few iterations per frame. It also reports a duality gap, a computable bound on how far the answer can be from optimal. The central empirical question is whether globally optimized higher-order association beats procedural heuristics on non-linear-motion benchmarks, and whether it stays fast as crowds get dense.

Core Claim

The augmented quadratic term and trajectory-level block updates together should make three-frame association converge to conflict-free solutions in a handful of iterations per frame. This holds because a linearized augmented step is still a shortest-path problem, so no new solver is needed. The claim is that such a solver, run online over sliding windows, beats observation-centric heuristics on DanceTrack at comparable detections. It should also report a per-window optimality gap, which no current online tracker provides.

To make this precise, we follow the match-graph construction of Multi-target Tracking by Lagrangian Relaxation to Min-cost Network Flow. In that graph, each node is a candidate pair of detections in consecutive frames, and each edge is a triplet across three frames whose cost scores velocity change. Let $x$ be the binary vector of selected edges, $c$ their costs, and $Ax \le \mathbf{1}$ the conflict constraints that each physical detection is used at most once. Butt and Collins relax $Ax \le \mathbf{1}$ with multipliers $\lambda \ge 0$ and solve a min-cost flow per iteration. We instead minimize the augmented Lagrangian

$$ \mathcal{L}_\rho(x,\lambda) = c^\top x + \lambda^\top (Ax - \mathbf{1}) + \frac{\rho}{2}\left\|\max(0, Ax - \mathbf{1})\right\|^2 , $$

with the dual update $\lambda \leftarrow \max(0, \lambda + \rho(Ax - \mathbf{1}))$. Here $\rho > 0$ is a moderate, fixed penalty weight.

The quadratic term couples trajectories, so we borrow the proximal-linear block coordinate update from A Customized Augmented Lagrangian Method for Block-Structured Integer Programming. That paper solves vehicle-routing and train-timetabling problems one vehicle or train at a time and restores feasibility with "sweeping" and "packing" steps. In our setting a block is one trajectory. With all other trajectories fixed, the linearized penalty and the proximal term are both linear in binary $x$, because $x_i^2 = x_i$. Each block update is therefore a shortest path through the match graph with adjusted edge costs. This is cheap, parallel across targets, and linear in their number.

Relation to Prior Work

Two 2013 papers supply the formulation and motivate the gap. Butt and Collins use pure subgradient prices and a greedy resolution step to fix leftover conflicts. They report 1.46% mismatch error on the Dense 1fps sequence and 1.43 s for 200 frames. Higher Order Matching for Consistent Multiple Target Tracking instead uses dual decomposition with message passing (MPLP). It gains an explicit dual bound and linear scaling in sequence length, but still rounds fractional solutions heuristically. Both are offline and evaluated only on near-linear pedestrian motion (Collins, TUD, ETH). We keep their graph and their certificate idea, but change three things: the dual algorithm (augmented, block-wise), the operating mode (online, warm-started), and the test regime (non-linear motion).

Wang et al. supply the block method and constrain the design. Their classical update needs sparse structure that dense tracking graphs lack, which is why we use only the proximal-linear variant. They have never applied the method to vision.

Two further papers are the competing philosophies. Observation-Centric SORT fixes Kalman drift with retroactive re-updates and multi-frame velocity averaging. It stays greedy and online. UniTrack trains trackers with a soft flow-conservation loss, and its graph construction scales as $O(n^2 t)$. We are orthogonal to UniTrack's training-time loss: our solver runs at inference and enforces conservation exactly. DanceTrack motivates the regime. It reports that trackers scoring about 60–70 HOTA on MOT17 fall to about 40–50 on DanceTrack.

Research Program

We will build an online tracker that holds a sliding window of $W$ frames, with $W$ from 3 to 10. For each incoming frame it adds new match nodes and triplet edges to the window. It then runs $K$ augmented-Lagrangian iterations, where each iteration is one pass of per-trajectory shortest-path updates followed by a dual update. Finally it commits the oldest frame's assignments.

Multipliers on detections that remain in the window are carried forward. A detection's price therefore persists across windows, and we expect this to cut $K$ to one to three iterations in steady state. Track birth, death, and short occlusion gaps enter as source, sink, and skip edges in the match graph. This also lets us test gap edges spanning up to several frames, which addresses the occlusion limitation Butt and Collins left open.

At every window we compute a lower bound: one extra pure-Lagrangian min-cost-flow solve at the current prices. We report the gap between this bound and the primal cost. We also use the gap adaptively: windows whose gap exceeds a threshold receive more iterations.

Edge costs combine IoU, a constant-velocity triplet term, and an optional appearance term. The costs are identical across all our variants and are also exposed to the heuristic baselines. The analysis tracks four quantities: iterations until no conflicts remain, the fraction of windows needing repair, the gap distribution, and wall-clock time as a function of target count.

Baselines

The naive reference is frame-to-frame Hungarian matching on the same costs without triplet terms, which is essentially SORT. OC-SORT reports 47.9 HOTA for SORT on DanceTrack. We rerun it on our shared detections.

ByteTrack (ByteTrack) keeps low-confidence boxes and matches in two stages. It reports 80.3 MOTA on MOT17 at 30 FPS. It is the strongest simple pairwise method. To be fair, our solver adopts the same two-tier use of low-score detections, as cheaper edges, so any gain comes from the association step and not from recovered detections. We found no reported DanceTrack result for ByteTrack in the file, so we will measure it.

OC-SORT is the strongest competitor on exactly this question: it is the best heuristic for non-linear motion. It reports 54.6 HOTA on DanceTrack and 62.1 on MOT20, at over 700 FPS on CPU. We run the released procedure on the same detections with its default tuning. Beating it means a HOTA gain on DanceTrack test beyond run-to-run variation, with no loss in association accuracy on MOT20.

The Butt and Collins subgradient scheme is reimplemented on our graph with the same windows, warm starts, and iteration budget, and with its step size tuned on the validation split with the same number of trials we give $\rho$. On their own Dense 1fps benchmark we check that we reproduce roughly their 1.46% mismatch error before extending.

An exact integer-programming solve with Gurobi on each window provides the optimum reference and the runtime competitor.

Two ablations isolate the key ingredient. The first sets $\rho = 0$, recovering pure prices. The second removes warm-starting.

Why not just…?

Why not just use OC-SORT, which already averages velocity over many frames? OC-SORT's momentum estimates each track's velocity independently, then matches greedily. It cannot trade one person's smoothness against another's when two trajectories cross, and that is the DanceTrack failure mode. This is an empirical claim, so we test it directly by giving OC-SORT our triplet costs in its matching step. If greedy use of the same higher-order costs matches global optimization, the solver contributes nothing and we will say so.

Why not just hand each window to Gurobi? This is the real threat. On DanceTrack densities, small windows may well solve exactly in milliseconds. Wang et al. show Gurobi degrading sharply at scale: about 300 s versus 15 s on CVRPTW instance C109.50, and 30 versus 292 trains scheduled on the largest timetabling instance. Those are routing problems, not tracking graphs. We will therefore plot exact-solver and augmented-Lagrangian runtime against target count and window length, from DanceTrack up to MOT20 crowds. If Gurobi is fast enough across the range, our remaining contributions are the anytime certificate and the online warm start, and the claim narrows accordingly.

Why not just tune the subgradient step size of Butt and Collins? A well-tuned step size with warm starts might close most of the gap. The $\rho = 0$ ablation, given an equal tuning budget, settles this. Success means the augmented version needs fewer iterations and fewer greedy repairs at equal accuracy.

Proposed Experiments

The main experiments run on DanceTrack validation and test, SportsMOT, MOT17, and MOT20 with a fixed shared detection set, reporting HOTA, IDF1, MOTA, identity switches, and FPS. Collins' Dense 1fps and the ETH sequences serve as reproduction checks.

The decisive checks are three. First, on DanceTrack the solver must beat OC-SORT given identical detections and costs, and must also beat OC-SORT fitted with the triplet costs. Second, the $\rho > 0$ variant must reach conflict-free solutions in fewer iterations than $\rho = 0$, with a measurably smaller share of windows needing repair. Third, per-frame runtime must grow roughly linearly with target count on MOT20, and must cross below the exact solver as density rises.

We also check that the reported duality gap is useful. Windows with a large gap should be where identity switches concentrate, and giving those windows extra iterations should reduce switches.