Manifold-weighted neural networks

Junyu Ren, Lek-heng LimNeurIPS 2026

TL;DR

What if we stopped letting neural network weights roam freely across massive, unconstrained matrix spaces and instead confined them to sleek, low-dimensional curved surfaces? This paper proves that restricting weight matrices to classic geometric manifolds slashes parameter counts and provides built-in regularization without sacrificing universal approximation—as long as your network has residual connections.

What Problem Does This Paper Address?

Modern deep neural networks are parameter gluttons. A layer of width $d$ typically stores weights in the full space of $d \times d$ matrices, demanding $d^2$ parameters. When depth runs into the hundreds, we often lack the data or compute to fit them all, yet we don't want to shrink the network's width or depth.

Here is a subtle observation: during forward passes, activations get added and scaled, meaning they need to live in a flat vector space. Weight matrices, however, are never added to each other or scaled during inference—they just act as operators. Thus, the weight space doesn't need to be linear! If we constrain weights to a smooth, nonlinear submanifold $\mathcal{M} \subseteq \mathbb{R}^{d \times k}$ with a much smaller intrinsic dimension, we get massive storage savings and natural "geometric regularization" (for compact manifolds, weights are automatically bounded, taming exploding gradients).

The catch? Two big questions stand in the way:

  1. Which manifolds allow efficient, closed-form gradient optimization using standard numerical linear algebra?
  2. If you handcuff your weights to a low-dimensional curved manifold, can the network still approximate any function?

Methods

First, the authors assemble a complete catalog of eligible matrix manifolds. Crucially, weights must live on embedded submanifolds (actual matrices, like symmetric projectors $QQ^\top$ for the Grassmannian $\text{Gr}(k,d)$) rather than quotient manifolds (equivalence classes of matrices, which you cannot multiply a vector by). Drawing on recent mathematical classifications, they focus on manifolds formed as orbits of classical Lie groups ($\mathcal{M} = G \cdot W_0$), which include Stiefel, Grassmann, symplectic, and fixed-spectrum symmetric manifolds. Because of their group symmetries, storing and computing gradients on them is cheap—e.g., $\text{Gr}(k,d)$ needs $dk$ parameters instead of $d^2$.

To prove universal approximation in $L^p(K)$ (for compact domains $K$ and $1 \le p < \infty$), they pair ReLU networks with constrained scaled residual blocks: $$F_\ell(x) = x + s_\ell \cdot A_\ell \cdot \text{ReLU}(t_\ell \cdot B_\ell x + b_\ell)$$ where $A_\ell, B_\ell \in \mathcal{M}$ and $s_\ell, t_\ell \in \mathbb{R}$ are learnable scalar gates. They introduce two novel constructive proof frameworks to verify universality across their catalog:

  • Register-Isolated Primitive Realizability (RIPR): Treats individual coordinates of the residual stream as isolated scalar "registers." Using bias vectors to push inactive ReLU rows into their dead zones, specific manifold matrices read from and write to single coordinates to build 1D step-function codes and couple them across dimensions.
Building step functions from elementary register primitives (P1–P4) in the RIPR framework.
  • Cross-Axis Fold-and-Cut (CAFC): Drops the inner scalar gate ($t_\ell = 1$) by working in a rotated orthonormal basis. Each block reads along one axis and folds space along a perpendicular axis, slicing the input domain into disjoint strips where target functions can be pieced together via ridge sums.

Datasets

No new benchmarks are introduced. The authors evaluate their theoretical claims on:

  • Synthetic 1D/2D functions: Including a Lipschitz-2 linear target and a Lipschitz-8 sawtooth function for controlled expressivity and optimization tests.
  • CIFAR-10: Standard image classification used to test manifold-constrained MLPs.
  • OpenWebText: Standard language modeling dataset used to train a 6-layer nanoGPT model ($d_{\text{model}} = 384$).

