betaFeedback

WorksComputer Science

Deviations from the NTK Regime in CNNs under Joint Depth-Width Scaling

Abstract

The concentration and training-time constancy of the neural tangent kernel (NTK) depend on the interplay between network width, depth, and initialization. While joint depth-width scaling has been studied in fully-connected, residual, and recurrent networks, its effects in convolutional neural networks (CNNs) remain less understood. We investigate these effects numerically in CNNs, examining NTK dispersion at initialization and kernel rotation during training. Let depth LL be the number of convolutional layers, and width CC the number of channels per layer. We find that NTK dispersion increases with L/CL/C in the critical and chaotic initialization regimes, but remains small in the ordered regime. At critical initialization, dispersion curves approximately collapse as a function of L/CL/C, suggesting a nontrivial joint scaling regime. During training, kernel rotation generally increases with L/CL/C, even in the ordered regime where initial dispersion is small. Together, these results suggest that L/CL/C may govern NTK deviations from the infinite-width limit in certain regimes, and that NTK concentration at initialization and stability during training exhibit different scaling behaviors.

Introduction

The Neural Tangent Kernel (NTK) provides a compact description of the training dynamics of neural networks under gradient descent. For a scalar-valued network fθf_\theta, the NTK is defined as Θθ(x,x′):=⟨∇θfθ(x),∇θfθ(x′)⟩\Theta_\theta(x, x') := \langle\nabla_\theta f_\theta(x), \nabla_\theta f_\theta(x') \rangle, where θ\theta denotes the network’s trainable parameters and x,x′x, x' are data points. In the infinite-width limit at fixed depth, under suitable assumptions, the NTK becomes deterministic at initialization and remains constant during training [1, 2, 3]. This gives rise to the so-called NTK regime, in which training is governed by a fixed kernel and becomes analytically tractable. However, these results do not establish whether the NTK regime persists when width and depth scale jointly.

Prior work on multilayer perceptrons (MLPs) has shown that finite-width effects can accumulate when depth grows proportionally with width, making the depth-to-width ratio a key scaling parameter governing deviations from the infinite-width limit [4, 5, 6, 7]. The effect of this ratio further depends on initialization, with qualitatively different behavior in the ordered and chaotic regimes and at their critical boundary, the edge of chaos (EOC) [8, 9, 10, 11]. Thus, both depth-to-width scaling and initialization determine the applicability of the NTK regime in deep MLPs.

Importantly, deviations from the infinite-width limit are architecture-dependent. Unlike in MLPs, depth and width limits commute in residual networks under suitable residual-branch scaling, with no nontrivial joint scaling limit arising [12, 13, 14]. In contrast, finite-width effects in linear recurrent networks accumulate more rapidly with depth, giving rise to a distinct joint scaling regime where depth grows proportionally to the square root of width [15, 16].

These results motivate studying depth-width scaling in CNNs, where spatial weight sharing introduces structure absent from the architectures discussed above and may lead to new depth-width scaling effects. In CNNs, the natural width parameter is the number of channels CC, which suggests the ratio L/CL/C as a candidate scaling parameter by analogy with MLPs. In this work, we investigate empirically whether this ratio governs NTK concentration at initialization and stability during training. Additionally, a direct comparison of the behavior of MLP and CNN is presented in App. § 7.§ 1.2

Experimental Setup

CNN architecture. We consider CNNs with LL convolutional layers of CC channels each, using tanh activations, stride one, and circular padding. Let CℓC_\ell denote the number of channels at layer ℓ\ell, with C0=3C_0 = 3 and Cℓ=CC_\ell= C for ℓ≥1\ell\ge1. Given an input x0=x∈RC0×H×Wx^0 = x \in\mathbb{R}^{C_0 \times H \times W}, the activations at layer ℓ∈[L]\ell\in[L] are

xβ,pℓ=tanh⁡(∑α=1Cℓ−1∑u∈KWβαuℓxα,p+uℓ−1+bβℓ)(1)x^\ell_{\beta,p} = \tanh\left(\sum_{\alpha=1}^{C_{\ell-1}}\sum_{u\in\mathcal{K}} W^\ell_{\beta\alpha u}x^{\ell-1}_{\alpha,p+u}+b^\ell_\beta\right) \tag*{(1)}

