Get rid of your constraints and reparametrize: A study in NNLS and implicit bias

Hung-Hsu Chou, Johannes Maly, Claudio Mayrink Verdun, Bernardo Freitas Paulo da Costa, Heudson Mirandola

TL;DR

This paper demonstrates that Non-Negative Least Squares (NNLS) problems can be solved efficiently by "getting rid of constraints" through Hadamard reparametrization. By transforming a constrained convex problem into an unconstrained non-convex one, the authors leverage the implicit bias of gradient descent to achieve global convergence with provable rates, offering a scalable alternative to traditional solvers that is surprisingly robust to noise.

What Problem Does This Paper Address?

Non-Negative Least Squares (NNLS) is a fundamental optimization problem where one seeks to minimize $\|Az - b\|^2$ subject to the constraint that all entries of $z$ must be non-negative. It is a cornerstone of signal processing, imaging, and machine learning (e.g., non-negative matrix factorization).

Traditional approaches face significant hurdles:

  • Active-set methods (like Lawson-Hanson) don't scale well to high dimensions because they require solving linear systems at each step.
  • Interior-point methods are computationally expensive for large-scale problems.
  • Projected Gradient Descent (PGD) is simple but often suffers from slow convergence in ill-conditioned problems and can exhibit erratic cyclic behavior when using advanced step-size rules.

The authors ask: Can we use the "implicit bias" observed in overparametrized neural networks—where gradient descent naturally finds structured solutions—to solve these classical constrained problems more effectively?

Methods

The core idea is Hadamard Reparametrization. Instead of solving for $z \ge 0$, the authors replace $z$ with an entry-wise power of a new variable $x$: $z = x^{\odot L}$ (where $L \ge 2$). This transforms the constrained objective into an unconstrained, albeit non-convex, loss function: $$\mathcal{L}(x) := \frac{1}{2L} \|Ax^{\odot L} - b\|_2^2$$

Key methodological contributions include:

  1. Riemannian Interpretation: They show that Gradient Descent (GD) on this reparametrized loss is equivalent to Riemannian GD on the original space. This perspective explains why the trajectory stays within the non-negative orthant if initialized positively.
  2. Convergence Analysis: Using Lyapunov arguments, they prove that the continuous gradient flow converges to the NNLS solution at a rate of $O(1/t)$.
  3. Acceleration: They derive a second-order ODE to enable accelerated gradient methods, proving a theoretical $O(1/t^2)$ decay rate.
  4. Discrete Analysis: They provide convergence guarantees for discrete GD with decaying step sizes, showing a rate of $O(1/k^\gamma)$.

Datasets

The authors evaluated their approach using:

  • Synthetic Gaussian Signals: Random matrices $A$ and sparse ground-truth vectors to test convergence and sparse recovery.
  • MNIST: Handwritten digit images used to test reconstruction stability under negative noise perturbations.
  • CIFAR-10: Natural images used to evaluate performance on less sparse, more complex visual data.
  • Subsampled FFT: Large-scale linear systems (up to 100,000 dimensions) to demonstrate scalability.

Key Insights and Ideas

  • Trading Geometry for Complexity: The paper shows a fascinating trade-off: by making the objective function more complex (non-convex), you can eliminate difficult geometric constraints.
  • Sign Preservation: A critical "aha" moment is that Hadamard reparametrization naturally preserves the sign of the initialization. If you start with $x_0 > 0$, the gradient flow will never cross zero, effectively "baking in" the non-negativity constraint.
  • Implicit $\ell_1$ Bias: When initialized close to zero, the algorithm doesn't just find a non-negative solution; it finds one that is approximately sparse. This allows for stable sparse recovery without needing to tune an explicit regularization parameter (like $\lambda$ in LASSO).
  • Self-Correcting Dynamics: Numerical experiments suggest the method acts like a self-correcting greedy algorithm, focusing on recovering dominant signal components first before refining smaller details.

Key Results

  • Faster Convergence: Advanced step-size rules (like Nesterov or Barzilai-Borwein) significantly boost performance. In sparse cases, the error often decreases in discrete "steps," a phenomenon linked to saddle-to-saddle dynamics.
Figure 1: Convergence rate for various choices of step- size, see Section 3.1.
  • Superior Stability: The reparametrized methods (GD-nL and SGD-nL) significantly outperformed traditional NNLS solvers when the signal was corrupted by negative noise. While standard solvers struggle with any negative components, the gradient-based approach handles them gracefully.
Figure 5: MNIST reconstruction comparison under different noise levels (q).
  • Scalability: The method scales linearly with problem size, making it suitable for large-scale applications where active-set methods fail. In experiments with 10,000 iterations, the proposed accelerated variants maintained low error across increasing dimensions.

Limitations and Future Work

  • Discrete Acceleration Theory: While the authors proved an $O(1/t^2)$ rate for the continuous accelerated flow, a full theoretical analysis for the discrete accelerated algorithm remains an open question.
  • Hyperparameter Sensitivity: Although the method avoids tuning regularization, the choice of initialization scale ($\alpha$) and the number of layers ($L$) still influences the "strength" of the implicit sparsity bias.
  • Generalization: The current work focuses on non-negativity. Extending this reparametrization framework to other types of constraints (like the simplex or box constraints) is a promising but unexplored direction.

Summary updated

BibTeX
@inproceedings{chou2025get,
  author = {Hung-Hsu Chou and Johannes Maly and Claudio Mayrink Verdun and Bernardo Freitas Paulo da Costa and Heudson Mirandola},
  title = {{Get rid of your constraints and reparametrize: A study in NNLS and implicit bias}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2025},
  url = {https://openreview.net/forum?id=HC0O9aRv2n},
}
Figure