On Pairwise Cost for Multi-Object Network Flow Tracking

Visesh Chari, Simon Lacoste-Julien, Ivan Laptev, Josef Sivic

TL;DR

This paper introduces a way to incorporate pairwise costs—such as overlap penalties and track co-occurrences—directly into the popular min-cost network flow framework for multi-object tracking. By using a convex relaxation combined with a novel Frank-Wolfe rounding heuristic, the authors achieve near-optimal solutions for this otherwise NP-hard problem, significantly improving tracking robustness in crowded and cluttered scenes.

What Problem Does This Paper Address?

Multi-object tracking (MOT) often follows a "tracking-by-detection" paradigm: an algorithm first detects objects in every frame and then links these detections across time to form trajectories. A powerful way to do this linking is by formulating it as a min-cost network flow problem, which can be solved globally and efficiently.

However, standard network flow models only consider "unary" costs—costs associated with a single detection or a single connection between two detections. This makes it difficult to model interactions between different tracks. For example:

  • Overlap: Two distinct tracks should not occupy the same physical space (a common failure in crowded scenes).
  • Co-occurrence: If a "head" detector and a "body" detector both fire in the same spot, they should likely belong to the same track.

Previous attempts to handle these interactions often relied on "greedy" post-processing (like Non-Maximum Suppression) or local, non-convex optimization, which can lead to irreversible errors early in the tracking process.

Methods

The authors propose moving from an Integer Linear Program (ILP) to an Integer Quadratic Program (IQP). This allows them to add terms that penalize or encourage pairs of detections being selected together.

  1. Convex Relaxation: Since IQPs are generally NP-hard, they transform the problem into an equivalent ILP by introducing new variables that represent the joint selection of two detections. They then relax the integer constraints to solve it as a standard Linear Program (LP).
  2. Frank-Wolfe Rounding: A key contribution is their rounding strategy. Standard "Hamming rounding" simply finds the nearest integer point, which might ignore the actual cost function. Instead, they use a Frank-Wolfe style heuristic: they minimize a linear approximation of the quadratic objective at the relaxed solution. This ensures the final integer solution is not just "close" to the relaxed one, but also has a low objective value.
  3. Pairwise Cost Design: They specifically evaluate two types of costs:
  4. Overlap Penalty: Discourages two tracks from overlapping significantly, effectively integrating NMS into the global optimization.
  5. Consistency/Co-occurrence: Encourages tracks from different signals (e.g., head and body detections) to stay together, increasing robustness to detector noise.
Figure 2: Illustration of a graph used in traditional min-cost flow. The detection (red) and connection (cyan) variables are marked as edges and have unit capacity. Every track is a unit flow that starts at a source S and ends at a sink t. S and t are connected to all detections.

Datasets

The authors evaluated their method on several standard and challenging benchmarks:

  • PETS & TUD: Well-known datasets featuring frequently occluded people moving in multiple directions.
  • TownCenter: A long sequence (4500 frames) of a busy street.
  • MarchingRally: A dense crowd sequence where the authors manually annotated ground truth tracks to provide a more rigorous evaluation.

Key Insights and Ideas

  • Global NMS: By putting the overlap penalty inside the optimization, the tracker can "tolerate" temporary overlaps (like when people cross paths) while still preventing the detector from spawning duplicate tracks for the same person.
  • Rounding Matters: The Frank-Wolfe rounding heuristic is significantly more effective than standard rounding. It consistently yields better tracking accuracy and provides a "certificate of suboptimality," proving empirically that their solutions are very close to the theoretical global optimum.
  • Beyond MOTA: The authors argue that the standard MOTA (Multi-Object Tracking Accuracy) metric is sometimes insufficient. They propose a "re-detection measure" (Average Precision over a time interval $\Delta t$) to better evaluate a tracker's ability to maintain identity over long periods.
Figure 1: Results of network flow tracking using cost functions with/without pairwise terms. (a)-(b): a pairwise term that penal- izes the overlap between different tracks helps resolving ambigu- ous tracks (shown in red) in crowded scenes. (c)-(d): a pairwise term that encourages the consistency between two signals (here head detections and body detections) helps eliminating failures (shown in red) of object detectors.

Key Results

  • Quantitative Gains: On the MarchingRally and TownCenter sequences, the proposed method outperformed greedy baselines by over 20% in Average Precision for long-term re-detection tasks.
  • Optimality: The rounding heuristic achieved suboptimality certificates of approximately $10^{-3}$, meaning the results are nearly as good as a perfect (but computationally impossible) global solver would produce.
  • Robustness: The method showed comparable or better performance than state-of-the-art methods (like Milan et al.) on PETS and TUD, despite these datasets having very different camera angles and crowd densities.
Figure 3: Re-detection AP results. Note how the "NF + Overlap" (red) and "NF + Co-occurrence" (magenta) curves significantly outperform the basic network flow (blue) and greedy (black) baselines as the time interval increases.

Limitations and Future Work

  • Computational Complexity: While efficient for medium-sized problems, the LP relaxation can become large. For the TownCenter dataset, the number of variables reached 5 million, leading to runtimes of 30–45 minutes.
  • Manual Tuning: The pairwise costs currently rely on manually set parameters (like the overlap threshold). The authors suggest that future work could involve learning these costs from labeled data using structured output learning.
  • Generalization: The framework is generic, and the authors envision applying it to model even more complex behaviors, such as group dynamics in panic or street-crossing scenarios.

Summary updated

BibTeX
@inproceedings{chari2015pairwise,
  author = {Visesh Chari and Simon Lacoste-Julien and Ivan Laptev and Josef Sivic},
  title = {{On Pairwise Cost for Multi-Object Network Flow Tracking}},
  booktitle = {HAL},
  year = {2015},
}
Figure