where α,β\alpha,\beta index channels, pp denotes a spatial position on the H×WH \times W grid, and K\mathcal{K} is the set of filter offsets with ∣K∣=k2|\mathcal{K}| = k^2. Spatial indices are taken modulo the grid dimensions, set to H=W=16H = W = 16 in our experiments. The scalar output is produced by global average pooling followed by a linear readout, namely fθ(x)=∑β=1Cwβ(HW)−1∑pxβ,pL+bf_\theta(x) = \sum_{\beta=1}^{C} w_\beta(HW)^{-1}\sum_p x^L_{\beta,p} + b, where wβ,bw_\beta,b are the readout parameters.

Parametrization and initialization. We use Standard Parametrization (SP)3, initializing all parameters independently as follows:

Wβαuℓ∼N(0,σw2Cℓ−1k2),wβ∼N(0,σw2C),bβℓ,b∼N(0,1).W^\ell_{\beta\alpha u} \sim\mathcal{N}\left(0,\frac{\sigma_w^2}{C_{\ell-1}k^2}\right),\quad w_\beta\sim\mathcal{N}\left(0,\frac{\sigma_w^2}{C}\right),\quad b^\ell_\beta,b\sim\mathcal{N}(0,1).

To examine how initialization affects depth-width scaling, we conduct experiments in three regimes: ordered (σw2=1\sigma_w^2 = 1), critical (σw2=3.44\sigma_w^2 = 3.44, at the EOC for σb2=1\sigma_b^2 = 1), and chaotic (σw2=5\sigma_w^2 = 5) [8].

Data and training. We use a binary CIFAR-10 task (airplane vs. frog) [17], with 2048 class-balanced training images and 2000 test images. Images are downsampled to 16×1616 \times16 by average pooling, centered using the training-set pixel mean, and rescaled to norm 768\sqrt{768}. We train the centered network fθ−fθ0f_\theta- f_{\theta_0} on the summed squared error L(θ)=12∑i=1n(fθ(xi)−fθ0(xi)−yi)2\mathcal{L}(\theta) = \frac{1}{2}\sum_{i=1}^{n}(f_\theta(x_i)-f_{\theta_0}(x_i)-y_i)^2 by full-batch gradient descent, without momentum or weight decay. For each initialization, the learning rate is set to η=1/σmax⁡(Θ0(X,X))\eta= 1/\sigma_{\max}(\Theta_0(X,X)), where XX is the full training set, Θ0\Theta_0 is the NTK at initialization and σmax⁡(⋅)\sigma_{\max}(\cdot) denotes the largest eigenvalue. Training stops when the mean squared error reaches 0.1 or after 10510^5 steps. We use three independent training seeds per configuration.

NTK Variability at Initialization

We quantify NTK fluctuations at initialization by the excess dispersion of its diagonal entries, defined for a fixed input xx as

D0(x):=E[Θ0(x,x)2]E[Θ0(x,x)]2−1,D_0(x) := \frac{\mathbb{E}[\Theta_0(x,x)^2]}{\mathbb{E}[\Theta_0(x,x)]^2} - 1,

where the expectation is over independent initializations. This quantity vanishes at infinite width, when the NTK becomes deterministic. Figure 1 shows the empirical dependence of D0D_0 on the depth-to-width ratio L/CL/C across the three initialization regimes.

Figure 1. NTK dispersion D0D_0 versus depth-to-width ratio λ:=L/C\lambda:= L/C. Each point averages D0(x)D_0(x) over 16 images, with dispersion estimated from 1000 independent initializations per image. Standard errors are smaller than the markers except at the largest λ\lambda. We vary channel count CC, filter size kk, and initialization variance σw2\sigma_w^2.

Figure 1 reveals two main trends. First, NTK dispersion increases with the depth-to-width ratio L/CL/C in the critical (σw2=3.44\sigma_w^2 = 3.44) and chaotic (σw2=5\sigma_w^2 = 5) regimes, but not in the ordered regime (σw2=1\sigma_w^2 = 1). This mirrors the qualitative behavior observed in MLPs [10, 5].

