WorksComputer Science
Emergent Inverse-Depth Scaling From Nonlinearity In Attention
Abstract
Scaling laws describe power-law improvements in model performance with dataset size and parameter count, yet their underlying mechanisms are not fully understood. To explain the parameter count scaling, existing theory posits power-law scaling with model depth. In linear-attention models, this scaling is tied to a power-law data spectrum: unable to selectively attend to relevant tokens, these models learn according to global spectral strength, with stronger directions learned before weaker ones. Large language models, however, can be strongly nonlinear. Here, we show that nonlinear attention yields inverse-depth decay of loss across all tested data spectra. Nonlinearity enables attention to focus selectively on relevant tokens, allowing strong and weak spectral directions to be learned in parallel. Similar focusing across layers motivates a connection to the central limit theorem: shared error across layers sets the loss plateau, while aggregation turns layer-specific differences into continued gains with depth. Our findings suggest that depth scaling may arise from nonlinearity in attention, which allows large language models to focus locally and may make the global covariance structure less relevant.
Introduction
Neural scaling laws describe how model loss decreases with the size of the dataset and the model, providing a practical basis for predicting performance and allocating computational resources [15, 17, 16]. Despite their predictive success, these laws remain largely empirical, and the mechanisms underlying their behavior are not fully understood. Clarifying their origins could help establish the scope of these laws and reveal how scaling can be made more efficient.
Recent theoretical work has begun to examine model-size scaling more closely by separating the roles of width and depth [2, 21, 4]. Increasing width provides more representational capacity within each layer, whereas increasing depth adds successive processing steps; the two can therefore improve performance through different mechanisms. Here, we focus on how models use additional layers and how this gives rise to scaling with depth. Previous work on linear-attention models ties power-law depth scaling to a power-law data spectrum [4]. Yet it does not account for nonlinear attention in practical large language models. In contrast, empirical work on these models suggests that inverse-depth scaling can arise through an ensemble of layers with similar behavior [22], without explaining the underlying reason for this layerwise similarity. We therefore ask:
Our research question:
How does nonlinearity in attention affect depth scaling and its underlying mechanisms?
We study this question in the common setting of in-context learning (ICL), where a model uses examples in its context to make predictions for a new query. Our tasks model the second half of an induction head’s computation: retrieving the token that matches the query and copying its associated value [11, 28, 26]. To isolate the role of nonlinearity, we compare controlled Transformers with linear or nonlinear attention across independently varied data spectra.
Figure 1 summarizes the resulting picture. In an easy task, the linear-attention model follows a spectrum-dependent power law, while a single-layer nonlinear-attention model is enough to solve the task. In a difficult task, the linear-attention model quickly plateaus, whereas the nonlinear-attention model exhibits inverse-depth loss scaling. Unlike the linear-attention model, which cannot selectively focus on relevant tokens, the nonlinear-attention model can attend to them directly, allowing strong and weak spectral directions to be learned in parallel and enabling better utilization of depth. Further analysis decomposes the loss into cross-layer and within-layer terms and connects this decomposition to the central limit theorem. The asymptotic behavior of these terms explains the origins of the loss plateau and the reducible loss.

Figure 1. The nonlinear-attention model can yield inverse-depth scaling across all tested data spectra. This overview compares depth-dependent performance across models and tasks. Colors distinguish data spectra, and all panels are plotted on a log-log scale.
Finally, we relax several simplifying assumptions of the controlled setup to move closer to standard Transformers and observe similar signs of inverse-depth scaling. These results suggest that nonlinearity in attention can be a plausible source of depth scaling in real models and may make scaling less dependent on the global covariance structure of the data.
Our contributions are the following:
We discover that nonlinearity in attention can qualitatively affect depth scaling, enabling emergent inverse-depth loss scaling across all tested spectra.
We explain how nonlinear attention enables parallel learning of strong and weak spectral directions, in contrast to the sequential learning behavior of linear-attention models.
We connect inverse-depth scaling to the central limit theorem through a loss decomposition that identifies the origins of the loss plateau and the gains from depth.
Problem Setup
Task Setup
In-context learning is a common setting in which predictions rely on interactions among context tokens. These interactions expose the structure of the data, providing a useful setting for studying the origins of depth scaling. We consider a controlled ICL problem in which each context contains inputs with labels generated by a teacher vector :
Let and denote the eigenvalues of the input and teacher covariances, respectively. To control input and task structure independently, we vary these spectra as
Here, are the input-spectrum and teacher-spectrum exponents, respectively. They independently control how rapidly the corresponding variances decay across feature directions. Setting either exponent to zero gives an isotropic covariance for the corresponding distribution.
In natural language, different contexts may share similar features but express them along different directions. Following Bordelon et al. [4], we model this variation by independently sampling an orthogonal rotation matrix for each context. Conditioned on , the input and teacher covariances are
Conditioned on , we sample the teacher vector independently of the context and test inputs, which are drawn i.i.d.:
The model must therefore infer the relevant directions from each context rather than rely on fixed directions across contexts.
We first construct an easy task using a widely studied ICL setting ([12, 34, 1, 4]). Given context inputs and their teacher-generated labels, the model must predict the label assigned to a test input by the same teacher. Following Bordelon et al. [4], we consider the infinite-context limit , in which a context token can be found arbitrarily close to the test token. The task can therefore be approximated by retrieving the closest context token and copying its label. This retrieval-and-copying operation corresponds to the second half of an induction-head circuit identified in language models ([11, 28, 26]). The task can thus be viewed, in an idealized sense, as an exact-match problem:
However, in practical ICL and language settings, prediction often requires combining information from multiple context tokens rather than retrieving a single one. Motivated by this need, we construct a difficult task that extends this induction-head-inspired operation from top-1 retrieval to top- aggregation. We measure relevance by cosine similarity and average the selected labels. The selected index set and target are defined by
Here, TopK returns the indices of the largest scores. Figure 2 summarizes these induction-head-inspired top-1 copying and top- aggregation tasks.

