arXiv:2610.16948cs.LGOct 2026

Manuscript Offprint

arXiv:2610.16948

Learning to Design Convex Relaxations for Nonconvex Optimization

Jinrun Liu, Bai Yan, Tengfei Liu, Qunfeng Liu, Jian Yang, Shi Cheng, Yuhui Shi, Qi Zhao

Abstract

Convex relaxations make nonconvex optimization tractable by replacing hard nonconvex problems with convex surrogates that give valid bounds. Yet their design is still largely manual: a human expert must decide where to relax, which relaxation to use, and how much formulation growth is worth paying. We show that this design process can be learned. The method proposed in this paper, AutoConvexRelax, represents the symbolic formulation of a nonconvex problem as a tripartite graph linking variables, symbolic terms, and their objective or constraint positions. It then learns a policy that composes symbolic rewrites into problem-specific relaxation trajectories as the formulation evolves. We prove that finite action sequences generated by the learned policy preserve relaxation validity under explicit domain, occurrence-context, and representation-consistency conditions. We further establish computable error bounds for mixed relaxations and sufficient conditions for feasible recovery and global-optimality certification. As a first instantiation, we apply the method to nonconvex quadratic problems and fractional problems. On 241 benchmark quadratic instances, the learned policy strengthens McCormick lower bounds by 13.52%. Its mean lower bound is 3.70% below strengthened semidefinite relaxations on the normalized comparison metric, while it uses substantially smaller formulations. The learned policy retains this trade-off on fractional instances and reaches near-semidefinite bounds on beam-forming and sensor-network localization instances. These results suggest that convex relaxation design can move from a fixed handcrafted choice to an automated learning process that adapts to problem structures. Code is available at https://github.com/auto4opt/AutoConvexRelax.

Keywords: Nonlinear programming, Convex relaxation, Learning for optimization, Reinforcement learning

*Corresponding author.

Email address: zhaoq@sustech.edu.cn (Qi Zhao)

1. Introduction

Nonconvex optimization appears throughout science and engineering, from signal processing and communications to control, machine learning, and scientific computing (Belotti et al., 2013; Floudas, 2000). Its difficulty comes from nonconvex couplings between variables, such as bilinear products, indefinite quadratics, polynomial expressions, or more general nonlinear compositions (Tawarmalani & Sahinidis, 2002). Convex relaxation handles the difficulty by replacing the nonconvex structure with a tractable convex surrogate that gives a valid bound (McCormick, 1976). A set of relaxation tools has been developed, such as McCormick envelopes, moment relaxations, semidefinite relaxations, and branch-and-bound methods based on relaxation (Lasserre, 2001; Luo et al., 2010). This makes relaxation design nontrivial. One must choose where to relax, how to relax, and how much formulation growth to allow.

These choices remain largely manual. While solvers can automate standard envelopes, cuts, and node relaxations once a formulation is fixed, the choices considered in this paper arise during formulation construction: which terms to relax, how to relax them, and how much formulation growth to allow. They remain specified by human experts. No single relaxation strategy is best for all nonconvex terms. The right choice depends on the algebraic form of a term, the variables it couples, its role in the objective or constraints, and the cost of the added variables and constraints. Such dependencies are hard to encode as reusable rules. In practice, one term may be relaxed by McCormick envelopes, another by semidefinite lifting (Goemans & Williamson, 1995; Parrilo, 2003), another by quadratic convex reformulation (QCR) (Billionnet et al., 2009), and another left unchanged. The rationale behind these choices often remains in expert practice rather than in a reusable procedure. This makes relaxation design slow, hard to reproduce, and difficult to transfer.

This motivates automated relaxation design. The goal is not to select one relaxation family for an entire problem, such as McCormick envelopes, semidefinite relaxation, or QCR. Nor is it to tune parameters within a fixed scheme. The goal is to construct a relaxation trajectory. At each step, the procedure chooses a target nonconvex term, applies a valid relaxation action, and updates the formulation. This keeps known relaxation tools, but shifts their placement and ordering from expert specification to learned decisions. The resulting trajectories can move beyond fixed single-tool schemes and improve the bound-cost trade-off.

Learning has improved solver decisions and relaxation-oriented choices, including branching, cut selection, relaxation-family selection for quadratically constrained quadratic programs (QC-QPs), partitioning, and linearization (Baltean-Lugojan et al., 2018; Bengio et al., 2021; Bonami et al., 2022; Dedeoglu et al., 2025; Kannan et al., 2025). A separate line uses large language models (LLMs) to generate relaxations during inference (Kim & Pilanci, 2026; Liu et al., 2026; Peng et al., 2026). These developments motivate a further question: can relaxation design be learned as a validity-preserving and reusable construction process over evolving symbolic formulations? Section 2 analyzes how this task differs from decisions within prescribed relaxation schemes and from generate-then-verify search.

Here we make such relaxation trajectories learnable. Starting from the symbolic formulation of a nonconvex problem, the learned policy repeatedly chooses a target term and an admissible relaxation action, rewrites the formulation, and stops when a convex surrogate is obtained. We refer to this method as AutoConvexRelax. The key is to give the policy a decision state that preserves the symbolic semantics needed for relaxation design. A coefficient-level view is not enough; the policy must know the type of each term, the variables it couples, the domains of these variables, and whether the term appears in the objective or in a constraint. We therefore represent each formulation state as a tripartite graph with nodes for variables, symbolic terms, and objective or constraint positions. This graph keeps symbolic terms as explicit decision targets and links them to their variables and formulation positions. A graph neural encoder turns this representation into the state used by the policy.

The second ingredient is an executable action system for relaxation. We do not ask the policy model to invent algebraic rewrites. Instead, we implement known relaxation principles as symbolic transformations with explicit applicability rules. Each action rewrites the formulation only when its validity conditions are satisfied, and then updates the admissible action set. This turns relaxation theory into a composable action space for learning. The action system enforces bound validity, while the policy learns where to apply admissible actions and how to order them. The policy is trained through solver feedback. The reward favors tighter lower bounds and penalizes formulation growth from auxiliary variables and constraints.

We establish theoretical guarantees for the composition of heterogeneous relaxation actions. Under explicit domain, occurrence-context, and shared-representation conditions, we prove that any finite action sequence preserves valid bound semantics, independently of policy quality. We further derive computable objective and constraint discrepancy bounds by propagating local errors through mixed quadratic and fractional representations. Together with original-domain checks and a certified relaxation lower bound, these bounds yield sufficient conditions for feasible recovery and an optimality-gap certificate.

Across 241 held-out QCQPs, 15 held-out fractional instances, and application-derived beam-forming and sensor network localization problems, the learned policy constructs mixed trajectories that apply McCormick relaxations, semidefinite lifting, QCR, and integrality relaxation to different parts of a formulation. These trajectories tighten lightweight relaxations and approach semidefinite bounds without committing to a full semidefinite construction.

The proposed AutoConvexRelax provides a general learning framework for convex relaxation design in nonconvex optimization. By separating the learned construction process from the operator library, the framework is not tied to the QCQP and fractional instantiations studied here. Extending the library with suitable validity-checked operators allows the same construction and learning mechanism to address broader classes of nonconvex problems.

References (32)