Operator Scaling via Geodesically Convex Optimization, Invariant Theory and Polynomial Identity Testing

Zeyuan Allen-Zhu, Ankit Garg, Yuanzhi Li, Rafael Mendes de Oliveira, Avi Wigderson

Abstract

We propose a new second-order method for geodesically convex optimization on the natural hyperbolic metric over positive definite matrices. We apply it to solve the operator scaling problem in time polynomial in the input size and logarithmic in the error. This is an exponential improvement over previous algorithms which were analyzed in the usual Euclidean, "commutative" metric (for which the above problem is not convex). Our method is general and applicable to other settings. As a consequence, we solve the equivalence problem for the left-right group action underlying the operator scaling problem. This yields a deterministic polynomial-time algorithm for a new class of Polynomial Identity Testing (PIT) problems, which was the original motivation for studying operator scaling.

Introduction

The intersection of continuous optimization, quantum information, and algebraic complexity theory has recently yielded significant breakthroughs in our understanding of fundamental computational problems. At the heart of this intersection lies the operator scaling problem, a task that involves transforming a set of matrices to satisfy specific structural properties. While historically approached through the lens of Euclidean optimization, this paper demonstrates that a shift to Riemannian geometry—specifically the hyperbolic space of positive definite matrices—unlocks exponential improvements in efficiency. By developing a novel second-order optimization method for geodesically convex functions, we provide a bridge between continuous numerical methods and exact algebraic solutions, most notably in the realm of Polynomial Identity Testing (PIT).

The Challenge: Operator Scaling and Convexity

The operator scaling problem asks whether a given set of matrices can be transformed by linear operators to become "doubly stochastic." This is a higher-dimensional generalization of matrix scaling (e.g., the Sinkhorn-Knopp algorithm), which normalizes rows and columns of a single matrix.

In standard Euclidean space, the objective function associated with operator scaling is non-convex, leading to landscapes filled with local minima that frustrate efficient optimization. However, the space of Positive Definite (PD) matrices possesses a natural hyperbolic metric. Within this curved geometry, the operator scaling problem becomes geodesically convex. Previous attempts to solve this problem relied on first-order methods (like gradient descent) analyzed in Euclidean space, which resulted in runtimes scaling polynomially with the inverse of the error margin ($1/\epsilon$). For applications requiring high precision, such as those in algebraic complexity, these $O(1/\epsilon)$ algorithms are prohibitively slow.

Algorithmic Innovation: Second-Order Geodesic Optimization

To overcome the limitations of first-order methods, we introduce a "box-constrained Newton’s method" tailored for the Riemannian manifold of PD matrices. This second-order approach utilizes the Hessian of the objective function to navigate the curved space more effectively.

Key Methodological Components:

  1. Geodesic Taylor Expansion: In each iteration, the algorithm computes a second-order Taylor expansion that accounts for the manifold's curvature, solving a local quadratic optimization problem to determine the next step.
  2. Regularization for Condition Numbers: A significant hurdle is that optimal scaling matrices may have eigenvalues that approach infinity. We introduce a regularizer—$\text{Tr}(X)\text{Tr}(X^{-1})$—which ensures the algorithm finds an approximate solution with a bounded condition number without sacrificing geodesic convexity.
  3. Unitary Equivalence Testing: To bridge the gap between an approximate continuous solution and an exact algebraic answer, we employ a deterministic subroutine. This checks if two matrix sets are "approximately unitarily equivalent," effectively snapping the continuous result into a discrete truth value.

Results and Impact

The primary result is an exponential speedup in the operator scaling problem. Our algorithm runs in $\text{poly}(n, m, \log M, \log(1/\epsilon))$ time, where $n$ and $m$ are dimensions, $M$ is the maximum entry size, and $\epsilon$ is the error. The shift from $1/\epsilon$ to $\log(1/\epsilon)$ is transformative.

Deterministic Polynomial Identity Testing (PIT)

The motivation for this efficiency is the PIT problem: determining if a symbolic polynomial is identically zero. While randomized algorithms for PIT are well-known, deterministic algorithms are rare and deeply connected to the $\text{P}$ vs. $\text{NP}$ question. By achieving logarithmic error dependence, we can reach the exponentially small precision ($\epsilon = 2^{-\text{poly}(n)}$) required to guarantee an exact algebraic answer in polynomial time.

Specifically, we provide a deterministic, polynomial-time algorithm for testing the equivalence of symbolic determinants: $$\det\left(\sum_{i=1}^m Y_i \otimes A_i\right) \equiv \det\left(\sum_{i=1}^m Y_i \otimes B_i\right)$$ This also solves the orbit-closure intersection problem for the left-right group action, marking a major milestone in computational invariant theory.

Conclusion and Future Directions

This work demonstrates that curved geometry can act as a "cheat code" for certain non-convex problems. By reframing algebraic problems as geodesically convex optimization tasks, we can leverage powerful continuous tools to solve discrete challenges.

Future research will focus on extending these techniques beyond the "left-right" group action to more complex structures, such as tensor actions, which are central to the complexity of matrix multiplication. Additionally, while our PIT algorithm is "white-box" (requiring access to the internal matrices), the development of a "black-box" version remains a significant open challenge in the field.

Summary updated

BibTeX
@inproceedings{allenzhu2018operator,
  author = {Zeyuan Allen-Zhu and Ankit Garg and Yuanzhi Li and Rafael Mendes de Oliveira and Avi Wigderson},
  title = {{Operator Scaling via Geodesically Convex Optimization, Invariant Theory and Polynomial Identity Testing}},
  booktitle = {STOC},
  year = {2018},
  url = {https://openreview.net/forum?id=8S2TIPxF0R},
}
Figure