Skip to content

Modes and learning coefficients of Transformer sequence modelsModes of Sequence Models and Learning Coefficients

arXiv· arXiv:2504.18048· Zhongtian Chen, Daniel MurfetUniversity of Melbourne; TimaeusIndexed by this site · 2026-10-15· Originally publishedAlignment

Quick read

Analysis and theory

Based on the paper PDF (AI-generated); refer to the original

The authors establish a relationship between sequence modalities and LLC estimates, and state that in practice the estimates correspond to an effective distribution rather than the full distribution.

Questions
When estimating the local learning coefficient of sequence models with SGLD, it is unclear which structures in the data the measured loss landscape corresponds to. The authors aim to relate modes of sequence distributions to this geometric measurement.
Methods
Place conditional sequence distributions in a Hilbert space, perform SVD on the fundamental tensor to obtain modes, and after truncation define the effective true distribution via KL projection. Under two insensitivity assumptions, the authors give bounds within which SGLD chains and LLC estimates cannot distinguish the true loss from the truncated loss.
Experiments and results
Absolute bigrams and collective bigrams are modalities in theory. Empirical SVD on The Pile gives several singular values, for example the maximum singular value for k=l=1 is 33.89. This paper does not report numerical estimates of LLC.
Limitations and future work
The authors say the question of why LLC remains usable when parameters are not local minima of the population loss is not fully resolved, and they plan to switch to other tensor decompositions, tighten insensitivity constant bounds on modern transformers, and make the proofs consistent with small-minibatch SGLD. The experiments in this paper are mode examples on the Pile, with no LLC values reported.
Experimental setupPile · singular value
Benchmarks
Pile
Metrics
singular value
AI summaryThe research proposes a geometric interpretation for sequence modeling by Transformer networks: using tensor decomposition to identify the principal modes of conditional sequence distributions in Hilbert space, and truncating small modes yields an effective data distribution that preserves the dominant structure. Theoretically, Local Learning Coefficient (LLC) estimates are insensitive to modes below a data-dependent threshold, and the LLC computed in practice characterizes the effective distribution rather than the true one. This explains why LLC estimates remain reliable when parameters are not strict minimizers of the population loss, and points out that the inverse temperature of SGLD acts as a resolution knob for the landscape structure.

The research proposes a geometric interpretation for sequence modeling by Transformer networks: using tensor decomposition to identify the principal modes of conditional sequence distributions in Hilbert space, and truncating small modes yields an effective data distribution that preserves the dominant structure. Theoretically, Local Learning Coefficient (LLC) estimates are insensitive to modes below a data-dependent threshold, and the LLC computed in practice characterizes the effective distribution rather than the true one. This explains why LLC estimates remain reliable when parameters are not strict minimizers of the population loss, and points out that the inverse temperature of SGLD acts as a resolution knob for the landscape structure.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    In practice, LLC estimation characterizes the effective distribution after mode truncation, not the full sequence distribution.

    In practice, LLC estimation characterizes the geometry of the effective distribution after truncating small-amplitude modes, not the full sequence distribution.

    • Setting: The authors think the geometry of the transformer loss landscape is related to how the model computes, and thus relevant to interpretability and AI safety. In singular learning theory, SGLD is used empirically to approximate the Bayesian posterior, and the local learning coefficient (LLC) is estimated from it.
    • Existing gap: The authors say this SGLD route still has many open conceptual and technical problems. The definition of LLC requires w* to be a local minimum of the population loss, but the authors think this cannot generally be expected at the deep network parameters of interest, and is especially unlikely for a class of language models.
    • Core observation: Conditional sequence distributions can be placed in a Hilbert space, and tensor decomposition can identify principal modes; truncating small-amplitude modes yields an effective true distribution. The authors say the gradient's sensitivity to the modal tail is limited, so in practice LLC mainly measures the geometry of the effective distribution.
    • This work: Gives a modal decomposition of sequence distributions and, under insensitivity assumptions, discusses that LLC estimation is insensitive to small modes. The authors liken SGLD's inverse temperature to a resolution knob for landscape structure, and say this clarifies why estimation still works when parameters are not strict minimizers of the population loss.
  2. What related research exists?

    Related work covers distributional semantics, tensor decomposition, Markov coarse-graining, TRG, and singular learning theory.

    Section 9 discusses related work by topic, and the introduction places this paper in singular learning theory. The paper sets up no baseline methods and compares no detection or attack methods on benchmarks.

    Distributional structure and deep learning

    • Harris (1954): The authors say it proposed that meaning can be inferred from the distribution of words in text, laying the foundation for later semantic analysis.
    • Firth (1957): Further developed this distributional hypothesis.
    • Neural language models: Bengio et al. (2003) introduced neural probabilistic language models, implicitly learning distributed representations of words; Mikolov et al. (2013b) and Pennington et al. (2014) characterized distributional semantics more explicitly. The paper only describes these, with no comparison to this work.

    Tensor decomposition and Markov dimensionality reduction

    • Anandkumar et al. (2014), Hsu et al. (2012): The authors call these canonical references for tensor decomposition in natural language, for their purposes. Section 5 additionally cites the moment method of Anandkumar et al. (2012), and says tensor decomposition is often used to represent natural language structure.
    • Spectral coarse-graining: Deuflhard & Weber (2005), Deuflhard et al. (2000), and Fritzsche et al. (2007) use spectral methods to identify essential dynamics or nearly invariant sets of Markov chains. Geiger et al. (2014) write state aggregation as an information bottleneck, compressing the current state while preserving information about future trajectories.
    • Low-rank compression: Zhang & Wang (2019), Ohta (2021), and Navarro et al. (2024) use tensor decomposition to compress Markov processes. The authors cite Thibeault et al. (2024) saying complex systems are often lower-rank than they appear, and cite Orioli & Faccioli (2016) discussing the relation to renormalization group. The paper does not single out these works for criticism.

    Renormalization group and effective actions

    • Levin & Nave (2007): Tensor renormalization group coarse-grains tensor networks with iterative truncated SVD. The authors say Definition 4.16 keeps only α≤χ, directly corresponding to the truncated SVD there; both use truncation to keep dominant modes.
    • Evenbly & Vidal (2015): The authors cite this saying direct truncation of singular values in the original TRG is not optimal near critical points; hierarchical truncation may inspire LLC estimation.
    • Batrouni et al. (1985): Finite-step Langevin samples from the distribution under an effective action. The authors analogize this to their effective potential, and mention approaching q^(χ) via the Fokker–Planck equation of SGLD; Polchinski (1984) and Efrati et al. (2014) are used to analogize effective theories at specific scales.

    Singular learning theory and LLC

    • Watanabe (2009, 2013, 2018): Defines LLC via the scaling exponent of the volume of sublevel sets of the loss, and gives asymptotics for the local free energy. In regular models λ(w*)=d/2, and in general it can be smaller.
    • Lau et al. (2024): Defines an LLC estimator under a Gaussian local prior centered at w*, approximating the expectation with SGLD (Welling & Teh, 2011).
    • Landscape and development: Chen et al. (2023), Hoogland et al. (2024), and Wang et al. (2024) use this expansion to understand network development. In Section 8, the authors say the parameters studied in these works are usually not local minima of the population loss, so the fact that estimation still works is quite surprising.

    The authors position this paper as an effective theory of sequence modeling: using function space and tensor decomposition to identify modes and coarse-grain, and they say that under what they call reasonable assumptions, practical LLC estimation measures the geometry of the effective true distribution rather than the full distribution.

  3. How does the paper address this problem?

    Define an effective distribution by truncating SVD modes, and bound the difference in LLC estimates under insensitivity assumptions.

    The authors coarse-grain the true sequence distribution with a modal decomposition in Hilbert space to obtain an effective true distribution, then under insensitivity assumptions give bounds within which SGLD-based LLC estimates cannot distinguish the true loss from the truncated loss.

    Sequence distributions and learning coefficients

    • Language condition: The symbol set Σ is finite, and the longest string is K. The authors call {q_k} a language if and only if shorter distributions are marginals of longer ones (Definition 3.2, adapted from Mumford, 1994). The k-th fundamental tensor A_k is the cross-moment of token random vectors, and the word-basis coefficients are sequence probabilities.
    • Transformer loss: An autoregressive transformer fits conditional distributions of all lengths simultaneously. The authors note that for k+l=K, the training loss can also be written as predicting a continuation of length l from a context of length k, not just the next token. The population loss is L(w)=−E_q log p(y|x,w).
    • LLC: Near a local minimum w*, the volume of the set where the loss is less than ϵ above the minimum scales as ϵ to the power λ(w*), and this rational number is the LLC. The estimator uses a Gaussian local prior centered at w* with scale γ and inverse temperature β; Lau et al. (2024) take β*=1/log n, and the authors say other β make SGLD more stable.

    Modal decomposition

    • Map: H_{k,l} is the space of square-integrable functions on context strings taking values in the continuation space, with measure q. C_{k,l} maps a context x to the weighted sum over continuations y of q(y|x). The domain inner product is weighted by the inverse of q(x), the codomain uses the dot product, and then an SVD is performed.
    • Modes: Singular values s_α, right singular vectors v_α, left singular vectors u_α. The mode propensity is q(α)=s_α squared; modes with zero singular value have propensity 0. The authors give q(y|x)=∑α q(y|x,α)q(α) (Lemma 4.10), i.e., the conditional probability is a sum over modes of the mode contribution times the propensity. A propensity alone is not necessarily a probability.
    • Mode basis: e_{αβ} form an orthonormal basis of H_{k,l}, and C_{k,l} has coefficients s_α only in directions α=β. When k=l and all probabilities are positive, the authors say C_{k,l} is a column-stochastic matrix and can be viewed as a Markov chain by Perron–Frobenius.

    Effective true distribution

    • KL projection: Sort modes by singular value, take the subspace spanned by modes with index at most the truncation χ, intersect with the probability simplex, and obtain an m-flat submanifold in the sense of Amari. q^(χ) is the unique minimizer of KL divergence to q on this submanifold; the authors cite Amari (2009) for uniqueness.
    • Truncation not used: Directly discarding high modes can make coefficients negative. The authors also define q^(χ,b) by truncating negative terms and renormalizing, but say its theoretical basis is weaker and do not use it later.
    • Multiple lengths: Multiple (k,l) can be truncated simultaneously. Appendix A splits the maximum context K into a sequence of (k_i,l_i), and the total loss is the sum of losses over segments; if each segment is separately insensitive, the constants add. Appendix D discusses that decompositions such as Tucker can replace SVD, and bases from different decompositions can be combined into an overcomplete mode basis; the authors say this may suit transformers better, but do not elaborate.

    Two kinds of insensitivity

    • Gradient insensitivity: The L2 norm of the pairing of the Jacobian of the log-probability map with q−q' is less than A (Definition 6.3). The authors understand this as the model being unable to learn this difference, citing Rogers & McClelland (2004): before coarse categories are learned, gradients on finer modes can be very small.
    • Log-probability insensitivity: The absolute value of the pairing of the log-probability map Φ(w*) with q−q' is less than B (Definition 6.4). The authors expand in the mode basis: when χ is large enough, the difference on low modes is controlled by the difference between the orthogonal projection and the KL projection; if the high modes are all absolute bigrams and long-sequence probabilities decay at the entropy rate, then these bigrams' log p must also not be too large.
    • Magnitude motivation: The authors plug in |Σ|=65k, log2|Σ|=16, and entropy rate H in [1,10]. The authors say that when H=1, as long as k>2+31l, this bound depends more on A; for next-token prediction with contexts of tens to hundreds of thousands of tokens, this seems plausible. This is motivation, not a verified theorem premise. On compact sets they also assume empirical loss and gradients converge uniformly, and that conditional probabilities have a fixed lower bound away from 0.

    LLC estimation and main theorem

    • Estimator: λ̂n(w∗)=nβ[𝔼w|w∗,β,γLn(w)−Ln(w∗)] (Eq. 11). The meaning is the average increase in empirical negative log-likelihood under the local posterior relative to w*, times nβ. SGLD uses batch size m, step size ϵ_t, and Gaussian noise, then averages over T samples (Eq. 13). m can be much smaller than the sample size n.
    • Chain closeness: Theorem 7.3 assumes gradient insensitivity, M-Lipschitz minibatch gradients, and that M with nβ, γ, and the maximum step size make the contraction factor of one update lie in (0,1). Then for m large enough, the true-gradient chain and the truncated-distribution-gradient chain are within g(t,A) of each other at time t with probability greater than 1−tδ. The authors say m being very large is a weakness of the technical treatment (Remark 7.2).
    • Estimate difference: Theorem 7.4 additionally assumes log-probability insensitivity and a Lipschitz constant Q for L_n. For n large enough, the difference between the two LLC estimates is with high probability less than a bound composed of the step-size ratio, nβ, Q, A, B, M, and γ. The authors say this bound has β as a common factor: increasing β and decreasing A, B can still leave them indistinguishable, but the truncation point moves up and the estimate includes rarer bigrams; decreasing β sees coarser modes. The authors therefore call the inverse temperature a resolution knob.
  4. What experiments did the paper conduct?

    The empirical part is modal singular value examples on the Pile; this paper reports no LLC values.

    Experimental setup

    • Data: Empirical modes come from token sequences of the Pile (Gao et al., 2020). The tokenizer is EleutherAI/pythia-70m; Example 3.3 says its vocabulary is about 50k and gives a tokenization example on the Pile subset wikipedia_en; this tokenizer is a BPE trained on the Pile (Black et al., 2022).
    • Sampling: Appendix B specifies document counts by k, l tiers: 20000 for k≤1 and l≤1, 15000 for k≤2 and l≤2, and 25000 for k≥3 and l≥3. The paper does not state which tier is used when both of the first two conditions hold. The minimum occurrence counts for X and Y sequences in the same three tiers are 5, 10, and 20, respectively.
    • Matrix and SVD: A sparse matrix M is constructed with rows being Y of length l and columns being X of length k, with entries being conditional probabilities with Laplace smoothing, smoothing coefficient λ=10^{-5}. r=100 components are computed; when the smallest dimension exceeds 5000, randomized SVD is used, otherwise scipy's svds. Section 5.2 states this is a large sparse matrix with unnormalized columns.
    • Relation to the theoretical SVD: The authors say this SVD is only indicative of the type of patterns expected in the left and right singular vectors, not the SVD of C_{k,l} itself under the weighted inner product of Section 4.
    • Theoretical examples: Section 5.1 only treats absolute and collective bigrams, with no numerical sampling.
    • LLC: This paper does not report LLC values, SGLD chains, or repetition counts on transformers or other networks. Remark 7.5 only cites hyperparameters from recent Pythia-6.9B experiments to discuss the theorem assumptions. There is no LLM judge.

    Main results

    Empirical singular values are written in the example text, not in a separate results table.

    Swipe horizontally to read the table

    (k, l)ComponentSingular valueSource
    1, 1Largest33.89Example 5.7
    2, 1Seventh largest46.18Example 5.8
    2, 116th22.45Example 5.9
    3, 328th5.58Example 5.10
    3, 337th5.05Example 5.11
    • The authors say the right singular vectors often have many x's sharing the largest load, and the left singular vectors are dominated by individual y's, followed by a long tail about an order of magnitude smaller, which can be seen as perturbations of collective bigrams. Punctuation and newlines are common in the SVD.
    • Figure captions and examples are inconsistent: Figure 1 and Example 5.7 both call the k=l=1 example the first or largest mode. Figures 2 and 3 captions say "first empirical mode" for k=2, l=1, while Examples 5.8 and 5.9 call it the seventh largest and the 16th component, respectively; Figures 4 and 5 captions say "first empirical mode" for k=3, l=3, while Examples 5.10 and 5.11 call it the 28th and 37th components. The curves or positions in the figures are not visible in the text conversion.
    • The authors say some (k,l) modes appear to be inherited from modes of shorter sequences, with the hierarchical structure left for future work.

    Theoretical modes

    • Absolute bigram: If xy barely co-occurs with other continuations or prefixes, then the square root of q(x) times x is a right singular vector, y is a left singular vector, and the singular value is the square root of q(x) (Lemma 5.2). The pairing of the model with e_{αα} on this mode equals p(xy|w) divided by the square root of q(x).
    • Collective bigram: If every prefix in a set S continues to the same y with probability 1, and probability 0 outside the set, then the singular value is the square root of q(y) times the square root of |S| (Lemma 5.6).
    • The authors say absolute bigrams may be rare, and collective bigrams more common; empirical vectors are described as perturbations of the latter. The paper gives no counts of absolute or collective bigrams on the Pile.

    Theorem assumptions and literature magnitudes

    • Hyperparameters used: Remark 7.5 says recent Pythia-6.9B experiments use ϵ of 10^{-4} or 10^{-5}, nβ=10, γ=300, T=100. Under these numbers, the authors say the condition of Theorem 7.3 becomes M<30。本文未报告这些实验的LLC。
    • 文献中的量:作者引Yao et al. (2020),一个270k参数的ResNet在训练结束时Hessian最大特征值估计为150;引Fan et al. (2024),7B与70B的梯度范数除少见尖峰外小于10,并称Q<10看起来合理。作者称未能找到大型transformer的Hessian谱估计。
    • 作者的判断:作者称把nβ减小一个小因子、把γ增大一个小因子(举例两边都是2倍),并可能改步长,可使所要求的M与上述ResNet特征值同一量级;若Lipschitz常数再大若干个数量级,按当前超参数该条件就不现实。

    其他消融与分析

    • 论文没有报告截断点χ、逆温度或SGLD超参数的消融,也没有报告LLC估计值。
    • Section 6.2的动机计算使用|Σ|=65k、log2|Σ|=16、H属于[1,10];作者称H=1且k>2+31l, and the log-probability bound depends more on A. This is not a measurement result.
    • Appendix B's smoothing coefficient is 10^{-5}, and the number of SVD components is r=100; when showing examples, high-loading X and Y are retrieved from the corpus and 50 tokens before and after each are taken. The paper does not report retrieval hit counts.
  5. What are some points that can be further explored?

    The authors state that the local minimum problem is not fully resolved, and they plan to tighten bounds on insensitivity constants.

    Limitations and Future Directions Noted by the Authors

    • Other decompositions: The authors plan to investigate CP, Tucker, and tensor-train to capture more complex modality hierarchies (Section 10).
    • Insensitivity constants: The authors plan to tighten quantitative bounds on insensitivity constants for modern transformer architectures (Section 10).
    • Mini-batches: The authors plan to rewrite the main theorems so that m can remain small, aligning with SGLD in practice (Section 10).
    • Local minima: The authors state that this paper does not fully resolve why LLC estimation still works when w* is not a local minimum of the population loss; they only suggest that if the truncated potential represents the learned modality, w* is more likely to be a local minimum of that potential (Section 8).
    • Inverse temperature: The authors state that in the empirical LLC literature, aside from hyperparameter choices, the effect of varying β has not been well studied (Section 8).

    Experimental Coverage

    • The empirical part is SVD of conditional probability matrices on Pile, with tokenizer EleutherAI/pythia-70m; Appendix B uses 20000, 15000, or 25000 documents depending on k, l, with minimum counts of 5, 10, or 20, and computes 100 components.
    • Main text examples give singular values for (k,l) of (1,1), (2,1), (3,3); Appendix C gives more figures. The captions of Figures 2 to 5 do not match the component numbers in the Examples.
    • Theoretical examples are absolute bigrams and collective bigrams (Lemma 5.2, Lemma 5.6). Loss decompositions over multiple lengths are in Appendix A, higher-order tensor decompositions in Appendix D.
    • Main conclusions are Theorem 7.3 and Theorem 7.4 with probability bounds under gradient insensitivity, log-probability insensitivity, and Lipschitz conditions. The paper does not report LLC values, SGLD samples, or number of repeats for its experiments.
    • Remark 7.5 discusses assumptions using hyperparameters from recent experiments on Pythia-6.9B (ϵ of 10^{-4} or 10^{-5}, nβ=10, γ=300, T=100), and cites the maximum Hessian eigenvalue of 150 for ResNet and gradient norms for 7B and 70B models; the authors state they could not find Hessian spectrum estimates for large transformers.
  6. Summarize the main content of the paper

    Mode truncation gives an effective potential, and the authors say SGLD-based LLC estimates cannot distinguish it from the true loss.

    The authors give a geometric description that connects modes in sequence distributions with LLC measurements of the transformer loss landscape.

    • Problem: When SGLD estimates LLC, it is unclear which layer of the data the measured geometry corresponds to. The authors want to explain why estimation still works when the parameters are not strict minimizers of the population loss.
    • Modes: A context of length k to a continuation of length l is written as a linear map between Hilbert spaces, followed by an SVD. The squares of the singular values are mode propensities, and the conditional probability is written as a sum of contributions from each mode. After truncating high modes, a KL projection is taken on a linear section of the probability simplex to obtain the effective true distribution. Direct truncation can yield negative coefficients; the authors no longer use that renormalization approach.
    • Theorem: If the model is insensitive to the difference between the true and truncated distributions in both gradient and log-probability senses, the authors give a result that two SGLD chains are close to each other and that the difference between the two LLC estimates has an upper bound. This bound has the inverse temperature β as a common factor. The authors liken β to a resolution knob: increasing β and tightening the insensitivity constants moves the truncation point up, and rarer bigrams enter the estimate.
    • Examples: The singular value of an absolute bigram is the square root of q(x); for a collective bigram it is additionally multiplied by the square root of the prefix set size. On the Pile, the unnormalized empirical conditional probability matrix gives indicative singular values: the maximum for k=l=1 is 33.89; the seventh largest for k=2, l=1 is 46.18, and the 16th component is 22.45; the 28th and 37th components for k=3, l=3 are 5.58 and 5.05. This paper does not report LLC values.
    • Authors' conclusion: In practice, SGLD probes the geometry of the effective distribution after truncating high-order modes. The authors think this may explain why estimation still works at non-strict minimizers, but they say this point is not fully resolved. When varying temperature or the data distribution, the authors think changes in LLC should be understood through individual modes, and they call such responses susceptibilities, pointing to forthcoming Baker et al. (2025).
Read originalarxiv.org