Papers for

deep learning framework developers

Papers whose findings have a practical use for this group, as judged from the abstract. Open a paper to read what it means in practice.

Non-expanding gated continued fraction improves language model feedforward layers

Non-Expanding Gated Continued Fraction Architecture for Feedforward Layers in Language Models

Abstract: Recent work has shown that continued fraction inspired neural architectures (CoFrGeNets) can be highly parameter efficient yet performant for language modeling. In this work, we revisit continued fraction-based channel mixing with the goal of improving its performance and simplifying integration into standard pre-training protocols for language models. We achieve this by two simple yet critical contributions: i) we propose a novel non-expanding gated continued fraction inspired architectural component to replace feedforward layers in established language model architectures that may use vanilla multilayer perceptrons or gated linear units or (vanilla/gated) experts in mixture-of-experts (MoE) type architectures. ii) We propose a way to re-implement divisions -- the non-linearity in these architectures -- in terms of logarithms and exponentials. By experimenting on different language modeling architectures such as GPT-2, Llama-3, Mamba-2 and (nano) Llama-MoE we find that our proposed architecture performs similarly or significantly better than the continued fraction architecture proposed in prior work along with having higher throughput. In addition, our re-implementation of divisions makes training of deeper CoFrGeNets stable without the need for incremental training which was proposed in prior work as a means to stabilize training, but added notable complexity to existing large language model training implementations. Code is available at http://github.com/IBM/CoFrNets

Thu 19 NovComputation and LanguageArtificial Intelligence
The gist
Language models often use layers called feedforward networks to process information. The authors looked at a special kind of layer inspired by continued fractions, which can be more efficient with fewer parameters. They made two improvements: one to the layer's design so it fits better into existing language models, and another to how certain calculations inside the layer are done to keep training stable. Their new approach works as well or better than earlier versions and trains more smoothly without extra tricks.
Open → 2611.26835v1

Muon update steps misalign with curvature in neural network training

Equal Steps, Unequal Curvature: Where Muon's Update Goes Wrong

Abstract: Muon updates each hidden weight matrix along the polar factor of its momentum, the steepest-descent direction under the spectral norm. That choice fixes two allocations without consulting the loss: every singular direction of the momentum receives the same step, and in a non-square matrix each neuron's step is set by its leverage score. Whether they are good is a question about curvature, which steepest-descent arguments do not answer; we measure it. Using held-out gradients and Hessian-vector products, we decompose Muon's step by singular-value band and by neuron group and compute each group's second-order optimal multiplier. In a 124M-parameter decoder trained on FineWeb-Edu, the multipliers rise monotonically from the top singular directions to the tail: Muon over-steps the high-curvature top of its spectrum. We prove in Lean when such a diagnostic licenses an intervention at Muon's own update norm. On the measured curvature, the criterion predicts, and held-out losses confirm, that moving step length off the top helps mid-training and early in the cooldown, but not at its end. We then test interventions under per-step norm matching, tuned baselines and paired seeds. Orthogonalizing Q, K and V separately rather than as one fused matrix lowers the loss by 0.0250 nats and accounts for all of the gain of block-wise variants. A matmul-only, rotation-equivariant spectral tilt $σ^{-1/4}$ applied in the cooldown lowers the loss of this stronger baseline by a further 0.0120 nats, additively with NorMuon (0.0158 nats together, three seeds; the baseline needs about 4.3% more tokens to match), and by 0.0188 nats at 355M parameters (three seeds). Energy-matched Schatten-1 weight decay adds a further 0.0052 nats. Geometrically principled changes that do not act on the measured miscalibration, namely exact polar factors, steepest-descent input whitening and top-heavy decay, do not help.

Wed 18 NovMachine Learning
The gist
Training large neural networks involves updating many parameters carefully. The paper finds that Muon, a method used for updating these parameters, takes equal-sized steps without considering how sensitive different parts of the model are—some directions should get smaller steps because they are more 'curved' or sensitive. The authors measure this curvature and show Muon's steps are too big in the most sensitive directions, which can harm training. They propose adjustments that improve training by making step sizes better match curvature, leading to lower error rates.
Open → 2611.24644v1

Muon optimizer improves iteration speed under shuffled data access

Muon Attains $\mathcal{O}(\varepsilon^{-3})$ Iteration Complexity under Shuffling

Abstract: Muon is a stochastic first-order optimizer for matrix-valued parameters. It maintains an exponential moving average of stochastic gradients in a momentum buffer with coefficient $β$, and orthogonalizes the buffer to obtain the update direction. Muon has been reported to accelerate and stabilize the training of large language models. In practice, it is often used with shuffling (sampling without replacement), where each epoch visits the components of a finite-sum objective in a permuted order. However, its iteration complexity in this setting remains open. We analyze Muon under shuffling, with the momentum buffer orthogonalized by the polar map. For smooth nonconvex finite-sum problems, we establish an $\mathcal{O}(\varepsilon^{-3})$ iteration complexity for finding an $\varepsilon$-stationary point. This guarantee holds for every sequence of permutations, covering random reshuffling, shuffle once, and the incremental gradient method. This complexity matches that of stochastic gradient descent under shuffling in its dependence on $\varepsilon$, and improves on Muon's $\mathcal{O}(\varepsilon^{-4})$ complexity under sampling with replacement. Our guarantee requires a problem-dependent $β$ that approaches one as the number of components grows. In contrast, no fixed $β$ guarantees convergence to stationarity for every number of components. We show this by constructing a family of smooth convex problems on which, for any fixed $β\in[0,1)$, Muon remains bounded away from stationarity once the number of components is sufficiently large. This failure occurs for every sequence of permutations and persists even with small stepsizes. These results suggest two practical tuning rules: if the training loss stops decreasing even after reducing the stepsize, increase $β$; when increasing $β$, reduce the stepsize accordingly.

