Vector Balancing in Polynomial Time

Shengtao Guo, Ethan X. Fang, Junwei LuarXiv 2026

TL;DR

This paper introduces the first deterministic, polynomial-time algorithm to solve the famous Komlós vector balancing problem with a constant discrepancy bound. By guiding a fractional rounding process using a novel cubic spectral potential, the algorithm finds valid signs in $O((mn^9 + n^{10})\log(2+m+n))$ time. This approach also provides a constructive, optimal solution to the related Beck-Fiala discrepancy problem.

What Problem Does This Paper Address?

The paper tackles a classic challenge in discrepancy theory known as the Komlós problem. Imagine you are given a collection of vectors (or a matrix $A$) where each vector has a Euclidean norm of at most 1. The goal is to assign a sign ($\pm 1$) to each vector such that their signed sum is as small as possible across all coordinates simultaneously (minimizing the infinity norm, $\|A\varepsilon\|_\infty$).

Non-constructive mathematical proofs have long established that a universal constant bound $C$ exists, independent of the number of vectors or dimensions. However, actually finding these signs efficiently has proven incredibly difficult. Prior polynomial-time algorithms could only achieve bounds that grew with the number of variables (such as $O(\sqrt{\log n})$). This paper bridges the gap between existential theory and computer science by providing an explicit, polynomial-time algorithm that guarantees a constant discrepancy bound.

Methods

The authors design a spectral signing algorithm that relaxes discrete binary signs into fractional values $x \in [-1, 1]^n$ and iteratively updates them until they lock into $\pm 1$. The core components of their method include:

  • Cubic Spectral Potential ($\Phi$): The authors introduce a novel potential function defined as $\Phi = (L - 1)_+^3 - \eta \sum x_j^2$, where $L$ is the largest eigenvalue of a weighted Gram matrix $M$. The cubic term ensures the function is smoothly twice-differentiable when $L \ge 1$, while the negative quadratic term creates a strict negative curvature that drives the fractional variables toward the binary boundaries ($\pm 1$).
  • Weighted Gram Matrix ($M$): This matrix aggregates energy-regularized row barriers. Rows are dynamically classified as large, medium, or completed based on their remaining squared mass.
  • Orthogonal Update Directions: In each iteration, the algorithm shifts the fractional coloring along a direction $h$ that is strictly orthogonal to three things: the approximation of the potential's gradient $\nabla \Phi$, all currently large rows, and the gradients of nearly tight medium rows.
  • Deliberate-Removal Rule: To prevent any single heavy coefficient from dominating and blowing up the matrix eigenvalues, coefficients that exceed a specific threshold ($p_{ij} > q_i/K$) are systematically stripped from the active set and absorbed as static offsets.

Datasets

Not discussed in the paper. As a purely theoretical computer science and discrete mathematics paper, the work relies entirely on rigorous mathematical proofs and algorithmic complexity analysis rather than empirical evaluation on datasets.

Key Insights and Ideas

  • The Shift to Cubic Smoothness: Traditional discrepancy algorithms often use exponential weights or softmax functions to approximate the maximum coordinate error. The authors' pivot to a cubic spectral potential provides the exact mathematical smoothness and negative curvature required to control the full rounding trajectory without accumulating logarithmic errors.
  • Trace Bounding for Free Directions: By consolidating individual row constraints into a single weighted Gram matrix, the authors use trace bounds to limit the total number of active constraints. This guarantees that the null space always retains enough "free directions" to continue rounding variables.
  • Dynamic Trajectory Control: Instead of treating rounding as a sequence of independent, isolated phases, the algorithm continuously manages row scales and prunes heavy coefficients, preventing the stagewise error accumulation that plagued earlier methods.

Key Results

  • Constant Discrepancy Bound: Proves that the deterministic algorithm successfully outputs binary signs satisfying $\|A\varepsilon\|_\infty \le 8272$ (using a scale parameter $K=16$).
  • Polynomial Time Complexity: Establishes a total running time of $O((mn^9 + n^{10})\log(2+m+n))$ under the standard unit-cost real-RAM computational model.
  • Beck-Fiala Corollary: Yields a polynomial-time algorithm to solve the bounded-degree Beck-Fiala problem, achieving the optimal discrepancy bound of $O(\sqrt{t})$ for set systems where each element appears in at most $t$ sets.

Limitations and Future Work

  • High Exponent Complexity: While theoretically polynomial, a time complexity featuring $n^{10}$ is exceptionally high, making the algorithm impractical for actual large-scale engineering applications.
  • Large Absolute Constant: The guaranteed constant bound ($C = 8272$) is quite large, though the authors note it can be tuned.
  • Future Directions: A natural next step for researchers will be optimizing the algorithm to reduce the polynomial degree and shrinking the absolute constant to make the spectral signing approach practically viable.

Summary updated

BibTeX
@misc{guo2026vector,
  author = {Shengtao Guo and Ethan X. Fang and Junwei Lu},
  title = {{Vector Balancing in Polynomial Time}},
  year = {2026},
  eprint = {2609.23540},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.23540},
}
Figure