Second, at critical initialization, curves for different CC approximately collapse at sufficiently large LL and CC, suggesting a nontrivial joint depth-width scaling regime governed by the ratio L/CL/C. In contrast, the curves remain separated across widths in the ordered and chaotic regimes, indicating that L/CL/C alone does not fully capture NTK dispersion and that additional dependence on CC persists.

NTK Behavior During Training

To quantify changes in the NTK during training, we measure its rotation relative to initialization,

Rt:=1−⟨Θt,Θ0⟩F∥Θt∥F∥Θ0∥FR_t := 1 - \frac{\langle\Theta_t, \Theta_0\rangle_F}{\lVert\Theta_t\rVert_F \lVert\Theta_0\rVert_F}

where Θt=Θθt(XP,XP)\Theta_t = \Theta_{\theta_t}(X_P, X_P) is the NTK matrix at training step tt, evaluated on a fixed, class-balanced set XPX_P of P=256P = 256 training images. Here ⟨⋅,⋅⟩F\langle\cdot,\cdot\rangle_F and ∥⋅∥F\lVert\cdot\rVert_F denote the Frobenius inner product and norm. This metric is invariant to overall kernel rescaling and vanishes when the kernel remains constant.

Figure 2 shows the final NTK rotation RTR_T against the depth-to-width ratio λ\lambda for 3×33 \times3 filters. Overall, RTR_T increases with λ\lambda, indicating that the NTK changes more substantially during training as depth grows relative to width. Notably, this trend is also present in the ordered regime (σw2=1\sigma_w^2 = 1), where the NTK has small dispersion at initialization yet undergoes substantial rotation during training. An additional factor to consider is the poor trainability of deep networks in this regime [9]: reaching the target error may require more gradient descent steps, potentially contributing to greater kernel rotation. Thus, NTK concentration at initialization does not necessarily imply stability during training.

Figure 2. Final NTK rotation RTR_T versus depth-to-width ratio λ\lambda, for 3×33 \times3 filters. Training stops at step TT at MSE = 0.1 or the iteration limit. Lines show the median over three seeds and bands the minimum–maximum range. Open markers mean at least one seed reached the iteration limit, in which case RTR_T is evaluated there. Crosses mark configurations in which no seed trained, defined as training MSE above 0.99 at the iteration limit for all seeds.

At EOC initialization (σw2=3.44\sigma_w^2 = 3.44), the rotation curves separate across channel counts CC, despite the approximate collapse observed for initial dispersion. This suggests that λ\lambda alone does not characterize training-induced NTK changes. Interestingly, the curves at σw2=5\sigma_w^2 = 5 align more closely, providing preliminary evidence that kernel rotation may be governed by λ\lambda in the chaotic regime.

Initial NTK Dispersion vs. Training-Induced Rotation

Motivated by the different scaling behavior of initial NTK dispersion and training-induced rotation, we examine the correlation between these quantities across network configurations in Figure 3. In the ordered regime (σw2=1\sigma_w^2 = 1), the correlation is only moderate (Spearman ρ=0.45\rho= 0.45): at fixed width, rotation can increase substantially with depth while dispersion remains nearly constant. For instance, at C=256C = 256, rotation grows by an order of magnitude with little change in dispersion. At critical and chaotic initialization, the two quantities are more strongly correlated across the tested architectures.

Figure 3. Final NTK rotation RTR_T versus initial dispersion D0D_0. Rotation is summarized by the median across training seeds, while dispersion is averaged over 16 inputs. Error bars indicate the corresponding minimum–maximum ranges. Colors encode λ\lambda, and markers encode CC.

Discussion and Future Work

This work presents a preliminary numerical study of joint depth-width scaling in CNNs, focusing on NTK variability at initialization and its evolution during training. Our results show that increasing depth generally amplifies deviations from infinite-width NTK behavior. The depth-to-width ratio L/CL/C appears to capture these effects in certain settings, notably for the initial NTK dispersion at critical initialization, but not universally across initialization regimes.

