NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

DuaLip-GPU Technical Report

Gregory Dexter, Aida Rahmattalabi, Sanjana Garg, Qinquan Song, Ruby Tu, Yuan Gao, Yi Zhang, Zhipeng Wang, Rahul MazumderarXiv 2026

TL;DR

LinkedIn has re-engineered its open-source linear programming solver, DuaLip, moving from a rigid, CPU-centric Scala/Spark stack to a flexible, GPU-accelerated Python library. By combining an operator-centric programming model with GPU-tailored sparse layouts and algorithmic enhancements, the new system achieves over a 10× wall-clock speedup on massive industrial matching workloads while scaling seamlessly across multiple GPUs.

What Problem Does This Paper Address?

Large-scale linear programs (LPs) are the backbone of modern industrial decision systems, powering everything from ad allocation and content recommendation to bipartite matching problems solved on recurring cadences. While first-order optimization methods (like ridge-regularized dual ascent) have proven capable of scaling to these massive problems, historical implementations have suffered from two major bottlenecks:

  1. Rigid Architecture: Previous systems, like LinkedIn's original Scala/Spark-based DuaLip, were tightly coupled to specific problem schemas. Adding new types of constraints required invasive, codebase-wide rewrites.
  2. Hardware Inefficiency: The CPU-centric runtime prevented these solvers from taking advantage of modern GPU accelerators. Meanwhile, general-purpose first-order GPU solvers (like cuPDLP) treat constraint matrices as unstructured, failing to exploit the distinct block-diagonal structures inherent to large-scale matching problems.

The authors set out to build a solver that is both highly modular (allowing easy composition of new constraints) and natively optimized for distributed GPU execution.

Methods

The authors tackled these challenges by co-designing a new programming model, algorithmic enhancements, and GPU-specific data layouts:

  • Operator-Centric Architecture: The library breaks the solver down into three decoupled primitives: a Maximizer (the optimization loop), an ObjectiveFunction (data and dual gradient computation), and a ProjectionMap (blockwise projections onto constraint polytopes). This allows developers to plug in new problem logic locally without touching the core optimization loop.
Core objects, what constructs them, and the single required method each exposes.
  • Algorithmic Enhancements: To stabilize and accelerate first-order convergence, the authors introduced:
  • Jacobi-style row normalization to precondition the dual Hessian and handle poorly conditioned constraint matrices.
  • Primal coordinate scaling to balance heterogeneous variable scales.
  • Regularization decay, a continuation scheme that starts with a larger ridge regularization parameter $\gamma$ for rapid early progress and gradually decays it to preserve final solution fidelity.
  • GPU & Distributed Optimizations:
  • Constraint matrices are stored in Compressed Sparse Column (CSC) format ordered by destination, aligning perfectly with GPU tensor operations.
  • To avoid the high overhead of launching thousands of tiny GPU kernels for individual column projections, the authors implemented geometric bucketing. Slices are grouped logarithmically by length into dense, padded batches, maximizing GPU occupancy.
  • The distributed multi-GPU execution pattern shards the problem columns across devices but replicates the dual variables ($\lambda$). This ensures that the communication volume per step depends strictly on the dual dimension $|\lambda|$, completely independent of matrix sparsity or sharding size.

Datasets

Because public, extreme-scale real-world matching datasets are scarce, the authors evaluated their system using large-scale synthetic matching data designed to mimic production workloads. The generation process simulated sparse bipartite interaction graphs with:

  • Problem sizes ranging from 25 million to 100 million sources (users).
  • 10,000 destinations (items/campaigns).
  • Sparsity levels of 0.001 and 0.01 to test both structured and unstructured sparsity patterns.

Key Insights and Ideas

  • Exploiting Structure Beats Generalization: Treating the constraint matrix as an unstructured operator misses massive optimization opportunities. Natively capturing the diagonal block structure of matching problems allows user-side constraints to be handled implicitly within primal subproblems, reducing the number of explicit dual variables from $I + J$ to just $J$.
  • Geometric Padding is a Worthwhile Tradeoff: While padding sparse data introduces redundant calculations, grouping irregular slices into dense, logarithmically spaced buckets dramatically reduces GPU kernel launch overhead. The resulting boost in GPU occupancy far outweighs the cost of the extra padded computations.
  • Communication-Light Scaling: Replicating only the dual variables across GPUs means that even as the problem scales to hundreds of millions of variables, the communication overhead remains minimal and bounded, enabling near-linear multi-GPU scaling.

Key Results

  • Numerical Parity: The PyTorch implementation achieved near-perfect trajectory overlap with the original production Scala solver, with relative dual objective error dropping below 1% within the first 100 iterations.
  • Order-of-Magnitude Speedups: For a 25M source problem, a single GPU reduced the per-iteration time from 2.46 seconds (Scala) to just 0.27 seconds.
  • Linear Scaling: As problem sizes grew to 100M sources (requiring multi-GPU sharding due to memory limits), the system demonstrated excellent scaling, achieving a 3.86× speedup on 4 GPUs relative to a single-GPU baseline.
  • Algorithmic Impact: Ablation studies showed that Jacobi preconditioning significantly accelerated early-stage convergence, while the $\gamma$-decay schedule successfully prevented the optimization from stalling.

Limitations and Future Work

The primary limitation acknowledged by the authors is their reliance on synthetic data due to the lack of open, extreme-scale industrial matching datasets. Additionally, while the architecture is theoretically general enough for any LP with decomposable constraints, the current implementation and evaluation focus heavily on matching workloads.

Future work includes benchmarking the core dual-ascent method against standard, non-matching linear programming benchmark suites to evaluate its broader general-purpose utility.

Summary updated

BibTeX
@misc{dexter2026dualip,
  author = {Gregory Dexter and Aida Rahmattalabi and Sanjana Garg and Qinquan Song and Ruby Tu and Yuan Gao and Yi Zhang and Zhipeng Wang and Rahul Mazumder},
  title = {{DuaLip-GPU Technical Report}},
  year = {2026},
  eprint = {2603.04621},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2603.04621},
}
Figure