Revocable Deep Reinforcement Learning with Affinity Regularization for Outlier-Robust Graph Matching

Chang Liu, Zetian Jiang, Runzhong Wang, Lingxiao Huang, Pinyan Lu, Junchi Yan

Introduction: The Challenge of Outliers in Graph Matching

Graph Matching (GM) is a fundamental task in computer vision and pattern recognition, focused on finding node-to-node correspondences between two graphs—such as matching keypoints between two different images of a vehicle. While deep learning has significantly advanced "front-end" feature extraction, the "back-end" solvers that calculate the actual matches frequently struggle with outliers.

Outliers are nodes present in one graph that lack a true counterpart in the other. Most existing solvers employ a "one-shot" approach, attempting to match as many nodes as possible in a single pass to maximize an overall affinity score. Unfortunately, this often results in "over-matching," where the algorithm forces erroneous matches for outliers simply to inflate the score, degrading the overall alignment accuracy.

Graph matching formulated via an association graph, where nodes represent potential matches and edges represent affinity.

The RGM Approach

To address these limitations, the authors introduce RGM (Revocable Graph Matching), a deep reinforcement learning (RL) approach designed specifically for outlier-robust graph matching. RGM operates on an "association graph" where vertices represent potential node pairs and edges represent the compatibility (affinity) between those pairs.

The framework introduces several key innovations:

Sequential Matching via RL

Instead of matching all nodes simultaneously, RGM utilizes an RL agent (based on a Double Dueling DQN) to select matches sequentially. This step-by-step process naturally accommodates "early stopping"—the agent can simply halt the matching process when it determines no more valid inliers exist.

Revocable Action Framework

In standard RL, actions are typically final. RGM, however, introduces a revocable mechanism. If the agent selects a node pair that conflicts with a previously established match, the environment can "revoke" the older match in favor of the new one. This flexibility allows the agent to correct early mistakes as it uncovers more of the graph's structural context.

Illustration of the revocable action framework, allowing the agent to undo conflicting previous matches.

Affinity Regularization

To prevent the agent from matching outliers just to increase the raw affinity score, the authors introduce a novel regularization term. By applying a quadratic approximation, they transform the objective function so that matching an outlier actually decreases the reward. This mathematical penalty acts as a clear stopping signal, turning a traditional "maximum weight" problem into a "find the optimal subset" problem without requiring the user to manually specify the expected number of inliers.

Experimental Validation and Results

RGM was evaluated across a mix of computer vision benchmarks and combinatorial optimization problems, including synthetic datasets, the Willow Object Class, Pascal VOC, and QAPLIB (a standard library for the Quadratic Assignment Problem).

  • Robustness to Outliers: On the Willow Object dataset, RGM demonstrated superior resilience, achieving a 4% improvement in F1 score over the best existing baselines when 6 outliers were introduced.
  • Superior Optimization: On the QAPLIB benchmark, RGM outperformed recent deep learning solvers in finding the lowest "gap" to the optimal mathematical solution.
  • Boosting Existing Methods: Because RGM focuses on the back-end solver, it is orthogonal to front-end feature extractors. When used to guide existing supervised methods like NGM-v2, RGM increased their F1 scores on the challenging Pascal VOC dataset from ~80% to nearly 82%.
  • Flexibility: The model showed strong generalization capabilities, performing well even when trained on one object category (e.g., cars) and tested on another (e.g., motorbikes).

Limitations and Future Directions

While highly effective, RGM has some limitations. Because the matching is sequential, inference is slower than one-shot solvers, which could pose computational challenges for very large-scale graphs. Additionally, the RL solver is currently trained on fixed affinity matrices; end-to-end joint training of the front-end features and the RL back-end remains difficult due to the non-differentiable nature of the RL reward.

Looking forward, the authors suggest exploring multi-graph matching (aligning more than two graphs simultaneously) as a promising avenue to further mitigate the bias of the affinity objective and improve overall matching robustness.

Summary updated

BibTeX
@inproceedings{liu2023revocable,
  author = {Chang Liu and Zetian Jiang and Runzhong Wang and Lingxiao Huang and Pinyan Lu and Junchi Yan},
  title = {{Revocable Deep Reinforcement Learning with Affinity Regularization for Outlier-Robust Graph Matching}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=QjQibO3scV_},
}
Figure