Figure 2. Both tasks model the second half of an induction head: the easy task copies the most relevant token’s label, while the difficult task averages the labels of the top- relevant tokens.
Model Setup
Large language models combine positional encodings, multiple attention heads, MLP blocks, normalization, and task-specific readouts. While important in practice, these components make it difficult to isolate the mechanisms underlying depth scaling. Building on Bordelon et al. [4], we therefore use a simplified architecture that retains the components needed for context-dependent retrieval and label propagation, allowing a controlled comparison between linear and nonlinear attention.
Embeddings. Each context provides input–label pairs , where the teacher vector generates from according to equation (1). The model has access to all context input–label pairs and the test input, but cannot access the test label. The corresponding entry at the test position is initialized to zero. We collect the token inputs and the observed labels into
Let denote the hidden dimension, avoiding a representational bottleneck. Each token state lies in . With encoder matrices and , we encode input and label information into separate streams:
This encoding separates the input features used for token matching from the labels to be propagated. The input features determine which context tokens are relevant to the query, and attention passes their label information to the test token.
The model has residual layers, indexed by . At each layer, attention uses the input features to determine how label information is propagated. For simplicity, we first keep fixed across layers, while is updated as label information is passed among tokens. We use layer-specific query and key matrices and a shared value matrix . Thus, each layer can select relevant tokens differently while using a common transformation to propagate label information.
Nonlinear attention. We first define the model with nonlinear attention. We apply pre-norm to the input-stream hidden state for better training stability and alignment with practical models, and denote the normalized state by . At layer , the query, key, and value representations are
Let M denote the attention-mask matrix. The attention matrix and residual update are
Linear attention. The linear-attention model removes nonlinearities and retains the raw bilinear attention scores. Its attention matrix and residual update are
Attention masks. As in large language models, we use attention masks to control information flow between tokens. For the linear-attention model, we adopt the masking scheme of Bordelon et al. [4], allowing successive layers to extract and propagate information at different levels of granularity. For the nonlinear-attention model, we initially disable context updates to focus on how different layers retrieve information from a fixed context. In both models, the test token can attend to all context tokens to access their label information. Note that in the nonlinear-attention model, softmax is computed only over tokens that can be attended to, so disabled positions do not affect the distribution. Further details on the masks and context updates are given in Appendix § 10.§ 3.
Output and loss. We obtain the prediction by applying a linear readout to the final test-token state . The model is trained to minimize the mean squared error over independently sampled contexts:
Throughout, denotes the evaluation mean squared error of a depth- model; we write when making its dependence on the data-spectrum exponents explicit.
All models are trained until the loss has converged. In Appendix § 10, we relax several simplifying assumptions to better reflect the architectures of standard Transformers and large language models, and extend our experiments and analyses to these settings.
Easy Task Analysis
Linear-Attention Model
Figure 3(a,b) shows that the linear-attention model’s loss on the easy task decreases with depth according to a power law across all tested settings, with an exponent that depends on the data spectra.

Figure 3. On the easy task, the linear-attention model exhibits spectrum-dependent depth scaling and learns spectral modes sequentially. (a) Varying at fixed . (b) Varying at fixed . Dashed curves show power-law fits, with the corresponding exponents indicated. (c) Normalized loss of representative spectral modes. Values below 2% are displayed at the threshold marked by the dashed line.
Heuristically, we can interpret the depth- linear-attention model’s output as a polynomial in the data covariance:
The target is
Therefore, the model needs to approximate the identity map with ; Appendix § 8.§ 1 derives this covariance-polynomial representation. Greater depth allows the model to use higher powers of the covariance, incorporating information at different levels of granularity to improve the approximation. The asymptotic behavior of this approximation gives rise to power-law depth scaling. Different data spectra change the covariance in the polynomial, leading to different convergence rates with depth. This produces spectrum-dependent depth scaling.
This mechanism also has a feature-learning interpretation. We decompose the power-law input covariance into individual spectral modes and normalize each mode’s loss, which allows us to compare how fully each mode has been learned. Small indexes stronger features with large eigenvalues, whereas large indexes weaker features with small eigenvalues. Figure 3(c) reveals a clear separation in their learning dynamics: stronger modes are learned almost perfectly within a few layers, while weaker modes require substantially greater depth. Appendix § 8.§ 4 further shows that individual modes can converge exponentially at different characteristic depths, with their superposition yielding spectrum-dependent power-law scaling.
Nonlinear-Attention Model
We next evaluate the nonlinear-attention model on the easy task. Figure 4(a,Figure 4b) shows that a single-layer nonlinear-attention model achieves zero loss on the easy task across all tested data spectra. Unlike the spectrum-dependent improvement of the linear-attention model, its performance does not improve further with depth.

Figure 4. A single nonlinear-attention layer solves the easy task by focusing on the matching token. (a) Varying at fixed . (b) Varying at fixed . (c) Top-1 attention mass approaches one during training.
The key distinction is that nonlinear attention can selectively focus on the relevant token in each context, whereas linear attention cannot fully exclude contributions from irrelevant tokens. During training, the queries and keys attain large norms, amplifying differences between attention logits and placing softmax in an effectively low-temperature regime. Almost all attention is then assigned to the matching token, allowing its label to be copied in a single layer. Figure 4(c) supports this explanation: during training, attention shifts from a nearly uniform distribution toward the top-1 token, whose attention mass approaches one. The same qualitative behavior holds across the tested spectra.
Difficult Task Analysis
Linear-Attention Model
We next evaluate the linear-attention model on the difficult task. Here, we choose as a representative case of top- aggregation. Figure 5(a,Figure 5b) shows that the loss reaches a spectrum-dependent plateau within one or two layers. Unlike the continued improvement on the easy task, additional depth provides little further benefit.