Our findings are currently limited to a specific CNN family, one binary classification task, and the observed finite-size scaling does not establish an asymptotic joint limit. Therefore, beyond exploring further architectures, a natural direction for future work is to explain these observations theoretically by identifying nontrivial joint depth-width limits in CNNs, potentially governed by L/CL/C. More broadly, this work contributes to understanding joint scaling regimes across architectures beyond MLPs and the deviations from infinite-width descriptions of neural networks, particularly the NTK regime.

Comparison with Multilayer Perceptrons

To directly illustrate the comparison in the behavior of MLPs and CNNs, we repeat the experimental settings from CNNs from the main paper using multilayer perceptrons (MLPs). To match MLP settings to those of CNNs, we flatten the input images into vectors x∈R768x \in\mathbb{R}^{768}, use tanh activations, a linear readout, and hidden-layer width M=9CM = 9C, where CC is the number of CNN channels. Note that this choice of width matches the hidden-layer fan-in dimension of CNNs with 3×33 \times3 filters: each convolutional preactivation sums over 9C9C input-channel and filter-offset combinations (see Eq. (1)). We therefore plot against λ=9L/M=L/C\lambda= 9L/M = L/C, matching the depth-to-fan-in ratio across architectures.

Figures 4, 5, and 7 extend the Figure 1, Figure 2, and Figure 3 in the main text by including MLP results alongside CNN results.

Furthermore, in addition to the kernel rotation RTR_T, we compare the relative change of the kernel during training in Figure 6. Figure 8 and Figure 9 show the test accuracy at the end of training and the number of training steps for both architectures.

Figure 6. Final Relative change ΔT\Delta_T of the NTK versus depth-to-width ratio λ\lambda, for both MLP and CNN, with 3×33 \times3 filters. Training stops at step TT at MSE = 0.1 or the iteration limit.

Figure 8. Test accuracy at the end of training versus λ\lambda for both MLP and CNN, with 3×33 \times3 filters.

Figure 9. Number of training steps to reach MSE = 0.1 for both MLP and CNN, with 3×33 \times3 filters. The dotted line marks the iteration limit of 10510^{5} steps.

NTK variability at initialization. Figure 4 compares the initial NTK excess dispersion D0D_0 of CNNs and MLPs. For MLPs, dispersion is governed by L/ML/M at the edge of chaos (EOC) and in the chaotic regime [5], consistent with the collapse of curves across widths MM in both regimes in the figure. CNNs exhibit similar behavior at the EOC, but their curves remain separated across channel counts CC in the chaotic regime, revealing an architecture-specific effect. Moreover, in the chaotic regime, the CNN dispersion grows slower with L/CL/C than the MLP dispersion with 9L/M9L/M, whereas their growth rates appear comparable at the EOC. In the ordered regime, both architectures exhibit low dispersion with little dependence on the depth-to-width ratio.

Figure 4. NTK dispersion D0D_0 versus depth-to-width ratio λ:=L/C=9L/M\lambda:= L/C = 9L/M for the CNN and MLP. Each point averages D0(x)D_0(x) over 16 images, with dispersion estimated from 1000 independent initializations per image. Standard errors are smaller than the markers except at the largest λ\lambda. We vary channel count CC/hidden width M=9CM = 9C, depth and initialization variance.

NTK behavior during training. We train MLPs using the same protocol as CNNs and compare their final NTK rotation RTR_T as a function of the depth-to-width ratio λ\lambda in Figure 5. In both architectures, rotation generally increases with λ\lambda across all three initialization regimes. However, CNNs exhibit substantially larger rotation at small λ\lambda, indicating stronger deviations from the NTK regime, while MLP rotation appears to grow at a faster rate. Moreover, MLP rotation curves are more consistent with collapse across widths than their CNN counterparts, particularly at critical and chaotic initialization. In the ordered regime, the MLP curves remain separated at small λ\lambda and converge only at large λ\lambda, near the depths where training fails to reach the target error.

Figure 5. Final NTK rotation RTR_T versus depth-to-width ratio λ\lambda for the MLP and CNN with 3×33 \times3 filters. Training stops at step TT at MSE = 0.1 or the iteration limit.

