Learnable Graph Matching: Incorporating Graph Partitioning With Deep Feature Learning for Multiple Object Tracking

Jiawei He, Zehao Huang, Naiyan Wang, Zhaoxiang Zhang

Abstract

Multiple Object Tracking (MOT) often struggles with severe occlusions and inconsistent feature learning. We present GM-Tracker, a framework that reformulates data association as a differentiable graph matching problem. By modeling intra-frame relationships and embedding a quadratic assignment solver directly into the neural network, our approach learns features optimized for the assignment task while leveraging spatial-temporal context to maintain identity consistency.

Introduction

GM-Tracker bridges the gap between deep feature learning and classical combinatorial optimization for Multiple Object Tracking (MOT). By formulating data association as a differentiable graph matching problem, the model allows a neural network to learn features specifically optimized for the final assignment task. Simultaneously, it captures complex "group" relationships between objects to better handle severe occlusions.

Problem Statement: The Limitations of Current MOT

The standard "tracking-by-detection" approach involves detecting objects in each frame and associating those detections with existing "tracklets." However, current state-of-the-art methods suffer from three major flaws:

  1. Ignoring Context: Most trackers treat objects in isolation. If a person is occluded, the tracker often fails because it ignores the "neighborhood context"—the fact that the person was walking as part of a specific group.
  2. The Optimization Gap: End-to-end deep learning models often lack the structural rigor of classical optimization-based assignment methods like the Hungarian algorithm.
  3. Training Inconsistency: Feature extractors are often trained separately from the association logic, leading to a mismatch where features are not perfectly suited for the final matching step.
Comparison of Hungarian Algorithm and Graph Matching in an occlusion case. Graph matching (b) utilizes second-order relationships to correctly associate detections even when individual features are ambiguous due to occlusion (c).

Proposed Method: Learnable Graph Matching

The core innovation is Learnable Graph Matching. Instead of simple bipartite matching, the relationships between tracklets and new detections are modeled as a general undirected graph.

Graph Construction and Second-Order Matching

The system builds a "Detection Graph" for the current frame and a "Tracklet Graph" for history. Edges in these graphs represent spatial and appearance relationships between objects in the same frame. Unlike standard methods that only match points (vertex-to-vertex), this method matches edges (edge-to-edge). This allows the model to recognize that if two people were walking together in the past, they should likely still be "together" in the current frame, even if one is partially hidden.

The Tracklet Graph Construction pipeline. Features are extracted from tracklet image sequences, averaged, and used to construct a graph representing historical object relationships.

Differentiable Optimization Layer

To make this trainable, the NP-hard Quadratic Assignment Problem (QAP) is relaxed into a continuous Quadratic Program (QP). Using the implicit function theorem and KKT conditions, this optimization solver becomes a differentiable layer within the neural network. This allows the model to backpropagate gradients through the actual optimization process, ensuring the feature extractor learns representations that facilitate optimal matching.

Cross-Graph Message Passing

Before matching, a Graph Convolutional Network (GCN) is used to pass messages between the two graphs. This allows features to "adapt" to the current scene context before the final assignment is made.

Experimental Evaluation

The model was evaluated on the MOT16 and MOT17 benchmarks, featuring challenging pedestrian tracking in various conditions. Feature pre-training utilized standard Re-Identification (ReID) datasets including Market1501, DukeMTMC, and CUHK03.

Key Results

GM-Tracker achieved state-of-the-art performance on the MOT16 and MOT17 leaderboards:

  • IDF1 Score: On MOT17, the method achieved an IDF1 of 63.8 (online) and 68.7 (with post-processing), significantly outperforming other online trackers. IDF1 is a crucial metric as it measures identity consistency over time.
  • Ablation Studies: The Graph Matching (GM) component alone provided a ~2% jump in IDF1 over a baseline using the standard Hungarian algorithm.

Discussion and Insights

  • Context is King: Intra-frame relationships are as vital as inter-frame relationships. This is particularly effective for "group" motion.
  • Optimization as a Layer: The paper demonstrates that the flexibility of Deep Learning can be combined with the mathematical guarantees of Optimization.
  • Edge-to-Edge Similarity: By modeling the similarity between pairs of objects, the tracker becomes much more robust to identity switches during heavy crowding.

Limitations and Future Work

While effective, solving a Quadratic Program (QP) in every frame is computationally more expensive than linear assignment. Real-time performance on high-density streams remains a challenge. Future work could involve integrating more sophisticated learnable motion models or testing robustness on other object classes like vehicles or athletes.

Summary updated

BibTeX
@inproceedings{he2021learnable,
  author = {Jiawei He and Zehao Huang and Naiyan Wang and Zhaoxiang Zhang},
  title = {{Learnable Graph Matching: Incorporating Graph Partitioning With Deep Feature Learning for Multiple Object Tracking}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2021},
  doi = {10.1109/cvpr46437.2021.00526},
}
Figure