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

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

Abstract

Over the past years, there has been significant interest in understanding the implicit bias of gradient descent optimization and its connection to the generalization properties of overparametrized neural networks. Several works observed that when training linear diagonal networks on the square loss for regression tasks (which corresponds to overparametrized linear regression) gradient descent converges to special solutions, e.g., non-negative ones. We connect this observation to Riemannian optimization and view overparametrized GD with identical initialization as a Riemannian GD. We use this fact for solving non-negative least squares (NNLS), an important problem behind many techniques, e.g., non-negative matrix factorization. We show that gradient flow on the reparametrized objective converges globally to NNLS solutions, providing convergence rates also for its discretized counterpart. Unlike previous methods, we do not rely on the calculation of exponential maps or geodesics. We further show accelerated convergence using a second-order ODE, lending itself to accelerated descent methods. Finally, we establish the stability against negative perturbations and discuss generalization to other constrained optimization problems.

Introduction

Non-Negative Least Squares (NNLS) is a fundamental problem in signal processing and machine learning, arising whenever physical constraints dictate that underlying data must be positive—such as in image reconstruction, chemical concentrations, or gene expression analysis. Mathematically, the goal is to find a vector $x \ge 0$ that minimizes the objective $\|Ax - b\|^2$.

Enforcing the non-negativity constraint is non-trivial. Traditional approaches like Interior Point Methods are accurate but computationally expensive, while Active Set Methods (e.g., the Lawson-Hanson algorithm) struggle with high-dimensional data due to the need to solve linear systems at each iteration. Projected Gradient Descent (PGD) offers scalability but is often slow and sensitive to hyperparameter tuning. This work explores an alternative: leveraging the "implicit bias" of gradient descent in overparametrized models to satisfy constraints naturally without explicit projections.

Methodology: Hadamard Reparametrization

The core proposal is Hadamard Reparametrization. Instead of optimizing the vector $x$ directly, the problem is reparametrized as $x = w^{\odot L}$, where $L$ represents the number of "layers" and $\odot$ denotes the entry-wise power. The resulting unconstrained objective is: $$\mathcal{L}(w) = \frac{1}{2L} \|A w^{\odot L} - b\|_2^2$$

This approach offers several advantages:

  • Natural Constraint Satisfaction: Starting with a positive initialization ensures the variables remain positive throughout the optimization process due to the underlying gradient dynamics.
  • Riemannian Interpretation: The authors demonstrate that this reparametrization is equivalent to performing gradient descent on a Riemannian manifold, providing a geometric foundation for the observed behavior.
  • Acceleration via ODEs: By deriving a second-order ordinary differential equation (ODE), the authors develop accelerated descent methods that mirror Nesterov-style acceleration within this specific geometric framework.

Experimental Setup

The framework was evaluated across diverse benchmarks:

  • Synthetic Benchmarks: Gaussian matrices were used to analyze convergence behavior in both dense and sparse signal regimes.
  • Computer Vision: MNIST and CIFAR-10 datasets were employed to test reconstruction quality, particularly under conditions of "negative noise."
  • Large-Scale Systems: Subsampled FFT matrices (up to 100,000 dimensions) demonstrated the scalability of the gradient-based approach compared to traditional solvers.

Discussion and Insights

The study reveals that constraints can be viewed as geometric properties of the optimization landscape rather than external boundaries. In sparse recovery, the error decreases in a "saddle-to-saddle" fashion, where the algorithm sequentially identifies dominant signal components. Furthermore, the method exhibits superior stability; unlike strict NNLS solvers that may fail when noise introduces small negative components, this unconstrained reparametrization handles "nearly non-negative" signals gracefully. Increasing the depth $L$ further sharpens these transitions, acting as a self-correcting mechanism for signal recovery.

Key Results

The proposed methods achieve provable global convergence rates of $O(1/t)$ for standard flow and $O(1/t^2)$ for the accelerated version. Empirically, the accelerated methods often exceed these bounds, reaching rates of $O(k^{-3})$ or $O(k^{-4})$.

Convergence of overparametrized GD/SGD variants in dense and sparse cases.
Error decay for the continuous ODE solution and discrete acceleration methods.

In large-scale applications, the gradient-based approach significantly outperformed the Lawson-Hanson algorithm in terms of speed. Additionally, when initialized with small values, the algorithm exhibits an implicit $\ell_1$ bias, effectively performing sparse recovery without explicit regularization tuning.

Conclusion

This work demonstrates that reparametrization is a powerful tool for solving constrained optimization problems by harnessing the implicit bias of gradient descent. While the theoretical convergence of the discrete accelerated algorithm remains an open question, the empirical results and the continuous-time analysis provide a strong foundation. Future research may extend this "reparametrize to constrain" paradigm to box constraints or semi-definite programming.

Summary updated

BibTeX
@inproceedings{chou2025get,
  author = {Hung-Hsu Chou and Johannes Maly and Claudio Mayrink Verdun and da Costa, Bernardo Freitas Paulo and Mirandola, Heudson},
  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