Fri 13 NovMachine Learning
The gist
Training machine learning models often involves trying to find the best settings by testing many options bit by bit. The Muon method is a way to update these settings more smoothly by keeping track of past information. The authors studied Muon when training data is used in a shuffled order and found it can reach good solutions faster than before. Their work also explains how to adjust parameters to make Muon work reliably as the training size grows.
Open → 2611.18124v1

Adaptive neuron clustering breaks defenses for model theft attacks

Breaking $\mathsf{TraintoDefend}$ via Adaptive Neuron Clustering in Cryptanalytic Model Extraction

Abstract: Cryptanalytic model extraction poses a fundamental threat to deep learning model confidentiality by enabling precise parameter recovery with theoretical guarantees of functional equivalence. To counter this growing threat, $\mathsf{TraintoDefend}$ (NeurIPS 2025) was proposed as the first dedicated defense against cryptanalytic extraction and remains the only defense believed to be effective to date. It encourages neurons to learn similar weights so that they switch activation states together, making their individual contributions harder to distinguish. However, we notice that neurons with similar weights need not switch activation states together under small perturbations. Instead, weight similarity can cause the original clustering rule to merge signatures from distinct neurons when only a subset of their normalized weight coordinates agree. Motivated by this observation, we introduce $\mathsf{SimBreak}$, an adaptive clustering rule that breaks the weight-similarity defense of $\mathsf{TraintoDefend}$. $\mathsf{SimBreak}$ estimates a relative scale from all jointly observed weight coordinates and uses the same scale to test both weight direction and bias consistency. Across six protected fully connected networks trained on MNIST, $\mathsf{SimBreak}$ raises target layer signature recovery from $0\%$ to $100\%$, with a maximum relative recovery error of $2^{-22.27}$. Our work challenges the use of neuron weight similarity as a sufficient basis for protection and establishes adaptive evaluation as essential to assessing cryptanalytic extraction defenses.

Thu 5 NovCryptography and Security
The gist
Deep learning models can be stolen by attackers who figure out their exact parameters, which risks the model owner's secrets. A defense called TraintoDefend tries to hide these secrets by making neurons look very similar, so they are hard to tell apart. The authors found a weakness in this defense and created a smarter method, SimBreak, that can now fully recover the secret information despite the defense. This shows that making neurons similar isn’t enough to stop attackers and smarter tests are needed.
Open → 2611.07370v1

Adam optimizer’s margin bias changes with learning rate schedules

Watch Your Step: Adam's Margin Maximization Bias Depends on the Learning Rate Schedule

Abstract: We study the implicit bias of Adam and its similarity to sign gradient descent on homogeneous models in binary classification tasks. Perhaps surprisingly, we uncover that these depend on the learning rate schedule. While previous works studied strongly decaying learning rate schedules $η(t)=\mathrm o \left(t^{1/L-1}\right)$, where $L$ is the homogeneity degree, and showed $\ell_\infty$-margin-maximization biases, we focus on the more common complementary regime, including constant and weakly decaying schedules. For a polynomial schedule $t^α$ and homogeneity degree $L$, we show that when $α> \frac 1L - \frac12$, Adam has no trajectory-independent margin-maximization bias for deep linear networks (in the KKT sense): first, there is no non-trivial, locally Lipschitz, convex implicit regularizer in this setting, including any squared norm. Second, on width-$1$ networks, the result holds without requiring convexity, implying that any implicit regularizer for wide networks must be trivial when restricted to a width-$1$ network. Nevertheless, we positively characterize the implicit bias in this regime as maximizing a trajectory-dependent weighted-$\ell_2$ margin for any $L$-homogeneous model. The fundamental mechanism behind our results is convergence of Adam's preconditioner to a trajectory-dependent vector, which also allows showing that the limiting parameter direction depends on initialization. In the intermediate regime $\frac 1L - 1 \leq α\leq \frac1L - \frac12$ we prove an $\ell_\infty$ bias, conditional on gradient directional convergence to a full-support vector. Of independent interest, we establish a loss decay rate for full batch Adam on general homogeneous models, whose leading order depends only on the second-moment parameter.

Sun 1 NovMachine Learning
The gist
This paper looks at how the Adam optimization method behaves when training certain kinds of machine learning models for tasks like telling two categories apart. The authors found that the way Adam implicitly favors certain solutions depends on how the learning rate changes over time. Unlike previous work that focused on quickly shrinking learning rates, they studied slower and constant learning rates and showed that Adam does not always push the model to maximize a particular mathematical margin. Instead, the bias depends on the exact learning rate schedule and can even depend on the starting point. They also proved new details about how fast the learning loss decreases with Adam.
Open → 2611.01929v1

