Shannon-and von neumann-entropy regularizations of linear and semidefinite programs

Saroj Prasad Chhatoi, Jean B. LasserrearXiv 2025 · DOI

Abstract

We consider the Linear Program (LP) in standard form $\min \{c^T x : Ax = b, x \ge 0\}$ and, inspired by $\varepsilon$-regularization in Optimal Transport, introduce its regularization via the convex Boltzmann-Shannon entropy $f(x) := \sum x_i \ln x_i$. We extend this approach to Semidefinite Programs (SDP) $\min \{\text{Tr}(C \bullet X) : \mathcal{A}(X) = b, X \succeq 0\}$ using von Neumann entropy. Unlike traditional log-barrier functions, these entropy terms are not barriers of the LP and SDP cones. We demonstrate that these regularized problems admit equivalent unconstrained convex dual problems $\max_{\lambda \in \mathbb{R}^m} G_\varepsilon(\lambda)$ for an explicit concave differentiable function $G_\varepsilon$. As $\varepsilon \to 0$, the optimal value converges to that of the initial problem. This formulation offers a significant advantage: for a fixed $\lambda$, the primal solution is obtained via minimization over the entire space while naturally maintaining non-negativity, enabling efficient unconstrained maximization over $\mathbb{R}^m$.

Introduction

Solving Linear Programs (LPs) and Semidefinite Programs (SDPs) is a cornerstone of mathematical optimization. Traditionally, these problems are solved using interior-point methods that employ "log-barrier" functions to handle non-negativity ($x \ge 0$) or positive semidefiniteness ($X \succeq 0$) constraints. While powerful, these methods require algorithms to carefully navigate the interior of the feasible region, maintaining strict feasibility at every iteration.

In the specialized field of Optimal Transport (OT), researchers have achieved significant performance gains using entropy regularization, most notably through the Sinkhorn algorithm. This paper investigates whether this "entropy trick" can be generalized to solve any standard LP or SDP, transforming constrained problems into simpler, unconstrained dual formulations.

Methodology

Entropy Regularization

The authors propose adding an entropy penalty to the standard objective function, scaled by a small regularization parameter $\varepsilon > 0$:

  1. For LPs: The Boltzmann-Shannon entropy is added: $\varepsilon \sum x_i \ln(x_i)$.
  2. For SDPs: The von Neumann entropy is added: $\varepsilon \text{Tr}(X \ln X)$.

Crucially, entropy is not a barrier function; it does not approach infinity as variables reach the boundary of the feasible set. Instead, its mathematical utility lies in the Lagrangian relaxation. Because the inner minimization over the primal variables ($x$ or $X$) yields an explicit, strictly positive exponential solution, the primal constraints effectively disappear from the dual problem.

The Unconstrained Dual

The resulting dual problem is a smooth, strictly concave maximization over the dual variables $\lambda \in \mathbb{R}^m$. Unlike log-barrier methods, where the dual variables are often constrained to a specific set to keep the gradient well-defined, this formulation is entirely unconstrained. The authors prove that the dual function $G_\varepsilon$ is coercive and differentiable, allowing the use of standard, off-the-shelf quasi-Newton optimizers (such as BFGS) to find the global maximum.

Experimental Evaluation

The proposed method was evaluated on several synthetic benchmarks to test its efficiency and accuracy:

  • Large-Scale LPs: On randomly generated LPs with 10,000 variables and 50 constraints, the unconstrained dual problem (solved via MATLAB’s fminunc) converged in an average of only 15 iterations for $\varepsilon = 0.01$.
  • Synthetic SDPs: For problems involving 100x100 matrices and 20 constraints, the method similarly converged in approximately 15 iterations.
  • Optimal Transport Validation: On a toy 2x2 OT problem, the method produced an optimal value of 1.7906, matching the results of the specialized Sinkhorn algorithm and validating the general framework's consistency with established OT solvers.

Key Insights

Convergence to Maximum Entropy

As the regularization parameter $\varepsilon$ approaches zero, the solution to the regularized problem converges to a specific optimal solution of the original LP/SDP: the unique solution that maximizes the Shannon (or von Neumann) entropy among all possible optimal solutions. This provides a principled way to select a solution in problems with multiple optima.

Comparison with Sinkhorn

While the Sinkhorn algorithm is a specific instance of entropy regularization, the authors clarify why it cannot be applied to all LPs. Sinkhorn’s speed relies on iterative matrix scaling, which is possible only because the constraint matrices in OT problems have a specific separable structure. In general LPs, the constraint matrix $A$ mixes terms in a way that prevents this factorization, necessitating the use of general gradient-based or quasi-Newton solvers.

Limitations and Future Work

Despite the elegance of the unconstrained dual, challenges remain:

  1. Numerical Stability in SDPs: Calculating the dual function for SDPs requires computing matrix exponentials (typically via Singular Value Decomposition). For high-dimensional matrices or very small $\varepsilon$, this becomes computationally expensive and numerically sensitive.
  2. Algorithmic Specialization: Since general LPs lack the structure of OT, they cannot yet benefit from the ultra-fast iterative scaling seen in Sinkhorn. Future research is needed to develop specialized solvers that can better exploit this specific dual formulation and to establish formal convergence rates for fixed $\varepsilon$.

Conclusion

By applying Shannon and von Neumann entropy regularization to general LPs and SDPs, this work provides a bridge between Optimal Transport techniques and general mathematical programming. The transformation of heavily constrained problems into smooth, unconstrained dual problems offers a promising alternative to traditional interior-point methods, particularly for problems where maintaining feasibility is computationally burdensome.

Summary updated

BibTeX
@misc{chhatoi2025shannon,
  author = {Saroj Prasad Chhatoi and Jean B. Lasserre},
  title = {{Shannon-and von neumann-entropy regularizations of linear and semidefinite programs}},
  year = {2025},
  eprint = {2503.23815},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2503.23815},
  howpublished = {arXiv},
}
Figure