Implicit Bias of Mirror Flow in Homogeneous Neural Networks: Sparse and Dense Feature Learning

Tom Jacobs, Guido MontufarNeurIPS 2026

TL;DR

When you train an overparameterized neural network, the optimizer acts like an invisible compass, steering the weights toward specific kinds of solutions—a phenomenon called implicit bias. By swapping standard gradient descent for a broader geometric framework called mirror flow, the authors prove we can deliberately steer deep networks to learn either ultra-sparse features (ideal for pruning) or uniformly dense features (potentially great for quantization). Better yet, they uncover the mathematical speed limits of this process, showing how a single hyperparameter determines whether you actually reach those desired representations before the heat death of the universe.

What Problem Does This Paper Address?

Why don't massive neural networks hopelessly overfit when there are millions of ways to memorize the training data? A big part of the answer is implicit regularization: standard gradient descent doesn't just find any zero-loss solution; in networks with homogeneous activations (like ReLU, where scaling inputs scales outputs proportionally), it naturally gravitates toward a solution that maximizes the $L_2$ margin between classes.

However, gradient descent assumes parameter space is flat and Euclidean. Mirror descent (and its continuous-time cousin, mirror flow) generalizes this by warping the geometry of the search space using a strictly convex "mirror potential" function. While we know how mirror flow shapes simple linear models, its implicit bias in deep, non-linear homogeneous neural networks has remained an open mystery. Solving this tells us how changing our optimizer's geometry fundamentally alters what features a deep network learns.

Methods

When training a classifier with an exponential loss (like cross-entropy), driving the loss to zero pushes the network's weights toward infinity. Because you can't study where infinite weights land, you have to study the direction they point in as they grow.

In standard gradient flow, researchers track this using a "balance equation," which shows that the squared $L_2$ norms of adjacent layers grow in lockstep. That breaks down in mirror flow. To fix it, the authors introduce three clever mathematical tools:

  • A Duality-Based Balance Equation: Using convex duality (specifically, the Fenchel-Young identity), they derive a new conserved quantity across network layers governed by the dual potential $Q(\nabla R(\theta))$ rather than standard Euclidean norms.
  • The $Q$-Margin and Horizon Functions: Building on this balance equation, they define a generalized margin (the $Q$-margin) and track its asymptotic geometry at massive weight scales using a "horizon function."
  • Specific Potentials: They analyze two main mirror potentials controlled by a non-homogeneity hyperparameter $\lambda$: hyperbolic entropy (known to encourage sparsity) and smoothened homogeneous potentials (like smooth $L_p$ norms for $p \ge 3$).
Balance equations and horizon functions showing how hyperparameter lambda affects convergence to the limiting L1 shape.

Datasets

  • Synthetic Student-Teacher Dataset: Binary classification tasks generated by a 3-neuron teacher network, used to train two- and three-layer student networks (hidden dimension 100) to cleanly visualize feature alignment.
  • CIFAR-10: A standard computer vision benchmark used to train VGG-16 architectures to test how learned weight distributions hold up under real-world model compression. No new benchmarks were introduced.

Key Insights and Ideas

  • Geometry Dictates Sparse vs. Dense Feature Learning: Every mirror map the authors tested learned the true underlying features, how they represented them differed wildly. Hyperbolic entropy ($\alpha = 1$, acting like an $L_1$ geometry) concentrates weight magnitude onto just a few aligned neurons—sparse feature learning. Conversely, higher-degree potentials ($p \ge 3$) spread weight magnitudes evenly across many aligned neurons—dense feature learning.