EnergyCal reduces training loss spikes in sparse moes with muon optimizers

EnergyCal: Taming Loss Spikes in Muon-Family Optimizers for Sparse MoE Training

Abstract: Sparse mixture-of-experts (MoE) language-model training can exhibit large loss spikes with Muon-family optimizers. We introduce EnergyCal, a lightweight rule that attenuates routed-expert updates according to the normalized squared Frobenius norm of their finite-step Newton-Schulz directions. EnergyCal leaves the spectral transform unchanged and adds no persistent optimizer state. We evaluate it on a 4B-parameter MoE model. Against a development-selected, lower-learning-rate MuonH recipe, EnergyCal-MuonH reduces mean thresholded loss-spike burden by 99.51% and final geometric-mean perplexity by 4.06%, with a modest throughput cost. With plain Muon at matched nominal learning rate and weight decay, the reduction in mean spike burden averages 95.98% across the two tested exponents, accompanied by small endpoint improvements. These findings support stabilization both with and without Hyperball in the evaluated setting.

Tue 27 OctMachine LearningArtificial IntelligenceComputation and Language
The gist
Training large language models with many experts can sometimes cause sudden jumps in error, making the learning unstable. The authors propose EnergyCal, a simple method that adjusts updates during training to avoid these jumps without adding extra memory or changing key calculations. They tested EnergyCal on a 4-billion-parameter model and found it drastically reduces error spikes and improves final accuracy with only a small speed cost. This makes training these complex models more stable and efficient.
Open → 2610.37062v1

Tensor-aware optimizer improves large language model training efficiency

TUON: A Tensor-Aware Optimizer Utilizing Tensor-SVD and Polarization for Large Language Model Pretraining

Abstract: Large scale language model~(LLM) pretraining is increasingly bottlenecked by optimizer efficiency, driving optimizer design from vector-aware methods such as AdamW to matrix-aware methods. Matrix-aware optimizers such as Muon exploit matrix structure but treat layers independently, neglecting cross-layer correlations. Tensor-aware optimizers are therefore needed, yet existing ones rely on a matricization-based tensor algebra and remain restricted to shallow stacking and specific modules. In this paper, we propose \textbf{TUON}, a novel optimizer built on a transform-based tensor algebra derived from the Tensor-SVD (T-SVD). Unlike methods that polarize a globally unfolded matrix, TUON mixes layers via a unitary transform $\boldsymbol{Q}$ and then polarizes each transformed slice, and inverts the transform to recover the update. This mix-then-separate strategy captures cross-layer correlations while preserving per-layer diversity, avoiding the structural dimension imbalance and cross-layer misalignment of unfolding. Thus it successfully scales to more layers and diverse modules beyond QKV. Theoretically, we prove that TUON performs steepest descent under a $\boldsymbol{Q}$-transformed tensor spectral norm, and identify its update as the tensor polar factor of the T-SVD. We further establish transform non-redundancy, norm and smoothness comparisons with Muon and TEON, and a convergence guarantee. Empirically, TUON improves consistently over Muon and TEON on GPT-124M/350M and Qwen-0.6B/4B, with ablations confirming the transformation mechanism, cross-layer structure beyond two-layer stacking, adaptability beyond QKV, and robustness to the polarization method.

Mon 26 OctMachine Learning
The gist
Training very large language models can be slowed down by inefficiencies in how the training adjusts the model's parameters, called optimization. The authors created a new optimizer named TUON that better captures relationships between layers of the model by using a special kind of tensor math. Unlike older methods that treat each layer separately or use simpler math, TUON mixes and separates layers in a way that keeps important information and works well with many layers. Tests show TUON speeds up training on several large language models compared to previous optimizers.
Open → 2610.35130v1

Polar Switch speeds up gradient orthogonalization for training language models

Polar Switch: Fast Muon Orthogonalization with Polynomial Circuits

Abstract: Muon, a 2024-born optimizer for language models, differs from the 2015-born spectral gradient descent mainly in its fast, GPU-friendly Newton--Schulz polynomial for orthogonalizing the gradient matrix. Accordingly, a line of research proposes faster polynomial iterations for gradient orthogonalization, such as Polar Express and Gram Newton--Schulz, both built on quintic polynomials. In this paper, we introduce Polar Switch, a new approach to polynomial gradient orthogonalization. Using simple polynomial circuits, Polar Switch reaches a given high polynomial degree at a lower FLOP cost than quintic iterations. We define a circuit as a short sequence of symmetric matrix products on a few square buffers, and circuits with $k$ products form a restricted family of odd polynomials of degree up to $2^{k+1}+1$. We choose the sequence of products in each circuit, their coefficients, and how the circuits are composed by numerically minimizing a worst-case bound on the polar approximation error. This minimization is subject to a FLOP budget that accounts for symmetric matrix multiplication kernels and a rounding constraint for numerical stability in half precision. Our two recommended Polar Switch methods have 15.5--18.7\% lower runtime than Polar Express on square matrices and 8.6--16.2\% lower runtime than Gram Newton--Schulz on rectangular matrices with aspect ratios 3.25, 3.5, and 8, with comparable approximation accuracy. In pretraining Modded-NanoGPT \#91, Qwen3-0.6B, and Gemma 3-1B, Polar Switch reaches final validation losses similar to those of established orthogonalization methods. Across the more than 14 million matrices that each of the two recommended methods orthogonalized in these runs, the estimated output spectral norms never exceed the designed bounds by more than 3\%, demonstrating their numerical stability.

