arXiv Science⌕ Search

arXiv subjects

William Gibson

Publications and source records attributed to William Gibson.

2 recordsLinked to original sources

Outputs Converge Faster than Hidden States in Trained Deep ResNets

We consider ResNets of depth $L$, whose residual blocks are two-layer perceptrons of width $M$ acting on an embedding of dimension $D$, trained by clipped gradient descent in the Maximal Local Update (MLU) parameterisation, and compare their outputs with those of the infinitely wide and deep limit. For convex losses, we prove the conjectured upper bound of Chaintron, Chizat and Maass on sharp quantitative convergence rates in depth and width at fixed embedding dimension. Convexity is used only to measure the discrepancy between model outputs in the geometry induced by the Hessian of the loss, which we argue is more appropriate than the Euclidean distance for many learning tasks. With high probability, the resulting pseudometric distance is at most of order $\frac1L+\frac1{\sqrt{LM}}+\frac D{LM}$, up to logarithmic factors depending only on the number of training steps $K$ and the failure probability, for Gaussian initialisation. For non-Gaussian initialisations admitting a square-integrable Stein kernel, an additional $\mathcal O\big(\sqrt{\log D/(LM)}\big)$ term appears. The result holds under the shape constraints $D=\mathcal O\big(M\wedge (LM^{2/3})\big)$, which admit the scaling $D\asymp M\asymp L^2$ consistent with architectures used in practice.

stat.ML↗

Uniform Scaling Limits in AdamW-Trained Transformers

We study the large-depth limit of transformers trained with AdamW, by modelling the hidden-state dynamics as an interacting particle system (IPS) coupled through the attention mechanism. Under appropriate scaling of the attention heads, we prove that the joint dynamics of the hidden states and backpropagated variables converge in $L^2$, uniformly over the initial condition, to the solution of a forward--backward system of ODEs at rate $\mathcal O(L^{-1}+L^{-1/3}H^{-1/2})$. Here, $L$ and $H$ denote the depth and number of heads of the transformer, respectively. The limiting system of ODEs can be identified with a McKean--Vlasov ODE (MVODE) when the attention heads do not incorporate causal masking. By using the flow maps associated with this MVODE and applying concentration of measure techniques, we obtain bounds on the difference between the discrete and continuous models that are uniform over compact sets of initial conditions. As this is achieved without resorting to a covering argument, the constants in our bounds are independent of the number of tokens. Furthermore, under a suitable adaptation to AdamW, the bounds become independent of the token embedding dimension.

stat.ML↗