Disciplined Multi-Convex Programming

Xinyue Shen, Steven Diamond, Madeleine Udell, Yuantao Gu, Stephen Boyd · DOI

Abstract

A multi-convex optimization problem is one in which the variables can be partitioned into sets over which the problem is convex when the other variables are fixed. Multi-convex problems are generally solved approximately using variations on alternating or cyclic minimization. Multi-convex problems arise in many applications, such as nonnegative matrix factorization, generalized low rank models, and structured control synthesis, to name just a few. In most applications to date the multi-convexity is simple to verify by hand. In this paper we study the automatic detection and verification of multi-convexity using the ideas of disciplined convex programming. We describe an implementation of our proposed method that detects and verifies multi-convexity, and then invokes one of the general solution methods.

Introduction

In the landscape of mathematical optimization, convex problems are highly prized because they are efficiently solvable and offer guarantees of global optimality. However, many critical problems in machine learning, signal processing, and control theory are inherently non-convex. A significant and useful subset of these is multi-convex problems. In a multi-convex problem, the objective and constraints are not convex globally, but they become convex if the variables are partitioned into blocks and all but one block are held constant.

Traditionally, researchers have identified these structures manually, writing custom scripts to perform Block Coordinate Descent (BCD)—an iterative process of fixing some variables and solving for others. While effective, this manual approach is error-prone and lacks a standardized modeling language. This paper introduces Disciplined Multi-Convex Programming (DMCP), a framework that automates the detection, verification, and solution of these problems by extending the principles of Disciplined Convex Programming (DCP).

The DMCP Framework

DMCP builds directly upon the methodology powering tools like CVXPY. It introduces a formal system to handle non-convex expressions that exhibit convex structures under specific partitions.

1. Composition Rules and Signed DCP

The core of DMCP is a set of composition rules. By utilizing multi-convex "atoms"—such as multiplication ($x \times y$) or convolution—the system can formally guarantee a problem's multi-convexity. A critical component of this verification is Signed DCP. In many cases, knowing the sign of a variable (whether it is strictly positive or negative) is the key to unlocking convexity. DMCP leverages these sign properties to verify compositions that standard convex solvers would otherwise reject.

2. The Parameter Trick

To verify if a problem is convex in a variable $x$ when $y$ is fixed, the DMCP system employs a "parameter trick." It temporarily replaces $y$ with a symbolic parameter. If the resulting simplified problem passes standard DCP checks, the original expression is verified as multi-convex with respect to that partition.

Automated Variable Partitioning via Conflict Graphs

One of the most innovative aspects of DMCP is the automation of variable grouping. The system treats the manual intuition of "fixing $x$ to solve for $y$" as a graph-theoretic problem:

  • The Conflict Graph: The system constructs a graph where each node represents a variable.
  • Edges: An edge is drawn between two variables if they appear together in a way that violates global convexity (e.g., they are multiplied together).
  • Independent Sets: By finding "independent sets" within this conflict graph, the algorithm automatically discovers the largest possible blocks of variables that can be optimized simultaneously. This ensures the BCD process is as efficient as possible, reducing the number of iterations needed to reach a solution.

Enhanced BCD Solver

Once a problem is verified and partitioned, DMCP invokes a robust version of the Block Coordinate Descent algorithm. To improve stability and performance, the authors introduced several enhancements:

  • Slack Variables: These are used to prevent the solver from becoming stuck if an intermediate iteration becomes temporarily infeasible.
  • Proximal Terms: These add a "damping" effect to the iterations. By penalizing large jumps between steps, proximal terms prevent divergence and help the solver navigate complex landscapes more smoothly.
  • Integration: The framework is implemented as a Python package (dmcp) that seamlessly extends the existing CVXPY ecosystem.

Applications and Benchmarks

The authors evaluated DMCP across a diverse range of domains, demonstrating that the framework can replace hundreds of lines of custom optimization code with just a few lines of high-level Python. Key application areas included:

  • Control Theory: Bilinear control of D.C. motors and sparse feedback matrix design.
  • Signal Processing: Blind deconvolution and linear transceiver design.
  • Machine Learning: Sparse dictionary learning and Non-negative Matrix Factorization (NMF).
  • Circuit Design: Resistance estimation in DC circuits.
  • Probability: Calculating the steady state of Markov chains.

In several test cases, including fractional optimization and basic bilinear problems, the DMCP framework successfully reached the global optimum, despite BCD being a local heuristic.

Discussion and Limitations

While DMCP significantly lowers the barrier to solving multi-convex problems, it remains a heuristic for non-convex optimization. As such, it is subject to certain limitations:

  • Local Optima: The solver can get stuck in local minima or saddle points. The final result is often highly dependent on the initial starting point.
  • Convergence Theory: While the implementation is robust, the formal convergence theory for BCD variants using slack variables is not yet fully established for all non-smooth cases.
  • Atom Library: The current system relies on a specific set of multi-convex atoms. Future work involves expanding this library to include more complex functions, potentially bridging the gap toward deep learning applications.

Conclusion

Disciplined Multi-Convex Programming transforms the "art" of multi-convex optimization into a rigorous, automated science. By providing a standardized way to model and solve these problems, DMCP allows researchers to focus on problem formulation rather than the minutiae of solver implementation, opening the door for more complex non-convex modeling in engineering and data science.

Summary updated

BibTeX
@misc{shen2016disciplined,
  author = {Xinyue Shen and Steven Diamond and Madeleine Udell and Yuantao Gu and Stephen Boyd},
  title = {{Disciplined Multi-Convex Programming}},
  year = {2016},
  eprint = {1609.03285},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1609.03285},
}
Figure