Key Insights and Ideas

  • ResNets rescue universality where MLPs fail: Standard MLPs (without skip connections or large scalar gates) weighted by operator-norm-1 manifolds (like Stiefel or Grassmann) hit a hard mathematical wall: every layer is 1-Lipschitz, trapping the entire network inside the class of 1-Lipschitz functions. Skip connections break this ceiling! Even if you restrict scalar gates to $|s_\ell|, |t_\ell| \le 1$, manifold-weighted ResNets remain universal approximators.
  • Geometry acts as an implicit regularizer: Constraining weights to compact manifolds bounds every matrix norm automatically, stabilizing training and reducing reliance on ad-hoc weight decay.
  • Submanifolds vs. Quotients: Not all manifold representations work in deep learning. Treating the Stiefel manifold as a set of orthonormal frames works; treating it as a quotient space $\text{O}(d)/\text{O}(d-k)$ does not, because a neural layer needs a concrete matrix, not an abstract equivalence class.

Key Results

  • Theoretical Completeness: Every manifold in the catalog achieves $L^p(K)$-universality when placed inside a ResNet with scalar gates (most needing only the outer gate $s_\ell$, and some needing no gates at all).
  • Synthetic Obstruction Check: Fitting a Lipschitz-2 linear target, a constrained Grassmann MLP stalls at a mean MSE of $\sim 0.135$ (trapped by the 1-Lipschitz barrier), whereas adding residual connections and scalar gates drops the MSE to $3 \times 10^{-4}$. (Notably, on a nasty Lipschitz-8 sawtooth, the ResNet struggles to optimize despite having theoretical expressivity—a great reminder that expressivity $\neq$ trainability).
  • CIFAR-10 Generalization Boost: Training an 8-layer, width-512 MLP for 400 epochs, an unconstrained baseline hits $58.23 \pm 0.45\%$ test accuracy. Factoring hidden weights on the Grassmannian $\text{Gr}(160, 512)$ as $W = QQ^\top$ jumps test accuracy to $66.68 \pm 0.15\%$ while cutting hidden matrix storage from $512 \times 512$ down to $512 \times 160$.
  • nanoGPT Efficiency: Replacing dense query and key matrices with rank-64 Stiefel projectors ($QQ^\top$) achieves a validation cross-entropy of $3.7074 \pm 0.0108$ nats/token—virtually matching standard rank-64 $UV^\top$ factorization ($3.7053 \pm 0.0142$) with half as many query/key parameters, and sitting close behind the full dense baseline ($3.6831 \pm 0.0079$).

Limitations and Future Work

  • Optimization bottlenecks: Having a universal approximator doesn't guarantee gradient descent will find the weights. Currently, the field lacks mature, drop-in Riemannian equivalents of Adam or SGD tailored specifically for large-scale manifold-weighted deep learning.
  • Theoretical gaps: The paper focuses purely on expressivity ($L^p$ on compact domains with ReLU and scalar outputs). Formal generalization error bounds, extensions to vector-valued outputs, non-compact domains, $C(K)$ uniform approximation, and smooth activations like GELU remain open territory, as does proving unit-bounded gate universality for general fixed-spectrum symmetric matrices ($\text{Sym}_\Lambda(d)$).

Summary updated

Abstract

We establish universal approximation for neural networks whose weight matrices take values in matrix manifolds. The nonlinear matrix manifolds considered here arise as orbits of classical Lie group actions and are embedded in an ambient space of matrices. We present a catalog of such manifolds, one that includes many well-known manifolds in geometry and physics, and that is complete in a qualified sense, namely, if one desires closed-form expressions for Riemannian optimization. Our manifolds are embedded as smooth submanifolds of $\mathbb{R}^{d \times k}$, and equipped with a Lie group action that leads to closed-form expressions in terms of standard matrix functions and matrix decompositions. We emphasize that only such matrix submanifolds, but not matrix quotient manifolds, may serve as weight space for a neural network. Our centerpiece is a universal approximation theorem: For any manifold $\mathcal{M}$ in our catalog, real-valued $\mathcal{M}$-weighted ReLU networks with residual connections are $L^p(K)$-universal for every compact $K$ and every $p\in[1,\infty)$. To prove this, we introduce two sufficient conditions corresponding to distinct approximation constructions; universality follows from verifying one or the other for each $\mathcal{M}$ in our catalog. We also show that residual connections are generally indispensable for universality, i.e., manifold-weighted ResNets are generally universal, but manifold-weighted MLPs are generally not.
BibTeX
@inproceedings{ren2026manifold,
  author = {Junyu Ren and Lek-heng Lim},
  title = {{Manifold-weighted neural networks}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=AS3nvwjiyw},
}
Figure