muSSP: Efficient Min-cost Flow Algorithm for Multi-object Tracking

Congchao Wang, Yizhi Wang, Yinxue Wang, Chiung-Ting Wu, Guoqiang YuNeurIPS 2019

TL;DR

The muSSP (minimum-update Successive Shortest Path) algorithm is a specialized min-cost flow solver designed specifically for Multi-Object Tracking (MOT). By exploiting the unique graph structures found in tracking problems, it achieves massive speedups—averaging 100x to 4,000x faster than standard solvers—while still guaranteeing the exact optimal solution.

What Problem Does This Paper Address?

Multi-Object Tracking (MOT) is the backbone of technologies like self-driving cars and automated surveillance. A popular way to solve MOT is the "tracking-by-detection" paradigm: you detect objects in every frame and then use a min-cost flow algorithm to link those detections into trajectories.

MOT formulated as a min-cost flow graph

However, a major bottleneck arises when researchers rely on "off-the-shelf" min-cost flow solvers. These are generic algorithms designed to work on any type of network. The graphs generated in MOT, however, are not generic—they are Directed Acyclic Graphs (DAGs) with unit capacities and very specific source/sink connections. Because generic solvers don't "know" about these properties, they waste an enormous amount of computation on redundant updates, making them too slow for large-scale or real-time applications.

Methods

The authors introduce muSSP, which fundamentally redesigns the Successive Shortest Path (SSP) framework using four key strategies:

Flowchart of the muSSP algorithm
  1. Graph Cleaning (Dummy Edge Removal): They mathematically prove that certain edges (links between detections that are too far apart or have poor scores) can never be part of an optimal solution. Removing these "dummy edges" upfront shrinks the search space.
  2. Independent Flipping: In standard SSP, every time you find a path, you update the entire shortest path tree. muSSP uses a new "Independent Flipping Lemma" to show that only a small branch of the tree actually needs updating, drastically reducing work.
  3. Multi-path Finding: Instead of finding one trajectory at a time, muSSP identifies multiple "independent" shortest paths and augments them simultaneously in a single iteration.
  4. Batch Updating and Heap Shrinking: They leverage "0-trees" (sub-trees where all edges have zero cost after transformation) to update large groups of nodes at once and keep the priority queue (heap) in Dijkstra’s algorithm as small as possible.

Datasets

The authors evaluated muSSP across 40 different experimental setups using five diverse datasets:

  • KITTI (Car): A standard benchmark for autonomous driving.
  • MOT CVPR 2019: A challenging dataset featuring dense pedestrian crowds.
  • ETHZ (BAHNHOF and JELMOLI): Natural image sequences for pedestrian tracking.
  • ISBI12 Particle Tracking Challenge (PTC): Microscopy images for biological particle tracking.
  • PETS09: Used to test muSSP as a sub-routine for approximating complex quadratic programming problems.

Key Insights and Ideas

  • The "Aha!" Moment on Redundancy: The authors realized that in generic solvers, the vast majority of updates to the shortest path tree are "wasted" because they don't contribute to finding the next $s-t$ path. muSSP is built on the philosophy of minimal updates.
  • Exploiting Unit Capacity: Because every detection in MOT has a capacity of 1 (an object can't be in two places at once), the graph behavior is much more predictable than a general network. This allows for the "Independent Flipping" logic.
  • Exactness vs. Speed: Often, speedups in computer vision come from "heuristics" or approximations. muSSP is remarkable because it is mathematically exact—it provides the same perfect result as the slow algorithms, just much faster.

Key Results

The performance gains are staggering. In head-to-head comparisons against standard solvers (SSP, FollowMe, and the well-known cs2):

  • Speed: muSSP was the fastest in every single one of the 39 experiments. It was 5 to 337 times faster than the best competing algorithm.
  • Average Gains: Compared to individual methods, muSSP was on average 4,089x faster than SSP, 1,590x faster than FollowMe, and 109x faster than cs2.
  • Scalability: On the massive CVPR19 dataset, where other methods might take hours to converge, muSSP consistently achieved sub-second or near-second performance.
  • Versatility: Beyond direct tracking, it proved highly effective as a sub-routine for solving higher-order quadratic programming problems, running 19–30x faster than peers in that context.

Limitations and Future Work

  • Worst-Case Complexity: While muSSP is lightning-fast in practice, its theoretical worst-case complexity remains the same as the standard SSP algorithm. Its brilliance lies in its "average-case" performance on real-world tracking data.
  • Graph Design: The algorithm speeds up the solving of the graph, but it doesn't solve the problem of building the graph (i.e., defining the costs for linking detections). The authors suggest that because muSSP is so fast, researchers can now afford to experiment with much more complex and refined graph designs that were previously computationally "too expensive" to solve.

Summary updated

BibTeX
@inproceedings{wang2019mussp,
  author = {Congchao Wang and Yizhi Wang and Yinxue Wang and Chiung-Ting Wu and Guoqiang Yu},
  title = {{muSSP: Efficient Min-cost Flow Algorithm for Multi-object Tracking}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2019},
  url = {https://openreview.net/forum?id=Go3lG7Ipsxz},
}
Figure