Mon 19 OctMachine Learning
The gist
When training language models, it’s important to keep certain math operations stable and efficient. The authors introduce Polar Switch, a new way to quickly and accurately adjust gradient matrices during training. Their method uses clever sequences of matrix multiplications to reduce computation time compared to earlier techniques, without losing precision or stability. Tests showed it speeds up training on large models while keeping results just as good as before.
Open → 2610.26742v1

Target propagation offers faster training with fewer backward passes

Trust Your Targets: Is Target Propagation Block-Diagonal Gauss-Newton?

Abstract: Target propagation (TP) is a backpropagation alternative in which local targets carry the global learning signal. Prior works claim that TP performs Gauss-Newton (GN) optimisation on these targets, but the correspondence has only been established under unrealistic assumptions where hitting them exactly is trivial. Practical variants instead descend on a least-squares problem via a single gradient step. In this paper, we rederive TP from a trust region under an implicit, previously unexamined norm, and introduce CGTP (Conjugate Gradient Target Propagation), which uses conjugate gradients to solve the layer-local subproblems in parallel. A single adaptive parameter jointly controls this trust region and a matching bound on the weight update; KFAC emerges exactly as the special case where the per-sample Jacobians are replaced by their batch mean, giving its factored damping a variational grounding. On MNIST and Fashion-MNIST MLPs, CGTP matches the accuracy of ADAM and KFAC while needing orders of magnitude fewer outer iterations than ADAM (about 10x fewer backward-pass-equivalents overall), while remaining stable across depth.

Mon 19 OctMachine Learning
The gist
Training deep neural networks usually relies on backpropagation, which sends error signals backward through all layers. This paper studies target propagation, an alternative method that assigns local goals to each layer based on the overall task. The authors show target propagation can be seen as a form of Gauss-Newton optimization under a special norm, and propose a new way to efficiently solve its subproblems using conjugate gradients. Their method matches the accuracy of common optimizers but requires fewer training steps, making it stable and efficient especially for deep networks.
Open → 2610.26283v1

Momentum sgd sampling and curvature influence exit behaviors in optimization

Sampling and Curvature in First-Exit Comparisons for Momentum SGD

Abstract: First-exit prediction for momentum SGD depends on sampling information that pointwise gradient laws omit. Strongly convex finite pools with identical pointwise laws and matched iid momentum dynamics can have different reshuffled exits; even analytic pools with uniformly close pointwise laws can have separated exit probabilities. For persistent sampling in one dimension, we establish an explicit $O(h)$ mean-exit comparison with a finite-rate switching process under nonvanishing component velocities and step-size conditions; iid sampling instead averages to an ODE. Retaining realized minibatches and sampled curvature yields finite-window exit brackets beyond this regime. In 32 trained ridge-logistic runs, 29 meet prespecified targets with rounding-certified brackets; an enclosure control explains most of the width advantage. Exact-real certificates establish finite means at the original tested radii for three ResNet-18 checkpoints and give local finite-mean conditions for tanh and ViT networks; their upper bounds remain loose, and original-radius ViT mean guarantees remain unresolved despite 128 fresh continuation paths. A two-network replication gives 32/32 successful seeds in each of four finite-path persistence comparisons. Independent equal-length controls retain slower exits after refresh resets than without resets, but the refresh-versus-random ordering reverses with update length at both networks. These interventions do not causally decompose raw momentum SGD. Neural step-size scaling does not validate the switching limit.

Sun 18 OctMachine Learning
The gist
How algorithms like momentum SGD stop moving at certain points depends on details of how data samples and curvature information are gathered—details that older theories often miss. The authors studied how using different ways to pick data can drastically change when and where the algorithm exits certain regions during training. They developed new math tools to predict these exit times more accurately, tested their ideas on standard machine learning models, and found that some common assumptions about step sizes and sampling don't always hold. Their results help explain the complex behaviors of momentum SGD and offer ways to better estimate its training dynamics.
Open → 2610.25191v1

Muon optimizer works beyond normal stability limits in AI training

Muon Operates Beyond the Edge of Stability

Abstract: We study the Muon optimizer using sharpness and provide the first empirical evidence that the Flat Minima Hypothesis also applies to Muon. Further, we derive Muon's implicit preconditioner to analyze its potential Edge of Stability behavior. Experiments on CIFAR-10 show sharpness strongly correlates with generalization gap within each optimizer (Pearson $r = 0.45$-$0.69$, $p \leq 10^{-4}$), confirming the hypothesis holds for Muon similarly to Adam and SGD. However, Muon operates above the classical sharpness-based Adaptive Edge of Stability threshold that bounds diagonally-preconditioned optimizers like Adam and RMSprop, yet remains stable. Our findings suggest Muon operates in a fundamentally different regime than diagonally-adaptive methods. Defining the exact stability boundary for Muon remains an open question. All code is available at https://github.com/NikoCovic/DL-project.