Figure 5. On the difficult task, linear attention rapidly reaches a spectrum-dependent loss plateau with little benefit from further depth. (a) Varying at fixed . (b) Varying at fixed .
Intuitively, the selected tokens vary across contexts, so their average fluctuates around a shared mean. The target therefore contains a predictable component and a context-specific deviation. Linear attention can capture the shared component, but lacks the context-specific token selection needed to fully recover the deviation. This leaves an irreducible loss that sets the plateau.
We analyze the reducible part using the covariance-polynomial formulation in § 3.1. The prediction retains the same form, while the predictable target has the leading-order form
Unlike the identity map in the easy task, this leading target can already be represented by a degree-one polynomial. Additional depth therefore provides little further reduction in loss. Appendix § 8.§ 3 provides the geometric illustration, detailed derivation, and comparison between predicted and measured loss floors.
Nonlinear-Attention Model
We next evaluate the nonlinear-attention model on the same difficult task with . Figure 6(a,Figure 6b) shows that additional depth continues to reduce the loss, in contrast to the rapid saturation of the linear-attention model.
Figure 6. On the difficult task, nonlinear attention yields inverse-depth decay across all tested data spectra. (a) Varying at fixed . (b) Varying at fixed . (c,d) and converge to spectrum-dependent constants.
To quantify this depth dependence, we fit the evaluation loss to
by minimizing squared residuals between the logarithms of the observed and modeled losses. The fitted exponents shown in Figure 6(a,b) are close to one across the tested data spectra, indicating emergent inverse-depth scaling in the deep regime.
With input and label information carried in separate streams and context states fixed across layers, our model admits an equivalent parallel representation: each layer forms a prediction from the same context, and the final output averages these predictions. Increasing depth therefore increases the number of predictors in the ensemble, suggesting an analogy with the central limit theorem, where averaging layer-specific fluctuations can yield a decay in squared error. To distinguish the error reduced by ensembling from the error that remains, we derive the exact loss decomposition
Here, measures error shared across predictors, whereas measures pairwise differences between their errors. A detailed derivation is provided in Appendix § 9. Figure 6(c,d) tracks these two terms across different data spectra. As depth increases, both converge to spectrum-dependent constants:
The loss plateau and the depth-dependent improvement have different origins. The error shared across predictors cannot be canceled by ensembling and sets the irreducible loss within this ensemble. For the top-2 task, this shared error reflects the mismatch between smooth softmax attention and the sharp target distribution , which is difficult to match consistently across contexts.
In contrast, quantifies error variation across predictors. Ensembling allows these errors to partially cancel, reducing their contribution by a factor of and enabling continued improvement with depth. Detailed derivations and attention-mass diagnostics are provided in Appendices § 9 and § 11.§ 2, respectively.
We again examine individual spectral modes and normalize their excess losses to compare relative learning progress. Figure 7(a) shows similar improvement rates across modes, and the normalized curves in panel (b) nearly collapse. In contrast to the linear-attention model’s sequential learning, nonlinear attention can focus directly on relevant tokens in each context and improve strong and weak features in parallel, even without context updates that expose progressively finer-grained information.

