DOGE-Train: Discrete Optimization on GPU with End-to-End Training

Ahmed Abbas, Paul Swoboda

Introduction

Integer Linear Programming (ILP) is a fundamental tool in combinatorial optimization, essential for applications ranging from logistics to computer vision. However, solving ILPs is NP-hard. Most practical approaches rely on Linear Programming (LP) relaxations to find lower bounds. Traditional LP solvers, such as Gurobi or CPLEX, are highly optimized but primarily sequential, non-differentiable, and difficult to accelerate with GPUs or enhance through Machine Learning (ML).

While ML has previously assisted in sub-tasks like branching or cutting plane selection, it has struggled to replace core LP relaxation algorithms. The challenge lies in creating a solver that is both mathematically rigorous—guaranteeing valid bounds—and flexible enough to learn from data. DOGE-Train addresses this by embedding a parallel Lagrange decomposition algorithm directly into a differentiable neural network framework.

Methodology: Differentiable Solver Layers

DOGE-Train builds upon FastDOG, a massively parallel GPU-based solver utilizing Lagrange decomposition. The core innovation lies in making this optimization process "trainable" through several key architectural choices.

DOGE-Train architecture: A GNN predicts parameters for differentiable dual update layers, trained end-to-end to maximize the dual objective.

The framework consists of:

  1. Differentiable Solver Layers: The authors generalize the "Min-Marginal Averaging" algorithm, exposing parameters such as damping factors ($\omega$) and averaging weights ($\alpha$). They derive the necessary mathematics to backpropagate gradients through these optimization steps.
  2. GNN Parameter Prediction: A Graph Neural Network (GNN) processes the optimization problem's structure, represented as a bipartite graph, to predict optimal $\alpha$ and $\omega$ values for each iteration.
  3. Escaping Fixed Points: Coordinate ascent algorithms often stall at suboptimal "fixed points." DOGE-Train uses the GNN to predict a non-parametric "nudge" ($\theta$), helping the solver escape these traps.
  4. Unsupervised Training: The model is trained without "ground truth" solutions. Instead, it uses an unsupervised loss function that seeks to maximize the dual objective (the lower bound).
  5. Recurrent Adaptivity: The "DOGE-M" variant incorporates an LSTM to maintain a memory of previous optimization rounds, allowing the solver to adapt its strategy dynamically.

Experimental Evaluation

The authors evaluated DOGE-Train across four diverse domains: Cell Tracking (CT), Graph Matching (GM), Independent Set (IS), and benchmark Quadratic Assignment Problems (QAPLib). The models were trained on small instances and tested on significantly larger ones to assess generalization.

Comparison of relative dual gap over time. DOGE-Train variants (dashed lines) achieve lower gaps faster than traditional solvers like Gurobi in early optimization stages.

Key Results

  • Accuracy and Speed: DOGE-Train achieved relaxation solutions an order of magnitude more accurate than the non-learned FastDOG baseline.
  • Any-time Performance: Compared to the industry-standard Gurobi, DOGE-Train provided superior solutions in the early stages of optimization. While Gurobi eventually finds the global optimum, DOGE-Train is more effective when high-quality solutions are needed rapidly for large-scale problems.
  • Generalization: Despite having only ~10k–12k parameters, the GNN generalizes remarkably well, solving problems with 50k nodes after being trained on only 10k nodes.

Insights and Future Work

A critical insight from this work is the importance of inductive bias. By embedding "solver primitives" (like subgradients and coordinate ascent) into the GNN, the model learns significantly faster than a generic neural network. Furthermore, using the GNN to specifically target the weaknesses of coordinate ascent allows the solver to continue improving where traditional algorithms would stall.

Currently, separate models are trained for different datasets. A major future objective is the development of a single "universal" model capable of generalizing across all types of discrete optimization problems. Additionally, addressing sequential bottlenecks in certain problem classes, like specific Markov Random Fields (MRFs), remains an open challenge for parallel GPU acceleration.

Summary updated

BibTeX
@inproceedings{abbas2024doge,
  author = {Ahmed Abbas and Paul Swoboda},
  title = {{DOGE-Train: Discrete Optimization on GPU with End-to-End Training}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i18.30048},
}
Figure