Clean: Second-order LLM Training at Linear Memory Cost via Nystr "o m Sketching
cs.LG, cs.AI, cs.CL
Submitted: 2026-10-03
Updated: 2026-10-11
License: http://creativecommons.org/licenses/by/4.0/
The gist: Training large language models (LLMs) entails a fundamental trade-off: memory-efficient optimizers such as Adam discard cross-parameter curvature, whereas full-curvature methods such as SOAP can
Abstract
Training large language models (LLMs) entails a fundamental trade-off: memory-efficient optimizers such as Adam discard cross-parameter curvature, whereas full-curvature methods such as SOAP can accelerate convergence at prohibitive memory costs. We introduce Clean, a memory-efficient and full-curvature optimizer designed to resolve this bottleneck. Clean leverages the randomized Nystrom method to accurately approximate the left and right preconditioners in SOAP, and to reduce the optimizer's memory complexity from quadratic to linear in terms of model dimensions. We subsequently reintegrate the off-subspace components to capture curvature information beyond the low-rank approximation, preserving rich curvature at minimal memory cost. We further propose Q-Clean, a low-precision variant that aggressively compresses optimizer states. Q-Clean reduces optimizer memory consumption by over 50% compared to Muon when pre-training a LLaMA-1.3B architecture, all while maintaining strong and competitive predictive performance. Notably, Clean operates with a smaller optimizer-state footprint than standard AdamW while reaching AdamW's final performance 26% faster in wall-clock time. Furthermore, our methods uniquely enable the pre-training of a 13B-parameter model on a single 80GB GPU, providing a scalable, efficient, and accessible approach to large-scale model optimization.
Sources
- Scalable Second Order Optimization for Deep Learning
- HALO: Hadamard-Assisted Lower-Precision Optimization for LLMs
- 8-bit Optimizers via Block-wise Quantization
- Subspace Optimization for Large Language Models with Convergence Guarantees
- Training Compute-Optimal Large Language Models
- Averaging Weights Leads to Wider Optima and Better Generalization
- Adam: A Method for Stochastic Optimization
- COSMOS: A Hybrid Adaptive Optimizer for Memory-Efficient Training of LLMs
- A New Perspective on Shampoo's Preconditioner
- SubTrack++ : Gradient Subspace Tracking for Scalable LLM Training
- LDAdam: Adaptive Optimization from Low-Dimensional Gradient Statistics
- Llama 2: Open Foundation and Fine-Tuned Chat Models
- SOAP: Improving and Stabilizing Shampoo using Adam
- Q-GaLore: Quantized GaLore with INT4 Projection and Layer-Adaptive Low-Rank Gradients
- GaLore: Memory-Efficient LLM Training by Gradient Low-Rank Projection
Related papers
- Polynomial-Augmented Neural Networks (PANNs) with Weak Orthogonality Constraints for Enhanced Function and PDE Approximation
- AIRL-S: Unifying Reinforcement Learning and Search-Based Test-Time Scaling via Adversarial Inverse Reinforcement Learning
- Transformers as Bayesian In-Context Experimenters: Smoothness-Adaptive Efficient ATE Estimation
- Convergence issues in Relational Concept Analysis based on AOC-posets
- Beliefs Beyond Posteriors: The Predictive Cost of ELBO Binding
- Understanding Diffusion Models via Ratio-Based Function Approximation with SignReLU Networks