Depth-to-Width Ratio (DWR)
- Depth-to-Width Ratio (DWR) is a dimensionless ratio that compares a system’s depth to its width, with different definitions tailored to neural networks, random matrices, and granular flows.
- DWR controls key phenomena such as expressivity in ReLU networks, kernel variability in NTK theory, and stability in Transformer architectures.
- This ratio serves as a crucial control parameter that determines phase transitions and practical trade-offs between depth and width across various theoretical and applied settings.
Searching arXiv for the cited papers to ground the article in current records. {"query":"id:(Vardi et al., 2022) OR id:(Noci et al., 2023) OR id:(Seleznova et al., 2022) OR id:(Nguyen et al., 2015) OR id:(Sun et al., 27 May 2026) OR id:(Gu, 10 Jul 2025) OR id:(Li et al., 2021) OR id:(Hayou et al., 2023) OR id:(Levine et al., 2020) OR id:(Bassetti et al., 2024)","max_results":10,"sort_by":"submittedDate","sort_order":"descending"} I’m going to look up the supplied arXiv identifiers to verify the records before writing the entry. {"query":"(Vardi et al., 2022, Noci et al., 2023, Seleznova et al., 2022, Nguyen et al., 2015, Sun et al., 27 May 2026, Gu, 10 Jul 2025, Li et al., 2021, Hayou et al., 2023, Levine et al., 2020, Bassetti et al., 2024)","max_results":10} Depth-to-Width Ratio (DWR) is a dimensionless quantity that compares a system’s depth to a corresponding notion of width. In contemporary theory, the term is not attached to a single universal formula: for ReLU networks it is used as (Vardi et al., 2022), for proportional-limit attention models as (Noci et al., 2023), for deep fully connected NTK analysis as (Seleznova et al., 2022), for decoder-only Transformer shape studies as (Sun et al., 27 May 2026), for products of rectangular Ginibre matrices as (Gu, 10 Jul 2025), and in true 2D granular collapse as the aspect ratio (Nguyen et al., 2015). Across these settings, DWR functions as a control parameter: it specifies how accumulated compositional depth, multiplicative layering, or vertical extent scales relative to the available lateral degrees of freedom.
1. Definitions and notational variants
The principal difficulty in interpreting DWR is terminological rather than conceptual: different literatures use different width variables, different asymptotic regimes, and different operational meanings.
| Domain | DWR definition | Width notion |
|---|---|---|
| ReLU, NTK, ResNet, deep linear theory | , , , , 0 | hidden-layer width or common width scale |
| Transformers and self-attention | 1, 2, 3 | hidden size or feature dimension |
| Rectangular products and granular flows | 4, 5 | factor width or initial column width |
In the ReLU approximation setting, width is defined as 6, depth is 7, and the parameter count is at most 8 (Vardi et al., 2022). In the proportional-limit NTK setting, the constant-width case takes 9 and identifies the DWR as 0 (Seleznova et al., 2022). In the finite-depth finite-width NTK corrections literature, the relevant quantity is the inverse-temperature parameter 1, which reduces to 2 for equal widths (Hanin et al., 2019). In residual-network proportional limits, the notation 3 is used for fully connected ReLU ResNets (Li et al., 2021), whereas in deep linear networks the proportional limit is expressed as 4 (Bassetti et al., 2024).
Transformer theory uses several non-equivalent conventions. In self-attention scaling laws, depth is the number of stacked self-attention layers 5, width is the internal representation dimension 6, and DWR is 7 (Levine et al., 2020). In the shaped Transformer, width 8 denotes the feature dimension of token embeddings, depth 9 is the number of layers, and the proportional-limit time horizon is 0 (Noci et al., 2023). In the neural-interaction study, width is fixed as 1, depth is 2, and the paper uses both 3 and 4 (Sun et al., 27 May 2026).
A common misconception is that DWR is a single architecture-independent invariant. The literature instead treats it as a family of dimensionless shape parameters whose exact form depends on what “depth” and “width” mean in the model under study. This is especially visible when comparing neural-network theory with rectangular random matrix products or granular-flow aspect ratios.
2. Expressivity and approximation in ReLU networks
For ReLU networks, DWR is most directly tied to expressivity through the asymmetry between depth and width. The central result is that any target ReLU network with inputs in 5 can be approximated by a width-6 network whose number of parameters is essentially larger only by a linear factor, whereas depth-separation theorems imply that an analogous replacement of depth by width cannot hold in general (Vardi et al., 2022).
The formal approximation theorem considers a target network 7 of width 8, depth 9, and weights bounded in 0, together with a distribution 1 on 2 whose density satisfies 3. For any 4, there exists a ReLU network 5 of width at most 6 and depth 7 such that, with probability at least 8 over 9, one has 0. The number of parameters in 1 is 2. Since 3 has 4 parameters, the overhead is essentially linear in 5, up to logarithmic factors.
The same paper proves a close-to-minimal-width construction. Under the same assumptions, there exists a network of width at most 6 and depth 7 with probability at least 8 approximation error at most 9. Its parameter count is 0, which becomes 1 if 2. This is close to the minimal-width threshold because width 3 is not universal on compact domains, and prior work places minimal universal width on the order of 4.
The bounded-weight variant shows that width reduction does not intrinsically require unbounded coefficients. There exists an approximant with width at most 5, weights bounded by 6, and depth 7, at the cost of an extra polynomial factor in depth and parameters. The same work also gives an exact representation theorem: any ReLU network of width 8 and depth 9 can be represented exactly by a network of width 0 and depth 1; for 2 and 3 this conversion does not increase the number of parameters.
The constructive mechanism is highly nonstandard. A wide layer is simulated by a sequence of narrow subnetworks that encode activations and weights into a single scalar, manipulate that encoding using bit-extraction primitives built from Telgarsky’s triangle function, decode neuronwise contributions, and repack layer outputs into bounded-length bit blocks. Error control proceeds via Lipschitz bounds, with the retained number of bits scaling as 4. This makes a high DWR, interpreted as large depth relative to narrow width, theoretically defensible for ReLU approximation.
These results resolve the open question from Lu et al. (2017) in the negative: wide shallow ReLU networks do not define a class that narrow networks can approximate only with exponentially large depth. A plausible implication is that, in this setting, DWR should be understood less as a heuristic architectural ratio and more as a statement about which resource—depth rather than width—controls expressivity most strongly.
3. DWR as a control parameter in NTK theory
In NTK theory beyond the classical infinite-width limit, DWR controls whether the kernel remains deterministic and effectively frozen or becomes stochastic and evolves during training. The fully connected ReLU analysis with proportional scaling takes 5, 6, and 7, with 8, and shows that NTK dispersion depends qualitatively on the ordered, edge-of-chaos, and chaotic phases (Seleznova et al., 2022).
For 9, the central slope parameter is 0, which also equals the fixed-point slope 1. The ordered phase is 2, the edge of chaos is 3, and the chaotic phase is 4. In the infinite-depth-and-width limit, the normalized NTK dispersion
5
converges to 6 in the ordered phase, but grows exponentially in DWR at the edge of chaos and in the chaotic phase. In the chaotic phase, the limit is
7
The same work shows that the NTK may stay constant during training only in the ordered phase. In the chaotic phase, even the first GD step forces a relative NTK change that diverges unless the learning rate decays as 8.
The finite-depth finite-width correction theory arrives at the same structural conclusion through a different parameterization. There the DWR is 9, which becomes 0 in the equal-width case, and the on-diagonal NTK satisfies
1
For equal widths, the normalized second moment obeys
2
so the standard deviation is exponential in DWR. The paper also proves that the mean of the first SGD update scales as
3
again showing exponential sensitivity to DWR (Hanin et al., 2019).
Taken together, these results establish a sharp limitation of the classical fixed-depth infinite-width regime. When depth remains negligible relative to width, the NTK concentrates and training stays close to lazy dynamics. When DWR stays bounded away from zero, finite-width corrections accumulate across layers instead of averaging out. This suggests that DWR is not merely a geometric descriptor of architecture but a dynamical parameter for kernel stochasticity and feature learning.
4. Residual and linear networks beyond the classical Gaussian-process limit
Residual architectures change the role of DWR because skip connections alter how layerwise fluctuations accumulate. For fully connected residual networks with branch scaling 4, width and depth limits commute: the pre-activations converge to Gaussian distributions and the covariance kernel converges to the same deterministic ODE limit regardless of whether width tends to infinity first, depth tends to infinity first, or both diverge jointly with finite DWR (Hayou et al., 2023).
In that setting, for fixed 5 and a fixed neuron coordinate, 6 converges in distribution to 7 with
8
and the convergence rate is bounded by 9. The same analysis argues that 00 is the only nontrivial residual scaling: if the branch is scaled by 01 with 02, covariance explodes; if 03, the residual contribution vanishes.
A different residual theory studies fully connected ReLU ResNets in the simultaneous infinite-depth-and-width limit with 04 held fixed. There the output at initialization is not Gaussian but log-Gaussian:
05
where 06 has i.i.d. standard normal entries and 07 converges to a Gaussian random variable whose mean and variance depend on 08, the skip/residual strengths, hypoactivation, and interlayer correlations (Li et al., 2021). The same work shows that vanilla ResNets are hypoactivated at initialization: fewer than half of the ReLUs are activated on average. It also identifies positive interlayer correlations that produce exponential variance growth in the output. The proposed Balanced ResNets randomize the sign of the nonlinearity, eliminate hypoactivation and interlayer activation-pattern correlations at initialization, and retain log-Gaussian behavior with substantially reduced variance growth.
Deep linear networks exhibit yet another proportional-limit alternative to the NNGP picture. With equal hidden widths 09, depth 10, and 11, the case 12 recovers the classical Gaussian prior
13
where 14 has i.i.d. standard normal entries. For 15, the limit is instead
16
where 17 is a random lower-triangular matrix built from Brownian motions and multiple stochastic integrals. Conditional on 18, the prior is Gaussian; unconditionally it is a nontrivial Gaussian mixture. Under Gaussian likelihood, the posterior remains a mixture, and the unconditional posterior covariance depends on the observed labels when 19 (Bassetti et al., 2024).
A common simplification in deep-learning folklore is that “infinite width” automatically implies Gaussianity. The residual and deep-linear proportional-limit results show that this is true only when depth does not scale with width in a way that preserves a nonzero DWR, or when the architecture and scaling eliminate the relevant finite-width accumulations.
5. Transformer architectures: expressivity, stability, and interaction efficiency
In self-attention, DWR governs at least three distinct phenomena: depth-efficiency of expressivity, covariance stability at initialization, and fixed-budget interaction efficiency.
For expressivity, self-attention admits a width-dependent transition between depth-efficient and depth-inefficient regimes. With depth 20, width 21, and parameter count approximately 22 with 23 and 24 when 25, the separation-rank analysis identifies a threshold
26
If 27, separation rank grows double-exponentially in depth and only polynomially in width. If 28, the width caps the benefit of further depth, and the bounds become essentially multiplicative in 29. Empirical ablations on decoder-only Transformers of depths 30 to 31 fit the crossover width by
32
with 33 and 34, giving a transition-size curve
35
The same fit yields projected optima such as 36, 37 for 38B non-embedding parameters and 39, 40 for 41T, leading the authors to describe GPT-3 as too deep for its size (Levine et al., 2020).
The shaped Transformer studies DWR from the standpoint of initialization stability. In the proportional limit 42 with finite 43, the neural covariance 44 evolves as an Euler–Maruyama discretization and converges locally to an SDE indexed by 45. To obtain a stable limit, the attention matrix is modified to
46
with residual parameters satisfying 47. Centering removes the non-infinitesimal zeroth-order drift of unshaped Softmax, the identity bias keeps attention near 48, and 49 rescales both drift and diffusion, acting as a time change that reduces effective accumulated depth. Without this shaping, the paper reports exploding covariance and rapid rank collapse at large depth; with shaping, the SDE remains stable and finite models match its predictions well (Noci et al., 2023).
The neural-interaction study considers fixed parameter budgets for decoder-only Transformers and defines DWR as
50
Interaction is measured through the Average Gradient Outer Product and its off-diagonal energy: AOFE and AOFE-ratio. For Tiny byte-level LLMs on WikiText-103, the budget-wise best shapes show correlations
51
and the best DWRs for budgets at or above 52M parameters concentrate in an “interaction-efficient interval”
53
The paper also reports that smaller distance to this interval tends to correlate with higher MMLU-Pro among comparable small dense LLMs, while explicitly noting that direct transfer of the numeric interval to billion-parameter systems would be premature (Sun et al., 27 May 2026).
These Transformer results point in different directions unless their assumptions are kept separate. High depth can be expressively advantageous below the self-attention threshold, but proportional depth can destabilize initialization unless attention is shaped, and under a fixed budget there may be an intermediate interaction-efficient interval rather than a monotone preference for either depth or width.
6. Random matrix products and non-neural aspect-ratio usage
Outside standard neural-network architecture theory, DWR appears as a sharp asymptotic control parameter in products of rectangular complex Ginibre matrices. For a product
54
with 55 of size 56, the DWR is defined as
57
This quantity reduces to 58 in the square case 59. The local soft-edge statistics of the log singular values exhibit a three-phase transition determined entirely by the asymptotic value of 60: if 61, the Airy kernel appears at the soft edge; if 62, the statistics are governed by the 63-critical kernel; if 64, the edge fluctuations are Gaussian and higher-order local correlations vanish (Gu, 10 Jul 2025). In this setting, DWR measures aggregate inverse width across a multiplicative chain rather than layer count divided by hidden size, but it serves the same structural role of separating distinct asymptotic regimes.
The term also appears in an entirely different sense in granular mechanics. In true 2D granular column collapse, DWR is simply the initial aspect ratio
65
with 66 the initial height and 67 the initial width. Experiments with aluminum rods over the range 68 identify two thresholds. For 69, the final height is unchanged, 70, and an undisturbed top zone persists. For 71, the top surface becomes conical and the measured relations are
72
together with two run-out branches,
73
The same study reports that, for 74 mm and 75 mm (76), replacing a hard bed by a 77 mm soft bed reduces the maximum run-out from approximately 78 mm to approximately 79 mm (Nguyen et al., 2015).
This broader usage makes an important editorial point. DWR is not intrinsically a neural-network term. It is a domain-dependent dimensionless ratio that acquires technical meaning only after the underlying notions of depth and width are fixed. In neural-network theory it may index expressivity, kernel variability, covariance SDEs, or budgeted model shape; in random matrix theory it controls edge universality classes; in granular flow it is the aspect ratio that governs collapse regime and run-out.