Solving Linear Programs with Fast Online Learning Algorithms

Wenzhi Gao, Dongdong Ge, Chunlin Sun, Yinyu Ye

Linear Programming (LP) is a fundamental tool in optimization, underpinning critical systems in logistics, finance, and operations research. However, as modern datasets expand to encompass millions or even trillions of variables, traditional exact solvers like the Simplex or Interior Point methods face severe scalability limits. Even modern First-Order Methods (FOMs), which are generally more scalable, eventually bottleneck on memory and compute due to expensive matrix-vector multiplications ($Ax$ and $A^\top y$).

This paper explores a novel workaround: adapting ultra-fast, one-column-at-a-time "online" learning algorithms to solve static, "offline" LPs. By introducing a variable-duplication technique and integrating these algorithms into a column-generation framework known as sifting, the authors develop a solver that avoids matrix multiplications entirely, offering significant speedups for both approximate and exact LP solving at scale.

Adapting Online Algorithms for Offline Optimization

In online LP, decisions are made sequentially as data arrives (e.g., a flight booking system processing customers one by one). The authors adapt two specific online learning updates for offline use:

  1. Explicit Subgradient Update: A highly efficient method that approximates the dual objective using a linear function.
  2. Implicit Proximal Point Update: A more robust approach that preserves deeper information about the objective function, making it particularly adept at handling fractional solutions.

Because these algorithms process the constraint matrix one column at a time, they are entirely matrix-free. This drastically reduces memory overhead, allowing the methods to scale to massive problems where even storing the full constraint matrix in memory is prohibitive.

The Power of Variable Duplication

In a standard online setting, an algorithm typically observes a data sample only once. In an offline setting, however, the entire dataset is available. The authors exploit this by introducing a Variable Duplication technique. By duplicating each variable $K$ times and running the online algorithm on this augmented problem, the algorithm can better approximate fractional values (e.g., if $K=10$, averaging can represent increments of $0.1$). The authors prove mathematically that this duplication reduces both the optimality gap and constraint violations by a factor of $\sqrt{K}$.

Synergy with Sifting

Sifting is an exact LP technique designed for problems where the number of variables ($n$) vastly exceeds the number of constraints ($m$). It operates by optimizing over a small "working set" of variables.

The authors demonstrate that online algorithms act as excellent "scouts" for sifting. While the online algorithm might not instantly find the exact optimal solution, it is highly effective at identifying which variables belong in the optimal basis. By using the online algorithm to initialize the working set and stabilize the dual variables, the authors successfully prevent the oscillation that typically slows down traditional sifting solvers.

Experimental Results

The authors evaluated their approach across a variety of datasets, including Synthetic Multi-Knapsack Problems (MKP), large-scale LP benchmarks (Mittelmann 2022), MIPLIB relaxations, and modified Netlib instances.

Key findings include:

  • Approximate Solving: With moderate duplication ($K$), the matrix-free algorithms consistently achieved over 90% relative optimality on synthetic datasets.
  • Exact Solving Acceleration: When used as a pre-solver for sifting, the online algorithm successfully identified over 90% of the basic columns in most benchmark instances, all while keeping the initial working set remarkably small (often under 20% of the total columns).
  • Outperforming Commercial Solvers: On synthetic datasets, the proposed sifting approach (powered by the online initialization) outperformed the commercial CPLEX sifting solver by more than 50% in terms of CPU time.

Limitations and Future Directions

While the theoretical bounds are sharp and synthetic performance is exceptionally strong, the authors note an implementation gap on certain real-world benchmarks. The custom sifting implementation is preliminary compared to the highly mature, multi-decade optimizations found in commercial tools like CPLEX.

Furthermore, the theoretical guarantees rely on specific non-degeneracy assumptions (e.g., no more than $m$ columns satisfying a specific dual condition), which may require small perturbations to hold in practice. Future work will explore extending these matrix-free online initializations to Mixed-Integer Programming (MIP), potentially accelerating branch-and-bound trees for complex discrete optimization problems.

Summary updated

BibTeX
@inproceedings{gao2023solving,
  author = {Wenzhi Gao and Dongdong Ge and Chunlin Sun and Yinyu Ye},
  title = {{Solving Linear Programs with Fast Online Learning Algorithms}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=7BDNbefKxo},
}
Figure