# gradient\_accumulation

A machine-learning training technique that accumulates gradients over several batches before updating model parameters.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

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

DevFeed: [Equal Steps, Unequal Curvature: Where Muon's Update Goes Wrong](<https://devfeed.tech/articles/equal-steps-unequal-curvature-where-muon-s-update-goes-wrong-143542.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.24644>)

Author: Biswa Sengupta, Jinhua Wang, L\\'eo Maxime Brunswic

Published: 2026-11-19T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [AI Foundation Models](<https://devfeed.tech/topics/ai-foundation-models.md>), [gradient\_accumulation](<https://devfeed.tech/topics/gradient-accumulation.md>), [reproducibility](<https://devfeed.tech/topics/reproducibility.md>)

Tags: [arxiv](<https://devfeed.tech/tags/arxiv.md>), [band](<https://devfeed.tech/tags/band.md>), [block](<https://devfeed.tech/tags/block.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [decoder](<https://devfeed.tech/tags/decoder.md>), [diagnostic](<https://devfeed.tech/tags/diagnostic.md>), [hessian](<https://devfeed.tech/tags/hessian.md>), [hidden](<https://devfeed.tech/tags/hidden.md>), [input](<https://devfeed.tech/tags/input.md>), [lean](<https://devfeed.tech/tags/lean.md>), [leverage](<https://devfeed.tech/tags/leverage.md>), [matching](<https://devfeed.tech/tags/matching.md>), [matmul](<https://devfeed.tech/tags/matmul.md>), [matrix](<https://devfeed.tech/tags/matrix.md>), [momentum](<https://devfeed.tech/tags/momentum.md>), [muon](<https://devfeed.tech/tags/muon.md>), [neuron](<https://devfeed.tech/tags/neuron.md>), [order](<https://devfeed.tech/tags/order.md>), [over](<https://devfeed.tech/tags/over.md>), [parameter](<https://devfeed.tech/tags/parameter.md>), [update](<https://devfeed.tech/tags/update.md>)

### AI overview

In a 124M-parameter decoder trained on FineWeb-Edu, Muon's equal step across momentum singular directions over-steps the high-curvature top of the spectrum. Held-out gradients and Hessian-vector products show that shifting step length away from the top helps mid-training and early cooldown, but not at cooldown's end; the authors formalize when this curvature diagnostic supports intervention at Muon's update norm. With per-step norm matching, tuned baselines, and paired seeds, separately orthogonalizing Q, K, and V reduces loss by 0.0250 nats and explains the gain from block-wise variants. A cooldown spectral tilt of σ⁻¹ᐟ⁴ further reduces loss by 0.0120 nats on that baseline, adds with NorMuon for a 0.0158-nat reduction, and gives a 0.0188-nat reduction at 355M parameters. Energy-matched Schatten-1 decay adds 0.0052 nats. Exact polar factors, input whitening, and top-heavy decay do not help. The abstract reports these results but does not establish broader applicability beyond the tested settings.

### Source excerpt

arXiv:2611.24644v1 Announce Type: new 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 $\sigma^{-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.

## Entropy-Regularized Integrated Gradients for Stable Feature Attribution

DevFeed: [Entropy-Regularized Integrated Gradients for Stable Feature Attribution](<https://devfeed.tech/articles/entropy-regularized-integrated-gradients-for-stable-feature-attribution-142676.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.23600>)

Author: Rukmangadh Sai Myana, Sumit Kumar Jha, Yanzhao Wu

Published: 2026-11-19T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>), [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [gradient\_accumulation](<https://devfeed.tech/topics/gradient-accumulation.md>)

Tags: [attribution](<https://devfeed.tech/tags/attribution.md>), [cnn](<https://devfeed.tech/tags/cnn.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [cs-cv](<https://devfeed.tech/tags/cs-cv.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [entropy](<https://devfeed.tech/tags/entropy.md>), [experiments](<https://devfeed.tech/tags/experiments.md>), [feature](<https://devfeed.tech/tags/feature.md>), [gradient](<https://devfeed.tech/tags/gradient.md>), [input](<https://devfeed.tech/tags/input.md>), [integration](<https://devfeed.tech/tags/integration.md>), [localization](<https://devfeed.tech/tags/localization.md>), [metrics](<https://devfeed.tech/tags/metrics.md>), [model](<https://devfeed.tech/tags/model.md>), [neural-networks](<https://devfeed.tech/tags/neural-networks.md>), [noise](<https://devfeed.tech/tags/noise.md>), [pet](<https://devfeed.tech/tags/pet.md>), [ranking](<https://devfeed.tech/tags/ranking.md>), [stable](<https://devfeed.tech/tags/stable.md>), [transformer](<https://devfeed.tech/tags/transformer.md>)

### AI overview

Entropy-Regularized Integrated Gradients (ERIG) aims to make Integrated Gradients less sensitive to small input perturbations by applying maximum-entropy softmax weighting along the attribution path, controlled by temperature τ. Its stability analysis separates attribution change into a model-response term with a τ-independent bound and a weight-variation term whose bound decreases at O(1/(2τ)); their ratio describes the trade-off between gradient information and stability. The authors also introduce LINV-C and LINV-P to quantify attribution noise. Across 11 CNN and Transformer backbones on ImageNet and Oxford-IIIT Pet, ERIG reportedly keeps ranking-based fidelity comparable to the next-best method while improving localization by about 24% and stability by about 47-fold on average, with gains up to four orders of magnitude over IG at negligible added computational cost.

### Source excerpt

arXiv:2611.23600v1 Announce Type: cross Abstract: Path-based attribution methods like Integrated Gradients (IG) are widely used to interpret neural networks, yet imperceptible input perturbations can drastically alter their attribution maps while leaving model predictions unchanged. We introduce Entropy-Regularized Integrated Gradients (ERIG), a path-based attribution method that intrinsically attenuates gradient irregularities along the integration path using maximum-entropy softmax weighting with temperature parameter $\tau$. We quantify the effect of the entropy-regularized weighting on attribution stability by using the Lipschitz properties of the model and its gradients. We decompose the attribution change under an input perturbation into a model-response term, whose bound is $\tau$-independent, and a weight-variation term, whose bound decreases at rate $\mathcal{O}(1/(2\tau))$. Their ratio $R(\tau)$ characterizes the trade-off between gradient information and attribution stability. We further add a new dimension to attribution evaluation by adapting classical noise estimators into two metrics, LINV-C and LINV-P, that quantify attribution noise. Across eleven CNN and Transformer backbones on ImageNet and Oxford-IIIT Pet datasets, our experiments show that, relative to the next-best method, ERIG remains comparable on ranking-based fidelity metrics while improving localization by approximately 24% and attribution stability by approximately 47-fold on average, reaching up to four orders of magnitude improvement over IG, all at negligible additional computational cost.

## Train High, Ship Low: Efficient LoRA Synchronization for Distributed On-Policy Post-Training

DevFeed: [Train High, Ship Low: Efficient LoRA Synchronization for Distributed On-Policy Post-Training](<https://devfeed.tech/articles/train-high-ship-low-efficient-lora-synchronization-for-distributed-on-policy-post-training-128285.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.13306>)

Author: Shenghui Li, Li Ju, Thiemo Voigt

Published: 2026-11-11T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>), [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [lora](<https://devfeed.tech/topics/lora.md>), [post-training](<https://devfeed.tech/topics/post-training.md>), [distributed-training](<https://devfeed.tech/topics/distributed-training.md>), [synchronization](<https://devfeed.tech/topics/synchronization.md>), [gradient\_accumulation](<https://devfeed.tech/topics/gradient-accumulation.md>)

Tags: [adapter](<https://devfeed.tech/tags/adapter.md>), [adaptive](<https://devfeed.tech/tags/adaptive.md>), [bandwidth](<https://devfeed.tech/tags/bandwidth.md>), [bandwidth-constraints](<https://devfeed.tech/tags/bandwidth-constraints.md>), [budget](<https://devfeed.tech/tags/budget.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [distillation](<https://devfeed.tech/tags/distillation.md>), [distributed](<https://devfeed.tech/tags/distributed.md>), [error](<https://devfeed.tech/tags/error.md>), [execution](<https://devfeed.tech/tags/execution.md>), [experiments](<https://devfeed.tech/tags/experiments.md>), [feedback](<https://devfeed.tech/tags/feedback.md>), [framework](<https://devfeed.tech/tags/framework.md>), [full](<https://devfeed.tech/tags/full.md>), [gradient](<https://devfeed.tech/tags/gradient.md>), [learner](<https://devfeed.tech/tags/learner.md>), [lora](<https://devfeed.tech/tags/lora.md>), [policy](<https://devfeed.tech/tags/policy.md>), [post-training](<https://devfeed.tech/tags/post-training.md>), [synchronization](<https://devfeed.tech/tags/synchronization.md>), [training](<https://devfeed.tech/tags/training.md>)

### AI overview

HiLo reduces LoRA synchronization traffic in distributed on-policy post-training by sending compressed gradients instead of adapter parameters. Rollout workers replay the optimizer locally using replicated optimizer states and the same decoded gradients as the learner, keeping policy states aligned at each version when execution is reproducible. Its compressor, Spar, combines spectral truncation, adaptive rank allocation, and error feedback to separate training rank from communication cost. In experiments on on-policy distillation and reward-guided post-training, HiLo with Spar reportedly kept learning quality close to full synchronization while transmitting as little as 1.6% of adapter bytes and accelerating end-to-end updates by up to 2.2x under bandwidth constraints.

### Source excerpt

arXiv:2611.13306v1 Announce Type: cross Abstract: Transmitting LoRA adapters to rollout workers can bottleneck distributed on-policy post-training over bandwidth-constrained networks. Lowering the training rank may limit the capacity a workload needs, while adaptive optimizer updates are difficult to compress. Rollout workers can instead reconstruct updates from gradients by maintaining replicated optimizer states. We introduce HiLo, a compressor-agnostic framework that replaces parameter transmission with compressed gradient dissemination and local optimizer replay. By applying the same decoded gradients, the learner and workers maintain consistent policy states at the same version under reproducible execution. We further develop Spar, a budget-aware gradient compressor that combines spectral truncation, adaptive rank allocation and error feedback to decouple training rank from communication cost. Experiments across on-policy distillation and reward-guided post-training show that HiLo with Spar maintains learning quality close to full synchronization while transmitting as little as 1.6% of the adapter bytes, and accelerates end-to-end updates by up to $2.2\times$ under bandwidth constraints.

## Action-BED: Task-Driven Bayesian Experimental Design with Singly Intractable Objectives

DevFeed: [Action-BED: Task-Driven Bayesian Experimental Design with Singly Intractable Objectives](<https://devfeed.tech/articles/action-bed-task-driven-bayesian-experimental-design-with-singly-intractable-objectives-123183.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2606.23662>)

Author: Tom Rossa, Angus Phillips, Tom Rainforth

Published: 2026-11-09T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [Hyperparameter optimization](<https://devfeed.tech/topics/hyperparameter-optimization.md>), [gradient\_accumulation](<https://devfeed.tech/topics/gradient-accumulation.md>)

Tags: [actions](<https://devfeed.tech/tags/actions.md>), [bayesian](<https://devfeed.tech/tags/bayesian.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [decision](<https://devfeed.tech/tags/decision.md>), [design](<https://devfeed.tech/tags/design.md>), [experimental](<https://devfeed.tech/tags/experimental.md>), [experimental-design](<https://devfeed.tech/tags/experimental-design.md>), [learning](<https://devfeed.tech/tags/learning.md>), [model](<https://devfeed.tech/tags/model.md>), [objectives](<https://devfeed.tech/tags/objectives.md>), [policies](<https://devfeed.tech/tags/policies.md>), [policy](<https://devfeed.tech/tags/policy.md>), [sample](<https://devfeed.tech/tags/sample.md>), [stat-ml](<https://devfeed.tech/tags/stat-ml.md>), [using](<https://devfeed.tech/tags/using.md>)

### AI overview

Action-BED formulates Bayesian experimental design around expected future loss on downstream actions, making the design objective directly task-driven. The authors state that these objectives can be rearranged into singly intractable forms and jointly optimized for the design policy and downstream action policy using stochastic gradients. The method requires sampling from the joint model over parameters and data and evaluating the downstream loss; it avoids explicit posterior or marginal-likelihood estimation. The abstract presents this as easier to customize for different downstream tasks than uncertainty-reduction objectives, which it characterizes as doubly intractable and difficult to optimize.

### Source excerpt

arXiv:2606.23662v2 Announce Type: replace-cross Abstract: Bayesian experimental design (BED) has traditionally been based on maximising expected uncertainty reductions from prior to posterior. A major shortfall of this approach is that it leads to doubly intractable objectives that are difficult to optimise, while customising them to particular downstream tasks of interest can also be difficult. Following first principles decision theory, we demonstrate that BED can alternatively be formulated in terms of an expected future loss (EFL) on downstream actions, providing a simple and naturally task-driven framework. Critically, we then show that all such EFLs can be rearranged into singly intractable objectives that can be jointly optimised with respect to both the design policy and a downstream action policy using stochastic gradients, an approach we refer to as ACTION-BED. This formulation further sidesteps the need for any explicit posterior or marginal likelihood estimation and is naturally implicit, requiring only the ability to sample from the joint model over model parameters and data, and evaluate the downstream loss function. It thus allows design policies to be learned more effectively, efficiently, and simply than existing methods, while providing easy customisation to different downstream tasks and losses.

## Safe and Efficient Multi-Epoch Embedding Training

DevFeed: [Safe and Efficient Multi-Epoch Embedding Training](<https://devfeed.tech/articles/safe-and-efficient-multi-epoch-embedding-training-121989.md>)

Original publisher: [Read original article](<https://medium.com/pinterest-engineering/safe-and-efficient-multi-epoch-embedding-training-103bec2abc83?source=rss----4c5a5f6279b6---4>)

Author: Pinterest Engineering

Published: 2026-11-06T16:01:03Z

Content type: article

Language: en

Sources: [Pinterest](<https://devfeed.tech/sources/pinterest-engineering-blog-medium.md>)

Topics: [Machine learning](<https://devfeed.tech/topics/machine-learning.md>), [Fine-tuning](<https://devfeed.tech/topics/fine-tuning.md>), [recommendation systems](<https://devfeed.tech/topics/recommendation-systems.md>), [distributed-training](<https://devfeed.tech/topics/distributed-training.md>), [machine learning overfitting](<https://devfeed.tech/topics/machine-learning-overfitting.md>), [Representation learning](<https://devfeed.tech/topics/representation-learning.md>), [gradient\_accumulation](<https://devfeed.tech/topics/gradient-accumulation.md>)

Tags: [communication](<https://devfeed.tech/tags/communication.md>), [distributed](<https://devfeed.tech/tags/distributed.md>), [embedding](<https://devfeed.tech/tags/embedding.md>), [embedding-tables](<https://devfeed.tech/tags/embedding-tables.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [fine-tuning](<https://devfeed.tech/tags/fine-tuning.md>), [gpu](<https://devfeed.tech/tags/gpu.md>), [infrastructure](<https://devfeed.tech/tags/infrastructure.md>), [lookup](<https://devfeed.tech/tags/lookup.md>), [machine-learning](<https://devfeed.tech/tags/machine-learning.md>), [pinterest](<https://devfeed.tech/tags/pinterest.md>), [pretraining](<https://devfeed.tech/tags/pretraining.md>), [ranking](<https://devfeed.tech/tags/ranking.md>), [recommendation-system](<https://devfeed.tech/tags/recommendation-system.md>), [recommendation-systems](<https://devfeed.tech/tags/recommendation-systems.md>), [retrieval](<https://devfeed.tech/tags/retrieval.md>), [synchronization](<https://devfeed.tech/tags/synchronization.md>), [training](<https://devfeed.tech/tags/training.md>), [vision-language-models](<https://devfeed.tech/tags/vision-language-models.md>), [vision-language-models-vlms](<https://devfeed.tech/tags/vision-language-models-vlms.md>), [vlms](<https://devfeed.tech/tags/vlms.md>)

### AI overview

Pinterest's Homefeed team enabled multi-epoch fine-tuning of pretrained ID embeddings by delaying their adaptation: train the rest of the model with embeddings frozen for the first epoch, then unfreeze them. Full co-training overfit sharply, with nearly a 6% offline save-metric decline from one to two epochs; delayed updates improved results in experiments and the production approach led to a reported 1.09% increase in online saves. For longer runs, they overlapped next-batch distributed embedding lookups with current-batch computation, accepting a one-update staleness that showed no measured quality loss, and reduced lookup overhead with fused requests and specialized kernels. Gradient isolation also prevented overfitting, but did not outperform fully frozen embeddings. The authors describe these results in the Homefeed setting and leave broader component-specific optimization as an open question.

### Source excerpt

Authors: Shruthi Hariharan | Machine Learning Engineer II; Konish Dutta | Machine Learning Engineer II; Abhinav Naikawadi | Sr. Machine Learning Engineer; Zhihua Zhang | Machine Learning Engineer II; Rakshita Nagalla | Sr. Machine Learning Engineer; Kousik Rajesh* | Machine Learning Engineer II; Matt Lawhon | Staff Machine Learning Engineer Tags: Machine Learning, Infrastructure, Recommendation Systems Content Track: Technical Discussion / Architecture of big components * == work done while at Pinterest Introduction Large ID embedding tables underpin some of the largest modeling advances at Pinterest, including teacher-model scaling and cross-domain pretraining for ranking and retrieval. These tables are first pre-trained to learn broadly useful Pin representations and then fine-tuned as part of the downstream surface-specific ranking model. Here, we'll focus on the Homefeed ranking model. The strength of the embedding tables comes from their enormous capacity to absorb information about billions of Pins and learn rich representations. That power, however, is coupled with fragile training dynamics that have historically constrained fine-tuning to one epoch. That compromise has become increasingly dissatisfactory; single-epoch fine-tuning prevents us from effectively optimizing our models over small, fresh datasets in retraining, and disproportionately harms effective representation learning of certain components of our ranking model which benefit from longer training, like Vision Language Models (VLMs). A one-epoch ceiling forces every component of our model to learn on the schedule of its most training-sensitive component. When trained longer, two problems appear: Model quality degrades sharply. In Homefeed ranking, we saw nearly a 6% decline in our offline save metric when extending training from one epoch to two epochs. GPU waste from communication-bound training accumulates. Distributed embedding lookup and synchronization overhead created large idle periods in

## When Does Sharing Work? Scaling a Shared SigLIP2 Across Image, Video, Audio, and Audio-Visual Representations

DevFeed: [When Does Sharing Work? Scaling a Shared SigLIP2 Across Image, Video, Audio, and Audio-Visual Representations](<https://devfeed.tech/articles/when-does-sharing-work-scaling-a-shared-siglip2-across-image-video-audio-and-audio-visual-representations-118320.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.05406>)

Author: Xiaofei Sun, Peng Wang, Huayao Liu, Xiaoxiao Xu, Jun Song, Deqing Li, Lin Qu

Published: 2026-11-05T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>)

Topics: [multimodal-ai](<https://devfeed.tech/topics/multimodal-ai.md>), [gradient\_accumulation](<https://devfeed.tech/topics/gradient-accumulation.md>), [Transformers](<https://devfeed.tech/topics/transformers.md>)

Tags: [adapters](<https://devfeed.tech/tags/adapters.md>), [alignment](<https://devfeed.tech/tags/alignment.md>), [all](<https://devfeed.tech/tags/all.md>), [audio](<https://devfeed.tech/tags/audio.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [cs-cv](<https://devfeed.tech/tags/cs-cv.md>), [embedding](<https://devfeed.tech/tags/embedding.md>), [framework](<https://devfeed.tech/tags/framework.md>), [image](<https://devfeed.tech/tags/image.md>), [input](<https://devfeed.tech/tags/input.md>), [multimodal](<https://devfeed.tech/tags/multimodal.md>), [one](<https://devfeed.tech/tags/one.md>), [optimization](<https://devfeed.tech/tags/optimization.md>), [optimized](<https://devfeed.tech/tags/optimized.md>), [parameter](<https://devfeed.tech/tags/parameter.md>), [pretraining](<https://devfeed.tech/tags/pretraining.md>), [processes](<https://devfeed.tech/tags/processes.md>), [results](<https://devfeed.tech/tags/results.md>), [sharing](<https://devfeed.tech/tags/sharing.md>), [space](<https://devfeed.tech/tags/space.md>), [stable](<https://devfeed.tech/tags/stable.md>), [video](<https://devfeed.tech/tags/video.md>)

### AI overview

Omni-Encoder uses one SigLIP-2 Vision Transformer with fully shared parameters to encode images, video, audio, and audio-visual inputs. Its modality-native input stage maps each signal into a shared embedding space; a 1D-convolutional tokenizer turns mel-spectrograms into tokens aligned with visual patches. Timestamp-based multimodal rotary embeddings place frames and audio segments in a shared spatiotemporal coordinate system. Training interleaves modality-specific and temporally aligned audio-visual batches, accumulating gradients into one update, which the authors identify as central to stable joint optimization. They report competitive results across 16 benchmarks and improvements for each modality over separately trained counterparts. These claims are based on the supplied abstract.

### Source excerpt

arXiv:2611.05406v1 Announce Type: cross Abstract: Contrastive pretraining has advanced image-text understanding, yet image, video, and audio encoders are still trained independently, with cross-modal alignment realized mainly through post-hoc binding to a frozen anchor space. We present Omni-Encoder, a general multimodal encoder that processes image, video, audio, and audio-visual inputs within a single SigLIP-2 Vision Transformer with fully shared parameters. Unlike anchor-centric binding or per-modality adapters, all modalities are optimized jointly end-to-end, and the framework is organized from input to training. A modality-native input stage first maps each signal into the shared embedding space, including a 1D-convolutional audio tokenizer that converts mel-spectrograms into tokens aligned with visual patches. A multimodal rotary position embedding parameterized by absolute timestamps then places visual frames and audio segments in a unified spatiotemporal coordinate system. Finally, alternating-modality training interleaves image, video, audio, and temporally aligned audio-visual batches and accumulates their gradients into one update, which we find central to stable joint optimization. Omni-Encoder achieves competitive results on 16 benchmarks across all four modalities with one shared parameter set, and joint training improves each modality over its separately trained counterpart. Code and models will be publicly released.

## Non-Interfering Asymmetric AdamW Updates for Constrained Exploration of Equifinality in Hybrid Models

DevFeed: [Non-Interfering Asymmetric AdamW Updates for Constrained Exploration of Equifinality in Hybrid Models](<https://devfeed.tech/articles/non-interfering-asymmetric-adamw-updates-for-constrained-exploration-of-equifinality-in-hybrid-models-116979.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.04756>)

Author: Ekaterina Gikalo, Zavud Baghirov, Christian Reimers, Markus Reichstein, Martin Jung, Marco K\\"orner

Published: 2026-11-04T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [Artificial Intelligence](<https://devfeed.tech/topics/ai.md>), [Neural Network](<https://devfeed.tech/topics/neural-network.md>), [gradient\_accumulation](<https://devfeed.tech/topics/gradient-accumulation.md>)

Tags: [abstract](<https://devfeed.tech/tags/abstract.md>), [aggregate](<https://devfeed.tech/tags/aggregate.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [exploration](<https://devfeed.tech/tags/exploration.md>), [flux](<https://devfeed.tech/tags/flux.md>), [gradient](<https://devfeed.tech/tags/gradient.md>), [hybrid](<https://devfeed.tech/tags/hybrid.md>), [network](<https://devfeed.tech/tags/network.md>), [network-optimization](<https://devfeed.tech/tags/network-optimization.md>), [neural](<https://devfeed.tech/tags/neural.md>), [neural-networks](<https://devfeed.tech/tags/neural-networks.md>), [optimization](<https://devfeed.tech/tags/optimization.md>), [orthogonality](<https://devfeed.tech/tags/orthogonality.md>), [partitioning](<https://devfeed.tech/tags/partitioning.md>), [process](<https://devfeed.tech/tags/process.md>), [random](<https://devfeed.tech/tags/random.md>), [raw](<https://devfeed.tech/tags/raw.md>), [simulator](<https://devfeed.tech/tags/simulator.md>), [split](<https://devfeed.tech/tags/split.md>), [study](<https://devfeed.tech/tags/study.md>), [training](<https://devfeed.tech/tags/training.md>)

### AI overview

Hybrid models can fit observed total evapotranspiration while leaving its split into transpiration and evaporation underdetermined; random-seed ensembles cover only a narrow range of these equally fitting internal partitions. The authors train ensemble members with auxiliary repulsion on transpiration while constraining the fit to observations not to degrade. Their NANO update addresses a limitation of raw-gradient orthogonality under AdamW, where preconditioning and momentum can change the applied direction. It preserves the main loss's first-order effect exactly, bounds the auxiliary step, and directs repulsion toward coordinates left idle by the main gradient.

### Source excerpt

arXiv:2611.04756v1 Announce Type: new Abstract: Hybrid models let neural networks supply the unresolved parameters of a process-based simulator, and are fitted to observations that constrain aggregate fluxes and storages but not the internal partitioning that produces them. Such a fit is equifinal: configurations indistinguishable in the observed aggregates can disagree substantially about the unobserved internals, and therefore about the mechanism they attribute to the same data. We study evapotranspiration, whose total flux is observed while its split into transpiration and evaporation is not. A model ensemble built from random seeds alone spans only a narrow band of the partitionings the data admit. We produce the spread deliberately, training members under auxiliary repulsion on transpiration, subject to the fit to observations not degrading. Non-interference is usually arranged by making the auxiliary gradient orthogonal to the main one, but under AdamW the applied step is a preconditioned momentum direction, so orthogonality between raw gradients no longer implies it. We introduce Non-interfering Asymmetric Network Optimization (NANO), an update whose first-order effect on the main loss is exactly that of the main objective alone, whose auxiliary step is bounded, and which concentrates repulsion in the coordinates the main gradient leaves idle.

## SpatialPC: Deep Computation with Sublinear Local Credit Propagation

DevFeed: [SpatialPC: Deep Computation with Sublinear Local Credit Propagation](<https://devfeed.tech/articles/spatialpc-deep-computation-with-sublinear-local-credit-propagation-103921.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2610.36139>)

Author: Benjamin Prada, Shion Matsumoto, Ankur Arjun Mali

Published: 2026-10-28T04:00:00Z

Content type: article

Language: en

Sources: [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [Algorithms](<https://devfeed.tech/topics/algorithms.md>), [gradient\_accumulation](<https://devfeed.tech/topics/gradient-accumulation.md>)

Tags: [circuit](<https://devfeed.tech/tags/circuit.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [gradient](<https://devfeed.tech/tags/gradient.md>), [graph](<https://devfeed.tech/tags/graph.md>), [latency](<https://devfeed.tech/tags/latency.md>), [learning](<https://devfeed.tech/tags/learning.md>), [lower-bound](<https://devfeed.tech/tags/lower-bound.md>), [machine-learning](<https://devfeed.tech/tags/machine-learning.md>), [prediction](<https://devfeed.tech/tags/prediction.md>), [range](<https://devfeed.tech/tags/range.md>)

### AI overview

SpatialPC shows that local credit-propagation latency depends on communication geometry, not just computational depth. For N states arranged at constant density in d dimensions, it establishes a lower bound of Ω(N^(1/d)) bounded-range rounds and constructs a unit-range, degree-2d graph that retains a length N−1 computation while placing every state within Θ(N^(1/d)) directed hops of the output. Within predictive coding, adjoint prediction dynamics propagate credit as a truncated reverse-path sum; graph reachability determines when credit can arrive, while the Jacobian-weighted path tail determines further rounds needed for accuracy. A sparse 2D Moore compiler uses 3N/2−2 edges and reaches a 65,535-edge backbone in 258 hops at N=65,536. At N=256 and T=2√N rounds, reported gradient cosine similarities are 0.93 on MNIST and 0.97 on Fashion-MNIST; test accuracies after 20 epochs are 97.6% and 88.1%, respectively.

### Source excerpt

arXiv:2610.36139v1 Announce Type: new Abstract: On a chain of $N$ states, any local learning rule with bounded communication range needs $\Theta(N)$ rounds before the loss can influence the earliest parameters, and this latency is usually attributed to depth. We show that it is a property of the communication geometry rather than of depth. For $N=m^d$ states placed at constant density in $d$ dimensions, a light-cone argument gives an $\Omega(N^{1/d})$ lower bound on the number of bounded-range rounds that any local algorithm needs before its gradient estimates can be sign-correct at every parameter. We construct a unit-range, degree-$2d$ directed acyclic graph that contains a Hamiltonian computation of length $N-1$ and in which every state lies within directed distance $d(m-1)=\Theta(N^{1/d})$ of the output, matching the lower bound. In the realizable-circuit model, depth and credit depth are therefore independent parameters: represented depth $\Theta(N)$ and causal credit latency $\Theta(N^{1/d})$ coexist, with a separation of order $N^{1-1/d}$. SpatialPC realizes this separation within predictive coding. Credit is propagated by adjoint prediction dynamics (APD), a local update whose $K$-round state on a settled acyclic graph is the truncated reverse-path sum $a^K=\sum_{k

## HARTS: A Prefix-Sharing Training System for Agentic RL with Hybrid-Attention Models

DevFeed: [HARTS: A Prefix-Sharing Training System for Agentic RL with Hybrid-Attention Models](<https://devfeed.tech/articles/harts-a-prefix-sharing-training-system-for-agentic-rl-with-hybrid-attention-models-101588.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2608.28158>)

Author: Boyuan Meng, Peihua Bao, Hong Liu, Xiaowei Zhu, Chao Wang, Gen Li, Zhenxuan Pan

Published: 2026-10-27T04:00:00Z

Content type: article

Language: en

Sources: [arXiv: Distributed Computing](<https://devfeed.tech/sources/arxiv-distributed-computing.md>)

Topics: [llm-reasoning](<https://devfeed.tech/topics/llm-reasoning.md>), [distributed-training](<https://devfeed.tech/topics/distributed-training.md>), [Mixture of Experts (MoE)](<https://devfeed.tech/topics/mixture-of-experts-moe.md>), [gradient\_accumulation](<https://devfeed.tech/topics/gradient-accumulation.md>)

Tags: [acceleration](<https://devfeed.tech/tags/acceleration.md>), [activation](<https://devfeed.tech/tags/activation.md>), [agentic](<https://devfeed.tech/tags/agentic.md>), [attention](<https://devfeed.tech/tags/attention.md>), [cs-dc](<https://devfeed.tech/tags/cs-dc.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [distributed](<https://devfeed.tech/tags/distributed.md>), [distributed-training](<https://devfeed.tech/tags/distributed-training.md>), [execution](<https://devfeed.tech/tags/execution.md>), [hybrid](<https://devfeed.tech/tags/hybrid.md>), [mixture-of-experts](<https://devfeed.tech/tags/mixture-of-experts.md>), [mixture-of-experts-moe](<https://devfeed.tech/tags/mixture-of-experts-moe.md>), [objectives](<https://devfeed.tech/tags/objectives.md>), [online-learning](<https://devfeed.tech/tags/online-learning.md>), [planner](<https://devfeed.tech/tags/planner.md>), [reinforcement-learning](<https://devfeed.tech/tags/reinforcement-learning.md>), [reuse](<https://devfeed.tech/tags/reuse.md>), [rl](<https://devfeed.tech/tags/rl.md>), [routing](<https://devfeed.tech/tags/routing.md>), [sharing](<https://devfeed.tech/tags/sharing.md>), [system](<https://devfeed.tech/tags/system.md>), [training](<https://devfeed.tech/tags/training.md>)

### AI overview

HARTS accelerates agentic RL training by reusing shared prefixes across arbitrary rollout trees on hybrid-attention models. A two-level planner forms and refines microbatches for sharing and execution; gradients accumulate across dependent batches before one backward pass through shared computation. Differentiable state handoff and bounded replay preserve each trajectory's chunkwise numerical path, while a common compact runtime layout supports dense and MoE layers, distributed parallelism, and activation recomputation. On SWE-bench, HARTS reports 4.77-10.45x update throughput versus trajectory-expanded training across two sampling schemes, on 7.9B- and 124B-parameter models using 8-64 GPUs. For the 7.9B model, logit differences were comparable to baseline self-rerun variation; the 124B model showed stable online learning through step 150 on SWE-bench and τ³-Bench.

### Source excerpt

arXiv:2608.28158v2 Announce Type: replace-cross Abstract: Agentic reinforcement learning (RL) generates irregular rollout trees, but trajectory-by-trajectory training recomputes their shared interaction histories. Existing training-time prefix-reuse systems do not jointly address state recovery, dense execution, and distributed training for hybrid-attention models. We present HARTS (Hybrid-Attention RL over Tree Structures), to our knowledge the first system to demonstrate training acceleration from arbitrary rollout-tree prefix sharing on real hybrid-attention models. A two-level planner constructs compression-oriented microbatches, then jointly refines their membership, cross-microbatch sharing, placement, and execution order. Within each sharing window, gradients from dependent microbatches accumulate before one backward pass through the shared prefix computation. Differentiable boundary-state handoff and bounded replay preserve the per-trajectory chunkwise numerical path, while a linear-time planner attains the global minimum number of sequential linear-attention calls under our packed chunkwise-call model. The runtime uses a common compact layout across attention and dense or mixture-of-experts (MoE) layers, with support for distributed parallelism and activation recomputation. Recovering log-probabilities for each original trajectory position preserves RL objectives; for deterministic top-k routing without token dropping, occurrence counts restore MoE objective weights and expert-load statistics. On SWE-bench, HARTS delivers 4.77-10.45x the update throughput of trajectory-expanded training across two sampling schemes on 7.9B- and 124B-parameter hybrid-attention MoE models using 8-64 GPUs. On the 7.9B model, full-model logit differences are comparable to baseline self-rerun variation. The 124B model shows stable online learning trends through step 150 on SWE-bench and $\tau^3$-Bench.

## Can Entry-Wise Clipping Give Spectral Control of Stochastic Gradients?

DevFeed: [Can Entry-Wise Clipping Give Spectral Control of Stochastic Gradients?](<https://devfeed.tech/articles/can-entry-wise-clipping-give-spectral-control-of-stochastic-gradients-96843.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2605.27733>)

Author: Zitao Song, Cedar Site Bai, Zhe Zhang, Brian Bullins, David F. Gleich

Published: 2026-10-23T04:00:00Z

Content type: article

Language: en

Sources: [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [post-training](<https://devfeed.tech/topics/post-training.md>), [gradient\_accumulation](<https://devfeed.tech/topics/gradient-accumulation.md>), [Chinchilla scaling law](<https://devfeed.tech/topics/chinchilla-scaling-law.md>)

Tags: [arxiv](<https://devfeed.tech/tags/arxiv.md>), [clipping](<https://devfeed.tech/tags/clipping.md>), [computer-science](<https://devfeed.tech/tags/computer-science.md>), [control](<https://devfeed.tech/tags/control.md>), [convergence](<https://devfeed.tech/tags/convergence.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [gradient](<https://devfeed.tech/tags/gradient.md>), [language](<https://devfeed.tech/tags/language.md>), [layer](<https://devfeed.tech/tags/layer.md>), [machine](<https://devfeed.tech/tags/machine.md>), [machine-learning](<https://devfeed.tech/tags/machine-learning.md>), [matrix](<https://devfeed.tech/tags/matrix.md>), [muon](<https://devfeed.tech/tags/muon.md>), [pretraining](<https://devfeed.tech/tags/pretraining.md>), [saving](<https://devfeed.tech/tags/saving.md>), [tokens](<https://devfeed.tech/tags/tokens.md>)

### AI overview

The paper proposes entry-wise gradient clipping to control spectral effects of heavy-tailed stochastic noise while retaining matrix structure. Its first-order analysis identifies a localization property, and it derives a tractable surrogate for a Bayes-optimal entry-wise estimator under a Gaussian signal prior. The authors report an O(ε⁻⁴) convergence guarantee under Cauchy-contaminated noise. In NanoGPT pretraining, smooth shrinkage improved Adam and saved about 7% of training tokens; applying entry-wise clipping before spectral normalization saved about 2% on top of Muon.

### Source excerpt

arXiv:2605.27733v2 Announce Type: replace Abstract: Training instabilities such as loss spikes are frequently the result of stochastic gradient noise. Because of rare expressions in language training data, and multiple layer composition, the noise impact is heavy-tailed and survives mini-batch averaging. Existing remedies trade off structure against cost: vector-norm clipping ignores the matrix structure of weight updates, while spectral normalization (e.g., Muon (Jordan et al., 2024)) respects it at additional cost. We show that this trade-off can be balanced. Real gradient noise appears to be similar to entry-wise heavy-tailed contamination, and a first-order perturbation analysis reveals a localization property of such noise, under which a simple entry-wise method achieves spectral control. Exploiting this, we derive a tractable surrogate for the Bayes-optimal entry-wise estimator under a Gaussian signal prior. We establish $O(\varepsilon^{-4})$ convergence guarantee under Cauchy-contaminated noise. Empirically, we find that smooth shrinkage improves Adam on NanoGPT pretraining, saving ${\sim}7\%$ of training tokens. We further find that applying the entry-wise clipping before spectral normalization yields a ${\sim}2\%$ token saving on top of Muon.

## Scalable Stress-Constrained Topology Optimization: A Super-resolution and Simultaneous Approach Based on Machine Learning

DevFeed: [Scalable Stress-Constrained Topology Optimization: A Super-resolution and Simultaneous Approach Based on Machine Learning](<https://devfeed.tech/articles/scalable-stress-constrained-topology-optimization-a-super-resolution-and-simultaneous-approach-based-on-machine-learning-94793.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2610.28703>)

Author: Xiangyu Sun, Shirin Hosseinmardi, Ramin Bostanabad

Published: 2026-10-22T04:00:00Z

Content type: article

Language: en

Sources: [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [distributed-training](<https://devfeed.tech/topics/distributed-training.md>), [Machine learning](<https://devfeed.tech/topics/machine-learning.md>), [Operations research and optimization](<https://devfeed.tech/topics/operations-research-and-optimization.md>), [Multi-GPU](<https://devfeed.tech/topics/multi-gpu.md>), [gradient\_accumulation](<https://devfeed.tech/topics/gradient-accumulation.md>)

Tags: [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [machine-learning](<https://devfeed.tech/tags/machine-learning.md>), [optimization](<https://devfeed.tech/tags/optimization.md>), [stress](<https://devfeed.tech/tags/stress.md>), [super-resolution](<https://devfeed.tech/tags/super-resolution.md>)

### AI overview

The proposed simultaneous neural topology optimization (SNTO) framework jointly optimizes neural-network representations of state, adjoint, and design variables using continuous adjoint analysis and automatic differentiation. Its loss combines the design objective, aggregated local stress constraints, and potential energy. For scale, the design domain is split across multiple GPUs, with smaller regions processed sequentially and gradients accumulated to limit peak GPU memory; the authors say this preserves field continuity without adding loss terms. In 2D benchmarks compared with a conventional finite element approach, SNTO reportedly produced sharper, higher-resolution designs with less gray area and lower volume fractions. The abstract also reports 3D problems with up to eight million collocation points trained across up to eight GPUs.

### Source excerpt

arXiv:2610.28703v1 Announce Type: new Abstract: Large-scale topology optimization (TO) remains computationally demanding, especially for stress-constrained problems. To address this challenge, we propose the simultaneous neural topology optimization (SNTO) framework where we represent state, adjoint, and design variables with custom neural networks (NNs) whose parameters are jointly optimized within a single optimization loop that leverages continuous adjoint analysis and automatic differentiation. This optimization minimizes a multi-component loss function that combines the design objective, an aggregation of the local stress constraints, and the potential energy functionals. Our NNs have a unique architecture that accelerates convergence while enabling the networks to capture sharp gradients and boundaries which are critical to stress-constrained TO. To achieve scalability to millions of degrees of freedom (DoF), we develop a hardware-aware training scheme in which the design domain is partitioned into subdomains that are distributed across multiple GPUs. To control peak GPU memory usage, we further slice each subdomain into smaller regions whose loss gradients are evaluated sequentially and accumulated to update the NN parameters. Unlike domain decomposition approaches, our partitioning naturally ensures field continuity across the subdomains and does not require the introduction of additional terms into the loss function. For validation, we first evaluate the proposed framework on various 2D stress-constrained benchmarks and compare our results to a conventional finite element-based approach, showing that SNTO produces super-resolution designs with sharper boundaries, smaller gray areas, and lower volume fractions. We then consider large-scale 3D problems with up to eight million collocation points and distribute the training over up to eight GPUs.

## A Practical Recipe for Semi-Supervised Federated ASR: Online Pseudo-Labels with Server Update Stabilization

DevFeed: [A Practical Recipe for Semi-Supervised Federated ASR: Online Pseudo-Labels with Server Update Stabilization](<https://devfeed.tech/articles/a-practical-recipe-for-semi-supervised-federated-asr-online-pseudo-labels-with-server-update-stabilization-59559.md>)

Original publisher: [Read original article](<https://machinelearning.apple.com/research/practical-recipe-federated-asr>)

Published: 2026-09-24T00:00:00Z

Content type: article

Language: en

Sources: [Apple Machine Learning Research](<https://devfeed.tech/sources/apple-machine-learning-research.md>)

Topics: [asr](<https://devfeed.tech/topics/asr.md>), [Federated Learning](<https://devfeed.tech/topics/federated-learning.md>), [gradient\_accumulation](<https://devfeed.tech/topics/gradient-accumulation.md>), [data augmentation](<https://devfeed.tech/topics/data-augmentation.md>), [data](<https://devfeed.tech/topics/data.md>)

Tags: [asr](<https://devfeed.tech/tags/asr.md>), [batch](<https://devfeed.tech/tags/batch.md>), [convergence](<https://devfeed.tech/tags/convergence.md>), [data-augmentation](<https://devfeed.tech/tags/data-augmentation.md>), [domain](<https://devfeed.tech/tags/domain.md>), [federated](<https://devfeed.tech/tags/federated.md>), [federated-learning](<https://devfeed.tech/tags/federated-learning.md>), [learning](<https://devfeed.tech/tags/learning.md>), [models](<https://devfeed.tech/tags/models.md>), [stabilization](<https://devfeed.tech/tags/stabilization.md>), [training](<https://devfeed.tech/tags/training.md>), [work](<https://devfeed.tech/tags/work.md>)

### AI overview

This paper presents a semi-supervised federated learning approach for automatic speech recognition using online pseudo-labels and server-side update stabilization. It examines teacher-model choices and labeled-data anchors, finding that interleaved server training, data augmentation, and batch size strongly affect convergence across domains.

### Source excerpt

Semi-supervised federated learning (SSFL) trains models on clients' unlabeled data using a teacher to generate pseudo-labels, with a small labeled seed dataset on the server. Automatic Speech Recognition (ASR) is particularly fragile here: pseudo-label errors compound across the output sequence and across training rounds into divergence, leaving a large gap to fully-supervised FL. We show that closing this gap turns on two coupled design axes--the teacher (which model generates the pseudo-labels) and the anchor (the server-side updates on labeled data that stabilize training). On the teacher...

## Beyond Prompting: How Algorithmic Evolution Doubled our Training Speed

DevFeed: [Beyond Prompting: How Algorithmic Evolution Doubled our Training Speed](<https://devfeed.tech/articles/beyond-prompting-how-algorithmic-evolution-doubled-our-training-speed-35647.md>)

Original publisher: [Read original article](<https://engineering.klarna.com/beyond-prompting-how-algorithmic-evolution-doubled-our-training-speed-8f874af3080d?source=rss----86090d14ab52---4>)

Author: Rex Lin

Published: 2026-03-30T12:47:12Z

Content type: article

Language: en

Sources: [Klarna Engineering](<https://devfeed.tech/sources/klarna-engineering.md>)

Topics: [Machine learning](<https://devfeed.tech/topics/machine-learning.md>), [LLM optimization](<https://devfeed.tech/topics/llm-optimization.md>), [model architecture](<https://devfeed.tech/topics/model-architecture.md>), [Distributed Systems & Parallel Computing](<https://devfeed.tech/topics/distributed-systems-parallel-computing.md>), [gradient\_accumulation](<https://devfeed.tech/topics/gradient-accumulation.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [ai-coding-assistant](<https://devfeed.tech/tags/ai-coding-assistant.md>), [artificial-intelligence](<https://devfeed.tech/tags/artificial-intelligence.md>), [attention](<https://devfeed.tech/tags/attention.md>), [candidate](<https://devfeed.tech/tags/candidate.md>), [chatbot](<https://devfeed.tech/tags/chatbot.md>), [code](<https://devfeed.tech/tags/code.md>), [code-comments](<https://devfeed.tech/tags/code-comments.md>), [coding](<https://devfeed.tech/tags/coding.md>), [coding-assistant](<https://devfeed.tech/tags/coding-assistant.md>), [customer](<https://devfeed.tech/tags/customer.md>), [customer-data](<https://devfeed.tech/tags/customer-data.md>), [data](<https://devfeed.tech/tags/data.md>), [data-pipelines](<https://devfeed.tech/tags/data-pipelines.md>), [engineer](<https://devfeed.tech/tags/engineer.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [error](<https://devfeed.tech/tags/error.md>), [evolution](<https://devfeed.tech/tags/evolution.md>), [machine-learning](<https://devfeed.tech/tags/machine-learning.md>), [prompting](<https://devfeed.tech/tags/prompting.md>), [software-engineering](<https://devfeed.tech/tags/software-engineering.md>), [speed](<https://devfeed.tech/tags/speed.md>), [training](<https://devfeed.tech/tags/training.md>)

### AI overview

Klarna and Google used AlphaEvolve to search code-level training optimizations for a large transformer, defining editable code, a performance metric, and constraints. Across nearly 6,000 candidate programs over three weeks, the reported pipeline improved from 49 to roughly 97 samples per second under deterministic production requirements, while model predictions also improved. AlphaEvolve explored mixed precision and asynchronous transfers, then deeper rewrites: direct scaled dot-product attention kernels and a preallocated contiguous dataset memory stream. A faster result of 143 samples per second depended on nondeterministic hardware shortcuts and was unsuitable for deployment. The account also reports that PASC, a stability mechanism useful at 10,000 samples, was dropped at 100,000, and that upgrading the underlying language model raised the candidate success rate from about two-thirds to 86-97%. The authors stress that constraint design and early stopping matter; the search itself was computationally expensive.

### Source excerpt

By Rex Lin and Valeria Verzi (Klarna Engineering), with Anant Nawalgaria (Google) We knew our training pipeline could be faster -- significantly faster. At Klarna, one of our largest models (a transformer trained on vast streams of payment events and shared like infrastructure across many internal systems) is on a tight training loop. Speed is money at our scale. The opportunity for improvement was not in the hyperparameters, but in the plumbing: the way numbers moved between processors, the way memory was allocated, the way the model performed its most basic mathematical operations. The challenge was scale. An engineer might try five or ten structural rewrites. A particularly ambitious one, armed with an AI coding assistant, might push to a hundred. But the full search space, the universe of possible combinations of precision formats, data pipelines, attention mechanisms, and gradient strategies, numbered in the thousands. We partnered with Google to apply a different kind of tool. Instead of trying to prompt our way to a solution, we handed the problem to AlphaEvolve, which treats code optimization the way evolution treats organisms: generate candidates, test them, keep the fittest, repeat. Over three weeks and nearly 6,000 candidate programs, it doubled our training speed and, unexpectedly, produced a better model in the process. The Machine That Writes Machines AlphaEvolve is not a chatbot for code. You don't interact with it through prompts. Instead, you build a sandbox around it. The engineer's job is to define what can change in the code and what cannot (passing only structural code snippets to the system, never customer data) to specify the metric that matters, and to set the constraints that must never be violated. You write hints in the form of code comments. You craft error messages that help the system learn when it fails. Then you step back. The system takes over from there. It generates a candidate program, runs it, measures the result, scores it. The b

## PipelineRL

DevFeed: [PipelineRL](<https://devfeed.tech/articles/pipelinerl-7056.md>)

Original publisher: [Read original article](<https://huggingface.co/blog/ServiceNow/pipelinerl>)

Author: Alex Piche; Rafael Pardinas; Ehsan Kamalloo; Bahdanau

Published: 2025-04-25T22:37:16Z

Content type: article

Language: en

Sources: [Hugging Face](<https://devfeed.tech/sources/hugging-face-blog.md>)

Topics: [grpo](<https://devfeed.tech/topics/grpo.md>), [model-serving](<https://devfeed.tech/topics/model-serving.md>), [gradient\_accumulation](<https://devfeed.tech/topics/gradient-accumulation.md>), [GPU](<https://devfeed.tech/topics/gpu.md>), [dataset](<https://devfeed.tech/topics/dataset.md>), [Mathematics](<https://devfeed.tech/topics/mathematics.md>), [Optimization](<https://devfeed.tech/topics/optimization.md>)

Tags: [batch](<https://devfeed.tech/tags/batch.md>), [benchmarks](<https://devfeed.tech/tags/benchmarks.md>), [blog-post](<https://devfeed.tech/tags/blog-post.md>), [gpu](<https://devfeed.tech/tags/gpu.md>), [grpo](<https://devfeed.tech/tags/grpo.md>), [optimization](<https://devfeed.tech/tags/optimization.md>), [performance](<https://devfeed.tech/tags/performance.md>), [rl](<https://devfeed.tech/tags/rl.md>), [training](<https://devfeed.tech/tags/training.md>)

### AI overview

This blog post presents PipelineRL, a modular reinforcement-learning architecture for training language models. It uses inflight weight updates to preserve efficient inference batching while keeping collected data on-policy or near on-policy. The article reports competitive results against Open-Reasoner-Zero on AIME 2024 and MATH 500 using a simpler GRPO-based implementation.

### Source excerpt

In this blog post, we show that 1) inflight weight updates do not harm the training process and 2) PipelineRL achieves competitive results compared to Open-Reasoner-Zero, while using a simpler RL algorithm. We also present the modular PipelineRL architecture that facilitates trying new inference / trainer combinations. In conventional RL approaches (Figure 1a), there is a trade-off between high throughput inference and on-policy data collection.

## Fixing Gradient Accumulation

DevFeed: [Fixing Gradient Accumulation](<https://devfeed.tech/articles/fixing-gradient-accumulation-7222.md>)

Original publisher: [Read original article](<https://huggingface.co/blog/gradient_accumulation>)

Author: Lysandre; Arthur Zucker; Zachary Mueller; Yih-Dar SHIEH; Benjamin Bossan; Pedro Cuenca

Published: 2024-10-16T00:00:00Z

Content type: article

Language: en

Sources: [Hugging Face](<https://devfeed.tech/sources/hugging-face-blog.md>)

Topics: [gradient\_accumulation](<https://devfeed.tech/topics/gradient-accumulation.md>), [Transformers](<https://devfeed.tech/topics/transformers.md>)

Tags: [bug](<https://devfeed.tech/tags/bug.md>), [gradient-accumulation](<https://devfeed.tech/tags/gradient-accumulation.md>), [training](<https://devfeed.tech/tags/training.md>), [transformers](<https://devfeed.tech/tags/transformers.md>)

### AI overview

The article explains a bug in gradient accumulation for token-level tasks, where averaging per-batch losses produced results that did not match full-batch training. It describes a fix that accounts for the total number of non-padding tokens and introduces an API for supplying custom loss functions.

### Source excerpt

We're on a journey to advance and democratize artificial intelligence through open source and open science.