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

Learning Initial Basis Selection for Linear Programming via Duality-Inspired Tripartite Graph Representation and Comprehensive Supervision

Anqi Lu, Junchi YanICML 2025

This paper introduces a novel deep learning framework to accelerate one of the workhorses of modern optimization: the Simplex method for Linear Programming (LP). By utilizing a duality-inspired tripartite graph representation and a "comprehensive supervision" training strategy, the authors achieve significant speedups in solving time over previous state-of-the-art methods.

The Challenge of Initial Basis Selection

Linear Programming (LP) is foundational to numerous applications, from logistics to power grid management. While the Simplex method remains a primary algorithm for solving LPs, its efficiency depends heavily on its starting point, known as the initial basis.

A "warm start"—choosing a starting basis close to the optimal one—can drastically reduce the number of iterations a solver needs. However, simply predicting the optimal basis is challenging for several reasons:

  1. Structural Complexity: Standard Graph Neural Networks (GNNs) often use bipartite graphs (variables and constraints), which struggle to capture crucial information like objective coefficients and variable bounds effectively.
  2. Label Inconsistency: LP problems often have multiple equivalent optimal bases. If a model is trained on "noisy" labels where identical problems have different basis assignments, it struggles to converge.
  3. Feasibility vs. Proximity: A predicted basis that is "close" to the optimum but mathematically "infeasible" can actually slow down a solver, as it forces the solver into a costly "Phase I" recovery process.

Proposed Methodology

To tackle these hurdles, the authors introduce major innovations in graph representation and training supervision.

Duality-Inspired Tripartite Graph

Instead of a simple variable-constraint graph, the proposed model utilizes a tripartite graph consisting of:

  • Primal Nodes ($V_{primal}$): Representing the original variables.
  • Dual/Constraint Nodes ($V_{dual} \cup C$): Representing constraints and variable bounds.
  • Global Node ($O$): A central hub that aggregates global problem features, such as objective function statistics.
Tripartite graph representation and message passing

This structure explicitly encodes the mathematical relationship between the primal and dual forms of the LP, allowing the GNN to "see" the problem from both perspectives simultaneously. The message-passing layers naturally emulate the logic of optimization theory.

Comprehensive Supervision and Label Preprocessing

The training process goes beyond simple classification of the final optimal basis:

  • Multi-level Labels: The model learns from "feasible bases" sampled along the solver's path. This teaches the GNN not just the destination, but the "territory" of feasible solutions, making predictions more "solver-friendly."
  • Custom Loss Functions: Specific loss components are designed for basic variable selection (ensuring the right number of variables are chosen) and basis feasibility.
  • Label Preprocessing: To solve the "label inconsistency" problem, knowledge-based masks and data preprocessing are applied. By training on presolved instances (where redundant constraints are removed), the model reduces the "Bayesian error" caused by redundant or symmetrical problem representations.

Datasets and Evaluation

The model was evaluated on several well-known optimization benchmarks:

  • MIRP (Maritime Inventory Routing Problem): Specifically the Mirp1 and Mirp2 sets.
  • Load Balance & Anonymous: Datasets from the NeurIPS 2021 ML4CO competition.
  • Large-scale Instances: Evaluation included massive LPs that take hours to solve using standard methods.

Key Results

The proposed model, tripartiteBMP, was tested against the state-of-the-art (SOTA) bipartite GNN and the default HiGHS solver.

Performance comparison of TripartiteBMP against baselines
  • Significant Speedup: On average, the model halved both the number of iterations and the total solving time compared to previous SOTA methods.
  • Extreme Efficiency: On the Mirp1 dataset, the model reduced average iterations to 32% and solving time to 42% of the baseline.
  • Scalability: The approach maintained its performance even on very large instances, where the computational overhead of the GNN (usually <1 second) was negligible compared to the hours saved in solver iterations.

Limitations and Future Work

While highly effective, the approach has some limitations:

  • Inference Overhead: For very small, "easy" LPs, the time taken to run the GNN might be longer than the time saved in iterations. This tool is primarily designed for complex, large-scale problems.
  • Generalization: Cross-dataset performance is strong, but the model performs best when test problems share structural similarities with the training set.

Future directions include extending this tripartite representation to Mixed-Integer Programming (MIP), where the search space is even more complex and the potential for speedup is even greater.

Summary updated

BibTeX
@inproceedings{lu2025learning,
  author = {Anqi Lu and Junchi Yan},
  title = {{Learning Initial Basis Selection for Linear Programming via Duality-Inspired Tripartite Graph Representation and Comprehensive Supervision}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=WtD8EIzkmm},
}
Figure