TorchTangents: An Accessible Bridge for Architecture-Preconditioned Optimizers
Abstract
Standard gradient descent operates natively in parameter space, remaining mathematically blind to a neural-network's particular architecture or to intra-layer parameter interactions. Recent optimization strategies, such as Muon, have demonstrated success by altering this dynamic and enforcing layer-wise spectral constraints to enable the early amplification of weak signals that would otherwise be dominated by batch noise. In this paper, we aim to go beyond Muon and further posit that explicit architecture-preconditioned optimization is an intriguing frontier for stabilizing wide minima. However, there exists currently a gap between how to extract meaningful architectural biases useful for preconditioning training. We propose NTK-related architectural properties could serve as a promising family of signals to utilize as a training preconditioner. To achieve this, we introduce TorchTangents, a PyTorch-native engine designed to bridge infinite-width neural tangent kernel theory with finite-width empirical optimization. The library introduces an API to dynamically convert standard network layers into their mathematically exact infinite-width kernels without requiring architectural rewrites, and in turn, serves as a new foundation upon which architecturally-preconditioned optimizers can be built from. We empirically demonstrate TorchTangents' parity within of the existing JAX-based neural-tangents NTK library, as well as superior performance in uncompiled execution. TorchTangents is available at: https://github.com/deoliveirajoshua/torchtangents
Create a lesson
Metadata
- Categories
- cs.LG, cs.MS
- Comments
- 7 pages, 2 tables. Accepted at the 18th Annual Workshop on Optimization for Machine Learning (OPT 2026), NeurIPS 2026. Code available at https://github.com/deoliveirajoshua/torchtangents
Related papers
Optimistic Predicate Logic: Rethinking Multi-Objective Bayesian Optimization
Shared title terminologycs.LGQuoc Phong Nguyen, Sunil Gupta, Bryan Kian Hsiang Low et al.
What Predicts Forgetting in LoRA Fine-Tuning Across Optimizers
Shared title terminologycs.LGZhiyong Jin
Optimal Model-Free Learning in Average-Reward MDPs via Bellman Sharpness
Shared title terminologycs.LGMatthew Zurek, Yudong Chen
TextPredOpt: A Testbed for LLM Predict-then-Optimize with Textual Information
Shared title terminologycs.LGTinghan Ye, Pascal Van Hentenryck
δ-APO: Domain Adaptive Policy Optimization for Large Multimodal Learning
Shared title terminologycs.LGThanh-Dat Truong, Huu-Thien Tran, Vinh-Tiep Nguyen et al.
Augmenting LSTM performance on financial time series forecasting via architecture search
Shared title terminologycs.LGGianluca Peri, Francesco D'Angelo, Andrea Nocentini et al.