Figure 7. With nonlinear attention, strong and weak spectral modes are learned in parallel. (a) Different modes are learned at similar rates. (b) Normalized mode-wise reducible losses nearly collapse onto a common curve, indicating parallel learning across modes.
Building on our analysis of the differences between linear and nonlinear attention, we further compare their irreducible losses on the difficult task. Table 1 shows that the nonlinear-attention model achieves a substantially lower loss floor, clearly outperforming the linear-attention model.
| Nonlinear | 2.007 | 1.268 | 0.836 | 0.424 | 1.255 | 0.798 | 0.341 |
| Linear | 59.853 | 23.055 | 9.766 | 2.504 | 22.962 | 9.501 | 2.120 |
Table 1. Nonlinear-attention models achieve substantially lower irreducible loss than linear-attention models on the difficult task.
We extend our setup toward standard Transformers by encoding inputs and labels in a shared space, untying the value matrix, and updating context states across layers. We observe similar signs of inverse-depth scaling (Appendix § 10). These results suggest that this mechanism may also contribute to depth scaling in realistic models with nonlinear attention, where data structure need not be the dominant factor.
Related Work
Empirical neural scaling laws relate loss to model size and dataset size, supporting performance prediction and resource allocation [15, 17, 16]. Theoretical explanations have related them to data geometry and covariance spectra [32, 2]. More recent work identifies mechanisms arising from representation superposition and the dynamics of learning peaked distributions [21, 23, 18]. Despite these advances, much of the literature treats model size as an aggregate quantity rather than resolving the different contributions of width and depth.
As a key component of model-size scaling, depth has been studied through several complementary accounts of how networks utilize layers. Compositional learning builds complex representations by successively combining simpler features, making hierarchical structure more efficiently learnable [3, 19, 29, 5]. The dynamical-systems perspective treats residual layers as discrete steps of an ordinary differential equation (E, 2017; Haber & Ruthotto, 2018; Chen et al., 2018; Sander et al., 2022; Chizat, 2025). The ensemble-averaging perspective views depth as the aggregation of related predictors [33, 24, 22]. These perspectives explain how networks use depth but do not fully explain the origins of depth scaling. We examine how nonlinearity in attention shapes its underlying mechanisms and resulting scaling laws.
More directly, Bordelon et al. [4] build on the established ICL regression setting [12, 34] to derive spectrum-dependent depth scaling for deep linear-attention models. A line of theoretical work has largely focused on analytically tractable linear models [1, 35, 25], leaving the mechanisms through which nonlinear attention affect depth scaling unresolved. Liu et al. [22] report inverse-depth scaling in LLMs and connect it to ensemble averaging, without explaining why this ensemble-like behavior emerges. Liu & Gore [20] further argue that generic mechanisms may determine scaling exponents, while data and architecture affect the coefficients. Our work complements these studies by explaining how nonlinear attention enables ensemble-like behavior across layers and gives rise to inverse-depth scaling.
Discussion
Our results identify nonlinearity in attention as a source of depth scaling beyond power-law data spectra. Nonlinear attention can focus directly on relevant tokens in each context, allowing strong and weak spectral directions to be learned in parallel. Linear attention lacks this selective ability, tying its learning dynamics to global spectral strength. Similar focusing across layers supports an ensemble interpretation: aggregation reduces layer-specific errors while leaving a shared loss floor, connecting inverse-depth improvement to the central limit theorem. These findings suggest that practical depth scaling can originate from attention nonlinearity rather than data structure alone.
Our study has many limitations. Our simplified architecture omits components of full LLMs, so the identified mechanism is not guaranteed to operate in those models. Although architectural extensions show similar scaling signals, a clear theoretical account of their mechanisms is still lacking. Our experiments are restricted to ICL tasks, leaving generalization to real-world datasets and broader task classes untested. The identified mechanism need not be universal or dominant, and other processes may produce different scaling or interact with it. Our analysis also does not address how depth scaling couples to model width and dataset size.
Aggregation also raises a question about how efficiently depth is used. If a few layers perform the essential computation while others mainly average residual errors, separate parameters at every layer may be wasteful. Looped Transformers reuse parameters across depth (Dehghani et al., [9]; Geiping et al., [13]) and may retain aggregation benefits with fewer parameters. Testing this possibility could guide more parameter-efficient use of depth in future language models.
AI Use Statement
We used generative AI tools to support brainstorming, articulate candidate mathematical claims, generate code under explicit human instructions, and assist with language editing. We did not use generative AI to generate synthetic datasets, conduct data analysis, or write mathematical proofs. All AI-assisted ideas and writing were critically reviewed by the authors, and all AI-generated code was independently inspected and verified. The authors performed the data analysis and mathematical proofs and take full responsibility for the final content of this work.
Linear-Attention Model Theory
Covariance Polynomials in the Linear-Attention Model
We first derive the theory of the linear-attention model on the easy task. In general, its output is an ordered matrix polynomial of degree at most in the data covariance. The isotropic setting analyzed by Bordelon et al. [4] then follows as a special case of our theory.
Let collect the context inputs, denote the query, and be the empirical input covariance:
The input and teacher covariances are
where the random orthogonal rotation is fixed within a context and sampled independently across contexts. Contexts therefore share the same spectra but express their features in different directions. Within each context, conditioning on , the context inputs and test token are sampled identically and independently, while the teacher vector is sampled independently from its corresponding distribution:
Define the effective query–key matrix
where is the hidden-state dimension. Before masking, token assigns context token the weight
Separate the context and test label states as
The linear-attention mask defined in § 2.2 gives
Write , where maps inputs to context label states. Substituting yields
Therefore, the output is
The first two steps show how the polynomial is built:
With readout coefficients
substitution into the output gives
The prediction and easy-task target are
Thus learning the easy task amounts to approximating the identity on the relevant input directions. Define
Averaging over the teacher at fixed inputs gives
The evaluation loss defined in equation (12) is therefore
Constrained and Free Polynomial Depth Scaling
Repeated updates. Following the repeated-update construction of Bordelon et al. [4], we impose isotropic matching and align the shared value map with the label embedding:
Each degree- product in equation (24) then equals , and there are choices of layers. Hence
In the infinite-context limit , we use . Thus
Using in equation (26) gives the population-covariance approximation to :
Define . Since , we have , and therefore
For a specific data spectrum, write
where and . For , the change of variables from feature index to eigenvalue is
Substituting into equation 30 and replacing the sum by its continuum integral gives
For , we have , which makes the continuum weight integrable at zero. When is sufficiently large, is close to zero and the finite-dimensional cutoff does not yet affect the loss. We may then approximate the dense spectrum by a measure on . This gives
Because is shared across layers,
Optimizing to 1 allows the repeated-update construction to solve the easy task in the large-depth limit. Substituting into equation 28 gives
For the residual to vanish as , the scalar updates must contract rather than amplify positive-eigenvalue directions. At the largest eigenvalue this requires
Using the optimal-scale estimate of Bordelon et al. [4],
the continuum loss becomes, with ,
Here, denotes the loss of the repeated-update reference within the population approximation. This exponent is consistent with the result of Bordelon et al. [4].
Free polynomials. We then derive the depth-scaling exponent when the polynomial coefficients are free by removing the repeated-update conditions in equation (27). We assume only that the depth- predictor is an arbitrary polynomial in of degree at most . Substitution into equation (26) gives the freely optimized population-polynomial reference :
Let be a degree- polynomial orthonormal under this weight:
where equals one for and zero otherwise. Expanding the residual and using gives
Cauchy–Schwarz now gives the minimum directly:
Equality is attained by coefficients proportional to the endpoint values:
For this weight, the basis consists of shifted Jacobi polynomials:
where is the degree- Jacobi polynomial. Using its value at 1 gives
Consequently,
The two polynomial families therefore give
Table 2 compares these reference exponents with the measured values.
| Constrained | Measured | Free | |
| 0.750 | 1.121 | 1.500 | |
| 1.000 | 1.485 | 2.000 | |
| 1.250 | 1.684 | 2.500 | |
| 1.500 | 1.987 | 3.000 | |
| 3.000 | 3.310 | 6.000 | |
| 2.000 | 2.552 | 4.000 | |
| 1.667 | 2.163 | 3.333 |
Table 2. Measured depth-scaling exponents of the linear-attention model on the easy task lie between two reference values.
The actual model is less constrained than the repeated-update construction of Bordelon et al. [4], which relies on the two conditions in equation (27), but it is not as unconstrained as the idealized free polynomial, whose coefficients are optimized independently. It is therefore reasonable for the measured exponents to lie between these two reference values.
Note that this theoretical analysis has several requirements, including the population-covariance approximation , corresponding to ; a dense spectrum with ; and a sufficiently large spectral range . At the evaluated depths, repeated updates require , whereas free polynomials require .
Predicting the Linear-Model Loss Floor
In this subsection, we characterize the predictable component of the difficult-task target and the resulting irreducible loss floor for the linear-attention model. We further validate these theoretical predictions using Monte Carlo estimates.
For a test token sampled independently of the context inputs, the difficult-task target is
From Appendix § 8.§ 1, assuming ,
Write . Since , averaging first over the independent teacher gives
Thus , where . At fixed , , the selected target varies across contexts, whereas does not. Separate its conditional mean from this variation:
Substituting and expanding gives
The cross term vanishes after conditioning because and are fixed given :
Hence the population risk separates into
We denote the first term by . It is independent of the polynomial degree, whereas increasing the degree can reduce only the second term.
Predictable component of the difficult-task target. Section 4.1 states that the predictable component is approximately proportional to . We now derive this result by approximating cosine-similarity ranking with the inner-product scores . Conditional on , the pair is jointly Gaussian, with
The Gaussian conditioning formula therefore gives
Let be the ordered scores, and let denote the input attaining . Since are independent standard normal variables, define
Applying equation (44) to the selected inputs and averaging over their ordered scores gives
To remove the remaining query-dependent denominator, note that for ,
When , we can replace by its mean. Combining this with the cosine-to-score approximation yields
Since the teacher is independent of the selected inputs given ,
Thus, the predictable component is proportional to and can already be represented by the degree-one polynomial . Higher polynomial degrees cannot remove the context-specific variation in equation (43), explaining both the rapid saturation and the nonzero loss floor of the linear-attention model.
An explicit expression for the irreducible loss. Let collect the polynomial coefficients and define
The corresponding population loss expands as
where
In particular, the entries of the Gram matrix are determined by the spectra:
Differentiating equation (48) with respect to gives the normal equations . Hence
The decomposition in equation (43) also gives
Under the degree-one approximation in equation (46), the second term is negligible. Combining equation (51) and equation (52) therefore gives the explicit prediction
We evaluate this prediction by Monte Carlo sampling in the original cosine task. We independently sample query–rotation–context triples. For sample , is the resulting cosine-selected target and . The hats below denote empirical estimates computed from these samples:
Table 3 compares this Monte Carlo prediction of equation (53) with the actual loss plateau of the trained model. Their close agreement validates the predicted irreducible floor.
| Theory-predicted loss | Measured loss | Difference | |
Table 3. The theoretically predicted irreducible loss closely matches the actual loss plateau of the linear-attention model.
Geometric interpretation. We now provide a heuristic geometric picture of the predictable component and irreducible loss, using the top-2 task as an example. In Figure 8, the horizontal ray represents the query . The black vectors and are the two selected context inputs, and their average is the green target . The blue vector represents the conditional mean , whereas the red vector is the context-specific residual. Linear attention can approximate the predictable blue component through the population covariance, but it lacks the context-specific selection required to follow the red residual for each realized context. This residual therefore produces the irreducible loss floor.

