TL;DR
SurCo is a novel optimization framework that allows developers to use fast, industry-standard linear combinatorial solvers to solve complex, nonlinear optimization problems. By learning linear surrogate cost functions end-to-end through a differentiable solver pipeline, SurCo bypasses the need for slow, brittle heuristics or reinforcement learning, delivering better solutions up to two orders of magnitude faster.
What Problem Does This Paper Address?
Combinatorial optimization is everywhere—from routing delivery trucks to scheduling factory floors and distributing data across GPU clusters. Decades of research have produced incredibly powerful solvers (like Gurobi or SCIP) that can solve massive Mixed-Integer Linear Programming (MILP) problems with tens of thousands of variables in minutes.
However, these solvers have a major Achilles' heel: they require the objective function to be linear or convex. In the real world, objectives are rarely that well-behaved. For instance, calculating the network latency of a database or the physical performance of a silicon chip involves highly complex, nonlinear interactions.
Faced with nonlinear objectives and strict combinatorial constraints, engineers usually resort to two imperfect options:
- Hand-crafted heuristics or evolutionary algorithms: These are slow, prone to getting stuck in local minima, and require intense domain expertise.
- Deep Learning / Reinforcement Learning: While flexible, direct solution prediction often struggles to output answers that strictly satisfy complex combinatorial constraints (e.g., ensuring a truck doesn't exceed its weight capacity).
SurCo bridges this gap by combining the flexibility of gradient-based deep learning with the rigorous constraint-handling of traditional discrete solvers.
Methods
The core idea behind SurCo is simple yet powerful: instead of changing the solver to handle a nonlinear objective, SurCo learns a linear "surrogate" objective ($\hat{c}$) that tricks an off-the-shelf linear solver into finding the optimal solution for the original nonlinear problem.
To make this work, the authors leverage recent advances in differentiable optimization. By computing gradients through the discrete solver, they can optimize the surrogate costs end-to-end using standard gradient descent.
The authors propose three distinct flavors of SurCo depending on the deployment scenario:
- SurCo-zero (On-the-fly): Used when optimizing a single, isolated problem instance from scratch. It iteratively updates the surrogate cost vector based on the gradient of the true nonlinear objective.
- SurCo-prior (Offline Training): A neural network is trained on a dataset of historical problem instances to directly predict the best surrogate costs from the problem's description. At test time, it outputs a solution instantly in a single solver pass.
- SurCo-hybrid (Fine-tuning): Combines both approaches. It uses the offline neural network (SurCo-prior) to get a high-quality initial guess, then rapidly fine-tunes it on-the-fly (SurCo-zero) for the specific instance at hand.
Datasets
The authors evaluated SurCo across three challenging, real-world domains:
- Embedding Table Sharding: Evaluated using the public Deep Learning Recommendation Model (DLRM) dataset. The task is to distribute massive AI embedding tables across multiple GPUs to minimize latency without exceeding memory limits.
- Inverse Photonic Design: Evaluated on the Ceviche Challenges benchmark. This involves designing physical, 2D binary pixel layouts for optical chips that route different wavelengths of light while adhering to strict manufacturing constraints.
- Nonlinear Route Planning: A synthetic 5x5 grid graph benchmark where edge weights are random variables, and the goal is to maximize the probability of arriving at a destination before a strict deadline.
Key Insights and Ideas
- Predicting Costs is Easier Than Predicting Solutions: A standout contribution of the paper is a theoretical proof showing why SurCo works better than standard machine learning approaches. Traditional ML models try to map a problem description directly to a discrete solution ($y \to x^*$). Because combinatorial solutions "jump" discretely, this mapping has an infinite Lipschitz constant, making it incredibly hard to learn. SurCo maps problem descriptions to continuous surrogate costs ($y \to c$), which is smooth, continuous, and fundamentally easier for a neural network to master.
- Solvers as Feasibility Guarantees: Because the final solution is always output by a real combinatorial solver, the solutions are guaranteed to be mathematically feasible, completely avoiding the "hallucination" or constraint-violation issues common in pure deep learning approaches.
- Escaping Local Minima: The embedded branch-and-bound search within traditional MILP solvers acts as a natural mechanism to help gradient descent jump out of local minima in large-scale problems.
Key Results
- Embedding Sharding: SurCo-hybrid achieved lower latency plans than domain-expert heuristics and DreamShard (a state-of-the-art Reinforcement Learning baseline), particularly as the number of tables scaled up to 60.
- Inverse Photonics: SurCo-prior achieved similar success rates to existing specialized physics-based gradient methods but ran two orders of magnitude faster because it avoids expensive on-the-fly optimization loops.
- Route Planning: In zero-shot settings, SurCo-zero consistently outperformed domain heuristics and matched the performance of a heavy-duty commercial solver (SCIP) allowed to run for 30 minutes—but completed the task in less than a second.
Limitations and Future Work
The primary limitation acknowledged by the authors is the vertex limitation. Because SurCo relies on a linear surrogate objective, the underlying solver will always return a vertex (an extreme corner point) of the feasible region. If the true global optimum of a nonlinear problem lies strictly in the interior of a continuous relaxation space, SurCo cannot natively pinpoint it.
The authors note that while many real-world industrial problems naturally feature binary decision variables (where solutions are inherently on the vertices), extending SurCo to effectively handle interior-point nonlinear solutions remains an exciting direction for future research.
Summary updated