Fri 16 OctMachine Learning
The gist
Training AI models often involves finding just the right balance to make them learn well without becoming unstable. The authors studied an AI training method called Muon and found that it stays stable even when pushed past typical limits that cause other methods to fail. They also confirmed that the idea linking flatness in the training landscape to better AI performance applies to Muon too. This means Muon behaves differently than popular methods like Adam, potentially opening new directions in AI training research.
Open → 2610.24305v1

Gradient descent learns simple relu classifiers on hard data

A Minimal ReLU Classifier on Non-Linearly Separable Data: Convergence and Implicit Bias at and beyond the Edge of Stability

Abstract: Gradient descent (GD) with large learning rates can successfully optimize neural networks even though classical smoothness-based learning rate conditions are violated. Yet theory for this regime largely covers linear models or linearly separable data. We analyze a minimal setting outside both regimes. Specifically, a two-neuron ReLU network trained with logistic loss on 1D non-linearly separable data. The objective is nonconvex and nonsmooth, and GD exhibits edge-of-stability (EoS) behavior. We identify an active cone in parameter space that contains every perfect classifier, where the problem becomes piecewise logistic regression with a varying effective dataset. Within this cone, we prove a finite-time loss bound for constant learning rates and show that GD converges in direction to an explicit max-margin vector, while the orthogonal component converges to the unique minimizer of a non-strongly convex potential. We further establish catapult results where exponentially small loss is reached after a single loss spike. Furthermore, we propose an adaptive schedule that lets learning rates grow to infinity without leaving the active cone. We prove that this schedule achieves a loss rate of $O(1/(T\log{T})$, which is faster than the standard $O(1/T)$ rate. Our theoretical results extend to local convergence on more general network and are validated on MNIST dataset. Overall, we show that this setup provides a tractable neural-network model for studying large and adaptive step sizes beyond linear predictors and separable data.

Fri 16 OctMachine Learning
The gist
Training neural networks can be tricky when the data isn't easily separable or the learning rates are large. The authors study a very simple neural network with two ReLU units learning from one-dimensional, non-linearly separable data. They show how the training process converges in a predictable way under these challenging conditions and reveal how certain learning rate schedules can speed up learning. Their mathematical findings also apply to more complex networks and hold up when tested on the MNIST dataset of handwritten digits.
Open → 2610.23007v1

Two-layer linear network training converges globally with explicit rates

Global Exponential Convergence of Two-Layer Linear Network Training

Abstract: We prove global exponential (linear) convergence with an explicit rate in the rich scaling for wide two-layer linear networks trained with smooth Polyak-Lojasiewicz predictor losses. Gradient flow in the factors closes exactly in terms of a finite-dimensional Bures flow of the neuron law covariance, in which the predictor dynamics are preconditioned by hidden covariance blocks. Mean-field conservation laws provide uniform spectral lower bounds on the hidden preconditioning blocks when the initial covariance satisfies a spectral support gap condition. This condition encompasses positive definiteness while still allowing for singular initializations. For an initial covariance $Σ_0 = σ^2 \mathrm{Id}$, the loss converges to the global minimum with linear rate at least $4σ^2κ$, where $κ$ is the PL constant. We establish stability of this rate under finite-width sampling, as well as global convergence of factor gradient descent for an explicit stepsize interval depending on smoothness, the initial loss, and conserved spectral margins. Our argument extends layerwise to deep linear ResNets, subject to a residual-path bound. In the case of heavy-ball momentum, training dynamics close instead over positions and velocities in terms of a lifted phase covariance. Linear convergence holds under an explicit condition on the energy and damping, specifying a window of admissible dampings. For two-scale white initializations, this interval is nonempty for sufficiently large position scales, with a fixed initial loss gap and velocity covariance. Numerical experiments illustrate the covariance geometry and compare the predicted and observed rates.

Wed 7 OctMachine Learning
The gist
Training a simple type of neural network can be tricky because the learning process sometimes gets stuck or is slow. This paper shows that for wide networks with two layers, the learning process converges quickly and reliably under certain mathematical conditions. The authors connect how the network's internal parts evolve during training to a well-understood mathematical flow, which helps prove this fast convergence. Their results also extend to deeper versions of these networks and settings using momentum for training. Simulations support their theoretical findings about how fast training happens.
Open → 2610.09356v1

DGA-Muon improves adaptive scaling for better large-scale optimization

DGA-Muon: Decoupled Geometry-Aligned Adaptive Scaling for Muon

Abstract: While NorMuon has achieved strong empirical performance in large-scale pretraining by enhancing Muon with row-wise adaptive scaling, its underlying adaptive mechanism remains poorly understood. In this work, we provide the first systematic analysis of NorMuon's adaptivity, revealing that it originates primarily from orthogonalization-induced geometry rather than genuine optimization-relevant information. Under exact orthogonalization, the adaptive scaling factors degenerate into a single global scalar for square and wide matrices, while for tall matrices their variation arises from the non-uniform distribution of row energy after orthogonalization. Under approximate orthogonalization, the orthogonality residual introduces additional variation into the scaling factors, leading to the \textit{Orthogonalization--Adaptivity Paradox}: more accurate orthogonalization weakens adaptivity. We further show that NorMuon's rigid row-wise scaling is geometrically misaligned with the one-sided orthogonal structure of tall matrices. Based on the analysis of these limitations, we propose two core design principles that a desirable adaptive mechanism for Muon should satisfy. First, adaptive scaling should be decoupled from orthogonalization, with the scaling factors computed directly from raw gradients. Second, adaptive scaling should be aligned with the shape-dependent orthogonal structure of the polar factor, using row-wise scaling for wide matrices and column-wise scaling for tall matrices. By incorporating several other design considerations, including sum-based second-moment estimates, bias correction, and adaptive clipping of scaling factors, we obtain the Decoupled Geometry-Aligned Muon (DGA-Muon) optimizer. We establish convergence guarantees for DGA-Muon and empirically validate both our theoretical characterization of NorMuon's scaling degeneration and the superiority of DGA-Muon over NorMuon.

Mon 5 OctArtificial Intelligence
The gist
The paper looks at a method called NorMuon that helps improve large-scale learning by adjusting how it scales parts of data during training. The authors find that NorMuon's way of adapting mostly comes from a math trick called orthogonalization, which can limit how well it actually learns. They propose a new method, DGA-Muon, that separates scaling from this math trick and aligns scaling better depending on the data shape. This new approach performs better and has proven convergence, meaning it reliably improves learning.
Open → 2610.06578v1

Misalignment of training and test losses explains grokking behavior

Misalignment of Low-Loss Regions Causes Grokking

Abstract: Grokking refers to the delayed emergence of validation-set generalization after a model has already overfit the training set. Although first observed in small algorithmic tasks trained with transformers, its underlying mechanism remains unsettled. In this work, we develop an analysis framework based on mode connectivity and the geometry of low-loss regions. The framework predicts that the standard modular-arithmetic setting does not always produce grokking: under a symmetry-preserving train/validation split, we observe a stable anti-grokking case in which validation performance does not recover. This counterexample challenges several existing correlational explanations of grokking. More broadly, our analysis framework and results further suggest that grokking arises when the low-loss regions induced by the training and validation partitions are misaligned. Once these regions become well aligned, training hyperparameters alone cannot produce grokking and the observed dynamics collapse to either trainable or non-trainable behavior.

Wed 30 SeptMachine LearningArtificial Intelligence
The gist
Grokking is when a model suddenly gets better on new data after seemingly overfitting the data it was trained on. The authors studied why this happens and found it depends on how the training and test tasks line up. If the low-error areas for training and testing match up well, grokking doesn’t happen. But when these areas don’t line up, grokking can appear. This finding challenges some earlier ideas about grokking and explains it through differences in the shapes of error regions.
Open → 2610.00620v1

Backpropagated output momentum cuts optimizer state size and boosts tuning

Backpropagated Output Momentum: Relocating Optimizer History from Parameters to Task Space

Abstract: Optimizer momentum is usually stored as a parameter-sized moving average of past gradients, which makes history costly and fixes each past signal in the coordinates in which it was computed. We introduce Backpropagated Output Momentum (BOM), which instead stores a compact moving average of prediction errors at the model output and reprojects that history through the current network at every step. A batch-level analysis characterizes the information retained and omitted by this relocation, while the implementation preserves the current supervised gradient and can replace the first-moment component of several adaptive optimizers. As a plug-in for momentum-based optimizers, including ones that already compress their state, BOM reduces parameter-shaped optimizer state by 49.7-99.8% in three compositions and, averaged over three language backbones, paired step time by 4.0%. It also improves mean validation performance across language and vision fine-tuning, by 1.42 points in the primary five-task comparison. Language and vision pretraining studies, together with matched mechanism controls, further test the construction across output spaces and model scales.

Tue 29 SeptMachine LearningComputation and Language
The gist
Momentum in optimization usually keeps a big memory of past steps for every parameter, which can be very large. The authors propose storing this memory more compactly by tracking errors at the model’s output instead and then projecting them back through the network. This saves a lot of memory while keeping performance or even improving it. Their approach speeds up training steps and improves accuracy on language and vision tasks.
Open → 2609.36738v1

Bfloat16 errors cause large transformer training instabilities fixed by gauge projection

Broken Symmetry in BF16 Attention: Why FlashAttention Gradients Blow Up Late in Training

Abstract: BF16 is now standard in large-scale pretraining, including in fused attention kernels such as FlashAttention, and these kernels are widely trusted. When we used FlashAttention-3 to pretrain a 450M-parameter transformer on 50B tokens, however, we ran into a problem: training was healthy for 25B tokens, then the gradient norm grew a thousandfold and the loss ended 0.2 nats above FP32 attention, without a single NaN. Recomputing the attention backward of just two layers in FP32 removes almost all of the excess gradient. Part of the cause is known: a fused multiply-add in the forward softmax, so far treated as an extreme-input NaN case and never fixed in FlashAttention-3. Repairing it stops the blow-up, but the query gradient is still wrong by more than its own size, and training still drives attention logits to thousands of times their size under accurate gradients. The remaining error comes from a broken conservation law. The softmax score gradient sums to zero along every row, which makes the query gradient blind to where the keys sit as a group; rounding it to BF16 leaves a small nonzero sum that leaks the mean key into the gradient, and the leak grows exactly as late training makes keys large and attention sharp. We introduce GProj (gauge projection), which restores the zero sum after the cast with two rank-one corrections per row. It cuts the remaining median query/key gradient errors from 219%/13% to 0.34%/0.37%, on par with FP32 attention, for 4.7% more time per training step. In matched from-scratch runs it trains to the same loss as FP32 attention, while FlashAttention-3 and key smoothing both destabilize.

Mon 28 SeptMachine LearningDistributed, Parallel, and Cluster Computing
The gist
Training large AI models using a faster, lower-precision number format called BF16 sometimes causes sudden huge errors in learning, even without crashing. The authors found that small mistakes in handling certain math steps in attention calculations lead to these errors late in training. They fixed the problem by correcting these small errors with a method called gauge projection, which brings the results back in line with full precision without slowing down training too much. This fix helps training large transformers remain stable and accurate.
Open → 2609.34272v1

Adaptive spectral estimation improves matrix optimizers in ai training

Cost-free Spectral Estimation for Adaptive Newton--Schulz in Matrix Optimizers

Abstract: Matrix optimizers such as Muon transform each momentum matrix through an approximate orthogonalization, typically implemented by a small number of Newton-Schulz matrix multiplications. The quality and cost of this approximation depend strongly on the singular-value spectrum of its input, yet existing implementations use the same fixed polynomial routine for every layer and throughout training. We show that this uniform treatment is unnecessary: the computations in the Newton-Schulz method already reveal enough information to make the method adaptive. The Gram matrices formed inside Newton-Schulz iterations yield spectral moments through inexpensive scalar reductions, requiring no additional matrix multiplications. From these moments, we recover an estimate of the empirical singular-value distribution and use it to select a polynomial routine specialized to the current matrix. This turns Newton--Schulz orthogonalization into a spectrum-adaptive procedure that responds to differences across both layers and training time. On saved momentum matrices, spectral estimation substantially reduces orthogonalization error at a fixed iteration budget or reaches the same accuracy with fewer iterations, and in GPT pretraining up to 1B parameters it lowers the validation loss of two matrix optimizers. Our results suggest that matrix-function operations inside optimizers need not be designed for a conservative worst-case spectrum: they can cheaply measure the spectrum they are already processing and specialize computations accordingly.

Sun 27 SeptMachine Learning
The gist
Training large AI models often involves adjusting many matrices to speed up learning. Current methods use a fixed routine to process these matrices, which may not be efficient for all parts of the model or training stages. The authors found that by looking at information already computed during these adjustments, it is possible to adapt how the matrices are handled based on their unique properties. This adaptive approach improves accuracy or reduces the work needed, leading to better training results on large models like GPT.
Open → 2609.33047v1

Momentum helps stabilize high learning rates for faster training progress

Towards Understanding Momentum Acceleration in River-Valley Loss Landscape

Abstract: The empirical success of pretraining large language models has inspired a deeper investigation into the underlying loss landscapes and the optimization dynamics. Recent empirical and theoretical study suggest that the training loss landscape often exhibits a "river-valley" structure, which features a low-loss manifold (river) flanked by sharp orthogonal directions with higher loss (mountains). In the long term, the optimization progress is determined primarily by the progress along the river. Within such a landscape, gradient descent with large learning rates can move faster along the river despite high apparent loss due to vertical oscillations, while a subsequent sharp decay in the learning rate suppresses these oscillations, revealing genuine optimization progress. This explains the recent success of warmup-stable-decay (WSD) learning rate scheduler which, unlike cosine scheduling, keeps stable high learning rate and decays before producing intermediate checkpoints. Building on this foundation, in this work we take a step further and study the role of momentum within such a loss landscape. We establish theoretical analysis that characterizes how momentum accelerates optimization by stabilizing large learning rates that can not be tolerated by vanilla GD without deviating significantly from the river. The enabled large learning rate in-turn gives greater speed along the river and makes faster essential progress in the long run. Another intriguing observation from theory is that for a river-valley landscape with very flat and slow-spinning river, the momentum itself does not contribute directly to acceleration in terms of the speed of tracking the river, while the main acceleration comes from the admissible larger learning rate.

Fri 25 SeptMachine Learning
The gist
Training big language models is tricky because their error landscape looks like a river valley with a low path surrounded by steep sides. The authors study how momentum, a common technique in training, helps keep training stable even with high learning rates that would otherwise cause problems. This stability lets the training move faster along the good low-error paths, improving long-term progress. Interestingly, if the valley is very flat and slow, momentum itself doesn't speed things up directly, but it allows using a bigger learning rate which does.
Open → 2609.30957v1

Cosine relations reshape momentum for better training outcomes

COREM: Cosine-Relation Momentum Reshaping with Stateful Writeback

Abstract: Matrix-valued optimizer states may contain relational structure that is not captured by treating their entries independently. We study whether relations within matrix-valued optimizer states can be exploited to improve optimization. To this end, we introduce a unit-relation-transform abstraction and instantiate it as COREM, a Cosine-Relation Momentum Reshaping method with stateful writeback. COREM partitions the momentum state into update units, computes cosine relations among them, and uses these relations to reshape the momentum before writing the transformed state back to the optimizer. This stateful mechanism allows the reshaped momentum to affect not only the current update but also future optimization dynamics. We evaluate COREM on CIFAR-10 with an MLP and on enwik8 with a Transformer. Compared with Muon, COREM shows lower early-stage step efficiency but stronger improvement in the mid-to-late stages of training, achieving better final validation performance on CIFAR-10 and comparable final performance on enwik8. Spectral diagnostics on enwik8 show that COREM consistently increases entropy effective rank and reduces the concentration of singular energy in dominant modes, while preserving an anisotropic spectrum. For square matrix updates, COREM requires approximately 13.3% of the transformation FLOPs of Muon with five Newton-Schulz iterations.

Fri 18 SeptMachine Learning
The gist
Training AI models involves adjusting many settings, called optimizer states, which can be thought of as big matrices. The authors looked at whether the relationships inside these matrices can be better used rather than treating each piece separately. They created a new method called COREM that reshapes the momentum during training by examining how parts of these matrices relate via cosine similarity, then updates the training process based on that. Their tests showed COREM improves model accuracy later in training and uses less compute compared to a similar method called Muon.
Open → 2609.22487v1

Scale invariant optimization shows sharp stability boundary with weight decay

When Does Scale-Invariant Optimization Become Unstable? An Exact Schedule Law with Weight Decay

Abstract: Normalization renders large parts of neural networks effectively scale invariant, inducing a hidden feedback loop in which learning-rate schedules and weight decay interact through the parameter norm to control the effective step taken by the optimizer. We show that this interaction is governed by an exact discrete-time law: a single scalar quantity captures all schedule and decay forcing, while norm growth induces an opposing geometric self-quenching effect. This yields a sharp boundary that cleanly separates contraction- and expansion-dominated effective learning rate regimes. To understand the underlying mechanism, we provide exact analysis of a fully solved normalized regression model where the dynamics reduce to two dimensions and show that the balance point is intrinsically unstable, implying that constant learning rate with weight decay cannot stably maintain an interior equilibrium and instead produces recurrent behavior driven by discrete-time Jacobian structure. We further extend this perspective across optimizers through unified homogeneous-optimizer framework that reveals a structural dichotomy in self-quenching strength, providing a first-principles explanation for why adaptive methods exhibit systematically weaker stabilization under normalization. Across dynamical systems and neural networks (MLP, CNN, GPT2 / MNIST, CIFAR, wikiText, OpenWebText), the predicted law holds with high precision and enables direct control of training via the identified scalar, with performance peaking sharply at the predicted boundary. Together, these results isolate a single governing quantity for scale-invariant optimization, providing a precise and actionable lens on training dynamics, optimizer behavior, and schedule design in modern deep learning. Code is available in https://github.com/shasanamin/normalized-optimization-dynamics.

Tue 8 SeptMachine Learning
The gist
Training certain parts of neural networks becomes tricky because their behavior doesn’t change when you scale the weights, but the combination of learning rates and weight decay affects how stable the training is. The authors discovered a precise mathematical rule that predicts when this training is stable or unstable. They found that at a critical point, the system becomes unstable, causing the training behavior to keep repeating instead of settling down. This rule works across different types of networks and optimization methods, helping engineers better control training by adjusting a single key value.
Open → 2609.09116v1

Neural networks generalize differently across layers with weight decay training

A Theoretical Analysis of Generalization Dynamics in Neural Networks under Gradient Descent with Weight Decay

Abstract: Understanding generalization remains a central challenge in machine learning because it requires jointly considering data, architecture, and training dynamics. In this paper, we develop a theoretical framework that characterizes how these factors jointly shape generalization performance throughout training. More precisely, we study a broad class of neural networks trained under the $\ell^2$ loss by gradient descent (GD) with weight decay, and prove the convergence of GD to a neighbourhood of the global minimizers of the empirical loss. By partitioning the space based on the input data, we then decompose the population error into data error, optimization error, and prediction variation error, and bound them separately. In particular, for the prediction variation error, which measures the oscillations of the learned function, we propose (local) approximate homogeneity and derive explicit cellwise and layerwise bounds for its evolution along the training trajectory. These bounds yield two important implications: a necessary condition of improved generalization explains differences in layerwise generalization behavior; a sufficient condition describes delayed generalization and provides a theoretical characterization of grokking.

Mon 7 SeptMachine Learning
The gist
Understanding why and how neural networks make good predictions on new data is hard because it depends on many factors like the data, the network design, and training details. This paper by the authors develops a new way to analyze how these factors work together during training with a specific setup called gradient descent with weight decay. They break down errors into parts and study how the predictions change during training in detail, especially across different network layers. Their findings explain why some layers generalize better than others and provide a theory for a mysterious behavior called grokking, where learning improves suddenly after delay.
Open → 2609.07755v1