Figure 2: Different types of feature learning under mirror flows. The hyperbolic entropy induces sparse feature learning with fewer active neurons, whereas the smoothed homogeneous potential (p = 3) induces dense feature learning with more active neurons. (Left) Input weight representations ˜w = |aj|wj of a two-layer student network in a student-teacher setup: GD (orange) produces diffuse weights near the origin, p = 3 (green) learns teacher directions with all active neurons, and the hyperbolic map (blue) concentrates mass onto only a few neurons aligned with the teacher (red), reflecting sparsity. (Middle) Weight magnitude distribution of the hidden layer in a three-layer network: GD and p = 3 yield spread out distributions with many active weights, while the hyperbolic entropy produces a sharply peaked distribution near zero with few large-magnitude weights. (Right) The Lk-margin, for k = 1, 2, 3 as a function of 1/L for a three-layer network: each mirror flow converges in direction to their corresponding max-margin.
  • Same Destination, Exponentially Different Travel Times: Two non-homogeneous mirror potentials with different $\lambda$ values can share the exact same asymptotic horizon function—meaning in infinite time, they converge to the exact same max-margin classifier. However, if $\lambda$ is too large, convergence enters an exponentially slow regime. In finite training time, a poorly tuned mirror flow won't look like its theoretical limit at all; it will just mimic standard gradient descent!
  • A Practical Tuning Recipe: Because of that slow-down, the authors prove concrete scaling rules for $\lambda$ based on layer width $n$ (e.g., $\lambda = 1/n^2$ for hyperbolic entropy and $\lambda = 1/(pn)$ for smooth $p$-potentials) so the desired sparse or dense geometry actually emerges during normal training budgets.

Key Results

  • Theoretical Convergence Rates: The authors prove that training loss decays roughly as $\mathcal{O}\left(\frac{1}{t \log(t)^{2 - \alpha/L}}\right)$, where $\alpha$ is the mirror potential's homogeneity degree and $L$ is network depth. Larger $\alpha$ slightly slows convergence, though deeper networks wash out this penalty.
  • Compression Wins on CIFAR-10: When training VGG-16 on CIFAR-10, hyperbolic entropy achieved the highest validation accuracy among tested methods and degraded noticeably less under layer-wise magnitude pruning (maintaining strong accuracy past 60–80% sparsity, as shown in their pruning curves). Meanwhile, the $p=10$ potential yielded dense, uniform weight scales that hurt magnitude pruning—confirming the theory—though the authors note such uniform scales could make parameters much easier to map to discrete levels for quantization.

Limitations and Future Work

  • Continuous vs. Discrete Time: Mirror flow assumes an infinitesimally small learning rate. Understanding how finite step sizes and early stopping alter these dynamics is left for future work.
  • The $\alpha < 2$ Gap: Their general max-margin proof requires a homogeneity degree of $\alpha \ge 2$. While they cleverly bypassed this for hyperbolic entropy ($\alpha = 1$) using a known reparameterization trick, extending the direct proof to all $\alpha < 2$ potentials remains open.
  • Generalization: While the paper nails down optimization dynamics and representation geometry, formally characterizing the out-of-distribution generalization guarantees of these new max-margin solutions is the next frontier.

Summary updated

Abstract

We study the max-margin solutions reached by mirror flow in deep neural networks with homogeneous activation functions. Extend classical results on gradient flow, we derive a novel balance equation for mirror flow from convex duality, enabling a characterization of the horizon function governing the induced margin. We further establish max-margin characterizations together with convergence rates and norm growth estimates. Finally, we support our theory through experiments on synthetic datasets and standard vision tasks. Concretely, we show that: (1) distinct non-homogeneous mirror maps can induce the same max-margin solution; (2) convergence can be extremely slow, including exponentially slow regimes; and (3) although all considered mirror maps exhibit feature learning, they can produce markedly different representations, ranging from sparse to dense neuron activations. Together, these results provide a unified perspective on sparse and dense feature learning in homogeneous neural networks, highlighting how mirror maps shape both optimization dynamics and the geometry of the learned classifiers.
BibTeX
@inproceedings{jacobs2026implicit,
  author = {Tom Jacobs and Guido Montufar},
  title = {{Implicit Bias of Mirror Flow in Homogeneous Neural Networks: Sparse and Dense Feature Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=qIshuUKij9},
}
Figure