arXiv:2608.28059cond-mat.dis-nnAug 2026

Manuscript Offprint

arXiv:2608.28059

Landau theory of quenched criticality in linear in-context learning

Daesik Kim, Sumin Choi, Hyojae Jeon, Jung Hoon Han

Daesik Kim, 1^{1} Sumin Choi, 1^{1} Hyojae Jeon, 1^{1} and Jung Hoon Han 1,2,∗^{1,2,*}

1^{1}Department of Physics, Sungkyunkwan University, Suwon 16419, South Korea

2^{2}Center 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 ξ\xi. The role of (magnetization) order parameter is played by ξ\xi, while the bare ridge parameter λ\lambda becomes its conjugate magnetic field. The normalized sample complexity τ\tau acts as a temperature and the double-descent singularity occurs at the critical temperature τc=1\tau_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)(\beta_{\mathrm{cr}}, \delta_{\mathrm{cr}}, \gamma_{\mathrm{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\sigma\varepsilon_{m} generate the output

ym=w⋅xm+σεm.(1.1)y_{m}=\mathbf{w}\cdot\mathbf{x}_{m}+\sigma\varepsilon_{m}. \tag{1.1}

Given a sequence of demonstrations {(xm,ym)}m=1ℓ\{(x_m, y_m)\}_{m=1}^\ell and a new query xℓ+1\mathbf{x}_{\ell+1}, the objective is to predict the corresponding yℓ+1y_{\ell+1}. In conventional regression, one would try to come up with a new estimator of w\mathbf{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)\hat{y}=\mathbf{P}\cdot\mathbf{H}, \tag{1.2}

where H encodes the training context and query, while the learning vector P contains d(d+1)=O(d2)d(d+1) = O(d^2) trainable parameters. Pretraining on n independent contexts amounts to fitting P to n regression constraints. The normalized sample complexity

τ=nd2(1.3)\tau=\frac{n}{d^{2}} \tag{1.3}

is the asymptotic sample-to-parameter ratio. The point τ=1\tau = 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\alpha = \ell/d, the task diversity κ=k/d\kappa = k/d, and the sample complexity τ=n/d2\tau = n/d^2. 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\tau = 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 ξ\xi. A central observation of this work is that its self-consistency equation can be integrated to define a Landau potential V(ξ)V(\xi). The normalized sample complexity τ\tau then appears as a temperature-like control parameter, while the ridge regularization λ\lambda enters as the conjugate field h=τλh = \tau \lambda. The curvature V′′(ξ∗)V''(\xi_*) at the stationary point defines a susceptibility

χ=1V′′(ξ∗).(1.4)\chi=\frac{1}{V^{\prime \prime}(\xi_{*})}. \tag{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 ξ∗\xi_{*} possesses a concrete geometric meaning. In the ridgeless limit, ξ∗\xi_{*} 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 ξ\xi.

For every fixed finite inverse context length γ=(1+σ2)/α>0\gamma = (1 + \sigma^2)/\alpha > 0, the asymptotic critical point lies at τc=1\tau_c = 1. The cubic Landau theory gives the critical exponents

(βcr,δcr,γcr)=(1,2,1),(1.5)(\beta_{\mathrm{c r}},\delta_{\mathrm{c r}},\gamma_{\mathrm{c r}})=(1,2,1), \tag{1.5}

which obey the Widom scaling relation. The phase diagram structure becomes considerably richer when the context length is large ( γ≪1\gamma \ll 1) and the task diversity κ\kappa is varied. For κ<1\kappa < 1, there appears a crossover line τ=κ\tau = \kappa separating what we call the “pseudogap” region κ<τ<1\kappa < \tau < 1 with highly suppressed order parameter ξ∗∼O(γ)\xi_* \sim O(\gamma). In the strict infinite-context limit γ→0\gamma \to 0 the crossover line τ=κ\tau = \kappa becomes a new phase boundary.

The endpoint κ=1\kappa = 1, in the strict infinite-context limit, is marked by a nonanalytic term ξ5/2\xi^{5/2} taking over the cubic term in the Landau potential. The point (κ,τ)=(1,1)(\kappa, \tau) = (1, 1) becomes a nonanalytic critical point with exponents

(βcr,δcr,γcr)=(2,3/2,1),(1.6)(\beta_{\mathrm{c r}},\delta_{\mathrm{c r}},\gamma_{\mathrm{c r}})=(2,3/2,1), \tag{1.6}

again satisfying Widom scaling. For small but finite γ\gamma, these exponents describe an intermediate crossover regime.

Predictions of the Landau theory are tested directly in the original learning problem. We extract ξ∗\xi_{*} directly by fitting the analytically predicted form of the quenched learning vector to numerical solutions obtained from explicitly generated pretraining samples. The resulting (κ,τ)(\kappa, \tau) 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.