Non-Negative Conjugate Gradients

arXiv:2607.22121 2026 Optimization 1 ideas extracted · analyzed Aug 30, 2026

What the math gives to ML

The paper turns conjugate gradients into a solver for strictly convex quadratic programs with non-negativity and optional linear equality constraints by combining matrix-free Krylov solves with a primal-dual active-set loop. The transferable asset is the separation between cheap inner linear algebra and finite outer sign decisions: variables that violate positivity are removed from the free set, while bound variables with negative reduced gradient are reactivated. This is especially suitable for neural components whose training subproblem is a nonnegative or simplex-constrained least-squares problem, such as mixture-of-experts routers, nonnegative dictionary codes, and constrained linear heads. The first practical target should be a router or adapter solved repeatedly with matrix-vector products rather than a generic optimizer replacement for all network parameters.

Ideas from this paper

✓✓ Beats tuned baseline 2026

Active-Set CG Router

Train a mixture-of-experts router by solving its regularized nonnegative simplex least-squares subproblem with a matrix-free active-set conjugate-gradient method instead of projected gradient or Adam. The router coefficients remain exactly nonnegative and sum to one, while CG rapidly solves each free-set quadratic and the active-set pivots identify sparse expert assignments.

Useful7/10
Difficulty5/10
Novelty7/10
Paper: Non-Negative Conjugate Gradients arXiv:2607.22121