Figure 8. The linear-attention model captures only the average predictable component of the difficult-task target. The green target is the average of the two selected inputs. Blue shows the best predictable component ; red shows the context-specific residual.
Power Laws from Mode-Wise Exponential Decay
As a heuristic model of Figure 3(c), we show how exponential decay at different rates can combine into a power law. Let feature have initial loss weight and characteristic depth :
Assume the loss-weighted distribution of characteristic depths follows a power law, for , with and . The aggregate loss is
With and , this becomes
Thus exponential convergence of individual features produces power-law depth scaling when their characteristic depths have a broad power-law distribution. Stronger features converge first, while weaker features continue to contribute as depth increases.
Nonlinear-Attention Model Theory
In this section, we derive the loss decomposition for the nonlinear-attention model on the difficult task studied in § 4.2.
We first introduce the notation. Throughout this section, denotes an expectation over contexts. Let be the number of layers and the number of context tokens. We use for layers and for tokens. Write for the number of labels selected by the top- task. We measure the relevance of each context token to the test token using cosine similarity:
Thus contains the context indices closest to the test token. For the label column , define the target row by
Let be the attention weight from the test token to context token at layer , with softmax normalized over the context sources since the test token does not attend to itself:
With fixed context states, each layer reads the same label column . The common scalar gain includes the value map and readout:
Define the layer error relative to the same target as . For , assuming finite expected squared errors, let
The second sum is over ordered distinct pairs. Since , expanding the square gives
Expanding pairwise differences and using equation (61),
Dividing by gives
captures the error shared across layers, whereas measures their disagreement. Averaging reduces the latter contribution to . The shared component cannot be removed through aggregation and therefore gives rise to the irreducible loss, while differences among layer errors can partially cancel and produce the reducible loss.
Importantly, this decomposition does not by itself imply inverse-depth scaling. We first establish the emergence of inverse-depth scaling empirically through systematic experiments and rigorous power-law fitting, and then use the decomposition to identify the components and mechanisms underlying this behavior.
This decomposition relies on the parallel interpretation of our controlled model: the layers act as independently parameterized predictors whose aggregate forms the final output. A layerwise decomposition is therefore natural in this setting. In the generalized settings considered below, however, it is neither the only possible decomposition nor necessarily the most natural one. For example, when inputs and labels share a single stream, the model becomes cascaded and each layer depends on the preceding layers. A mean-field treatment [27, 8, 30] may then be more appropriate, separating each layer’s output into a mean component coupled to the other layers and a layer-specific fluctuation. Developing a rigorous decomposition for more complex systems, including large language models, remains an important direction for understanding the role of depth in realistic models.
Generalized Model Experiments and Analysis
We now relax some design choices from the controlled model in § 2.2 to move the architecture closer to standard Transformers and LLMs. First, the original two-stream encoding separates token matching from label propagation: queries and keys interact only with the input stream, whereas values and the output map interact only with the label stream. Second, all layers share a value matrix, which improves training stability and keeps the model concise. Third, the nonlinear-attention model initially keeps the context states fixed, isolating the process by which different layers retrieve relevant information from the context. In the following subsections, we relax these assumptions one at a time and conduct analogous experiments and analyses for each extension.
Encoding Input and Label Information into One Space
Section 2.2 initializes separate input and label streams, and . In standard LLMs, token and label information are commonly encoded in a shared representation space. We therefore embed both sources of information in a shared token state:
Queries, keys, and values are now all computed from the same evolving state:
For nonlinear attention, the shared state is updated as
Thus token matching, information propagation, and residual updates all act within a common representation space, and each layer operates on the state produced by the preceding layers.
To define the two decomposition terms in this cascaded model, let denote the test-token readout after layer . Define the base readout and layer increments as
We can express the final prediction as an average of effective layerwise predictors by setting
For , the shared-error and disagreement terms are then defined as
With these definitions, the loss retains the exact identity
We evaluate this generalized model on the difficult task. Figure 9 shows that and continue to approach finite constants, while the loss exhibits an approximate inverse-depth trend beyond moderate depth.

Figure 9. The single-stream nonlinear-attention model exhibits a similar inverse-depth scaling signal. (a) The model is evaluated under isotropic data spectra. (b,c) The shared-error term and disagreement term both approach finite constants with depth.
Layer-Decoupled Value Matrices
In standard LLMs, value matrices are typically parameterized independently across layers. We therefore replace the value matrix shared in § 2.2 with independently parameterized matrices , giving
This modification allows each layer to apply a distinct transformation to the retrieved label information.
Let denote the attention weights from the test token to the context tokens, and let collect their labels. The corresponding layerwise predictor and error are
For , the shared-error and disagreement terms are
The loss therefore retains the exact identity
We evaluate this generalized model on the difficult task. Figure 10 shows that and continue to approach finite constants, while the loss displays an approximate inverse-depth trend beyond moderate depth. Thus, the same inverse-depth scaling signal remains visible after relaxing the shared-value assumption.

Figure 10. The nonlinear-attention model with layer-specific value matrices exhibits a similar inverse-depth scaling signal. (a) The model is evaluated under isotropic data spectra. (b,c) The shared-error term and disagreement term both approach finite constants with depth.
Allowing Context Updates in the Nonlinear-Attention Model
Our linear-attention model in § 2.2 follows Bordelon et al. [4], including their attention-masking scheme. Let denote the all-ones vector. For a single test token, their mask can be written as
where the upper-left block governs context-to-context updates, while the lower-left block allows the test token to attend to the context tokens. Intuitively, this sign structure lets linear attention extract data structure at progressively finer spectral resolutions. The negative context-to-context block preferentially subtracts components shared by highly similar context tokens from their label states. Dominant spectral features produce larger similarity-weighted updates and are therefore resolved earlier, whereas weaker features persist until greater depth and can be learned in deeper layers. This behavior is consistent with the sequential mode learning in Figure 3(c). By contrast, the positive test-to-context block allows retrieved information to accumulate in the test token’s label state, which is initialized at zero and updated across layers.
To isolate how the test token retrieves and aggregates information from the context, the controlled nonlinear-attention model in § 2.2 initially disables context updates by setting the upper-left block to zero:
Standard Transformers, however, update context representations across layers. To examine how these updates affect the nonlinear-attention model, we parameterize the previously zero context-to-context block by a trainable scalar . Specifically, we use
where the scalar is shared across all layers and learned jointly with the other model parameters.
We evaluate this generalized model on the difficult task with isotropic data spectra, using top-2 and top-16 targets. Figure 11(a,Figure 11b) shows qualitatively different depth dependence. For top-2, the loss continues to decrease substantially with depth and exhibits a signal consistent with inverse-depth scaling. For top-16, by contrast, increasing depth does not improve the loss.