For both CNNs and MLPs, Figure 6 shows the relative change of the NTK at the final step TT,

ΔT:=∥ΘT−Θ0∥F∥Θ0∥F.\Delta_T := \frac{\lVert\Theta_T-\Theta_0\rVert_F}{\lVert\Theta_0\rVert_F}.

In contrast to the rotation, ΔT\Delta_T is not invariant to a rescaling of the kernel, i.e. it also measures a change of the kernel norm. For the CNNs at small λ\lambda, the rotation is small while the relative change is of order one, so the kernel approximately keeps its direction and changes mainly in norm. For the MLPs at critical and chaotic initialization, ΔT\Delta_T becomes small as λ\lambda decreases, so the kernel is nearly constant during training.

Final rotation versus initial dispersion. Figure 7 adds the MLPs to Figure 3. At critical and chaotic initialization, the MLP configurations fall close to a single curve, along which both quantities increase with λ\lambda. The CNN configurations lie above this curve, so that at the same initial dispersion the NTK of a CNN rotates considerably more than that of an MLP. In the ordered regime, the dispersion of an MLP is set by its width, while its rotation grows with depth, so that MLPs with nearly the same dispersion reach different rotations.

Figure 7. Final NTK rotation RTR_T versus initial dispersion D0D_0, for both MLP and CNN. Rotation is summarized by the median across training seeds, while dispersion is averaged over 16 inputs. Error bars indicate the corresponding minimum–maximum ranges. Colors encode λ\lambda, and markers encode CC.

Test accuracy. Figure 8 shows the test accuracy at the end of training. For CNNs, the test accuracy stays close to 0.9 in all regimes and decreases only at the largest λ\lambda in the chaotic regime. The test accuracy of the MLPs decreases with λ\lambda at critical initialization and drops to chance level in the chaotic regime, i.e. at the same training error, the model does not generalize well.

Training steps. Figure 9 shows the number of gradient descent steps needed to reach the target training error. At critical and chaotic initialization, all configurations reach the target error before the iteration limit. The number of steps decreases with λ\lambda for the CNNs. In the ordered regime, the widest and shallowest CNNs stop at the iteration limit, and the deepest networks of both architectures do not train at all, consistent with the poor conditioning of the NTK in deep ordered networks [9].

Additional Experimental Details

All the experiments are implemented in Python with PyTorch. The code is available at the GitHub repository: https://github.com/Maascha/cnn_ntk.

We vary the channel count C∈{16,24,32,48,64,96,128,256}C \in\{16, 24, 32, 48, 64, 96, 128, 256\} and depths L∈{2,3,4,6,8,10,12,16,20,24,32}L \in\{2, 3, 4, 6, 8, 10, 12, 16, 20, 24, 32\}. Each training run is repeated with three different seeds that change the network initialization. The data sets are the same for all runs. The networks are trained in single precision. The eigendecomposition of Θ0\Theta_0 that sets the learning rate for a setup and the computations of the dispersion use double precision.

The NTK is always computed with respect to all parameters, including the biases and the readout. During training, we compute it using per-sample Jacobians, obtained through torch.func. At initialization, the dispersion requires only the diagonal entries Θ0(x,x)\Theta_0(x,x), which we compute with NTK-vector products for 1000 independent initializations per image. The initializations are drawn with the same random seed for every image. We estimate the ratio E[Θ0(x,x)]/E[Θ0(x,x)]2\mathbb{E}[\Theta_0(x,x)]/\mathbb{E}[\Theta_0(x,x)]^2 with the bias-corrected estimator of [5 Appendix C.3].

We ran the experiments on heterogeneous compute hardware (NVIDIA TITAN RTX, RTX 3090, RTX 2080 Ti, RTX 4090, RTX A6000 and H200). All experiments together required roughly 2,500 GPU hours, more than half of which for the CNNs in the ordered regime.

