Papers

TorchTangents 发布:在 PyTorch 中桥接 NTK 理论与有限宽度训练

TorchTangents: An Accessible Bridge for Architecture-Preconditioned Optimizers

Why we picked it

搞训练优化的朋友可以看看这个新库,它能在 PyTorch 里直接算精确的无限宽 NTK,不用改模型代码,也不用切到 JAX 的 neural-tangents。想做 Muon 之后下一代架构预条件优化器的开发者会需要它当基础设施。

论文提出 TorchTangents,一个 PyTorch 原生引擎,将无限宽度的神经正切核(NTK)理论与有限宽度的实际优化连接起来。它提供 API,可以把标准网络层动态转换为数学上精确的无限宽度核,不需要重写模型架构。

Body

作者认为 NTK 相关的架构属性可以作为一类训练预条件信号,用于构建超越 Muon 的架构预条件优化器——Muon 已通过逐层谱约束在早期放大被批噪声淹没的弱信号,而显式的架构预条件被认为是稳定宽极小值的一个方向。TorchTangents 正是为这类优化器提供可构建的基础。

实证结果显示,TorchTangents 与现有基于 JAX 的 neural-tangents NTK 库的计算结果差异在 0.01% 以内,且在未编译执行下性能更优。代码已在 GitHub 上开源。

Original · arXiv cs.LG

TorchTangents: An Accessible Bridge for Architecture-Preconditioned Optimizers

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 $0.01\%$ 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

Industry Coordinates & Source Verification

This report is categorized under AITOP's "Papers" desk, focusing on US frontier AI labs and Silicon Valley technology leaders. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows and US-China foundation model benchmarks and commercialization comparison. Key entities and technical topics under continuous tracking include TorchTangents, NTK, Muon, PyTorch.

Source attribution: curated from arXiv cs.LG (@Joshua DeOliveira, Elke Rundensteiner).

Spotted an error in the summary or translation? Tell us