Figure 11. Enabling context updates preserves an inverse-depth scaling signal on the top-2 task but not on the top-16 task. Under isotropic data spectra, (a) the top-2 loss exhibits an inverse-depth scaling signal, whereas (b) the top-16 loss quickly saturates. (c,d) The learned context-update scalar varies with depth for top-2 but stabilizes for top-16.
The learned context-update scalar provides an additional diagnostic. Figure 11(c,d) shows that the learned scalar varies substantially with depth for top-2, whereas for top-16 it remains near the stable negative value .
To interpret this task-dependent behavior, we first derive its exact effect in a two-layer model. Write the label state as , where contains the context states and is the test-token state. Let , so that and . Without changing the mechanism of interest we take for simplicity. Let denote the test-to-context attention row at layer , and let denote the first layer’s context-to-context attention matrix.
Applying equation (10) with the mask in equation (77) gives
Substituting gives
Defining the scalar readout gain , the prediction is
The first term reads the original context labels directly. The second reads them after has mixed information across context tokens.
For arbitrary depth, the corresponding recursion is
Consequently,
Thus, context updates affect prediction through operators . Whether and how they improve depth utilization depends on the spectral structure of .
Figure 12 visualizes the two context attention structures. For the top-2 task, the measured is nearly the identity. For the top-16 task, the measured is broader and flatter. This contrast is induced by the sharpness of the target distribution. The sharp top-2 target requires the model to preserve the identities of a few selected tokens, favoring well-separated embeddings and a nearly identity attention map. The flatter top-16 target instead favors stronger coupling across embeddings and therefore produces a broader attention map.

Figure 12. The learned context-attention structure depends strongly on the aggregation target. The context-attention matrix is (a) sharply concentrated on the diagonal for top-2 task, but (b) distributed broadly across context tokens for top-16 task.
To quantify this contrast, we model each measured attention matrix by an identity component and a uniform mixing component . Specifically, for , we fit by least squares in
The identity term preserves each context embedding separately, whereas replaces every embedding by their common average. The fitted results are
This model therefore confirms that the top-2 matrix is almost exactly the identity, while the top-16 matrix is dominated by uniform cross-token mixing.
For top-2, the near-identity structure gives , and
The context update therefore introduces no independent token-weighting direction: the prediction remains an aggregation of and . Accordingly, its loss remains close to that of the fixed-context model and still exhibits approximate inverse-depth scaling over the observed depth range.
For top-16, let . Since , we have and hence
Equation (86) shows that the context update adds the uniform token-weighting direction , beyond the direct rows and . Defining , the exact two-layer prediction is
A negative therefore produces a global shift that subtracts the common attention floor, rather than merely combining more direct attention rows. This additional degree of freedom allows the model to achieve low loss with few layers, explaining its early saturation. The same argument extends to models with more than two layers.
This distinction is also relevant to language modeling. Many language tasks require focusing on only a few relevant tokens and learning a sparse and peaked distribution. In such regimes, context interactions may primarily reweight information that has already been selected. Depth utilization can therefore remain governed by selective retrieval and cross-layer aggregation, making the inverse-depth mechanism relevant even when context representations are not fixed.
Overall, these generalized models exhibit inverse-depth scaling signals that are qualitatively consistent with the controlled-model analysis over the accessible depth ranges. Training these models at much greater depths is substantially more computationally expensive, preventing experiments on the same scale as those conducted for the controlled model. We therefore interpret these results as evidence of similar scaling signals, rather than as a definitive guarantee of asymptotic inverse-depth scaling. Their appearance under more realistic architectural choices nevertheless suggests that the mechanism may remain relevant to practical models.
More Experiments and Fitting Details
This section supplements the controlled-model results with additional experiments and provides the fitting procedures used to quantify the observed depth-scaling laws. We report fits for both the easy and difficult tasks, analyze context-dependent token selection, test broader targets and data spectra, and examine the convergence of the shared-error term.
Power-Law Fitting Procedures
We use a common log-space fitting procedure to quantify the depth-scaling laws in § 3.1 and 4.2. Each spectrum is fitted independently using
where is the asymptotic loss floor and is the decay exponent.
For observations at depths , we minimize the squared residuals between the logarithms of the observed and modeled losses:
For the easy task, we set . As shown in Appendix § 8.§ 1, given sufficient depth, width, dataset size, context length, and training time, the linear-attention model can solve this task exactly by using a covariance polynomial to approximate the identity map. For the difficult task, the decomposition in Appendix § 9 contains an error component shared across layers, so we estimate jointly with and .
Complementary Token Selection Across Contexts
We further compare how nonlinear-attention models of different depths perform on the difficult task. We train an model and an model on the difficult task with under identical conditions. We then sample 10,240 fresh contexts independently from the data distribution and evaluate both models on the same set.
For each context, we order the tokens by their similarity to the test token. Under the parallel interpretation developed in Appendix § 9, the final output aggregates the contributions of the individual layers. We therefore summarize their collective token selection by the aggregated attention distribution and compare it with the target distribution over the ordered tokens. Formally,
Lower values indicate more accurate identification and weighting of the two target tokens. For each model separately, we sort the sampled contexts by and denote the th percentile by . Thus, small corresponds to contexts on which a model most closely matches the target distribution, whereas large probes its high-error tail.
Figure 13a compares the resulting error distributions. Panel (b) reports

Figure 13. Greater depth makes token selection more reliable across contexts. (a) Selection-loss percentiles for and . (b) Their difference ; positive values favor .
Positive therefore indicates that the deeper model has lower selection loss at percentile . The one-layer model is slightly more accurate on the contexts in its lowest-error tail, but its error grows much more rapidly across harder contexts. The 256-layer model instead markedly reduces the upper tail, indicating more reliable token selection across the context distribution.
This pattern follows from the fact that each query–key parameterization must serve the entire context distribution. With only one layer, a single selection rule may fit some contexts particularly well but cannot identify the correct top-2 tokens uniformly. Greater depth supplies multiple independently parameterized rules whose errors can be complementary across contexts. Their aggregation improves coverage: for a context that is difficult for one rule, other layers may still identify the relevant tokens, thereby reducing the high-error tail.
The slight advantage of the one-layer model at the lowest percentiles suggests a possible tradeoff between specialization and coverage. A single selection rule may become highly accurate on a limited subset of contexts, whereas complementary rules across layers can cover a broader range. This observation suggests a testable hypothesis for settings with finitely many or clustered context types: different layers may specialize in different context classes, and their aggregation may combine these specialized behaviors. If this hypothesis holds, it would suggest that current architectures use depth inefficiently, as not every layer makes an indispensable contribution. Further exploring designs that exploit such layerwise specialization may help LLMs utilize depth better.
Broader Targets and Data Spectra
The main-text experiments with the nonlinear-attention model on the difficult task use top-2 aggregation and vary one spectral parameter while fixing the other at zero. We now test whether the observed depth scaling depends on either restriction. First, we retain the top-2 target but consider jointly structured input and task spectra, with both and nonzero. Second, we replace top-2 aggregation with top-16 aggregation, yielding a flatter target distribution, and evaluate several spectral settings. For each configuration, we fit the evaluation loss using the model and log-space objective defined in Appendix § 11.§ 1.
Figure 14 shows approximately inverse-depth loss decay across both extensions, and Table 4 quantifies the corresponding exponents. For the jointly nonzero top-2 settings, panels (c,d) further show that both decomposition terms approach spectrum-dependent finite values, matching the convergence pattern observed in the main text. With jointly nonzero spectra, the top-2 exponents remain close to one. Note that the top-16 exponents deviate relatively more from one at the depths considered, suggesting that the top-16 task may enter the asymptotic inverse-depth regime only at greater depths. This contrast also suggests that inverse-depth scaling from cross-layer aggregation may be more pronounced for

