Abstract Hyperparameter tuning remains one of the most significant bottlenecks in scaling deep learning models. Traditional parameter-space learning rates (LR) do not account for the varying functional impact of updates across different layers and architectures. We present FLeRM (Function-space Learning Rate Matching), a novel framework presented at ICML 2025. FLeRM measures the magnitude of change in a model's output per training step and aligns these "function-space" learning rates across scales. This approach enables the seamless transfer of optimal hyperparameters from small base models to massive production models, eliminating the need for expensive sweeps.
The Problem: The Inefficiency of Parameter-Space Tuning
When scaling a model from millions to billions of parameters, the optimal learning rate typically shifts. Finding this new optimum traditionally requires "hyperparameter sweeps"—training numerous versions of a large model to identify the best configuration. This process is computationally expensive and often relies on rigid theoretical frameworks like $\mu$P (Maximal Update Parametrization), which can be sensitive to specific initializations or architectural choices.
The core issue is that a fixed nudge to a weight (parameter-space LR) has a non-uniform effect on the model's behavior. A small update to an early layer might drastically alter the final output, while a large update to a later layer might have a negligible effect.
Methodology: Measuring the Functional Impact
FLeRM defines the layerwise function-space learning rate as the magnitude of the change in a network’s output function in response to an update to a specific parameter tensor. To make this measurement computationally feasible, the authors introduce two innovations:
- Monte-Carlo Estimation: Rather than calculating the functional change exactly (which requires a backward pass for every output dimension), FLeRM uses a random projection trick to estimate the magnitude with a single additional backward pass.
- Kronecker Factorization: To stabilize these estimates, Kronecker factorization is applied to the covariance of the updates, allowing for periodic, low-overhead measurements during training.
As shown in the figure above, different layers contribute differently to the functional update. In Transformers, for instance, the second feedforward matrix often has a stronger influence than the readout layer. Furthermore, even with a constant optimizer LR, the functional LR naturally decays over time, suggesting that optimizers like Adam perform implicit "functional scheduling."
Key Results and Scaling Invariance
The primary strength of FLeRM is its ability to align training dynamics across varying widths, depths, and even LoRA ranks. By matching the function-space LR profile of a small model, researchers can predict the optimal parameter-space LR for a much larger model.
Width and Depth Invariance
FLeRM successfully aligns the "Loss vs. Learning Rate" curves for models of vastly different scales. In traditional training, these curves shift as width increases, requiring a new search for the minimum. With FLeRM, the optimal LR for a tiny model remains the optimal LR for the large model.
Practical Applications: LoRA and Initialization
Beyond standard scaling, FLeRM provides significant wins in Low-Rank Adaptation (LoRA). The authors demonstrated that the optimal LR found for a rank-2 adapter can be successfully transferred to a rank-32 adapter. Additionally, FLeRM makes training invariant to initialization scale; if weights are initialized 16x larger than standard, FLeRM automatically dampens the LR to maintain functional stability, preventing divergence.
Discussion and Limitations
While FLeRM offers a robust, architecture-agnostic alternative to existing scaling laws, some challenges remain. Depth scaling currently relies on heuristics to map functional LRs across additional layers, which may be less precise than width scaling. Furthermore, while the computational overhead is minimal, it is not zero, requiring extra backward passes during the initial phases of training. Future research may explore matching the direction of functional updates in addition to their magnitude to further refine generalization across scales.
Summary updated