Transient structural dynamics in in-context linear regression TransformersDynamics of Transient Structure in In-Context Linear Regression Transformers
At intermediate M, in-context linear regression transformers first approximate ridge then turn to dMMSE; the authors explain this with LLC.
- During training, the network transitions between different computational modes. In in-context linear regression, under moderate task diversity M, the transformer first behaves like ridge, then specializes to the finite tasks in the training set (dMMSE). The authors want to describe and explain this transient ridge.
- Train a 2-layer transformer with mean squared error on nested task distributions. Joint trajectory PCA compares in-distribution trajectories across M and projects dMMSE and ridge. Then estimate LLC with SGLD and compare against the loss–complexity trade-off as sample size varies.
- For M≤128, fully trained behavior approximates dMMSE; for M≥362, it approximates ridge; at intermediate M, out-of-distribution loss is non-monotonic and trajectories first lean toward ridge. In Figure 3, the loss difference between the two shrinks with M, and the low-M LLC enters a plateau after M=32. The authors state the results are qualitatively similar on smaller architectures.
- The authors point out: the correspondence with the ideal predictors is unclear; lower-order terms are assumed to cancel; the specific form of dynamic internal model selection is undetermined; why high M no longer leaves ridge remains open. The experiments include the main architecture and three smaller architectures in Appendix I, Table 1 uses seed 1, and the paper does not report multiple seed repetitions.
- Evaluated models
- 2-layer transformer (d = 2.65M)
- Benchmarks
- in-context linear regressionnested multi-task q_M(S)D^(1), D^(M), D^(∞)
- Metrics
- per-token MSEOOD loss on D^(∞)local learning coefficient (LLC)joint trajectory PCA explained variance
When trained on in-context linear regression tasks with moderate task diversity, Transformers first behave like ridge regression and then specialize to tasks within the training distribution; the authors call this transient ridge. Joint trajectory principal component analysis reveals this transition from a general solution to a specialized one, and the authors provide a general explanation based on Bayesian internal model selection theory, grounded in the changing trade-off between loss and complexity. The authors also measure model complexity via the local learning coefficient and empirically validate this explanation.
Paper analysis
What problem does this paper attempt to solve?
Under moderate task diversity, the transformer first approximates ridge, then specializes to the dMMSE on the training set.
Why networks switch between different computational modes during training; this paper studies the transient ridge in in-context linear regression.
- Setting: The authors follow Raventós et al. (2023) in constructing sequences with task diversity M. A fully trained transformer may behave approximately like dMMSE (the posterior mean under a uniform prior over the M tasks, meaning it remembers these tasks in some way), or like ridge (the posterior mean under the Gaussian prior from which these tasks originally came, independent of M and generalizing to new tasks).
- Gap in existing observations: Panwar et al. (2024, §6.1) report non-monotonic out-of-distribution loss at intermediate M, suggesting the model first approaches ridge then turns to dMMSE. The authors state that this analysis is brief, and neither “memorizing solutions have lower loss” nor “biased toward simplicity” alone explains it: why does the less accurate generalizing solution appear first, and why does it later recede?
- Authors' hypothesis: Rather than prioritizing accuracy or simplicity alone, they hypothesize a loss–complexity trade-off that evolves during training, qualitatively similar to Bayesian internal model selection (Watanabe, 2009, §7.6; Chen et al., 2023). The dominant term of complexity is taken as the local learning coefficient (LLC).
- What this paper does: Reproduces the transient ridge; uses joint trajectory PCA to compare in-distribution function trajectories across different M; estimates the LLC of fully trained transformers and tests whether loss differences and complexity differences match the tiered expectation above.
What related research exists?
Related work covers internal structure, transient phenomena, their explanations, and Bayesian internal model selection.
Internal computational structure
- Mechanistic interpretability examples: Hewitt and Manning (2019) probe syntax in language models, McGrath et al. (2022) analyze chess knowledge in AlphaZero, Olah et al. (2020), Cammarata et al. (2020), Elhage et al. (2021) discuss circuits and other internal structure. The paper only cites these as examples, without methodological comparison to this work.
- Data distribution shapes algorithms: Chan et al. (2022) identify data properties necessary for in-context learning to appear in in-context classification. Raventós et al. (2023) show in in-context linear regression (Garg et al., 2022; Akyürek et al., 2023; von Oswald et al., 2023; Bai et al., 2024) that changing task diversity changes the algorithm approximated after full training.
Transient structure
- Grokking in the opposite direction: Power et al. (2022) train transformers on modular arithmetic and first memorize the training set mapping, then generalize to unseen examples; Nanda et al. (2023) relate this to an internal addition algorithm.
- Transient in-context learning: Singh et al. (2024) in the classification setting of Chan et al. (2022) observe predictions gradually shifting from relying on in-context examples to memorizing labels, losing generalization to new mappings.
- Predecessor of transient ridge: Panwar et al. (2024, §6.1) observe in in-context linear regression that out-of-distribution loss is first low and then specializes. The authors call this transient ridge, and state that relative to that section, this paper's empirical analysis is deeper and provides an explanation. Hoogland et al. (2024), Edelman et al. (2024), Park et al. (2024), He et al. (2024) are listed as other transient examples in language modeling, Markov sequences, and modular arithmetic.
Explanations of transients and internal model selection
- Mechanistic models in classification settings: Nguyen and Reddy (2024) use a simplified model to discuss that in-context learning learns faster than in-weight learning, and that adding regularization to the induction mechanism can make it yield later. Chan et al. (2024) use regret bounds to explain: on rare classes, in-context is initially more accurate; as data for that class increases, in-weight becomes more accurate due to limitations of its induction mechanism. The authors state that relative to these models, this paper gives a higher-level explanation of which solution is preferred at different stages of training.
- Accuracy and simplicity each have their say: Singh et al. (2024) and Park et al. (2024) point out that if the memorizing solution has lower loss, the final preference for memorization is not surprising, but one still must ask why the less accurate generalizing solution appears first. Panwar et al. (2024) speculate that the initial appearance of the generalizing solution may come from an inductive bias toward simplicity, but the authors state this still does not explain its later decline.
- Bayesian internal model selection: Chen et al. (2023) report that transitions between different encoding schemes in small autoencoders are consistent with Bayesian inference. Hoogland et al. (2024) and Wang et al. (2024) use the same theory to detect the formation of structures such as induction circuits in small language models. The authors state that this paper is the first to analyze in detail, from this perspective, the transition between two transformer solutions.
Baselines and data: The behavioral comparison is against dMMSE and ridge from Raventós et al. (2023). The data is nested multi-task in-context linear regression; relative to that paper, the task sets are made nested, and σ²=0.125 (that paper uses 0.25). The authors note that this paper's model is smaller and wider, so some results cannot be directly compared.
The authors position this paper as incorporating both accuracy and simplicity: using a tradeoff that evolves with training to explain that the simpler, less accurate ridge appears first and is then replaced by the more complex, more accurate dMMSE; and state that this explanation can also apply to other settings, tested here in in-context linear regression.
How does the paper address this problem?
Use joint trajectory PCA to characterize trajectories, and explain transient ridge with a loss–LLC tradeoff.
The authors view transient ridge as a deflection of the trajectory between ridge and dMMSE, and give a qualitative explanation via a loss-complexity tradeoff that changes with training; behavior is viewed with joint trajectory PCA, and complexity is estimated with LLC.
Data, loss, and the two predictors
- Nested task distribution: Given a task t∈R^D, x comes from N(0,I_D), y comes from N(t transpose times x, σ²). Fix K=16, D=8, σ²=0.125. First draw an unbounded i.i.d. Gaussian task sequence, then let T_M be its first M entries, and q_M be the uniform distribution on T_M; q_∞ is N(0,I_D). Nesting ensures the root task t_1 appears in every finite M, so models can be compared on q(S|t_1). The dataset size during training corresponds to a total sample N=153,600,000.
- Objective: For each context length k, compute the mean squared error between prediction and label, then average over k=1 to K to get the empirical loss ℓ_N; the population loss takes the expectation over the data distribution. Both training and evaluation use predictions for each masked context, not only the last token. The authors state that in sufficiently long contexts, many regression algorithms give the same prediction on late tokens, so tracking early tokens makes the function output more representative of internal structure.
- dMMSE: The minimum mean squared error predictor under finite M and distribution q_M. The current task estimate is a weighted average of the M training tasks, with weights determined by the squared error of the observed input–label pairs relative to each task, so it explicitly depends on the task set T_M.
- ridge: The minimum mean squared error predictor under q_∞. At k=1 the task estimate is 0; otherwise it is L2-regularized least squares with regularization coefficient σ². As M goes to infinity, the dMMSE task estimate converges almost surely to ridge, so for large but finite M, ridge is approximately optimal; but any finite M can still reduce the expected loss on q_M by specializing to T_M, at the cost of higher loss on other tasks. Both estimates agree asymptotically on realizable tasks with infinitely long sequences, but the priors differ, and the difference is larger on early tokens, especially in the underdetermined regime k≤D.
Training setup
- Main architecture: 2-layer pre-layer-norm, decoder-only transformer with learnable positional embeddings; H=4, d_embed=d_MLP=512, d=2.65 million trainable parameters. Tokenization writes (x,y) pairs into R^{D+1}, and reads out the first component of every other token as the prediction; output dimensions not read out do not participate in training or evaluation. Appendix I additionally trains three smaller 2-layer architectures.
- Optimization: Adam, no explicit regularization, weight decay 0, β=(0.9, 0.999), batch 1024, T=150k steps. The learning rate linearly increases from 0 to 0.003 over the first 50k steps, then stays constant. All M use the same PyTorch default initialization. The authors state that except for M=182 and 256, where the loss is still decreasing very slowly at the end, the models are trained to convergence; the fixed duration is for comparison.
- M and checkpoints: M ranges from 1 to 2^15, and includes ∞; Figure B.1b lists the specific values. The checkpoint set C has size 2203, formed by the union of 1500 linear points at step intervals of 100 and logarithmically spaced points.
Joint trajectory PCA
- Encoding: View the model at parameters w as a map from sequences to K-dimensional predictions. Fix B=512 sequences D^(1) from q_1 (the root task is shared across task sets), and concatenate the K predictions of each sequence into a point in R^{BK}. Stack the checkpoints of each M by row, then concatenate vertically, and do PCA on the joint matrix. The main text uses v=2; the explained variance is 27.5% (Figure 1).
- Projection: The first v columns of the mean-centered right singular vectors span the essential subspace. The development of each M is a curve in this subspace; the i-th coordinate is called PC-over-time. dMMSE_M and ridge are encoded and projected using the same batch of sequences, but after the PCA, so they do not enter the fit. The loss and PC curves in Figure 1 are lightly smoothed with a Gaussian kernel of standard deviation 20 (Appendix D); the raw curves are also given.
- Authors' caveat about the method: Appendix C.1 warns that principal components of a stationary diffusion process can be Fourier modes, and Lissajous curves can appear on (PC_j, PC_k), so turns need not come from meaningful signal; it is best to check with independent information. The authors state that in this paper, they only interpret such turns as transient ridge when they align with the out-of-distribution loss trend.
Explanation via internal model selection
- Qualitative prediction: The authors borrow Bayesian internal model selection from singular learning theory. The posterior log-odds of two neighborhoods U, V equals the difference of their log marginal likelihoods. Under certain technical conditions, the Bayesian local free energy near a solution is asymptotically the empirical loss times n, plus the LLC of that solution times log n, plus O_p(log log n) and lower-order contributions such as the prior.
- Tradeoff equation: If lower-order terms cancel, and one solution has higher loss and lower LLC, then the sign of the log-odds changes with n. The authors write log(pn(U))/(pn(V))=Δℓn· n+Δλ·log n+Op(loglog n). Here Δℓ_n is the difference in empirical loss between the two solutions, Δλ is the difference in LLC, and n is the sample size. For small sample size, the simpler but less accurate neighborhood is preferred; after log(n)/n crosses the threshold determined by the ratio of loss difference to LLC difference, the more accurate but more complex neighborhood is preferred.
- Expectations for three regimes of M: For low M, the authors expect both the loss and LLC of dMMSE to be far below ridge, so training should go directly to dMMSE. For moderate M, they expect dMMSE to have lower loss but higher LLC, so training first goes toward ridge, then turns to dMMSE, with the number of steps to the turn increasing with M. For high M, they expect dMMSE to have only slightly lower loss and much higher LLC, so training should stay at ridge before the end. For M between these three regimes, the authors expect the dynamics to change gradually. Figure 2 is a conceptual diagram, drawing LLC as sharpness, not a measured loss landscape.
- Relation to optimization: The authors state clearly that networks are usually trained by stochastic gradient optimization, not Bayesian inference. They treat the equation as a qualitative analogy for a not-yet-formalized "dynamic internal model selection," and use it to predict transient ridge, rather than claiming the training posterior equals the Bayesian posterior.
How LLC is estimated
- Object: LLC depends on the architecture; the authors state that the LLC of the ideal predictors cannot be meaningfully measured, so they only measure the fully trained transformer: the endpoint for low M represents the dMMSE solution, and the endpoint for high M represents the ridge solution. The estimator is the average increase in empirical loss of nearby parameters relative to that point under a local Gibbs posterior, multiplied by nβ.
- Sampling: Uses SGLD. The main estimate uses 8 independent chains, 4000 steps each, discarding the first 2500 steps, then taking a value at each step; nβ=30, step size ε=0.00005, localization strength γ=0.01, batch size m=1024. Table 2 records the number of drawn steps as 1500 and burn-in as 2500, consistent with the 4000-step description. Hyperparameters are chosen on a subset of runs and checkpoints where the estimate is insensitive to ε (called the elbow in the text), and nβ and ε are made as large as possible under this constraint. Loss is also directly estimated on the ideal predictors and training endpoints under q_M, to check whether the loss difference shrinks with M.
What experiments did the paper conduct?
Low M approximates dMMSE, M≥362 approximates ridge; at intermediate M, out-of-distribution loss first decreases then increases.
Experimental setup
- Model: Main results use a transformer with L=2, H=4, d_embed=d_MLP=512 (2.65 million parameters). Appendix I additionally reports three architectures with L=2: H=1 with d_embed=d_mlp=128, H=4 with d_embed=d_mlp=128, and H=4 with d_embed=d_mlp=256.
- Data: D=8, K=16, σ²=0.125; task sets are nested. The specific list of M and each t_crit is in Figure B.1b, from 1 to 32768 and ∞. Evaluation sets D^(1), each D^(M), and D^(∞) each contain B=512 items, resampled independently of training sequences.
- Training: Each trajectory runs T=150k steps, Adam, batch 1024, maximum learning rate 0.003, linearly increased over the first 33.3% of steps then constant, weight decay 0. The seed in Table 1 is 1, and all M share the same initialization. Total training samples are 153,600,000.
- Checkpoints: |C|=2203, with 1500 points linearly spaced every 100 steps, and the rest logarithmically rounded according to T and N=1000. Figure 1 and t_crit use the Gaussian smoothing from Appendix D (standard deviation 20).
- Metrics: Per-token mean squared error then averaged over context length. Out-of-distribution loss is computed on a fixed D^(∞)∼q_∞; for M=∞ this is in-distribution rather than out-of-distribution. t_crit^M is defined as the checkpoint where this loss (smoothed) is minimized. PCA features are predictions on D^(1).
- LLC: No LLM judge. The main estimate uses the SGLD hyperparameters from Appendix F (8 chains, 4000 steps, burn-in 2500, nβ=30, ε=0.00005, γ=0.01, m=1024). The tuning scan uses shorter chains (burn-in 500 then 1000 samples). The paper does not report repeated training across multiple random seeds.
Main results
The table below lists only the t_crit from Figure B.1b and the behavior description for that M in §4.3. Omitted M values are 2, 4, 6, 24, 32, 46, 64, 90, 512, 724, 2048, 4096, 8192, 16384, 32768; the t_crit for these rows is still in Figure B.1b, and this paper does not combine them into a single number.
M t_crit (Figure B.1b) Behavior in §4.3 1 0.00k Low M, goes directly to dMMSE 8 1.86k Partial descent, same as M=6 16 2.57k {16,24,…,128}: out-of-distribution loss first decreases then increases 128 14.70k Low-diversity upper bound, fully trained approximates dMMSE 182 24.90k Converges between dMMSE and ridge 256 29.70k Between the two; partial ascent, same as 182 362 28.30k Above threshold, approximates ridge ∞ 150.00k Goes directly to ridge and does not leave - The authors state that fully trained models with M≤128 behave approximately like dMMSE_M, M≥362 converge to points behaving approximately like ridge, and M∈{182,256} fall between the two. In Figure B.1b, t_crit is not larger for every larger M; for example, the M=362 row is lower than the M=256 row; 2048 and 16384 are also lower than some larger M. The authors do not explain these alternations.
- The authors state that for intermediate M below the threshold, out-of-distribution loss first decreases toward ridge then rises to dMMSE_M; M∈{6,8} show only partial descent, and M∈{182,256} show only partial ascent. The Figure 1 caption states that in the essential subspace these trajectories lean toward ridge while heading to dMMSE; above the threshold they go directly to ridge and do not leave. The explained variance of the two-dimensional PCA is 27.5%.
- The authors state that PC2 correlates with the behavioral difference between dMMSE (as M increases) and ridge, and also with out-of-distribution loss; PC1 correlates with loss on q_1 and a kind of “development time” (Appendix C.2, Figure C.1). They also state that the turning points in the time-series PCA are only adopted as this interpretation after checking against out-of-distribution loss.
Loss differences and LLC
- What was measured: The top panel of Figure 3 compares the loss of the ideal predictor and the fully trained transformer on q_M; the bottom panel shows LLC estimates at the endpoints for each M, with the dashed line being the high-M estimate the authors take as the LLC of the ridge solution.
- Results: The authors state that the loss difference of the ideal predictor shrinks with M, and the transformer losses on both sides of the threshold are close to their respective algorithms. The high-M LLC converges to that dashed line; the low-M LLC representing dMMSE rises with M and crosses that line at the start of the transient. The authors state that the LLC estimate for dMMSE enters a plateau above M=32.
- Authors' interpretation: The trends in loss and LLC are consistent with the three-tier expectation in §5.3. For the plateau, the authors describe it in the main text as Surprisingly and consider that the approximation reached by the fully trained transformer may be incomplete. The axis ticks are visible in the figure, but the main text does not give LLC values for each point, so no values are read from the axis here.
Other architectures and full-training LLC
- Appendix I: Three smaller architectures also report out-of-distribution loss, joint trajectory PCA, endpoint loss and LLC, and LLC-over-time curves. The captions state that PC-over-time behavior is similar across the four architectures, endpoint loss and LLC are qualitatively similar, and the task-diversity threshold rises as the model grows; Appendix H.1 states that the threshold is slightly lower for smaller architectures and capacity constraints may play a role, but the authors do not rule out other causes and do not give the specific M of the threshold for each architecture.
- Appendix G: Applies LLC estimation across training, not just at endpoints. Except for very small M, the curves show an early plateau and an LLC decrease late in training; the authors compare this to the developmental stages described by Hoogland et al. (2024) on M=∞ and mention that in that paper the later stage is accompanied by partial internal weight collapse. For some earlier intermediate M, LLC shows a spike near t_crit; for later intermediate M the spike is weaker or absent, but endpoint LLC is still above the M=∞ baseline.
- Authors' interpretation: The spike is interpreted as a transition from a low-complexity proto-ridge to a high-complexity proto-dMMSE. For M where the spike is not prominent, the authors consider that t_crit is close to the LLC-decrease stage shared by all models, and the competition may be masked by other development. Appendix G also states that any checkpoint is not necessarily a local minimum, and the estimate is stable only after sufficiently calibrating the localization strength.
Other ablations and analyses
- Appendix C.3 / Figure C.2: After extending to v=4, the caption states that transient ridge is visible in (PC2, PC4), with f_128 showing a sharp deviation.
- Appendix C.4: Trajectories using only logarithmic checkpoints are similar to linear-plus-logarithmic; using only linear checkpoints, the dominant variation pattern differs. The main text does not give quantitative distances.
- Appendix C.5: B∈{1,4,16,128} with each containing the previous; the caption states that trajectory PCA is relatively stable for B≥16, and B=16 already resembles B=512.
- Appendix E: Across M, loss changes on D^(1) are mainly for k≤5. Average loadings show k=3,4,5 contribute most to PC2, k=1,2 are strong for PC3, and later tokens are the main contributors to PC4. The main text does not give values for A_{i,k}.
- Appendix F.4: Under the chosen hyperparameters, RPD is below 1% for 16/25 checkpoints and below 2% for 22/25. SGLD loss trajectories for low-M endpoints remain underconverged. Geweke diagnostics mostly fall outside [-2,2]; the authors state that this diagnostic is sensitive to small trends, so they do not adopt these extreme values.
- Appendix A.3: For M=182 and 256, loss is still decreasing very slowly at the end of 150k steps. Appendix H compares four possibilities—capacity, training steps, neuroplasticity loss, and non-Bayesian pretraining—and the authors state there is no definitive conclusion.
What are some points that can be further explored?
The authors list high M no longer leaving ridge, lower-order terms, and the principle of dynamic selection as open problems.
Limitations and future directions noted by the authors
- Gap from the ideal predictor (§6.1): The analysis is mainly based on in-distribution behavior; it is unclear whether transformers can or do faithfully approximate the ideal predictor for all input sequences; it is also unclear whether the solution governing training dynamics is the one converged to. The authors treat the intermediate parameters in Appendix G as another candidate and suggest using mechanistic interpretability to examine the actually occurring solutions in the future.
- Lower-order terms (§6.2): §5.2 assumes that the lower-order terms of the two free energy expansions cancel. If they are not equal, their difference enters the posterior log-odds, especially affecting small n. The authors state that singular learning theory has discussed these terms, but they are less well studied than the LLC, and future work could deepen the theory or clarify their role in internal model selection.
- Dynamics and Bayesian selection (§6.3): The authors state that the primary object is network development rather than Bayesian selection itself. There is further evidence that loss and LLC play dominant roles, but the exact form of “dynamic internal model selection” and the precise roles of the two remain to be determined.
- Why transients stop (§6.4): Bayesian internal model selection implies that ridge should eventually give way to the more complex but more accurate dMMSE; after reproducing Raventós et al. (2023), however, a task-diversity threshold is observed above which the model no longer leaves ridge. Appendix H discusses capacity constraints, undertraining, neuroplasticity loss, and the specific differences between Bayesian selection and dynamic selection, but states that no definitive conclusion is reached and leaves it as an open question.
- Other sequence settings and grokking (§6.5): The phenomenon of transitioning from a generalizing solution to a memorizing solution has appeared in the settings of Singh et al. (2024), Hoogland et al. (2024), Edelman et al. (2024), He et al. (2024), and Park et al. (2024); the opposite direction is grokking (Power et al., 2022; Nanda et al., 2023). The authors state these are objects of future empirical work. The specific trade-off in §5 does not explain the transition of decreasing complexity; the authors state that if lower-order terms are included, the Bayesian framework could still describe such transitions (see §6.2).
- The principle is not yet fully discovered (opening of §6): The authors state that existing results support understanding transient ridge through an evolving loss/complexity trade-off, but the principle governing this trade-off is not yet fully discovered, only qualitatively similar to Bayesian internal model selection.
Experimental coverage
- The main text trains and evaluates a 2-layer transformer (L=2, H=4, d_embed=d_MLP=512, 2.65 million parameters); Appendix I additionally gives out-of-distribution loss, PCA, endpoint loss, LLC, and LLC-over-time curves for three 2-layer architectures.
- The values of M and smoothed t_crit are listed in Figure B.1b, from 1 to 32768 and ∞; each trajectory is trained for 150k steps, the seed in Table 1 is 1, and all M share the same initialization. The paper does not report repetitions across multiple random seeds.
- Joint trajectory PCA is done on D^(1) with shared root tasks, with B=512 in the main text; Appendix C.5 compares B∈{1,4,16,128}. The ideal predictor is projected after PCA and not included in the fit. Out-of-distribution evaluation uses a fixed D^(∞) with B=512.
- The LLC is computed on fully trained parameters, and on training checkpoints in Appendix G; sampling is SGLD, with hyperparameters and diagnostics in Appendix F. Appendix F.4 states that for low M endpoints, the chains under the chosen hyperparameters remain underconverged.
- Appendix A.1 states the differences from Raventós et al. (2023): that paper uses σ²=0.25, L=8, d_embed=128, H=2, while this paper uses σ²=0.125 and a smaller but wider model; that paper uses batch 256 and 500k steps, while this paper uses batch 1024 and 150k steps, with total samples about 153M versus 128M. The authors state that some results therefore cannot be directly compared.
Summarize the main content of the paper
Under moderate M, the trajectory goes through ridge and then turns toward dMMSE; the authors relate this to a loss–LLC tradeoff that changes with training.
This work describes and explains transient ridge in in-context linear regression: under moderate task diversity, the transformer first behaves like a generalizable ridge, then specializes to the finite tasks in the training set.
- Problem: According to Raventós et al. (2023), a fully trained model may approximate dMMSE or ridge. Panwar et al. (2024, §6.1) already saw non-monotonic out-of-distribution loss for moderate M. The authors want to see how in-distribution behavior deflects, and use an evolving loss-complexity tradeoff to explain why a less accurate generalizing solution appears first and is then replaced.
- Approach: The task sets are nested, K=16, D=8, σ²=0.125. The main architecture is a 2-layer, 2.65 million parameter transformer, trained for 150k steps, with M from 1 to 2^15 and ∞. Joint trajectory PCA projects the prediction trajectories of each M on the shared root task into the same subspace, then projects two ideal predictors. The explanation comes from singular learning theory: under the assumption that lower-order terms cancel, the posterior log-odds of two solutions are governed by the loss difference times sample size competing with the LLC difference times log n. LLC is estimated with SGLD at the end of training.
- Behavioral results: The authors state that for M≤128 the fully trained model approximates dMMSE, for M≥362 it approximates ridge, and M∈{182,256} falls in between. For M∈{16,24,…,128}, the out-of-distribution loss first decreases toward ridge and then rises toward dMMSE; for M∈{6,8} there is only a partial decrease, and for M∈{182,256} only a partial increase. The two-dimensional PCA in Figure 1 explains 27.5% of the variance; the caption states that trajectories for moderate M deflect toward ridge on the way to dMMSE. In Figure B.1b, t_crit generally becomes later with M, but not every row is greater than a smaller M.
- Complexity results: In Figure 3, the loss difference of the ideal predictors shrinks with M, and the transformer on either side of the threshold approaches the loss of its respective algorithm. The LLC for high M converges to the estimate the authors take as ridge; the LLC for low M rises with M and crosses that line near the start of the transient, then enters a plateau after M>32. The authors consider this plateau to mean the approximation may be incomplete. On the three smaller architectures in Appendix I, the authors state the behavior is qualitatively similar, with the threshold rising as the model gets larger.
- Authors' conclusion: These observations support understanding transient ridge as an evolving loss/complexity tradeoff, where loss and LLC play a dominant role in the transformer's development similar to Bayesian internal model selection. The authors also list the following as unfinished: lower-order terms, the precise form of the dynamic selection principle, whether the transformer corresponds to the ideal predictors, and why high M no longer leaves ridge before the end of training.