Landau theory of quenched criticality in linear in-context learning
Daesik Kim, Sumin Choi, Hyojae Jeon, Jung Hoon Han
Daesik Kim, 1 Sumin Choi, 1 Hyojae Jeon, 1 and Jung Hoon Han 1,2,∗
1Department of Physics, Sungkyunkwan University, Suwon 16419, South Korea
2Center for Quantum Dynamics of Angular Momentum,
Pohang University of Science and Technology, Pohang 37673, Korea
(Dated: August 31, 2026)
In-context learning (ICL) allows a pretrained model to infer a new task from examples supplied in its prompt without updating its parameters. In linear models of ICL, the prediction error develops a double-descent singularity when the number of pretraining samples becomes comparable to the number of learnable parameters. We formulate this interpolation singularity as a critical phenomenon of a quenched disordered system. By comparing annealed and quenched descriptions of the same linear ICL model, we identify the connected sample-to-sample fluctuations of the learned parameters as the microscopic origin of the singular error. A Landau potential is constructed by integrating the cavity self-consistency equation for the renormalized ridge parameter ξ. The role of (magnetization) order parameter is played by ξ, while the bare ridge parameter λ becomes its conjugate magnetic field. The normalized sample complexity τ acts as a temperature and the double-descent singularity occurs at the critical temperature τc=1. The Landau susceptibility is precisely the quantity that diverges in the fluctuation contribution to the prediction error. The order parameter is closely related to the fraction of zero eigenvalues of the empirical relaxation matrix in the ridgeless limit, which define flat directions in the learning dynamics. The Landau theory is generically cubic in the order parameter with critical exponents (βcr,δcr,γcr)=(1,2,1). In the large-context regime, there appears a pseudogap-like regime characterized by suppressed order parameter. Predictions of the Landau theory are independently confirmed from numerical solutions of the original learning problem with good quantitative agreement. Our results pave the way for solid statistical-physics understanding of the interpolation criticality in linear in-context learning.
I. INTRODUCTION
A regression problem seeks to infer the relation underlying a set of input–output examples and to use that information to predict the output associated with a new input. Consider, for example, a family of linear tasks in which an unknown task vector w and random noises σεm generate the output
ym=w⋅xm+σεm.(1.1)
Given a sequence of demonstrations {(xm,ym)}m=1ℓ and a new query xℓ+1, the objective is to predict the corresponding yℓ+1. In conventional regression, one would try to come up with a new estimator of w for each fresh data set. In in-context learning (ICL), once the pretraining is complete, the parameters of the network remain fixed rather than adapted to new tasks. A new set of demonstrations is supplied through the prompt, and the task-dependent prediction is generated by the pretrained network. From the physics perspective, ICL is a scheme that learns the proper “response function” of the physical system at hand through training off of existing datasets, and gives out correct responses for fresh inputs without having to recalibrate the response function.
The modern study of ICL was catalyzed by the observation of Brown et al. that sufficiently large pretrained language models can perform new tasks from instructions and a small number of demonstrations provided through the prompt, without further parameter updates [1]. Subsequently, Xie et al. interpreted ICL as a form of implicit Bayesian inference in which a latent task or concept is inferred from the examples appearing in the context [2], while Chan et al. showed that its emergence depends sensitively on the statistical structure of the pretraining distribution [3]. Garg et al. showed that Transformers trained on families of simple functions can learn previously unseen linear functions from in-context examples with performance comparable to standard regression estimators [4]. This connection was sharpened by Akyürek et al., who demonstrated that Transformers can implement or approximate familiar learning algorithms in their forward computation [5], and by von Oswald et al., who established an explicit correspondence between linear self-attention and gradient-descent updates on regression problems [6].
The linear ICL model central to our study has the pretraining problem that is itself a high-dimensional regression; the predicted output takes the form
y^=P⋅H,(1.2)
where H encodes the training context and query, while the learning vector P contains d(d+1)=O(d2) trainable parameters. Pretraining on n independent contexts amounts to fitting P to n regression constraints. The normalized sample complexity
τ=d2n(1.3)
is the asymptotic sample-to-parameter ratio. The point τ=1 is then recognized as the interpolation threshold at which the number of training constraints becomes comparable to the number of trainable directions.
An asymptotically precise theory of the linear ICL (LICL) model was developed by Lu et al. [7], in terms of three normalized parameters: the context length α=ℓ/d, the task diversity κ=k/d, and the sample complexity τ=n/d2. Using the cavity method, they obtained the learned predictor and the
corresponding in-context learning and in-distribution generalization errors. In the ridgeless limit, the prediction error develops a double-descent singularity at the interpolation threshold τ=1. Subsequent work has investigated the role of pretrain-test task alignment and the broader scaling structure of in-context regression [8, 9], while related statistical-mechanical approaches have uncovered spin-glass structure in simplified models of ICL [10]. These developments provide increasingly precise descriptions of learning curves and generalization, but still leave open an elementary physics question: what quantity fluctuates critically at the interpolation threshold, and can the singularity be understood as a critical phenomenon in the spirit of Landau theory?
The question may have broader implication outside the scope of linear ICL. It has been shown that a qualitative change in statistical behavior can occur when the number of constraints becomes comparable to the number of trainable degrees of freedom [11–14]. Random-matrix theory further shows that the resulting prediction risk is controlled by the low-lying spectrum of empirical covariance and Gram matrices [15]. From the perspective of statistical physics, learning problems with random training sets are instances of disordered systems where decades of extensive literature exist. The distinction between annealed and quenched averages, the connected correlations that survive quenched disorder averaging, and their relation to susceptibilities and phase transitions are all central themes in the statistical mechanics of disordered systems [16–19]. Yet a firm connection between the physics of disordered systems and the observed interpolation peak in the theory of learning has not been established.
We pursue this viewpoint to its logical conclusion by developing an appropriate Landau theory of linear ICL near the threshold. Firstly, an annealing approach is developed to calculate the learning vector P and its results are compared to those of the cavity method of [7], which we now dub the quenching scheme. By comparing the two approaches, we firmly identify the divergence of training sample-to-sample fluctuations of the learning parameters to be the culprit behind the observed double descent behavior of the prediction error.
The cavity solution contains a self-consistent renormalized ridge parameter ξ. A central observation of this work is that its self-consistency equation can be integrated to define a Landau potential V(ξ). The normalized sample complexity τ then appears as a temperature-like control parameter, while the ridge regularization λ enters as the conjugate field h=τλ. The curvature V′′(ξ∗) at the stationary point defines a susceptibility
χ=V′′(ξ∗)1.(1.4)
The exact same susceptibility appears in the singular connected-fluctuation contribution to the quenched prediction error. The double-descent divergence is thus identified with a diverging Landau susceptibility.
The Landau order parameter ξ∗ possesses a concrete geometric meaning. In the ridgeless limit, ξ∗ is related to the fraction of zero eigenvalues of the empirical relaxation matrix. Each zero eigenvalue defined a “flat direction” along which no learning process takes place. The ordered phase is characterized by an extensive null space in the learning space rather than by conventional spontaneous symmetry breaking. The lack of symmetry-breaking interpretation also explains why the Landau functional generically contains a cubic term in ξ.
For every fixed finite inverse context length γ=(1+σ2)/α>0, the asymptotic critical point lies at τc=1. The cubic Landau theory gives the critical exponents
(βcr,δcr,γcr)=(1,2,1),(1.5)
which obey the Widom scaling relation. The phase diagram structure becomes considerably richer when the context length is large ( γ≪1) and the task diversity κ is varied. For κ<1, there appears a crossover line τ=κ separating what we call the “pseudogap” region κ<τ<1 with highly suppressed order parameter ξ∗∼O(γ). In the strict infinite-context limit γ→0 the crossover line τ=κ becomes a new phase boundary.
The endpoint κ=1, in the strict infinite-context limit, is marked by a nonanalytic term ξ5/2 taking over the cubic term in the Landau potential. The point (κ,τ)=(1,1) becomes a nonanalytic critical point with exponents
(βcr,δcr,γcr)=(2,3/2,1),(1.6)
again satisfying Widom scaling. For small but finite γ, these exponents describe an intermediate crossover regime.
Predictions of the Landau theory are tested directly in the original learning problem. We extract ξ∗ directly by fitting the analytically predicted form of the quenched learning vector to numerical solutions obtained from explicitly generated pretraining samples. The resulting (κ,τ) phase diagram reproduces both the strong suppression of the order parameter in the predicted pseudogap region and its crossover boundaries. The numerical results provide a strong confirmation that the Landau scheme is an excellent effective description of the linear ICL problem.
The paper is organized as follows. Section II formulates the linear ICL problem using physics-friendly terms and notations. Section III develops the annealed theory of ICL and shows that it contains no interpolation singularity. Section IV reviews the quenched cavity solution and isolates the connected fluctuation contribution as the source of divergent test error. Section V constructs the Landau functional with proper identification of the order parameter and its conjugate field. Implications of the Landau theory such as critical exponents, pseudogap regime are discussed. Section VI tests the predictions of Landau theory numerically by extracting the order parameter directly from simulated learning problems. Section VII summarizes the Landau-theory interpretation and shares future prospects.
II. FORMULATION OF LINEAR IN-CONTEXT LEARNING
The theory of ICL can be mathematically phrased as the problem of predicting the output yℓ+1 to the d-dimensional input xℓ+1 based on the known collective information regarding the input-output pairs xm=(xm,ym) ( 1≤m≤ℓ) with xm∈Rd and ym∈R [20]. The italic xm is employed to denote the input-output pair as a whole; the input part alone is denoted by the bold symbol xm. The collection of data {(x1,y1),…,(xℓ,yℓ),xℓ+1} is called the context, and number of input-output pairs ℓ is called the context length. The context includes ℓ number of question-answer pairs, plus a fresh question xℓ+1 for which an answer is sought. In LICL, the estimated output y^ℓ+1 to a given context is governed by the equation [7]
y^ℓ+1=ℓ1m=1∑ℓ(qℓ+1⋅km)ym.(2.1)
In a nutshell, this is a linear combination of known labels ym with weights given by the overlap between the query qℓ+1=Qxℓ+1 and the key km=Kxm vectors for each m-th token vector xm. There is a linear relation between existing labels {ym}m=1ℓ and the new one yℓ+1 in the LICL architecture. The same formula can be written as
y^ℓ+1=P⋅H.(2.2)
The d(d+1)-dimensional context vector H
H=xℓ+1⊗(ℓ1m=1∑ℓymxm),xm≡(ymdxm)(2.3)
encodes all the information contained in the context. The context information is organized in a highly nonlinear fashion through the context vector H. The learning vector P determines the optimal response of the network to a given context H to produce the correct output y^ℓ+1. For derivation of both formulas (2.2) and (2.3) see App. A.
The learning vector P is pretrained on a set of training tokens xmμ=(xmμ,ymμ), where xmμ∈Rd and ymμ∈R and 1≤m≤ℓ+1. Since this is a training set, the output value yℓ+1μ for the (ℓ+1)-th token xℓ+1μ is known. Training takes place over n different realizations called the sample complexity, with each realization labeled by μ. Readers familiar with the physics of disorder can easily associate each context μ with one disorder realization, and an average over the sample complexity as the ensemble average over many disorder realizations.
For each μ-th training set (or disorder realization), a task vector wμ is assigned to define the input-output relation in a quasi-linear fashion [21]:
ymμ=wμ⋅xmμ+σεmμ.(2.4)
The input training vectors and the random noise are both Gaussian,
xmμ∈N(0,Id/d),εmμ∈N(0,1).
The task vector wμ is drawn from a pool of task vectors
Ω={w1,⋯,wk}.(2.5)
Each wp ( 1≤p≤k) is generated from a certain distribution Ptr:wp∼Ptr. A typical choice is Ptr=N(0,Id) but others are possible. The number of different task vectors k in Ω is called the task diversity. When task diversity k is less than the sample complexity n, each task vector may be drawn more than once in the course of training.
For each training set μ, we define the context vector Hμ
in accord with the general definition of H in (2.3). The predicted value for y^ℓ+1μ associated with the μ-th training set is P⋅Hμ, which is to be compared with the true output yℓ+1μ. The difference gives rise to the loss function
H(P)=μ=1∑n(yℓ+1μ−P⋅Hμ)2+dnλP⋅P(2.7)
with a ridge parameter λ(>0). The gradient-flow dynamics for P follows from
dtdP≡−2nd∇PH(P)=−RP+S,(2.8)
with the relaxation matrix R and the source vector S given by
Taking the inverse of R assumes that all its eigenvalues are non-zero, which is not necessarily guaranteed in the ridgeless limit λ=0 where
Rλ→0+R0=ndμ=1∑nHμ(Hμ)⊤.(2.11)
The d(d+1)-dimensional vectors {Hμ}μ=1n are random and almost surely linearly independent if n≤d(d+1). By the standard theory of linear algebra, the non-zero eigenvalues of (n/d)R0 are the same as those of the n×n-dimensional Gram matrix Γ∈Rn×n, whose elements are Γμν≡Hμ⋅Hν. Γ is non-degenerate if and only if Hμ are linearly independent. It follows that rankR0=rankΓ=min(n,d(d+1)), and therefore the fraction of zero eigenvalues of R0 is
The eigenvectors in the kernel space of R0 define the non-learning, or the flat directions because the gradient of the loss function along those directions is zero. The gradient flow preserves any initial component of the learning vector P∞ in the flat directions. The inverse R−1 is accordingly taken only in the learning subspace, spanned by eigenvectors with positive eigenvalues. The flat-direction density of the relaxation matrix ρflat will eventually be related to the order parameter in the Landau theory of LICL we develop later.
In the infinite-context limit ℓ/d→∞, each vector Hμ can be replaced by its context average
Hμℓ/d→∞xℓ+1μ⊗νμ,νμ=(wμ∣wμ∣2/d+σ2).(2.13)
The randomness of Hμ is thus determined by that of the two d-dimensional vectors xℓ+1μ and wμ. While the maximum number of independent vectors for xℓ+1μ is d, that of independent wμ is limited by the size k of the task pool Ω. As ∣wμ∣2/d+σ2 is nonlinear in wμ, at most d+1νμ-vectors can be linearly independent even if the corresponding wμ are not. Consequently, the maximal number of linearly independent Hμ is dmin(k,d+1), which is less than d(d+1) before taking the infinite-context limit. By the same linear-algebra argument as for the finite-context case, one can conclude that rankR0=min(n,dmin(k,d+1))=min(n,dk,d(d+1)), and the total flat-direction density is modified to
ρflatℓ/d→∞1−min(d(d+1)n,d+1k,1).(2.14)
The distinction between the finite-context flat-direction density in (2.12) and the infinite-context expression in (2.14) will play a crucial role in understanding the crossover phenomena in the Landau theory of LICL later.
As in [7], we are interested in the scaling limit of the theory where all the parameters diverge but their ratios are finite [7]:
α=dℓ,κ=dk,τ=d2n.(2.15)
From now on we refer to these scaled parameters as the normalized context length ( α), task diversity ( κ), and sample complexity ( τ), respectively. All of them play an important role as parameters in the upcoming Landau theory.
Once the learning vector P∞ is obtained, its ability to predict the output yℓ+1 correctly under new circumstances is tested using the test context
The crucial difference from the training context is that the task vectors wte used in the testing phase are drawn from their own distribution wte∼Pte, which may well differ from Ptr. For each wte, the correct output yℓ+1te is to be compared with the predicted one, P∞⋅Hte, where
A quantitative measure of the test error is given by
E=E[(yℓ+1te−P∞⋅Hte)2],(2.19)
where E[…] means taking the average over all random variables in the training/testing sets such as xmμ, xmte, as well as over the task vectors in both the training/testing stages. The two-tiered averaging is compactly expressed as
E[…]=Ete[Etr[…]],(2.20)
where Etr/te[…] averages over the random variables as well as the task vectors in the corresponding training or testing stage. The pretraining task pool Ω remains fixed throughout the averaging process, which is why Eq. (2.20) is well-defined even when Pte depends on Ω. An asymptotic expression that is independent of the choice of Ω is obtained using random matrix theory.
The test error (2.19) can be written more explicitly as
The test average Ete[⋯] can be performed straightforwardly. Performing the training average Etr is much trickier since P∞≡R−1S involves the inverse of the random matrix R. A most straightforward scheme is
We refer to such scheme as annealing, in analogy with similar use of the terminology in the physics of disorder. A more sophisticated approach will try to evaluate Etr[P∞] and Etr[P∞P∞⊤] as accurately as possible without relying on the above approximation. One such scheme called the cavity method has been exploited in [7]. In that scheme, which we will refer to as quenching, one finds Etr[P∞]=(Etr[R])−1Etr[S] and furthermore
In the language of statistical physics, this is saying that sample-to-sample fluctuation effects are being captured in the quenching scheme. The covariance of P∞ diverges at the critical value of the sample complexity τc=1 [7], suggesting the analogy to critical phenomena and the interpretation of sample complexity τ as the temperature. This observation is what prompted us to construct the Landau theory of LICL.
III. ANNEALING SCHEME
A. Calculating annealed averages and learning vectors
The annealing scheme can be viewed as solving the gradient-flow equation (2.8) under the approximation R→Etr[R],S→Etr[S]:
(dtd+Etr[R])P(t)=Etr[S].(3.1)
The equilibrium solution is
P∞A=(Etr[R])−1Etr[S].(3.2)
The two averages Etr[R] and Etr[S] are computed in the so-called joint asymptotic limit [7] where all the scaled parameters in (2.15) are held fixed as we take d→∞. Since n scales with d2 but k only scales as d, the joint asymptotic limit automatically implies n≫k, so that each training task vector wp gets picked O(d)≫1 times. This allows to replace the empirical average with the statistical one:
n1μ=1∑nf(wμ)→k1p=1∑kf(wp).(3.3)
For any quantity f(w) that depends on the task vector wμ, one can evaluate the empirical average on the left side with the average k−1∑p=1k, which can be evaluated analytically for a given distribution Ptr of the training task vectors.
When Ptr=N(0,Id), we can show (see App. B for derivation)
The matrix vectorization convention vec[uv⊤]=u⊗v was used in reaching the last line of Eq. (3.4). The annealed optimal learning vector P∞A in Eq. (3.2) becomes
The sample complexity τ disappears from P∞A and all subsequent calculations in the annealing scheme. The τ-dependence is restored in the quenching scheme, reproducing the annealing-scheme result in the τ→∞. In the Landau theory, τ plays the role of temperature and τ→∞ corresponds to the infinite-temperature limit where traditionally mean-field-type theories are known to work and critical fluctuations vanish.
The spectral properties of the covariance matrix Ctr play a vital role in both annealing and quenching schemes. In the spectral representation,
Ctr=k1p=1∑kwpwp⊤=j=1∑dλjmjmj⊤,(3.8)
where {mj}j=1d is an orthonormal eigenbasis with eigenvalues {λj}j=1d. Ctr is a Wishart matrix, whose eigenvalue distribution converges to the Marchenko–Pastur (MP) distribution as d→∞. Relevant details from random matrix theory are summarized in App. C. Since rank(Ctr)=min(k,d) almost surely, the fraction of zero eigenvalues of the d×d matrix Ctr is given by max(1−κ,0). The eigenvalues are normalized according to
d1j=1∑dλj=d1TrCtr=dk1p=1∑kwp⋅wp⟶1(3.9)
in the joint asymptotic limit. This normalization convention will be used in both annealing and quenching schemes.
B. General error estimation
The general definition of error introduced in Eq. (2.21) reduces, under the annealing scheme, to
as an analogue to Etr. Details of the computation can be found in App. D. Explicit calculation shows that, for the two types of test error that will be discussed shortly, terms containing btr and bte are O(1/d) compared to terms that do not, and can be ignored in the joint asymptotic limit (see App. E). The annealed error formula (3.12) then reduces to a function of the covariance matrices Ctr and Cte:
Evaluation of the error EA depends on the specific choices of the covariance matrices Ctr and Cte, which follow from their respective distributions Ptr and Pte. As in [7], we consider two kinds of Pte leading to the in-distribution generalization (IDG) error and the in-context learning (ICL) error:
Loosely put, the IDG case with Cte=Ctr tests how well the pretrained tasks have been memorized, whereas the ICL case with Cte=Ctr tests the network’s performance for unknown tasks.
For IDG, the first line in the error (3.14) vanishes:
See App. F for derivation. These expressions do not depend on the specific choice of the task pool Ω and only on the task diversity κ. One can show EICLA−EIDGA≥0, which is understandable since IDG draws test task vectors from the same batch as those used in the training. The two annealed error functions in Eq. (3.20) do not diverge for any value of the parameters. However, there is a nonanalytic singularity in the ICL error that deserves some discussion.
In the limit λ→0+, we can show
λ(Ctr+λId)−1=Id−Ctr(Ctr+λId)−1λ→0+Π0,
(3.21)
where Π0 is the projector onto the zero-eigenvalue subspace of Ctr (see App. F for the proof) with the property
d1Tr[Π0]=max(1−κ,0).
This is precisely the fraction of zero eigenvalues of the matrix Ctr; it vanishes when Ctr becomes full-rank. Inserting the projector in Eq. (3.21) into the annealed error formula (3.14) and taking the limit λ→0+ yields
EIDGA⟶σ2,EICLA⟶σ2+max(1−κ,0).(3.22)
The same expressions are obtained by expanding Eq. (3.20) to the leading order in λ. While the IDG error shows no dependence on the task diversity κ in the limit λ=0, the ICL error develops an additional κ-dependent, nonanalytic contribution for 0<κ≤1. The derivation of Eq. (3.22) via the projector Π0 demonstrates that the origin of this nonanalyticity is the distribution mismatch [first line on the right-hand side of Eq. (3.14)], which vanishes for the IDG error.
IV. QUENCHING SCHEME
The cavity technique employed in [7] is a more sophisticated way to compute the average P∞Q=Etr[R−1S] which differs from the product of averages, Etr[R]−1Etr[S]. Additionally, the average of the product Etr[P∞P∞+] no longer equals the product of averages, P∞Q(P∞Q)⊤. The latter feature, in particular, leads to the singular behavior in the error at the critical value of sample complexity τc=1. Dubbed the double-descent [7], the feature bears clear resemblance to the critical phenomena in statistical physics.
The quenching scheme, i.e. the cavity method, gives the learning vector [7]:
Compared to the analogous expression in the annealing scheme in (3.7), the quenched averages P∞Q has the renormalized ridge parameter ξ replacing the bare ridge parameter λ. It is determined self-consistently by the equation [7]
ξ2Iκ(γ+ξ)−τλ=ξ(1−τ),(4.2)
with Iκ(z) introduced in (3.19). In the τ→∞ limit, the self-consistency equation gives ξ=λ and P∞Q reduces to P∞A. The renormalized ridge parameter ξ is finite for all τ, which ensures the finiteness of P∞Q as well.
The test error in Eq. (2.21) under the quenching scheme can be expressed as
where Cov(P∞) is the covariance of P∞ given in Eq. (2.23). The test average calculations Ete[⋯] are identical to the annealing case and need not be repeated. Zeroth-order error E0Q remains finite as P∞Q is finite. The fluctuation part E1Q is given by [7]
The overall degree of fluctuation is captured by the scalar ce. In the limit τ→∞, the fluctuation contribution E1Q vanishes, while the zeroth-order contribution E0Q reduces to the annealed error EA. This is the limit where n=d2τ, the number of pretraining sample contexts, far exceeds the number of trainable parameters in P. In this case, the empirical averages over n samples in the definitions of the relaxation matrix R and the source vector S [Eq. (2.9)] converge to their distribution averages Etr[…], so that the full quenched learning dynamics of Eq. (2.8) is essentially captured by the annealed dynamics of Eq. (3.1). In the Landau-theory interpretation, τ→∞ corresponds to the infinite-temperature limit where connected correlations vanish.
Substituting the test task distributions in Eq. (3.15) into Eq. (4.4) and combining this with the results of the annealing scheme in Eq. (3.20) while replacing λ by ξ, the IDG and ICL errors under quenching are obtained as [7]
where ζ=γ+ξ. Terms that contain btr and bte become negligible in the joint asymptotic limit and do not contribute to Eq. (4.5).
Taking the limits α,τ→∞ simultaneously while fixing the ratio c∗=α/τ and the ridgeless limit λ=limτ→∞ξ=0, Eq. (4.5) becomes [7]
EIDGQEICLQ⟶σ2,⟶σ2+(1+1+σ2σ2c∗)max(1−κ,0).
(4.6)
Setting c∗=0 reproduces the λ=λ+γ=0 limit of the annealed errors in Eq. (3.22), as c∗=0 is equivalent to first taking the limit τ→∞ and then γ=(1+σ2)/α→0+, and for τ→∞, the quenched errors in Eq. (4.5) reduce to their annealed counterparts in Eq. (3.20).
V. LANDAU THEORY OF LICL
The fluctuation part of the error given in Eq. (4.4) was obtained for general choice of distributions for the testing task vectors. The divergence of the error encapsulated in the constant ce is therefore a universal feature of the LICL that calls for a general interpretation. We construct a Landau theory that provides such a framework.
The self-consistency equation for ξ,
ξ(τ−1)+ξ2Iκ(γ+ξ)−τλ=0,(5.1)
follows as the stationary solution V′(ξ∗)=0 of the potential
V=2τ−1ξ2+∫0ξduu2Iκ(γ+u)−hξ.(5.2)
We argue that this is the desired Landau functional for the order parameter ξ. The sample complexity τ is the temperature, while the ridge parameter λ plays the role of conjugate field h≡τλ. At zero field h=0, the order parameter vanishes at the critical temperature τc=1. Critical exponents can be computed readily from the Landau theory.
A. Landau theory for finite γ
A critical region is where, by definition, the order parameter ξ becomes very small. For finite inverse context length γ, this critical regime obeys γ≫ξ and the Landau functional can be expanded as
V≃2tξ2+3Iκ(γ)ξ3−hξ,(t≡τ−1).(5.3)
The cubic term in ξ is allowed because ξ, being a non-negative variable by definition, lacks the ξ→−ξ symmetry. As a consequence, the order parameter ξ does not bear the ordinary interpretation of spontaneously broken symmetry. We give an alternative, geometric interpretation of the order parameter shortly. The saddle-point equation (5.3) is solved by
where V′′(ξ)=τ−1+2ξIκ(γ+ξ)+ξ2Iκ′(γ+ξ). Explicit calculation near τ=τc gives
χ=t2+4Iκ(γ)h1,(5.8)
which diverges as ∼∣t∣−1 at h=0, resulting in the critical exponent
γcr=1.(5.9)
The three critical exponents (βcr,δcr,γcr)=(1,2,1), obey the Widom scaling relation
γcr=βcr(δcr−1).(5.10)
The fluctuation coefficient ce in (4.4) is proportional to the susceptibility:
ce=V′′(ξ∗)A(ξ∗)=A(ξ∗)χ.(5.11)
For fixed γ>0, the critical saddle satisfies ξ∗→0, and
A(ξ∗)→A(0)=σ2+γ−γ2Iκ(γ)>0.(5.12)
Thus, A(ξ∗) remains finite and nonzero in the fixed- γ critical limit, and ce∼A(0)χ inherits the divergence of χ. This conclusion is not uniform in the strict limit γ→0. The phase diagram for finite γ is a very simple one, with the critical temperature τc=1 and the associated critical exponents (βcr,δcr,γcr)=(1,2,1).
What is the meaning of the order parameter ξ∗? From the cavity method [7], we know that the inverse of the relaxation matrix R is asymptotically given by
R−1=Id⊗λξ(Etr+ξId+1)−1.(5.13)
Taking the trace on both sides, we obtain
d2λTr[R−1]==dξTr[(Etr+ξId+1)−1]ξIκ(γ+ξ).
(5.14)
Since R=R0+λI, the left-hand side selects in the ridgeless limit λ→0 the zero eigenvalues of the ridgeless relaxation matrix R0, which gives nothing but its flat-direction density ρflat defined in Eq. (2.12). We have thus established a relation between the order parameter ξ∗ and the geometric quantity ρflat in the zero-field limit h=τλ=0,
ρflat=Iκ(γ+ξ∗)ξ∗.(5.15)
Recall that the flat-direction density of R0 previously obtained in Eq. (2.12) becomes
ρflat=(−t)Θ(−t)(5.16)
in the joint asymptotic limit. Since Iκ(γ+ξ∗)≃Iκ(γ) near criticality, plugging Eq. (5.16) into the relation (5.15) indeed reproduces the zero-field critical solution in Eq. (5.5).
B. Crossover behavior for γ≪ξ∗≪1
In the large-context-length regime γ≪1, there are situations where the order parameter ξ∗, though small, is still much larger than γ. This regime, γ≪ξ∗≪1, deserves a special attention as it displays significant depression of the order parameter somewhat reminiscent of the crossover behavior. In this crossover regime, γ+ξ is small and the resolvent Iκ(γ+ξ) can be replaced by its asymptotic expression:
In the high-task-diversity ( κ>1) regime, the resolvent Iκ(z)→κ/(κ−1) stays finite and all the discussion of critical exponents including the critical temperature τc=1 from the previous subsection remains unchanged.
The low-task-diversity regime κ<1 is more interesting because the singular behavior of the resolvent leads to the saddle-point equation
(τ−κ)ξ∗−(1−κ)γ+ξ∗γξ∗+1−κκ2ξ∗2−h=0.(5.18)
In the crossover regime γ≪ξ∗, solving this equation at h=0 gives
This means that when the temperature τ is sufficiently below κ, the critical temperature appears to have shifted to κ<1. Indeed, if we take the γ→0+ limit first, this will be the new transition temperature predicted by the Landau theory.
Assuming that γ is small but still finite, there will eventually be a critical regime ξ∗≪γ≪1, where the correct saddle-point equation to deal with is
ξ∗[τ−1+γ1−κξ∗]=0,(5.20)
with the solution
ξ∗≃γ1−κ1−τΘ(1−τ).(5.21)
The true critical temperature is τc=1. Moreover, one can show that the residual order in the entire pseudgap region κ<τ<1 has the scaling behavior ξ∗=O(γ). Analyzing the saddle-point equation (5.18) for finite h, we find the same critical exponents (βcr,δcr,γcr)=(1,2,1) in both crossover and critical regimes. Plots of the exact solution to the self-consistent equation (5.1) shown in Fig. 1 illustrate the behavior of ξ∗ described above near the crossover and critical temperatures τ=κ and τc=1, respectively, as well as how the size of the residual order shrinks as γ→0.
The crossover phenomenon can be understood geometrically using the relation (5.15) of the order parameter with the flat-direction density of the relaxation matrix ρflat. In the crossover regime γ≪ξ∗≪1, Eq. (5.15) becomes
ρflat≃1−κ+1−κκ2ξ∗.(5.22)
On the other hand, the infinite-context limit ( γ=0) of the flat-direction density ρflat obtained earlier as Eq. (2.14) becomes, in the joint asymptotic limit,
ρflat=1−min(τ,κ,1).(5.23)
For κ<1, this reduces to ρflat=1−min(τ,κ). Substituting this expression into the left-hand side of Eq. (5.22) and rearranging terms, we recover the crossover solution for ξ∗ previously obtained in Eq. (5.19).
(a) κ=0.5
(b) κ=0.7
FIG. 1: Order parameter ξ∗ as a function of τ below the critical temperature τc=1 for several values of κ<1 and γ≪1. The crossover temperature τ=κ is indicated by hollow circles. The residual order in the crossover region κ<τ<1 diminishes as γ→0.
In the critical regime ξ∗≪γ≪1, the relation (5.15) becomes
ρflat≃γ1−κξ∗.(5.24)
In this regime, we resort to the finite-context behavior of ρflat in Eq. (5.16) and thereby reobtain the critical solution (5.21) from Eq. (5.24). Such recovery of expressions for ξ∗ bolsters the claim that the origin of the order parameter is indeed geometric.
The temperature τ=κ defines a true critical temperature only when we take the γ→0+ limit first. In that regard, the small residual order parameter of size O(γ) can be viewed as a result of the fluctuations created by small but finite γ.
At κ=1, which marks the endpoint of the pseudogap regime, we use the asymptotic expansion for I1(z) in (5.17) to write down the appropriate saddle-point equation,
tξ+γ+ξξ2−21ξ2−h=0.(5.25)
FIG. 2: Schematic phase diagram for γ≪1 in the (κ,τ) plane. The transition between the ordered phase ξ∗>0 and disordered phase ξ∗=0 occurs at τc=1 (solid line). Above the crossover temperature τ=κ (dashed line), the ordered phase exhibits a small residual order ξ∗=O(γ) characteristic of a pseudogap regime. When we take the γ→0 limit first, the crossover line becomes the exact phase transition. Furthermore, the nonanalytic critical point (NCP) at (κ,τ)=(1,1) develops new critical exponents (βcr,δcr,γcr)=(2,3/2,1) different from the rest of the phase diagram where (βcr,δcr,γcr)=(1,2,1).
Since it is assumed that γ+ξ≪1, we can ignore the −ξ2/2 term and solve the equation for h=0:
ξ∗=2t2−tt2+4γ≃{(−t)γt2(−t≪γ)(−t≫γ).(5.26)
As long as γ is small but nonzero, the region −t≪γ corresponds to the critical regime, ξ∗≪γ, and the critical exponents are the same as before. For γ=0, however, the region −t≪γ vanishes, and with the new critical solution ξ∗≃t2, the critical exponent βcr changes to 2. To obtain other critical exponents in the strict infinite-context limit γ=0, it is convenient to first derive the Landau functional valid in that regime:
V≃2tξ2+52ξ5/2−hξ.(5.27)
Due to the nonanalytic ξ5/2 term in the Landau expansion, the critical exponents are now
(βcr,δcr,γcr)=(2,23,1).(5.28)
They also satisfy the Widom scaling. (κ,τ)=(1,1) becomes a nonanalytic critical point (NCP) with these critical exponents. A schematic phase diagram valid for γ≪1 is shown in Fig. 2.
VI. NUMERICAL TESTS OF LANDAU THEORY
The analytic Landau theory predicts two distinct regimes for the order parameter ξ∗ in the ordered phase τ<1: an O(γ0) regime and an O(γ1) pseudogap regime. We perform an independent numerical check on this. At each point (κ,τ), we choose k and n as the nearest integers to κd and τd2, respectively, in accordance with the definition in Eq. (2.15). For numerical simulation we choose d=30. A given choice of γ fixes α=(1+σ2)/γ through Eq. (3.6), and then ℓ is chosen as the nearest integer to αd.
For each (κ,τ), we generate B independent task pools Ω(1),…,Ω(B) of the form given in Eq. (2.5), with B up to 1024. Each task vector wp is drawn independently and uniformly from a sphere Sd−1(d). For each task pool Ω(b), we generate G independent realizations of the pretraining data {x1μ,y1μ,…,xℓ+1μ,yℓ+1μ}μ=1n with the relation of each pair (xmμ,ymμ) as defined in Eq. (2.4). Each task vector wp is used approximately [n/k] times in the generation process. Each context vector Hμ is generated according to the formula (2.6). For each realization 1≤b≤B and 1≤g≤G, the relaxation matrix R(b,g) and the source vector S(b,g) are constructed according to Eq. (2.9), and the stationary learning vector is obtained by solving the linear equation R(b,g)P∞(b,g)=S(b,g). We set σ2=0 in the numerical simulation.
The quantities btr,(b), Ctr,(b), and Etr,(b) are constructed from a given pool Ω(b) for each 1≤b≤B using Eqs. (3.5) and (3.6). A non-negative value of the order parameter is then obtained by
The formula (6.1) provides an independent means of extracting ξ∗ without relying on the self-consistency equation (4.2).
Figure 3 shows the map of ξ∗ extracted from this scheme for γ=10−1 and γ=10−2. In the latter case, the pseudogap behavior with suppressed order parameter is prominent over the region bounded by τ=1 and τ=κ in accordance with the predictions of the Landau theory. An additional comparison between ξ∗ extracted from the empirical scheme in Eq. (6.1) and the self-consistency equation (5.1) finds an excellent fit, as shown in Fig. 3(c), bolstering the reliability of the extraction scheme.
We also performed calculations in which ξ∗ obtained from the empirical formula (6.1) over various values of (γ,κ,τ) were fit to the putative power-law relation ξ∗∝γp(κ,τ). To extract the exponent p(κ,τ) at each fixed (κ,τ), we fit logξ∗ against logγ using γ∈{10−2.5,10−2,10−1.5,10−1}, and identified p(κ,τ) with the obtained slope. The resulting map in Fig. 4 in the (κ,τ) plane shows a rapid but smooth increase from p(κ,τ)≈0 to p(κ,τ)≈1 at the crossover line τ=κ, again in good agreement with the predictions of the Landau theory.
(a) γ=10−2
(b) γ=10−1
(c) κ=0.6
FIG. 3: Plot of the order parameter ξ∗ in the (κ,τ) plane for (a) γ=10−2 and (b) γ=10−1. The solid and dashed white lines are the true critical line τ=1 and crossover line τ=κ, respectively. Other parameters used are d=30, λ=10−5, and σ=0. A small shift ξ∗→ξ∗+10−5 was made to avoid numerical instability of the logarithm at small ξ∗. Depression of the order parameter in the pseudogap region is highly visible for very small value of γ used in (a). (c) Comparison of the order parameter extracted from Eq. (6.1) (hollow marks) with the theoretical curves obtained by solving the self-consistency equation (5.1) at κ=0.6.
VII. SUMMARY AND DISCUSSION
We have demonstrated that the interpolation singularity of linear in-context learning can be interpreted as a genuine critical phenomenon of a quenched disordered system. The key diagnostic is the contrast between annealed and quenched av-
FIG. 4: Map of the numerically extracted power-law exponents p in the assumed scaling relation ξ∗∝γp. The ordered phase τ<1 separates into two distinct scaling regimes with p≈0 and p≈1 (pseudogap region), divided by the theoretically predicted crossover line τ=κ (dashed line).
eraging. By performing both calculations and contrasting their outcome, we conclude that the double-descent peak is indeed a manifestation of a divergent connected fluctuation in the learning parameter.
Integrating the self-consistent equation for the renormalized ridge parameter immediately leads to the Landau potential V(ξ). Minimizing the Landau potential leads to the physical order parameter ξ∗. The normalized sample complexity τ and the bare ridge parameter λ are mapped to temperature and magnetic-field variables in the Landau theory, respectively. The associated Landau susceptibility, proportional to the inverse of the curvature V′′(ξ∗), controls the singular fluctuation contribution to the quenched test error and explains its divergence as the divergent susceptibility at the critical point in the usual sense of critical phenomena. The meaning of the order parameter is, being closely related to the density of zero modes in the relaxation matrix, geometric rather than tied to the conventional notion of spontaneous symmetry breaking. In line with such interpretation, the Landau potential generically contains a cubic term in the order parameter that leads to critical exponents (βcr,δcr,γcr)=(1,2,1).
We identify a pseudogap-like behavior for large context lengths. This occurs above the crossover temperature τ=κ and below the true critical temperature τ=1, when the task diversity parameter κ is less than one. A substantial depletion of the order parameter proportional to γ characterizes the pseudogap region. The endpoint κ=1 provides a particularly intriguing situation where, in the strict γ=0 limit, the Landau functional acquires a nonanalytic ξ5/2 dependence with the associated critical exponents (βcr,δcr,γcr)=(2,3/2,1).
The order parameter ξ∗ can be extracted directly from numerical solutions of the original learning problem, without relying on the cavity self-consistency equation. The results are in very good agreement with conclusions drawn from analysis of the Landau theory. The agreement supports the idea that there are indeed aspects of in-context learning that can be understood in the framework of conventional Landau theory. The treatment of input vectors as random variables in the learn-ing model suggests close analogy to the disorder problem in physics. In the future, we plan to employ powerful techniques of disorder such as the replica method to bring out heightened connection between the theory of learning and the theory of disordered systems.
ACKNOWLEDGMENTS
JHH was supported by the National Research Foundation of Korea (NRF) grant funded by the Korea government(MSIT) (Grant No. 2023R1A2C1002644 and No. RS-2024-00410027). He thanks Yue M. Yu for sharing his insights on linear ICL.
[1] T. B. Brown et al., in Advances in Neural Information Processing Systems, Vol. 33 (2020) pp. 1877–1901.
[2] S. M. Xie, A. Raghunathan, P. Liang, and T. Ma, in International Conference on Learning Representations (2022) arXiv:2111.02080.
[3] S. C. Y. Chan, A. Santoro, A. K. Lampinen, J. X. Wang, A. K. Singh, P. H. Richemond, J. L. McClelland, and F. Hill, in Advances in Neural Information Processing Systems, Vol. 35 (2022) pp. 18878–18891.
[4] S. Garg, D. Tsipras, P. Liang, and G. Valiant, in Advances in Neural Information Processing Systems, Vol. 35 (2022) pp. 30583–30598, arXiv:2208.01066.
[5] E. Akyürek, D. Schuurmans, J. Andreas, T. Ma, and D. Zhou, in International Conference on Learning Representations (2023) arXiv:2211.15661.
[6] J. von Oswald, E. Niklasson, E. Randazzo, J. Sacramento, A. Mordvintsev, A. Zhmoginov, and M. Vladymyrov, in Proceedings of the 40th International Conference on Machine Learning, Proceedings of Machine Learning Research, Vol. 202 (2023) pp. 35151–35174.
[8] B. Bordelon, M. I. Letey, and C. Pehlevan, Theory of scaling laws for in-context regression: Depth, width, context and time (2025), arXiv:2510.01098 [stat.ML].
[9] M. I. Letey, J. A. Zavatone-Veth, Y. M. Lu, and C. Pehlevan, Pretrain-test task alignment governs generalization in in-context learning (2025), arXiv:2509.26551 [stat.ML].
[10] Y. Li, R. Bai, and H. Huang, Phys. Rev. E 112, L013301 (2025).
[11] M. Belkin, D. Hsu, S. Ma, and S. Mandal, Proceedings of the National Academy of Sciences 116, 15849 (2019).
[12] T. Hastie, A. Montanari, S. Rosset, and R. J. Tibshirani, The Annals of Statistics 50, 949 (2022).
[13] P. L. Bartlett, P. M. Long, G. Lugosi, and A. Tsigler, Proceedings of the National Academy of Sciences 117, 30063 (2020).
[14] P. Nakkiran, G. Kaplun, Y. Bansal, T. Yang, B. Barak, and I. Sutskever, Journal of Statistical Mechanics: Theory and Experiment 2021, 124003 (2021).
[15] E. Dobriban and S. Wager, The Annals of Statistics 46, 247 (2018).
[16] H. S. Seung, H. Sompolinsky, and N. Tishby, Physical Review A 45, 6056 (1992).
[17] L. Zdeborová and F. Krzakala, Advances in Physics 65, 453 (2016).
[18] Y. Bahri, J. Kadmon, J. Pennington, S. S. Schoenholz, J. Sohl-Dickstein, and S. Ganguli, Annual Review of Condensed Matter Physics 11, 501 (2020).
[19] M. Opper and D. Saad, eds., Advanced Mean Field Methods: Theory and Practice (MIT Press, Cambridge, Massachusetts,
2001).
[20] Each xm may represent features of a house such as its location, size, number of bedrooms and bathrooms, etc. and the output ym is the house's price based on the information provided in xm.
[21] In principle the relation can be an arbitrary polynomial of xmμ, but here we are confined to a quasi-linear relation for the possibility of analytic treatment.
[22] Z. Bai and J. Silverstein, Spectral Analysis of Large Dimensional Random Matrices (Springer New York, NY, 2010).
[23] K. Ahn, X. Cheng, M. Song, C. Yun, A. Jadbabaie, and S. Sra, Linear attention is (maybe) all you need (to understand transformer optimization) (2024), arXiv:2310.01082 [cs.LG].
Appendix A: Derivation of the formula for y^ℓ+1 in linear in-context learning
The ML network is provided with a set of ℓ input-output pairs {xm}m=1ℓ,xm=(xm,ym), whose relation must be inferred to return a reliable prediction for the output yℓ+1 to a new input xℓ+1. Schematically, the task at hand for ICL is to correctly capture the map
xℓ+1ICLyℓ+1.(A1)
In the theory of LICL [7], this is done by appealing to the linear self-attention ( ℓSA) mechanism [23]:
xn′=xn+ℓ1m=1∑ℓ(qn⋅km)vm.(A2)
where n runs from 1 through ℓ+1. We set xℓ+1=(xℓ+1,0) with 0 being the placeholder for yℓ+1. The prediction for yℓ+1, denoted y^ℓ+1, is then obtained as the (d+1)-th component of xℓ+1′. The key, query, and value vectors are defined in the usual way of the Transformer:
km=Kxm,qm=Qxm,vm=Vxm,(A3)
with suitable choices of matrices K,Q,V. The value vector vm∈Rd+1 has the same dimension as the token vector xm, but the key and query vector dimensions may be different. In reality, the inner product
qn⋅km=xn⊤(Q⊤K)xm≡xn⊤Mxm(A4)
depends on a single matrix M=Q⊤K, not on Q and K individually. This is also the case with the full Transformer architecture where, instead of the linearized (and un-normalized) weight qn⋅km weight, a full softmax function is employed to enforce the SA mechanism. The adoption of ℓSA layer allows for the development of an elegant and analytically tractable theory of ICL as described below.
Using M=Q⊤K, the prediction y^ℓ+1 follows from the ℓSA formula (A2) as
Due to the break-up of each token xm into a d-dimensional input component xm and a scalar output component ym, it proves convenient to make an analogous decomposition of the M and V matrices as
with Mxx,Vxx∈Rd×d, Mxy,Myx,Vxy,Vyx∈Rd, and Myy,Vyy∈R. Since xℓ+1=(xℓ+10)⊤, we get
xℓ+1⊤Mxm=xℓ+1⊤Mxxxm+ymxℓ+1⊤Mxy,(A7)
where Myx,Myy do not appear and may as well be set to zero from the outset. Also in
[Vxm]d+1=Vyx⊤xm+Vyyym,(A8)
we choose to set Vyx=0 and focus on the part containing ym. This assumption allows us to write
[Vxm]d+1→Vyyym,
and furthermore let Vyy be absorbed in the re-definition of Mxx and Mxy in (A7). As a result, we obtain a very simple expression for y^ℓ+1 based on ℓSA mechanism:
where qℓ+1=Qxℓ+1 and km=Kxm. It allows us to treat y^ℓ+1 as the average of existing labels ym, weighted by the overlap between the query vector qℓ+1 and the key vector km for each m-th token. The formula (A9) reproduces the result in [7], using the formalism and notations most familiar to physicists.
For further progress, we re-cast the inner product qℓ+1⋅km as
where the last expression is the Frobenius product between two d×(d+1)-dimensional matrices (MxxMxy) and xℓ+1xm⊤. Now, y^ℓ+1 is given by the Frobenius product
The re-scaling of the spatial component of xm by d is intended to keep all the terms in H scale similarly in the large- d limit. Using the vectorization convention vec[uv⊤]=u⊗v, the vector H can also be written as in Eq. (2.3). Now the prediction for yℓ+1 becomes neatly formulated as an inner product of two vectors:
y^ℓ+1=P⋅H.(A13)
One of them, called the learning vector P, consists of d(d+1) parameters to be tuned by machine learning. The other, denoted H, contains all the existing information on the context {xm}m=1ℓ, plus the information on the test input xℓ+1 needed to accurately predict yℓ+1. The purpose of training (learning) is to identify the optimal learning vector P. One may well regard the formula (A13) together with the P and H vectors in (A12) as the definition of the LICL scheme [7].
Appendix B: Computation of the annealed relaxation matrix and source vector
We motivate the annealing approach by decomposing the field vector Hμ in (2.6) as the average plus the fluctuation:
In accordance with [7], we assume wμ∼Unif(Sd−1(d))—which is indistinguishable from N(0,Id) for sufficiently large d—and set ∣wμ∣2=d, aμ=1+σ2. The fluctuation is captured by ημ:
ημ=ℓ(ℓ1m=1∑ℓymμxmμ−νμ),
(B3) where the ℓ factor reflects the deviation from the mean ∝ℓ. The source vector S in (2.9) is similarly decomposed:
S=ndμ∑yℓ+1μxℓ+1μ⊗(vμ+ℓ1ημ).(B4)
Inserting Hμ in (B1) into Hμ(Hμ)⊤ gives the conditional average
with the mean and covariance matrix of the k unique training task vectors w1,…,wk in Eq. (2.5),
btr≡k1p=1∑kwp,Ctr≡k1p=1∑kwpwp⊤.(B14)
Here we assumed that the number of training samples n far exceeds the task diversity k, such that we can replace the average over n samples of task vectors by an average over Unif( Ω):
n1μ∑E(wμ)→k1p∑E(wp).(B15)
For the same reason, in Eq. (B8) we can make the replacement
n1μ∑wμ⊗vμ→k1p∑wp⊗(wp1+σ2).(B16)
This completes the annealing of the relaxation matrix and the source vector:
when k and d are taken to infinity simultaneously with the fixed ratio κ=k/d [22]. The integral ∫λ−λ+ρMP(λ)dλ=1 saturates to one, meaning that all eigenvalues are, statistically speaking, nonzero. The result holds when the task diversity k exceeds the dimension of the task vector d. The Wishart matrix reaches full rank with its d eigenvalues distributed with probability ρMP(λ).
In the other case κ=k/d<1, the Wishart matrix is low-rank with some eigenvalues equal to zero. The eigenvalue distribution follows
The continuous part of the distribution gives ∫λ−λ+dλρMP(λ)=κ. The delta function gives the remaining weight 1−κ=(d−k)/d. There are ≈d−k zero eigenvalues, and only k nonzero eigenvalues.
Throughout this work, the MP law is applied via its Stieltjes transform [22],
For the third average in Eq. (D1), note that Hte in Eq. (2.18) has the same form as Hμ in Eq. (2.6) except for the change in superscript μ→te. Following the steps similar to Eqs. (B5) to (B11), we obtain
where E(wte) and δE(wte) are as defined in Eq. (B11). δE(wte) does not cause any divergence for nonzero ℓ and vanishes in the joint asymptotic limit, so that we can write
Appendix E: Order estimation of the btr-dependent terms in the annealed test error
To show that the btr-dependent terms in the annealed test error [Eq. (3.12)] are negligible in the joint asymptotic limit, we first compute the elements of the inverse matrix (Etr+λId+1)−1 explicitly,
We conclude that, for any small but nonzero λ, all terms of the test errors containing btr vanish in the joint asymptotic limit. This is consistent with the fact that, in [7], the ridgeless limit (λ=0) was taken only after the joint asymptotic limit.
Appendix F: Derivation of the annealed ICL and IDG Errors
In this appendix, we collect the spectral manipulations leading to the annealed ICL and IDG errors used in the main text. Note first that, since the eigenvalues {λj}j=1d of Ctr follow the MP distribution ρMP(λ) in the joint asymptotic limit, we have the asymptotic equivalence
which, substituted into the spectral representations of the annealed errors in Eq. (3.18), give Eq. (3.20). For the ICL error, we first rewrite the spectral representation as
The error difference is strictly positive for λ>0. Its limit as λ→0+ depends on the task diversity; Employing the small-z behavior of Iκ(z) in Eq. (5.17), we obtain
λ→0+lim(EICLA−EIDGA)=max(1−κ,0).(F9)
Thus, for κ<1, the ICL–IDG error gap remains 1−κ because of the zero-eigenvalue sector of Ctr, whereas it vanishes for κ≥1.
To show Eq. (3.21), which reveals the origin of the nonanalyticity at κ=1, we use the spectral decomposition of Ctr in Eq. (3.8):
λ(Ctr+λId)−1=j=1∑dλj+λλmjmj⊤.(F10)
In the limit λ→0, the coefficients satisfy
λj+λλ⟶{0,1,λj>0,λj=0,
which implies Eq. (3.21). Eq. (3.22) is then obtained by exploiting the properties of a projector, e.g. Π02=Π0.