Figure 14. Emergent inverse-depth scaling in the deep regime generalizes across broader targets and data spectra. (a) Performance on the top-2 task with both spectral parameters nonzero. (b) Performance on top-16 aggregation across representative spectra. (c) and (d) converge to finite constants with depth for the three top-2 spectra.
| Target | ||||
| Top-2 | 0.818068 | 0.9998 | ||
| 0.559694 | 0.9984 | |||
| 0.382188 | 0.9999 | |||
| Top-16 | 0.173237 | 0.9999 | ||
| 0.114436 | 0.9998 | |||
| 0.115248 | 0.9998 | |||
| 0.079785 | 0.9994 |
Table 4. Fitted depth-scaling exponents remain close to one across broader targets and data spectra.
sparse, sharply concentrated target distributions. These results show that the inverse-depth scaling behavior is not restricted to specific spectra or target distributions.
Convergence of the Shared-Error Term
The direct loss fits in § 4.2 provide empirical evidence for approximate inverse-depth scaling over the tested depth range. As a consistency check on the decomposition in Appendix § 9, we examine how its shared-error term approaches the fitted loss floor. For each spectrum, we fix to the corresponding estimate in Table 1 and model the gap as
Following the log-space procedure in Appendix § 11.§ 1, we estimate the two parameters by least squares:
Table 5. The gap decays approximately inversely with depth over the fitted range.
With fixed by the direct loss fits, the high values and small fitting uncertainties show that is well described by a power law over the tested depths. Its fitted decay exponents are close to one, consistent with the inverse-depth trend observed in the loss.
References
- [1]Kwangjun Ahn, Xiang Cheng, Hadi Daneshmand, and Suvrit Sra. Transformers learn to implement preconditioned gradient descent for in-context learning. In Advances in Neural Information Processing Systems, volume 36, pp. 45614–45650, 2023. doi: 10.52202/075280-1977.DOI
- [2]Yasaman Bahri, Ethan Dyer, Jared Kaplan, Jaehoon Lee, and Utkarsh Sharma. Explaining neural scaling laws. Proceedings of the National Academy of Sciences, 121(27):e2311878121, 2024. doi: 10.1073/pnas.2311878121.DOI
- [3]Yoshua Bengio, Aaron Courville, and Pascal Vincent. Representation learning: A review and new perspectives. IEEE Transactions on Pattern Analysis and Machine Intelligence, 35(8):1798–1828, 2013. doi: 10.1109/TPAMI.2013.50.DOI
- [4]Blake Bordelon, Mary Letey, and Cengiz Pehlevan. Theory of scaling laws for in-context regression: Depth, width, context and time. In International Conference on Learning Representations, 2026.arxiv.org/abs/2510.01098
- [5]Francesco Cagnetta, Leonardo Petrini, Umberto M. Tomasini, Alessandro Favero, and Matthieu Wyart. How deep neural networks learn compositional data: The random hierarchy model. Physical Review X, 14(3):031001, 2024. doi: 10.1103/PhysRevX.14.031001.DOI
- [8]Lénaïc Chizat and Francis Bach. On the global convergence of gradient descent for over-parameterized models using optimal transport. In Advances in Neural Information Processing Systems, volume 31, pp. 3040–3050, 2018.arxiv.org/abs/1805.09545
- [9]Mostafa Dehghani, Stephan Gouws, Oriol Vinyals, Jakob Uszkoreit, and Lukasz Kaiser. Universal transformers. In International Conference on Learning Representations, 2019.arxiv.org/abs/1807.03819
- [11]Nelson Elhage, Neel Nanda, Catherine Olsson, Tom Henighan, Nicholas Joseph, Ben Mann, Amanda Askell, Yuntao Bai, Anna Chen, Tom Conerly, Nova DasSarma, Dawn Drain, Deep Ganguli, Zac Hatfield-Dodds, Danny Hernandez, Andy Jones, Jackson Kernion, Liane Lovitt, Kamal Ndousse, Dario Amodei, Tom Brown, Jack Clark, Jared Kaplan, Sam McCandlish, and Chris Olah. A mathematical framework for transformer circuits. Transformer Circuits Thread, 2021. URL https://transformer-circuits.pub/2021/framework/index.html.
- [12]Shivam Garg, Dimitris Tsipras, Percy Liang, and Gregory Valiant. What can transformers learn in-context? a case study of simple function classes. In Advances in Neural Information Processing Systems, volume 35, pp. 30583–30598, 2022. doi: 10.52202/068431-2217.DOI
- [13]Jonas Geiping, Sean McLeish, Neel Jain, John Kirchenbauer, Siddharth Singh, Brian R. Bartoldson, Bhavya Kailkhura, Abhinav Bhatele, and Tom Goldstein. Scaling up test-time compute with latent reasoning: A recurrent depth approach. In Advances in Neural Information Processing Systems, volume 38, pp. 46242–46293, 2025. doi: 10.52202/085713-1380.
- [15]Joel Hestness, Sharan Narang, Newsha Ardalani, Gregory Diamos, Heewoo Jun, Hassan Kianinejad, Md. Mostofa Ali Patwary, Yang Yang, and Yanqi Zhou. Deep learning scaling is predictable, empirically. arXiv preprint arXiv:1712.00409, 2017.arxiv.org/abs/1712.00409
- [16]Jordan Hoffmann, Sebastian Borgeaud, Arthur Mensch, Elena Buchatskaya, Trevor Cai, Eliza Rutherford, Diego de Las Casas, Lisa Anne Hendricks, Johannes Welbl, Aidan Clark, Thomas Hennigan, Eric Noland, Katherine Millican, George van den Driessche, Bogdan Damoc, Aurelia Guy, Simon Osindero, Karén Simonyan, Erich Elsen, Oriol Vinyals, Jack Rae, and Laurent Sifre. An empirical analysis of compute-optimal large language model training. In Advances in Neural Information Processing Systems, volume 35, pp. 30016–30030, 2022. doi: 10.52202/068431-2176.
- [17]Jared Kaplan, Sam McCandlish, Tom Henighan, Tom B. Brown, Benjamin Chess, Rewon Child, Scott Gray, Alec Radford, Jeffrey Wu, and Dario Amodei. Scaling laws for neural language models. arXiv preprint arXiv:2001.08361, 2020.arxiv.org/abs/2001.08361
- [18]Marcel Kühn, Yoon Thelge, and Bernd Rosenow. A boundary-layer mechanism for one-third scaling in online softmax classification. arXiv preprint arXiv:2605.22341, 2026.arxiv.org/abs/2605.22341
- [19]Yann LeCun, Yoshua Bengio, and Geoffrey Hinton. Deep learning. Nature, 521:436–444, 2015. doi: 10.1038/nature14539.DOI
- [20]Yizhou Liu and Jeff Gore. Neural scaling universality: If exponents are fixed, time to understand coefficients. arXiv preprint arXiv:2606.25008, 2026.arxiv.org/abs/2606.25008
- [21]Yizhou Liu, Ziming Liu, and Jeff Gore. Superposition yields robust neural scaling. In Advances in Neural Information Processing Systems, volume 38, pp. 176757–176793, 2025. doi: 10.52202/085713-5320.DOI
- [22]Yizhou Liu, Sara Kangaslahti, Ziming Liu, and Jeff Gore. Inverse depth scaling from most layers being similar. In Proceedings of the 43rd International Conference on Machine Learning, volume 306, pp. 77093–77118, 2026a. URL https://proceedings.mlr.press/v306/liu26bt.html.arxiv.org/abs/2602.05970
- [23]Yizhou Liu, Ziming Liu, Cengiz Pehlevaln, and Jeff Gore. Universal one-third time scaling in learning peaked distributions. In Proceedings of the 43rd International Conference on Machine Learning, volume 306, pp. 77529–77558, 2026b. URL https://proceedings.mlr.press/v306/liu26cl.html.arxiv.org/abs/2602.03685
- [24]Yiping Lu, Chao Ma, Yulong Lu, Jianfeng Lu, and Lexing Ying. A mean-field analysis of deep ResNet and beyond: Towards provable optimization via overparameterization from depth. In Proceedings of the 37th International Conference on Machine Learning, volume 119, pp. 6426–6436, 2020. URL https://proceedings.mlr.press/v119/lu20b.html.arxiv.org/abs/2003.05508
- [25]Yue M. Lu, Mary Letey, Jacob A. Zavatone-Veth, Anindita Maiti, and Cengiz Pehlevan. Asymptotic theory of in-context learning by linear attention. Proceedings of the National Academy of Sciences, 122(28):e2502599122, 2025. doi: 10.1073/pnas.2502599122.DOI
- [26]Ang Lv, Ruobing Xie, Xingwu Sun, Zhanhui Kang, and Rui Yan. Language models “grok” to copy. In Proceedings of the 2025 Conference of the Nations of the Americas Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 2: Short Papers), pp. 735–741, 2025. doi: 10.18653/v1/2025.naacl-short.61.DOI
- [27]Song Mei, Andrea Montanari, and Phan-Minh Nguyen. A mean field view of the landscape of two-layer neural networks. Proceedings of the National Academy of Sciences, 115(33):E7665–E7671, 2018. doi: 10.1073/pnas.1806579115.DOI
- [28]Catherine Olsson, Nelson Elhage, Neel Nanda, Nicholas Joseph, Nova DasSarma, Tom Henighan, Ben Mann, Amanda Askell, Yuntao Bai, Anna Chen, Tom Conerly, Dawn Drain, Deep Ganguli, Zac Hatfield-Dodds, Danny Hernandez, Scott Johnston, Andy Jones, Jackson Kernion, Liane Lovitt, Kamal Ndousse, Dario Amodei, Tom Brown, Jack Clark, Jared Kaplan, Sam McCandlish, and Chris Olah. In-context learning and induction heads. arXiv preprint arXiv:2209.11895, 2022.arxiv.org/abs/2209.11895
- [29]Tomaso Poggio, Hrushikesh Mhaskar, Lorenzo Rosasco, Brando Miranda, and Qianli Liao. Why and when can deep—but not shallow—networks avoid the curse of dimensionality: A review. International Journal of Automation and Computing, 14(5):503–519, 2017. doi: 10.1007/s11633-017-1054-2.DOI
- [30]Grant M. Rotskoff and Eric Vanden-Eijnden. Parameters as interacting particles: Long time convergence and asymptotic error scaling of neural networks. In Advances in Neural Information Processing Systems, volume 31, pp. 7146–7155, 2018.
- [32]Utkarsh Sharma and Jared Kaplan. Scaling laws from the data manifold dimension. Journal of Machine Learning Research, 23(9):1–34, 2022.
- [33]Andreas Veit, Michael J. Wilber, and Serge Belongie. Residual networks behave like ensembles of relatively shallow networks. In Advances in Neural Information Processing Systems, volume 29, pp. 550–558, 2016.
- [34]Johannes von Oswald, Eyvind Niklasson, Ettore Randazzo, Joao Sacramento, Alexander Mordvintsev, Andrey Zhmoginov, and Max Vladymyrov. Transformers learn in-context by gradient descent. In Proceedings of the 40th International Conference on Machine Learning, volume 202, pp. 35151–35174, 2023. URL https://proceedings.mlr.press/v202/von-oswald23a.html.arxiv.org/abs/2212.07677
- [35]Ruiqi Zhang, Spencer Frei, and Peter L. Bartlett. Trained transformers learn linear models in-context. Journal of Machine Learning Research, 25(49):1–55, 2024.arxiv.org/abs/2306.09927