References

  1. [1]Arthur Jacot, Franck Gabriel, and Clément Hongler. Neural tangent kernel: Convergence and generalization in neural networks. In Advances in Neural Information Processing Systems, 2018.arxiv.org/abs/1806.07572
  2. [2]Jaehoon Lee, Lechao Xiao, Samuel Schoenholz, Yasaman Bahri, Roman Novak, Jascha Sohl-Dickstein, and Jeffrey Pennington. Wide neural networks of any depth evolve as linear models under gradient descent. In Advances in Neural Information Processing Systems, volume 32, 2019.DOI
  3. [3]Sanjeev Arora, Simon Du, Wei Hu, Zhiyuan Li, Russ R Salakhutdinov, and Ruosong Wang. On exact computation with an infinitely wide neural net. In Advances in Neural Information Processing Systems, volume 32, 2019.arxiv.org/abs/1904.11955
  4. [4]Boris Hanin and Mihai Nica. Finite depth and width corrections to the neural tangent kernel. International Conference on Learning Representations, 2020.arxiv.org/abs/1909.05989
  5. [5]Mariia Selezneva and Gitta Kutyniok. Neural tangent kernel beyond the infinite-width limit: Effects of depth and initialization. In International Conference on Machine Learning, pages 19522–19560. PMLR, 2022.
  6. [6]Boris Hanin. Random fully connected neural networks as perturbatively solvable hierarchies. Journal of Machine Learning Research, 25(267):1–58, 2024.
  7. [7]Daniel A Roberts, Sho Yaida, and Boris Hanin. The Principles of Deep Learning Theory: An Effective Theory Approach to Understanding Neural Networks. Cambridge University Press, 2022.
  8. [8]Ben Poole, Subhaneil Lahiri, Maithra Raghu, Jascha Sohl-Dickstein, and Surya Ganguli. Exponential expressivity in deep neural networks through transient chaos. In Advances in Neural Information Processing Systems, volume 29, 2016.arxiv.org/abs/1606.05340
  9. [9]Lechao Xiao, Jeffrey Pennington, and Samuel Schoenholz. Disentangling trainability and generalization in deep neural networks. In International Conference on Machine Learning, pages 10462–10472. PMLR, 2020.arxiv.org/abs/1912.13053
  10. [10]Mariia Selezneva and Gitta Kutyniok. Analyzing finite neural networks: Can we trust neural tangent kernel theory? In Mathematical and Scientific Machine Learning, pages 868–895. PMLR, 2022.
  11. [11]Soufiane Hayou, Arnaud Doucet, and Judith Rousseau. Exact convergence rates of the neural tangent kernel in the large depth limit. arXiv preprint arXiv:1905.13654, 2019.arxiv.org/abs/1905.13654
  12. [12]Soufiane Hayou and Greg Yang. Width and depth limits commute in residual networks. In International Conference on Machine Learning, pages 12700–12723. PMLR, 2023.arxiv.org/abs/2302.00453
  13. [13]Blake Bordelon, Lorenzo Noci, Mufan Li, Boris Hanin, and Cengiz Pehlevan. Depthwise hyperparameter transfer in residual networks: Dynamics and scaling limit. In International Conference on Learning Representations, volume 2024, pages 22088–22127, 2024.arxiv.org/abs/2309.16620
  14. [14]Greg Yang, Dingli Yu, Chen Zhu, and Soufiane Hayou. Tensor programs VI: Feature learning in infinite depth neural networks. In International Conference on Learning Representations, volume 2024, pages 55099–55150, 2024.arxiv.org/abs/2310.02244
  15. [15]Mariia Selezneva. How long does infinite width last? Signal propagation in long-range linear recurrences. In Advances in Neural Information Processing Systems, 2026.
  16. [16]Noga Bar, Mariia Selezneva, Yotam Alexander, Gitta Kutyniok, and Raja Giryes. Revisiting Glorot initialization for long-range linear recurrences. In Advances in Neural Information Processing Systems, volume 38, Main Conference, pages 55397–55422. Curran Associates, Inc., 2025.arxiv.org/abs/2505.19827
  17. [17]Alex Krizhevsky. Learning multiple layers of features from tiny images. Technical report, University of Toronto, 2009.

Paper details

vlnc:W_zca4w7ny
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 11

downloads · 1

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents