Skip to content

Menu

WorksComputer Science

A Mathematical Theory of the Jacobian Lens

Download PDFView on arXiv

Ask your agent about this work

Your agent reads this work through Valency, with its citations and similar works. Paste this at the start of a chat.

Use the Valency MCP. Work: W_nwxa2r2p. Fetch it with get_paper_by_id, then find its nearest works with find_similar_papers and tell me what it adds.

Works with any MCP client. Not connected yet? Connect your agent

Abstract

Recent work from Anthropic introduced a new interpretability tool, called the Jacobian lens (J-lens). This method identified linear directions in the hidden states of frontier language models that had properties reminiscent of working-memory-like representations. However, it is unclear what mechanistic properties of such features make them detectable by the J-lens. To this end, we introduce a mathematical theory of the J-lens and show that it preferentially identifies coherent features, directions that act like leading, spatially coherent finite-time Lyapunov modes. Small perturbations along these directions amplify across layers, remain roughly constant across token positions, and are consistent across different contexts. While we are agnostic to whether these properties are necessarily associated with a "Global Workspace", the analytically derived preferences of the J-lens nevertheless explain prior empirical results. We show that the J-lens identifies coherent features in open-source LLMs more effectively than standard baselines. We subsequently validate our theory more directly on a Bayes filter and a toy transformer, each optimally predicting next tokens emitted from a Hidden Markov Model (HMM). We show how modulating task parameters that change the coherence of features in the Bayes filter correspondingly and predictively modulates the response of the J-lens applied to both model classes. We also introduce a family of J-lenses built to emphasize different temporal scales of information processing in LLMs, which we call ωω-J-lenses.

Introduction

In a recent paper, Gurnee et al. [16] introduced a novel interpretability technique that they claimed could identify an internal ‘workspace’ in large language models (LLMs), which had properties reminiscent of the Global Workspace ([1, 8]). The object they primarily study is the ‘Jacobian lens’, or ‘J-lens’. This interpretability tool is designed in the spirit of other ‘lenses’ (nostalgebraist, 2020; Belrose et al., 2023), which seek to decode transformer hidden state activations into language by applying the unembedding matrix of the model to these activations (potentially after a learned affine map, as in the tuned lens). These lenses benefit interpretability by mapping hidden states to tokens, which are in the space of language and hopefully more interpretable. Decoding intermediate layers this way has shown that predictions are refined gradually across depth (nostalgebraist, 2020; Belrose et al., 2023), that multilingual models pass through an English-like latent space before producing the target language (Wendler et al., 2024), that false few-shot demonstrations derail predictions only after a critical layer ([17]), and that a single hidden state already carries information about tokens several positions ahead ([27]). The trajectory of tuned-lens predictions across layers can also detect malicious inputs ([2]).

The Jacobian lens (J-lens, [16]) continues this line of work by introducing a new transfer operator onto the residual stream vector before the application of the unembedding matrix and mapping to tokens. This operator is the Jacobian of the transformer, averaged over tokens. In their paper, the motivation for the usage of the Jacobian KK is based on standard results in calculus:

A Jacobian describes how a small perturbation in the input of a function results in a change in the output. When the Jacobian is studied in an LLM, it provides directions in the residual stream that are “verbalizable” [16], which is to say that it identifies how perturbations change the linguistic output of the model. However, this property holds only in the local neighborhood of the point on which the Jacobian is defined, and the J-lens is defined by averaging over prompts, tokens, and future positions in the output layer. An average Jacobian has no reason to behave like any of its elements. Indeed, if the Jacobians of a system form a curved manifold, the average Jacobian can easily lie off-manifold. More generally, well-known features that describe the behavior of linear operators (e.g., singular vectors and values, which are nonlinear functions of a matrix) can deviate grossly from those of individual Jacobians under averaging (Appendix A). In Figure 1 and Figure 11 we visually demonstrate this phenomenon for four open-source LLMs. What, then, does the J-lens capture?

Figure 1. Low-dimensional projection (principal component analysis, PCA) of the top 100 singular values for individual (black) and mean (red) Jacobians of four different LLMs (Appendix B). Each Jacobian is evaluated with input at an intermediate layer chosen to be halfway through the model and output at the final layer. Prompts are sampled from a range of datasets with different topics (Wikipedia, Python code, math, news, etc.). Jacobian spectra are plotted in Figure 10.

Figure 10. Jacobian singular value spectra of four LLMs, with estimated power laws. Individual Jacobian curve is averaged over all points in Figure 1, with shading denoting standard deviation.

Figure 11. Low-dimensional projection of the left and right singular vectors of Jacobians. The top 100 left and right singular vectors, ranked by singular values as in Figure 1, are projected into two dimensions by computing the subspace distance on Grassmannians ∥Pi−Pj∥F=2∑ksin⁡2θk\lVert P_i-P_j\rVert_F = \sqrt{2\sum_k \sin^2\theta_k}, where θk\theta_k are the principal subspace angles and PiP_i is the projector matrix defined by the singular vectors, Pi=UiUiTP_i = U_iU_i^T. This pairwise distance matrix is reduced to two dimensions and visualized with PCA. (a) Left singular vectors. (b) Right singular vectors.

Recent work (Yan et al., 2026) has attempted to analyze the J-lens as an approximate least squares map from the hidden state to the output using Stein’s lemma (Stein, 1981). However, this argument uses the Gaussian form of Stein’s lemma, and transformer hidden states are notoriously non-Gaussian, with heavy-tailed outlier features and a few activations that are orders of magnitude larger than the rest [10] (Sun et al. 2024). Rather, the J-lens is most directly related to a branch of dynamical systems theory called Lyapunov theory, which describes how perturbations grow or shrink in spatiotemporal dynamical systems.

The Jacobian lens. Let hℓ,t(x)∈Rdh_{\ell,t}(x) \in\mathbb{R}^{d} be the activation at layer ℓ\ell and token position tt in a fixed sequence xx, and let LL be the final layer. Write τ\tau to represent a lag in token positions, HH for the number of lags averaged over, and c=(x,t)c = (x,t) for a context. Define

K(c,ℓ,τ):=∂hL,t+τ(x)∂hℓ,t(x),K(c,\ell,\tau) := \frac{\partial h_{L,t+\tau}(x)}{\partial h_{\ell,t}(x)},
Gc(ℓ,H):=1H∑τ=1HK(c,ℓ,τ)(1)G_c(\ell,H) := \frac{1}{H}\sum_{\tau=1}^{H} K(c,\ell,\tau) \tag*{(1)}
JH(ℓ):=EcGc(ℓ,H).J_H(\ell) := \mathbb{E}_c G_c(\ell,H).

The lens is then applied to a state, along with the unembedding matrix:

lens⁡(hℓ,t)=softmax⁡(WUnorm⁡(JH(ℓ)hℓ,t))(2)\operatorname{lens}(h_{\ell,t}) = \operatorname{softmax}\left(W_U\operatorname{norm}\left(J_H(\ell)h_{\ell,t}\right)\right) \tag*{(2)}

where WUW_U is the model’s unembedding matrix.

Finite-time Lyapunov exponents. Let δh(T)\delta h(T) be a perturbation of a state evolved for TT steps under the dynamics. Its Lyapunov exponent [25, 12] measures asymptotic growth of the perturbation:

χ=lim⁡T→∞1Tlog⁡∥δh(T)∥∥δh(0)∥,δh(0)≠0,(3)\chi= \lim_{T\to\infty} \frac{1}{T}\log\frac{\lVert\delta h(T)\rVert}{\lVert\delta h(0)\rVert}, \qquad\delta h(0) \ne0, \tag*{(3)}

when the limit exists. Transformers have finitely many layers, so this limit does not exist and we use only finite-time quantities. At finite TT, the finite-time Lyapunov exponents (FTLEs) are

χi(T)=1Tlog⁡si(T),(4)\chi_i(T) = \frac{1}{T}\log s_i(T), \tag*{(4)}

where si(T)s_i(T) are singular values of the full TT-step Jacobian. For dynamical systems, this is typically computed by chaining with multiplication each one-step Jacobian with iterative renormalization [3, 14]. Spatiotemporal versions also resolve how a perturbation travels across space: the convective Lyapunov exponent [9, 19] measures the growth of a perturbation in a reference frame that is moving in space. Hydrodynamic Lyapunov modes [11] are long-wavelength Lyapunov vectors whose exponents approach zero as their wavenumber kk approaches zero.

For transformers, depth is the evolution coordinate (TT) and token position the spatial coordinate. Each K(c,ℓ,τ)K(c,\ell,\tau) in Eq. (1) is then a finite-time Jacobian over T=L−ℓT=L-\ell layers, measured in a reference frame shifted by τ\tau tokens, which is the setting of the convective exponent. We show here that the J-lens is tightly linked to finite-time Lyapunov theory. Under the assumptions below, the J-lens favors spatially smooth, slowly varying responses, because it by construction integrates out the fast dynamics, implicitly behaving like a low-pass filter in space. With this connection in hand, we show that many of the results in the original paper follow naturally. Note that this is not an argument that it does not identify a Global Workspace per se, but rather to shed light on what this method is designed to capture and why that may or may not align with the philosophical conception of the Global Workspace.

Theory

We begin by constructing a model that establishes this connection, and subsequently relax assumptions of the model.

Shared and context-specific modes. Suppose our Jacobians can be decomposed as follows:

K(c,ℓ,τ)=∑ieTχi+τγiuivi∗⏟S(ℓ,τ): shared modes+∑jeTχcj+τγcjucjvcj∗⏟R(c,ℓ,τ): context-specific modes,(5)K(c,\ell,\tau)=\underbrace{\sum_i e^{T\chi_i+\tau\gamma_i}u_i v_i^*}_{S(\ell,\tau):\ \text{shared modes}}+\underbrace{\sum_j e^{T\chi_{cj}+\tau\gamma_{cj}}u_{cj}v_{cj}^*}_{R(c,\ell,\tau):\ \text{context-specific modes}}, \tag*{(5)}

with T=L−ℓT=L-\ell the number of layers between the read-in layer and the output, and every mode quantity depends on ℓ\ell, which we suppress. γi=μi+iθi\gamma_i=\mu_i+\mathrm{i}\theta_i describes the cross-token evolution dynamics. The shared input directions viv_i and output directions uiu_i are each orthonormal. Each mode has two finite-time Lyapunov exponents: χi∈R\chi_i\in\mathbb{R} in depth and μi∈R\mu_i\in\mathbb{R} in token position, while θi\theta_i is the mode’s rotation per token. Modes with θi≠0\theta_i\ne0 come in complex-conjugate pairs, so that KK is real. At a fixed (ℓ,τ)(\ell,\tau), any matrix admits a singular value decomposition (SVD). Sharing directions across contexts, factoring depth (Figure 2a) and lag (Figure 2b) in this way, and treating the two exponents as independent are additional assumptions of this illustrative model. A Lyapunov mode is a mode that evolves according to a Lyapunov exponent, and hence is defined by its input direction viv_i. Averaging over lags and contexts splits the lens into a shared part and an averaged remainder, JH=SH+EcRcJ_H=S_H+\mathbb{E}_cR_c, in which shared mode ii is weighted by eTχifH(γi)e^{T\chi_i}f_H(\gamma_i), with

Figure 2. Schematic of the three coherence parameters. (left) Schematic of large χ>0\chi> 0 versus small χ<0\chi< 0 magnitude directions. A perturbation grows across layers in the red direction, but shrinks in the blue direction. (middle) Schematic of lag-coherent (black) versus lag-incoherent (gray) feature directions across token positions. (right) Context-coherent directions evolve similarly across layers in contexts, while context-incoherent directions evolve differently.

fH(γ)=1H∑τ=1Heτγf_H(\gamma)=\frac{1}{H}\sum_{\tau=1}^{H}e^{\tau\gamma}

where HH denotes the maximum lag between input and output token positions (Appendix D). We also assume the context-specific response is no larger than the shared one: Ec∥Rc∥22≤M2\mathbb{E}_c\lVert R_c\rVert_2^2\le M^2, where M=∥SH∥2M=\lVert S_H\rVert_2.

Isolation of slow modes. The future averaging fH(γ)f_H(\gamma) suppresses modes that decay rapidly or oscillate quickly. For μi≤0\mu_i\le0, ∣fH(γi)∣≤1\lvert f_H(\gamma_i)\rvert\le1. Slow modes with H∣μi∣,H∣θi∣≪1H\lvert\mu_i\rvert,H\lvert\theta_i\rvert\ll1 retain fH(γi)≈1f_H(\gamma_i)\approx1, while rapid decay or oscillation is attenuated. Another way to see this is to consider the Fourier decomposition of a response y(τ)y(\tau) over the window:

y~H(ω)=∑τ=1He−iωτy(τ),(6)\widetilde{y}_H(\omega)=\sum_{\tau=1}^{H}e^{-\mathrm{i}\omega\tau}y(\tau), \tag*{(6)}
1Hy~H(0)=1H∑τ=1Hy(τ).(7)\frac{1}{H}\widetilde{y}_H(0)=\frac{1}{H}\sum_{\tau=1}^{H}y(\tau). \tag*{(7)}

Thus averaging over lags extracts the zero-frequency coefficient of the finite window, thereby identifying slowly varying responses in space (token position). Similarly, depth weights modes by eTχie^{T\chi_i}, thereby favoring growing or slowly decaying modes. This is not necessarily a strong weighting, especially closer to the output when the Jacobian becomes increasingly aligned with the identity map.

Incoherent directions are suppressed. For a unit input direction vv and independent contexts c,c′c,c', the averaged remainder is ∥(EcRc)v∥22=Ec,c′⟨Rcv,Rc′v⟩\left\|(\mathbb{E}_cR_c)v\right\|_2^2=\mathbb{E}_{c,c'}\langle R_cv,R_{c'}v\rangle, which quantifies the expected overlap between two contexts’ responses to the same input (Appendix D). Suppose this overlap is small, sup⁡∥v∥=1Ec,c′∣⟨Rcv,Rc′v⟩∣≤η Ec∥Rc∥22\sup_{\|v\|=1}\mathbb{E}_{c,c'}\left|\langle R_cv,R_{c'}v\rangle\right|\leq\eta\,\mathbb{E}_c\|R_c\|_2^2 with 0≤η<10\leq\eta<1. Taking the largest growth over unit inputs and assuming bounded scales of the modes,

∥EcRc∥22=sup⁡∥v∥=1Ec,c′⟨Rcv,Rc′v⟩≤sup⁡∥v∥=1Ec,c′∣⟨Rcv,Rc′v⟩∣≤η Ec∥Rc∥22≤ηM2=η∥SH∥22.(8)\begin{aligned} \left\|\mathbb{E}_cR_c\right\|_2^2 &=\sup_{\|v\|=1}\mathbb{E}_{c,c'}\langle R_cv,R_{c'}v\rangle\\ &\leq\sup_{\|v\|=1}\mathbb{E}_{c,c'}\left|\langle R_cv,R_{c'}v\rangle\right|\\ &\leq\eta\,\mathbb{E}_c\|R_c\|_2^2\leq\eta M^2=\eta\|S_H\|_2^2. \tag*{(8)} \end{aligned}

Thus for small overlap η\eta, averaging suppresses the incoherent response relative to the shared response. Since JH=SH+EcRcJ_H=S_H+\mathbb{E}_cR_c, standard perturbation bounds keep the leading singular values and directions of JHJ_H close to those of SHS_H whenever η M\sqrt{\eta}\,M is small compared with the gaps between the shared singular values (Appendix D).

Relaxing exact shared modes. The above model shows that if spatially (in a transformer, across tokens) and contextually coherent Lyapunov modes exist, these modes dominate in the Jacobian lens. However, exact shared directions need not exist. We show next under a more general construction that the J-lens directions preferentially select Lyapunov modes that (a) maximally grow over depth TT or persist across lags (magnitude aa), (b) are maximally coherent across token lags τ\tau (lag coherence ρτ\rho_\tau), and (c) are maximally coherent across different contexts cc (context coherence ρc\rho_c). Using the same SVD notation, write

Gc=EτK(c,ℓ,τ)=∑jscjucjvcj∗,sc1≥sc2≥⋯≥0.(9)G_c=\mathbb{E}_\tau K(c,\ell,\tau)=\sum_j s_{cj}u_{cj}v_{cj}^{*},\qquad s_{c1}\geq s_{c2}\geq\cdots\geq0. \tag*{(9)}

For a unit input direction vv, define

a(v):=Ec,τ∥K(c,ℓ,τ)v∥,a(v):=\mathbb{E}_{c,\tau}\left\|K(c,\ell,\tau)v\right\|,
ρτ(v):=Ec∥Gcv∥Ec,τ∥K(c,ℓ,τ)v∥∈[0,1],\rho_\tau(v):=\frac{\mathbb{E}_c\left\|G_cv\right\|}{\mathbb{E}_{c,\tau}\left\|K(c,\ell,\tau)v\right\|}\in[0,1],
ρc(v):=∥Ec,τK(c,ℓ,τ)v∥Ec∥Gcv∥∈[0,1].(10)\rho_c(v):=\frac{\left\|\mathbb{E}_{c,\tau}K(c,\ell,\tau)v\right\|}{\mathbb{E}_c\left\|G_cv\right\|}\in[0,1]. \tag*{(10)}

We call these the coherence parameters for directions in the Jacobian lens. We use the 2-norm for each parameter here, but other norms could reasonably apply as well. a(v)a(v) is the average response magnitude, ρτ(v)\rho_\tau(v) is the lag coherence of a response, and ρc(v)\rho_c(v) is the context coherence. These coherence parameters can be understood intuitively through the lens of spatiotemporal Lyapunov modes: aa is the average exponentiated finite-time growth of a direction, a(v)=Ec,τeTχc,τ(v)a(v)=\mathbb{E}_{c,\tau}e^{T\chi_{c,\tau}(v)} with χc,τ(v)=1Tlog⁡∥K(c,ℓ,τ)v∥\chi_{c,\tau}(v)=\frac{1}{T}\log\left\|K(c,\ell,\tau)v\right\|, so it combines growth over layers with persistence across lags. Thus 1Tlog⁡a(v)\frac{1}{T}\log a(v) is an effective FTLE of vv. ρτ\rho_\tau describes how activity along a direction oscillates across spatial (token) positions, with ρτ=1\rho_\tau=1 indicating no oscillation. Lastly, ρc\rho_c describes how consistently a direction is read in and written out across different contexts (instantiations of the Jacobian), given the same vector.

We illustrate what each coherence parameter measures in Figure 2. Intuitively, magnitude measures the total effect of a perturbation along a feature direction across both layers and time, thereby capturing how persistent or relevant it is. Lag coherence measures how the response of a perturbation changes across token positions, for which large values are approximately static, such as the overall topic of a document, whereas incoherent features change rapidly, such as word type. Context coherence measures whether a perturbation along a direction responds in the same way in different contexts, and how prior context modulates its effect. For example, adding a new rule such as “today is opposite day” to the context requires reprocessing each feature with this in mind. Context-coherent directions are processed consistently across contexts, while incoherent directions change their behavior.

Define ρc=0\rho_c = 0, ρτ=0\rho_\tau= 0 when their denominators are zero. The three factors telescope via multiplication to yield ∥JHv∥\lVert J_Hv\rVert. The leading singular value of the lens is therefore

σ1(JH)=max⁡∥v∥=1ρc(v)ρτ(v)a(v).(11)\sigma_1(J_H) = \max_{\lVert v\rVert=1} \rho_c(v)\rho_\tau(v)a(v). \tag*{(11)}

Subsequent directions maximize the same quantity subject to orthogonality to prior input directions v1,…,vi−1v_1,\ldots,v_{i-1}. This shows that the J-lens preferentially upweights directions with the largest combinations of magnitudes a(v)a(v) and coherences ρτ(v)ρc(v)\rho_\tau(v)\rho_c(v). The split depends on the order of averaging. We average over lags first, as in the definition of GcG_c for a single context. In the notation of Eq. (5), the J-lens selects the modes with the largest growth across layers χi\chi_i (magnitude), spatial changes that do not oscillate much (θi≈0\theta_i \approx0), and uiu_i, viv_i that change minimally across contexts (context coherence). Gurnee et al. [16] found that the J-space summarized only a small portion of the variance. This observation is consistent with the fact that variance explained is unrelated to each of the factors in Eq. (11), which we formalize now:

Corollary 2.1. A direction selected by Jacobian averaging may explain arbitrarily little or arbitrarily much activation variance. Consequently, the singular values of JHJ_H do not determine the variance explained by its selected directions.

The proof is a two-dimensional counterexample and is given in Appendix § 12.

Mapping coherent modes onto tokens

The analysis above characterizes the singular modes selected by Jacobian averaging, whereas the J-space used in the original paper is constructed from token-indexed directions jqj_q and is therefore not simply the leading singular subspace of JHJ_H. These descriptions can nevertheless be connected exactly. Let JH=UΣV∗J_H = U\Sigma V^*, and let wqw_q denote the unembedding vector for token qq. The corresponding J-lens direction in the input residual stream is

j˙q:=JH∗wq=VΣU∗wq=∑iσi⟨ui,wq⟩vi.(12)\dot{j}_q := J_H^*w_q = V\Sigma U^*w_q = \sum_i \sigma_i\langle u_i,w_q\rangle v_i. \tag*{(12)}

Thus every token-indexed J-lens direction is a mixture of the right singular modes viv_i: the singular value σi\sigma_i weights the strength of the corresponding coherent response channel, while ⟨ui,wq⟩\langle u_i,w_q\rangle measures how strongly that channel’s downstream response aligns with the token’s unembedding direction. This connection matters because the J-space is operationally defined by approximating an activation as a sparse non-negative combination of these directions jqj_q (Gurnee et al. [16]). The sparse decomposition therefore selects a small number of semantically labeled mixtures of the coherent modes that survive averaging. In this sense, the singular structure of JHJ_H supplies the underlying dynamical geometry, while the unembedding and sparse non-negative decomposition translate that geometry into the token-level “concepts” reported by the J-lens.

Families of Jacobian Lenses

Our analysis suggests that the Jacobian lens can be modified to extract different types of information. Here, we focus on the modulation of lag coherence selectivity. Eq. (7) highlights that averaging over time points is equivalent to a Fourier projection onto the zero-frequency mode. Modulating the ω\omega parameter in this projection (or even generalizing to band-pass filtering) induces a family of lenses we call ω\omega-J-lenses, JHω:=Ec1H∑τ=1He−iωτK(c,ℓ,τ)J_H^\omega:= \mathbb{E}_{c}\frac{1}{H}\sum_{\tau=1}^{H}e^{-i\omega\tau}K(c,\ell,\tau), where ω∈[−π,π]\omega\in[-\pi,\pi] given the Nyquist limit for sampling frequency 11 / token. We demonstrate their selectivity in our toy task in Figure 7.

Figure 7. The ω\omega-J-lens selectively upweights latent directions with lag coherences aligned with ω\omega. Solid line indicates the theoretical curves (optimally rescaled from the Bayes filter theory to fit the transformers), points indicate real sampled data. Colors (denoting latent index) are determined by alignment with latent encoding direction. Results are from one seed.

Empirical demonstration on open-source LLMs

We first show that the J-lens directions preferentially optimize growth across layers, lag coherence, and context coherence in real LLMs. For each LLM in Figure 1, we compute J-lens, baseline and random directions, and measure the coherence parameters aa, ρτ\rho_\tau and ρc\rho_c of each direction on held-out text by passing it through the Jacobian (Appendix § 10). As baselines, we use PCA, slow feature analysis (SFA; (Wiskott & Sejnowski, 2002)), and dynamical components analysis (DCA; [6]). We present results in Figure 3.

Three panels showing normalized magnitude, lag coherence, and context coherence by rank

Figure 3. J-lens directions preferentially optimize all coherence factors. (left) Magnitude a(v)a(v) of rank-ordered directions, normalized by the mean magnitude of random directions. Colored lines indicate J-lens directions for various models, while black lines indicate baseline directions averaged across models for clarity. Figure 12 shows the baselines for each model separately. (middle) Lag coherence for directions of each method and model, rank-ordered. (right) Context coherence of the directions of each method. Shading is ±1\pm1 standard error. Curves are smoothed for display with a Gaussian kernel of width σ=1\sigma= 1 rank.

The J-lens directions showed a clear monotonic decay in each coherence parameter for each LLM, while other methods were far less ordered. J-lens directions were consistently more coherent than random directions across all models. PCA directions had a surprisingly large magnitude relative to random directions, even matching the J-lens on Qwen3-14B after the fifth direction (Figure 12). Interestingly, the larger Qwen3-14B model had a much steeper decay across all coherence parameters. Fewer large-magnitude directions suggests that the larger model is more stable in the forward pass, and fewer lag- and context-coherent directions suggest that the larger models have learned to localize the coherent direction at a lower-rank subspace. While we do not analyze a functional relationship between these parameters across scales here, these results are intriguing and worth further study. Overall, these results confirm the theory on open-source LLMs and demonstrate that the J-lens is more effective at identifying slow, output-coupled features than other linear methods.

Figure 12. Individual coherence parameter curves for each LLM, with baselines computed separately for each model.

Toy Model

We designed a simple toy task to study the J-lens for models performing next-token prediction, and demonstrate its behavior on optimal Bayes filters as well as trained transformers. Our task, inspired by recent work studying how transformers learn to track hidden states ((Shai et al., 2024)), is a hidden Markov model (HMM) with several independent latent states X(i)X^{(i)}, each arranged on a ring of nin_i discrete states: X(i)∈{0,1,…,ni−1}X^{(i)} \in\{0,1,\ldots,n_i-1\}. We design the dynamics to be the simplest model that can selectively modulate each of the coherence factors via the task parameters. The dynamics of each latent state are (suppressing the latent index for clarity):

Xt+1={Xt+v+Dt(modn)w.p. λUtw.p. 1−λ(13)X_{t+1} = \begin{cases} X_t + v + D_t \pmod n & \text{w.p. } \lambda\\ U_t & \text{w.p. } 1-\lambda \end{cases} \tag*{(13)}

Here λ\lambda is called the state persistence parameter, Dt∈{−1,0,1}D_t \in\{-1,0,1\} with probabilities qq, 1−2q1-2q, qq and Ut∼Uniform⁡{0,…,n−1}U_t \sim\operatorname{Uniform}\{0,\ldots,n-1\}. We will see how changing λ\lambda modulates magnitude aa by determining for how many positions a token is useful to estimate the state of the latents. The integer vv is the velocity of the state on the ring, θ=2πv/n\theta= 2\pi v/n is its angular velocity, and DtD_t is a diffusion term. Lag coherence measures whether a state drives all future states in the same way, and vv modulates this by increasing misalignment across positions. With a fully observed state at all timepoints, however, the model is not forced to integrate over time (filtering), which would make the Jacobian 0 across all timepoints. To force integration, we reveal the states with probability ε\varepsilon, via another random variable Bt∈{0,1}B_t \in\{0,1\}. Each latent state is combined into a token by concatenating state index into an nn-ary variable and converting that to a token index YtY_t, making a total of 1+∏ini1+\prod_i n_i tokens, where the additional token is a null token (states unobserved). In the following, we use three latents with ni∈{2,8}n_i \in\{2,8\} for simplicity. We will show how this model setup allows us to selectively modulate the magnitude aa (through λ\lambda) and lag coherence ρτ\rho_\tau (through θ\theta) of the Jacobian lens vectors. Note that this toy model is easily solved by a transformer, and indeed even the embeddings learn to represent the latent states. The main result of our analysis is that we can a priori predict the order of the modes and their approximate coherence parameters in the Jacobian lens of the transformer.

Introducing contextual dependency

So far, all tokens across all random sequences for a given model are integrated the same way. This means that the context coherence ρc\rho_c of the Jacobian lens vectors cannot be modulated. To introduce this, we add a new variable called a key state Wt∈{−1,+1}W_t \in\{-1,+1\} where the observed state Yt=Xt+n21(Wt−1=−1)Y_t = X_t + \frac{n}{2}\mathbb{1}(W_{t-1}=-1), and P(Wt=1)=(1+ψ)/2P(W_t=1)=(1+\psi)/2, with key mean ψ∈[0,1]\psi\in[0,1]. This state is always fully observed, forcing the models to look back one timestep to identify how to infer the state of the observed token at the present timestep. This directly modulates context coherence because it forces the read-in and read-out directions of a feature to change dependent on the context. Each keyed state has its own independent key, making (1+2∏ini)2∣K∣(1+2\prod_i n_i)2^{|\mathcal{K}|} tokens, where K\mathcal{K} is the set of latents with keys.

The Bayes Filter and its Jacobian Lens

Prior work (Shai et al., 2024) has found that transformers trained on HMMs learned to represent optimal Bayesian beliefs of the hidden states in their residual stream. We follow this line of work by deriving the Bayes filter for the above HMM and its Jacobian lens, and then showing that the Jacobian lens captures belief states ordered by their coherence parameters in the transformer as well. Because each state exists on a ring, we account for rotational symmetry by studying the Fourier modes ϕj(x)=e2πijx/n\phi_j(x)=e^{2\pi ijx/n}. The Bayes filter optimally integrates the given evidence into a belief state, which is defined as the expected value of a state given the history:

mt(j):=E[ϕj(Xt+1)∣Y1,…,Yt](14)m_t^{(j)} := \mathbb{E}[\phi_j(X_{t+1}) \mid Y_1,\ldots,Y_t] \tag*{(14)}
m0(j):=0.(15)m_0^{(j)} := 0. \tag*{(15)}

The belief state for a given Fourier mode of a given state is updated by unkeyed evidence as

mt(j)=αj[(1−Bt)mt−1(j)+Btϕj(Xt)](16)m_t^{(j)} = \alpha_j\left[(1-B_t)m_{t-1}^{(j)}+B_t\phi_j(X_t)\right] \tag*{(16)}

where αj=λcjeiθj\alpha_j=\lambda c_j e^{i\theta_j}, with θj=jθ\theta_j=j\theta the rotation of mode jj per step and cj=1−2q+2qcos⁡(2πj/n)c_j=1-2q+2q\cos(2\pi j/n) the diffusion factor (Appendix F). This update rule is locally linear, either updated with the expected evolution operator αj\alpha_j if no evidence is observed, and replacing the state with the observation otherwise. The graphical model of the task and the Bayes filter are schematized in Figure 4.

Figure 4. Graphical models of the task (a) and the Bayes filter (b). (a) Three latents Xt(i)X_t^{(i)} evolve independently on their rings. The reveal variable BtB_t sets whether the token YtY_t shows the latents, and in the context sweep the key Wt−1W_{t-1} sets whether the shown state is flipped. (b) The belief mtm_t is the previous belief mt−1m_{t-1} propagated by α\alpha, or, when Bt=1B_t=1, the revealed state from YtY_t propagated by α\alpha.

Keyed Filters

Keyed states are observed differently, but the key state Wt−1W_{t-1} is directly observable at every token and is invertible. This means that the Fourier mode of the evidence is directly related to the state:

ϕj(Yt)=Wt−1ϕj(Xt)\phi_j(Y_t) = W_{t-1}\phi_j(X_t) (for odd jj, which includes the only mode when n=2n = 2). The Bayes filter can be similarly extended, as

mt(j)=αj[(1−Bt)mt−1(j)+Bt1(Wt−1=1)ϕj(Yt)+Bt1(Wt−1=−1)Wt−1ϕj(Yt)](17)m_t^{(j)} = \alpha_j \left[(1-B_t)m_{t-1}^{(j)} + B_t 1(W_{t-1}=1)\phi_j(Y_t) + B_t 1(W_{t-1}=-1)W_{t-1}\phi_j(Y_t)\right] \tag*{(17)}

The first of the latter two terms accounts for the setting in which the key does not change the state, and the second accounts for the changed state by inverting the rotation to recover the state. This forces the predictive model to change where it reads in token information and writes to the predicted next token, thereby modulating the contextual coherence of the dynamics.

The Jacobian Lens

In this section we derive the three factors of the J-lens for the Bayes filter (magnitude a(j)a^{(j)}, lag coherence ρτ(j)\rho_{\tau}^{(j)} and context coherence ρc(j)\rho_{c}^{(j)}) and show how the task parameters set them. We focus on one latent and one Fourier mode jj: the Jacobian of mode jj of the belief at t+τt+\tau with respect to mode jj of the evidence at the revealed source tt, in context cc,

Kj(c,τ)=∂mt+τ(j)∂ϕj(Yt)K_j(c,\tau) = \frac{\partial m_{t+\tau}^{(j)}}{\partial\phi_j(Y_t)}

For unkeyed latents Yt=XtY_t = X_t.

This object captures all of the dynamics, as the latents are independent and the filter acts on each Fourier mode separately. Thus the Jacobians between different latents or different modes are zero, and the lens is block diagonal, making each mode its own separate singular vector. The piecewise-linear components of the dynamics combine to form

Kj(c,τ)=αjτ+1∏k=1τ(1−Bt+k)=αjτ+1Aτ(18)K_j(c,\tau) = \alpha_j^{\tau+1}\prod_{k=1}^{\tau}(1-B_{t+k}) = \alpha_j^{\tau+1}A_\tau \tag*{(18)}

where the product is one if no evidence has been observed across all tokens from position t+1t+1 to t+τt+\tau, and zero otherwise.

Let rj:=∣αj∣(1−ε)r_j := \lvert\alpha_j\rvert(1-\varepsilon) be the memory of mode jj across one step, where ε=P(Bt=1)\varepsilon= P(B_t=1), and let N(c)≥1N(c) \ge1 be the number of tokens until the next reveal, so that P(N=k)=(1−ε)k−1εP(N=k) = (1-\varepsilon)^{k-1}\varepsilon. Summing over lags gives ∑τ=1HKj(c,τ)=αjSj,N(c)\sum_{\tau=1}^{H} K_j(c,\tau) = \alpha_j S_{j,N(c)}, where Sj,N:=∑τ=1min⁡(N−1,H)αjτS_{j,N} := \sum_{\tau=1}^{\min(N-1,H)} \alpha_j^\tau is the response accumulated before the next reveal. This sum matches the lens of Eq. (1) up to the averaging factor 1/H1/H, which scales every singular value equally and so leaves their order unchanged. For large HH the three coherence parameters are (Appendix F.1)

a(j)=∣αj∣rj1−rj,ρτ(j)=(1−rj)∣Ec[Sj,N]∣rj,ρc(j)=∣ψ∣rj∣1−rjeiθj∣∣Ec[Sj,N]∣(19)\begin{aligned} a^{(j)} &= \frac{|\alpha_j|r_j}{1-r_j},\\ \rho_{\tau}^{(j)} &= \frac{(1-r_j)\left|\mathbb{E}_{c}\left[S_{j,N}\right]\right|}{r_j},\\ \rho_{c}^{(j)} &= |\psi|\frac{r_j}{\left|1-r_j e^{i\theta_j}\right|\left|\mathbb{E}_{c}\left[S_{j,N}\right]\right|} \tag*{(19)} \end{aligned}

where Ec[Sj,N]\mathbb{E}_{c}\left[S_{j,N}\right] is the series given in Eq. (44), with ψ=1\psi=1 for unkeyed latents. When θj=0\theta_j=0, every term of Sj,NS_{j,N} is real and positive, so ρτ(j)=1\rho_{\tau}^{(j)}=1, ρc(j)=∣ψ∣\rho_{c}^{(j)}=|\psi| and the persistence λ\lambda changes only the magnitude a(j)a^{(j)}. A nonzero angular velocity θ\theta rotates successive terms of Sj,NS_{j,N} so that they partly cancel, which lowers the lag coherence ρτ(j)\rho_{\tau}^{(j)}.

Connection to the Transformer

The Jacobian lens on the transformer is defined by WUJHW_UJ_H, where WUW_U is the unembedding matrix. Given that the activity after the unembedding layer maps to tokens via a softmax, the J-lens on the transformer studies the effect of perturbations on the log probabilities, rather than the probabilities of each state as in the Bayes filter. The difference on the Jacobian is a factor of ∂log⁡p(Xt)=∂p(Xt)/p(Xt)\partial\log p(X_t)=\partial p(X_t)/p(X_t), a positive reweighting. This reweighting changes the scale of each factor, but away from latents with similar lens weights it should not change their order. We therefore use the theory to predict only the ordering of latents in the transformer, and test it empirically.

Numerical Results on the Toy Model

In the following three sections, we first introduce the parameter that is modulated across multiple independent latent states in the HMM (three, across all sections) to induce selective changes in either magnitude aa, lag coherence ρτ\rho_{\tau}, or context coherence ρc\rho_{c}. We then apply the Bayes filter to validate the analytical theory. Next, we train a two-layer decoder-only transformer (Vaswani et al., 2017) with residual dimension 128 and 4 heads per layer to predict the next token given the history (see Appendix § 14 for further details). Our primary result is a validation that the Jacobian lens identifies, without supervision, independent modes associated with the latent states, ordered by the selectively modulated coherence factor. To do so, we fit an encoding model that maps from the Fourier modes (two per latent state for sin and cos) of a latent to the residual stream, and compute the coherence parameters for these directions. We also compute the total cosine similarity between this encoding subspace and the Jacobian lens singular vectors viv_i (input side) and uiu_i (output side) (Appendices § 15 and § 16). We also repeat this process on decoding vectors. Finally, we show that we can predict the persistence λ0∗\lambda_0^* at which two latents swap places, given different angular velocities θ\theta.

Selectively modulating magnitude

We first modulate the persistence λ\lambda by designing a hidden Markov model (HMM) with three latent states, each on a ring, with λ=0.8,0.9,0.95\lambda=0.8, 0.9, 0.95 respectively. We set the latent state velocity v=0v=0, which holds ρτ\rho_{\tau} and ρc\rho_{c} fixed while selectively modulating the magnitude aa of each latent (Figure 5a). All models learn to predict the next token as well as the optimal Bayes filter (Figure 5b). On the Bayes filter, the measured J-lens factors match the theory: the lens weight ∥JHvi∥2\lVert J_Hv_i\rVert_2 tracks the magnitude aa, while ρτ\rho_{\tau} and ρc\rho_{c} stay fixed (Figure 5c). The J-lens applied to the transformer has similar factors at each layer. As predicted, the J-lens directions identify latents in order of their magnitude aa (Figure 15). Across all seeds, this is true for both the input direction viv_i (the right singular vector of the J-lens, which reads in the residual stream at layer ℓ\ell) and the output direction uiu_i (the left singular vector, which writes to the output). The rank order predicted by the theory is validated on the Bayes filter and transformer (Figure 13 and Figure 14). The results are also consistent when using decoding vectors for each latent, rather than encoding vectors (Figure 16), albeit with slightly smaller alignment values.

Figure 5. The J-lens captures the selective modulation of magnitude aa in the Bayes filter and transformers. (a) Cartoon of the task feature that is modulated: a state Xt−1X_{t-1} on the ring is kept with probability λ\lambda (persistence), and sampled uniformly otherwise. (b) Learning curves for the transformer, in comparison to the optimal Bayes filter. (c) J-lens factors of each latent as a function of persistence λ\lambda: lens weight (the singular value aρτρca\rho_{\tau}\rho_{c}) and magnitude aa, both relative to their largest value, then lag coherence ρτ\rho_{\tau} and context coherence ρc\rho_{c}. Open circles: Bayes filter. Blue circles and orange squares: transformer layers 0 and 1. Large markers show the mean across seeds and small markers show single seeds. Red line: theory (Eq. (19)).

Figure 13. Validation of the J-lens theory for the Bayes filter. X-axis denotes the value predicted by the theory (Eq. (19)), while the y-axis denotes the value measured from the lens, for magnitude aa, lag coherence ρτ\rho_\tau and context coherence ρc\rho_c (columns) in each sweep (rows, colored by λ\lambda, θ\theta or ψ\psi). There is only one visible data point for the fixed parameters in each sweep because the HMM is designed to fix these metrics in the Bayes filter.

Figure 14. Validation of the J-lens theory rank prediction for the Bayes filter and the transformer. X-axis denotes the predicted rank order of the singular vectors corresponding to each particular latent (colored by their task parameter λ\lambda, θ\theta or ψ\psi), while the y-axis denotes the measured rank in the J-lens.

Figure 15. Alignment of the J-lens directions with the encoding directions in the magnitude sweep. Alignment OiO_i of the J-lens singular vectors (solid: input side viv_i, hatched: output side uiu_i), ranked by singular value, with the encoding directions EE of each latent (colored by persistence λ\lambda) and with other patterns of the HMM (gray). Columns show the Bayes filter belief state (left), transformer layer 0 (middle) and layer 1 (right). Dashed line: alignment of a random direction.

Figure 16. Alignment of the J-lens vectors with the decoding vectors for each latent in the magnitude sweep. (a) Test decoding accuracy (R2R^2) for the Bayes filter belief state mtm_t on each layer of the transformer, for each latent in the sweep. (b, c) Alignment OiO_i of the J-lens directions viv_i with each latent’s own decoding directions DiD_i (colored) and with the other latents’ decoding directions (gray), for transformer layer 0 (b) and layer 1 (c).

Selectively modulating lag coherence

Next, we selectively modulated the lag coherence ρτ\rho_{\tau} by changing the velocity vv of each latent on the ring (Figure 6a). We placed states on a ring of 8 indices, and selected three latents again with velocities v=0v = 0 (perfectly coherent), 2, and 4 (maximally incoherent), that is, θ=0\theta= 0, π/2\pi/2, π\pi. Our theory again predicts that the J-lens should identify these latents in order of their lag coherence ρτ\rho_{\tau}. As in the prior section, we found that for transformers trained to optimality (Figure 6b), this played out empirically in every seed at layer 0 and all but one seed at layer 1 (Figure 17). The lag coherence ρτ\rho_{\tau} of the J-lens applied to the transformer on each latent separately was similarly modulated most by the velocity, while aa and ρc\rho_{c} were less sensitive (Figure 6c). Again, the results are also consistent when using decoding vectors for each latent, rather than encoding vectors (Figure 18).

Selective modulation of lag coherence in the Bayes filter and transformers

Figure 6. The J-lens captures the selective modulation of lag coherence ρτ\rho_\tau in the Bayes filter and transformers. (a) The velocity vv of the state along the ring, with angular velocity θ=2πv/n\theta= 2\pi v/n, modulates lag coherence ρτ\rho_\tau. (b) Learning curves of the transformer, as in Figure 5. (c) J-lens factors as a function of angular velocity θ\theta, as in Figure 5.

Figure 17. Alignment of the J-lens directions with the encoding directions in the lag coherence sweep. Latents are colored by angular velocity θ\theta. Panels as in Figure 15.

Figure 18. Alignment of the J-lens vectors with the decoding vectors for each latent in the lag coherence sweep. (a) Test decoding accuracy (R2R^2) for the Bayes filter belief state mtm_t on each layer of the transformer, for each latent in the sweep. (b, c) Alignment OiO_i of the J-lens directions viv_i with each latent’s own decoding directions DiD_i (colored) and with the other latents’ decoding directions (gray), for transformer layer 0 (b) and layer 1 (c).

omega-lens family

As described in § 2.2, we also evaluated the ω\omega-J-lenses on the lag coherence sweep for both transformer layers and the Bayes filter. We swept the ω\omega parameter across the whole range, and found that it preferentially upweighted latent directions with lag coherence parameters (tuned via θ\theta in the task) that maximally aligned with the ω\omega (Figure 7). This suggests that the ω\omega-J-lens family can be used to selectively identify rapidly changing information across tokens (like syntax) or slowly changing information, by sweeping ω\omega.

Selectively modulating context coherence

Lastly, we selectively modulate context coherence ρc\rho_{c} by introducing a key state to latent states with n=2n = 2 states (§ 4.1). In this HMM, an observed state is flipped to the opposite state with probability (1−ψ)/2(1-\psi)/2. Holding all other parameters besides ψ\psi fixed, the context coherence can be modulated independently, since ρc=ψ\rho_{c} = \psi for the Bayes filter (Appendix § 14). We select ψi=0,0.75,1\psi_i = 0, 0.75, 1, ranging from maximally incoherent (0) to coherent (1), and train a transformer on this 3-latent HMM. The J-lens factors of the Bayes filter match the theory, with ρc\rho_{c} tracking ψ\psi (Figure 8). The Bayes filter J-lens identifies the latents in the predicted order, and the transformer does as well (Figure 19).

Figure 8. The J-lens captures the selective modulation of context coherence ρc\rho_c in the Bayes filter and transformers. (a) For keyed features, the true state is revealed in the token with probability (1+ψ)/2(1+\psi)/2. Otherwise, the state is revealed inverted, so that ρc=ψ\rho_c = \psi. (b) Learning curves of the transformer, as in Figure 5. (c) J-lens factors as a function of key mean ψ\psi, as in Figure 5.

Figure 19. Alignment of the J-lens directions with the encoding directions in the context coherence sweep. Latents are colored by key mean ψ\psi. Panels as in Figure 15.

This lens is noisier than the previous analyses, potentially due to the increase in noise in the observed states added by the key variable. In both layers, several J-lens directions also align with patterns other than the latent belief states, mainly the reveal state BtB_t (whether or not the latent states are observed) of the present token and the key state Wt−1W_{t-1} (Figure 21). This suggests that the J-lens can identify other important features in the latent space in an unsupervised fashion. The lens factors (Figure 8c) show that both transformer layers compress the range of context coherence: ρc\rho_c is much higher than in the Bayes filter for the incoherent latent (ψ=0\psi= 0) and lower for the coherent ones. The high ρc\rho_c at ψ=0\psi= 0 suggests that transformers may have a bias for extracting context-independent information from data. Finally, the results remain consistent when using decoding vectors for each latent, rather than encoding vectors (Figure 20).

Figure 20. Alignment of the J-lens vectors with the decoding vectors for each latent in the context coherence sweep. (a) Test decoding accuracy (R2R^2) for the Bayes filter belief state mtm_t on each layer of the transformer, for each latent in the sweep. (b, c) Alignment OiO_i of the J-lens directions viv_i with each latent’s own decoding directions DiD_i (colored) and with the other latents’ decoding directions (gray), for transformer layer 0 (b) and layer 1 (c).

Figure 21. J-lens direction alignment with other features of the HMM that are not the latent states in the context sweep. Black denotes the reveal state BtB_t: whether or not the latent state is revealed in the token, and the colors denote the key state Wt−1W_{t-1} (whether the latent state is flipped) for each key mean ψ\psi.

Theory predicts the crossing of two latents

To further emphasize that our theory can predict the ordering of features in the J-lens, we show that our theory can predict when two latents are swapped in the Bayes filter, and that this predicted crossing point roughly translates to the transformer. We simulate an HMM with no keys here simplicity. For two latents with angular velocities θ0=0\theta_0 = 0 and θ1\theta_1, our theory predicts a persistence value λ0∗\lambda_0^* for a given λ1\lambda_1 and θ1\theta_1, at which two latents swap order in the J-lens (Appendix § 13.§ 1, Eq. (47)). On the Bayes filter, this theory plays out extremely cleanly (Figure 9a,Figure 9b) across a range of λ1\lambda_1 and θ1\theta_1 values, with the theory exactly predicting the crossing point λ0∗\lambda_0^* of two latents. Applied to the transformer, our results generalize with a small bias (up to about 0.07 in λ0\lambda_0) in opposite directions at each layer (Figure 9c). Together, this suggests that even though the Bayes filter theory does not perfectly translate to the transformer, as expected, the predictions are still quite informative.

Predictive theory of crossing of latents in the J-lens

Figure 9. Predictive theory of crossing of latents in the J-lens. (a) Empirical singular values σ\sigma (circles) and analytically derived values in the large-HH limit (line) for the J-lens applied to a Bayes filter with two latents (L0, L1). λ0\lambda_0 is swept for L0, while λ1\lambda_1 is held fixed for L1. Vertical dotted line denotes the predicted crossing point λ0∗\lambda_0^*. (b) Predicted crossing point λ0∗\lambda_0^* (Eq. (47)) and empirical crossing point (circles) as a function of the angular velocity θ1\theta_1 of L1. (c) Difference in singular values σ0−σ1\sigma_0-\sigma_1 as a function of λ0−λ0∗\lambda_0-\lambda_0^*, for the transformer trained on the same HMM as in (a). Vertical solid line denotes the mean crossing point across seeds, gray shading denotes standard deviation. Each curve is averaged over 4 variations of θ1\theta_1 (circles in (b)).

Discussion

We have shown that the Jacobian lens, as introduced by Gurnee et al. [16], identifies modes in any temporally and spatially varying dynamical system that jointly maximize three different statistical features:

Magnitude aa. Magnitude measures how a state grows or shrinks across a ‘temporal’ dimension. In transformers, it combines growth across layers, with depth exponent χ\chi, and persistence across lags, with rate μ\mu. However, this could be defined differently in other systems. Magnitude aligns most directly with the standard notion of a finite-time Lyapunov exponent, which typically measures growth across time in a dynamical system.

Lag coherence ρτ\rho_\tau. Lag coherence measures how a feature is modulated across ‘spatial’ lags τ\tau. In transformers, this is measured across token positions, where a mode rotates at frequency θ\theta. Cross-token dynamics in language models have previously been studied as multi-particle systems ([22, 15]), in which each token (particle) has a particular spatial position and interacts with others via self-attention. The most coherent spatial modes are those with zero spatial frequency (θ≈0\theta\approx0). In Lyapunov theory, coherent directions relate to the measurement of hydrodynamic Lyapunov modes, which are the spatially coherent Lyapunov vectors.

Context coherence ρc\rho_c. Context coherence measures how much the dynamics are modulated across different states or time periods. Roughly, maximizing context coherence identifies modes that are autonomous (ρc≈1\rho_c \approx1), which is to say independent with respect to the context. The transformer architecture is highly context-dependent, whereas autonomous dynamical systems are not. That the transformer learned features with much higher ρc\rho_c than the Bayes filter for the context-incoherent latent (Figure 8c) suggests that transformers might learn to modulate contextual information via context-independent dynamics, which could be a fundamental mechanism for symbolic processing. This further suggests that it may be viable to study transformers more generally as dynamical systems (Ostrow et al., [26]) just like recurrent neural networks (Sussillo & Barak, 2013).

Our analysis is consistent with a number of phenomena in the original J-lens paper (Gurnee et al., [16]). As described previously, high-magnitude, lag-coherent, and context-coherent directions need not have large variance (Corollary 2.1). This is consistent with the finding of Gurnee et al. [16] that the J-space is never more than 10% of activation variance. Lag coherence preference explains why, when Claude was asked to ‘concentrate on X while solving Y’ (Gurnee et al., [16]), the J-lens identified features corresponding to X, as these features would be prevalent and coherent across all token positions. A preference for contextually coherent directions explains why averaging identifies concepts that are broadly verbalizable, not specific to a single prompt.

Our work aligns with other results in mechanistic interpretability (Shai et al., 2024) that study how toy transformers represent belief state geometry in their latent state and learn to decompose independent factors of the generative process into orthogonal subspaces (Shai et al., 2026). However, this work has generally relied on linear decoding of these belief states, which requires a priori knowledge of the optimal belief states at each timestep. Our results here suggest that the J-lens could be a way to identify these belief states in an unsupervised manner, which would be effective for scaling to real-world behaviors.

This analysis also suggests that a family of Jacobian lenses could be designed to capture different types of information within transformers. For example, local information could be emphasized by averaging over high-frequency Fourier modes, rather than low-frequency, as we showed in Figure 7. This could be relevant for isolating and understanding fast-changing information, such as those on the level of syntax that change word-by-word. Contextually incoherent information could be isolated by identifying Jacobian modes that minimize context coherence ρc\rho_c, rather than maximize it. Given recent work on estimating Jacobians from dynamical data (Eisen et al., [13]), the ω\omega-J-lenses could productively be applied to biological neural data as well. Together, our results clarify the mathematical nature of the J-lens, which is necessary for such a useful and efficient interpretability tool.

Limitations. We fit the J-lens on only one dataset and used only one layer and lag window for the open-source LLMs, and it is unclear how changing these factors changes the J-lens. Our analysis additionally relies on a singular value decomposition of the J-lens matrix for analytical tractability, while the original J-space comes from a sparse non-negative decomposition.

Jacobian singular values under averaging

Fix UU, VV and singular values sj=e−βjs_j = e^{-\beta j} for j=1,…,dj = 1,\ldots,d, with S=diag⁡(s1,…,sd)S = \operatorname{diag}(s_1,\ldots,s_d). For each sample i=1,…,Ni = 1,\ldots,N, draw a random permutation PiP_i and set

Xi=UPiSPiTVT.(20)X_i = U P_i S P_i^{\mathsf{T}} V^{\mathsf{T}}. \tag*{(20)}

Every XiX_i has the same singular values e−β,e−2β,…,e−βde^{-\beta}, e^{-2\beta},\ldots,e^{-\beta d}. Since U,VU,V are shared,

Xˉ=1N∑iXi=U(1N∑iPiSPiT)VT=USˉVT,(21)\bar{X} = \frac{1}{N} \sum_i X_i = U\left(\frac{1}{N}\sum_i P_i S P_i^{\mathsf{T}}\right)V^{\mathsf{T}} = U\bar{S}V^{\mathsf{T}}, \tag*{(21)}

so the singular values of Xˉ\bar{X} are the diagonal entries of Sˉ\bar{S},

Sˉkk=1N∑isπi(k).(22)\bar{S}_{kk} = \frac{1}{N} \sum_i s_{\pi_i(k)}. \tag*{(22)}

Each sπi(k)s_{\pi_i(k)} is a uniform draw from {s1,…,sd}\{s_1,\ldots,s_d\}, so

E Sˉkk=sˉ=1d∑j=1de−βj,Var⁡Sˉkk=Var⁡(s)N→N→∞0.(23)\mathbb{E}\,\bar{S}_{kk} = \bar{s} = \frac{1}{d}\sum_{j=1}^{d}e^{-\beta j}, \qquad\operatorname{Var}\bar{S}_{kk} = \frac{\operatorname{Var}(s)}{N} \xrightarrow{N\to\infty} 0. \tag*{(23)}

Every singular value of Xˉ\bar{X} therefore converges to the same value sˉ\bar{s}. Each XiX_i has the decaying spectrum e−βke^{-\beta k}, but the mean Xˉ\bar{X} has a flat spectrum: Xˉ→sˉ UVˉT\bar{X} \to\bar{s}\,U\bar{V}^{\mathsf{T}}.

Real Jacobians of LLMs

For each model (Gemma-2-2B, Llama-3.2-3B, Qwen3.5-9B, Qwen3-14B), we computed per-token Jacobians of the residual stream on 96 text prompts drawn from 16 public datasets, six prompts each, all from Hugging Face:

  • Wikipedia, 2023-11-01 dump, in English, Russian, Arabic, Chinese, Japanese and Swahili (wikimedia/wikipedia; Wikimedia Foundation, 2023);

  • Python code from CodeParrot-clean (codeparrot/codeparrot-clean; Tunstall et al. (2022));

  • JavaScript functions from the CodeXGLUE code-to-text benchmark (google/code_x_glue_ct_code_to_text; Lu et al. [21]);

  • SQL schemas with queries from Gretel’s synthetic text-to-SQL dataset (gretelai/synthetic_text_to_sql; Meyer et al. [23]);

  • mathematical web text from OpenWebMath (open-web-math/open-web-math; Paster et al. [28]);

  • grade-school math word problems with worked solutions from GSM8K (openai/gsm8k; Cobbe et al. [7]);

  • dialogues from DialogSum (knkarthick/dialogsum; Chen et al. [5]);

  • news articles from CNN/DailyMail, version 3.0.0 (abisee/cnn_dailymail; Hermann et al. [18]; See et al. (2017));

  • poems (merve/poetry)1;

  • contract clauses from LEDGAR, via LexGLUE (coastalcph/lex_glue; Tuggener et al. (2020); Chalkidis et al. [4]);

  • recipes (corbt/all-recipes)2.

Prompts were drawn at random, with a fixed seed, from the first 200 training examples of each dataset. Only texts of at least 400 characters were kept, and each was truncated to its first 57 tokens. We computed the exact Jacobian from the middle block of all models to the last block, one token ahead:

Jc,t=∂hL−1(c)(t+1)∂hℓ(c)(t)∈Rd×d.(24)J_{c,t} = \frac{\partial h_{L-1}^{(c)}(t+1)}{\partial h_{\ell}^{(c)}(t)} \in\mathbb{R}^{d\times d}. \tag*{(24)}

Jacobians were computed by reverse-mode differentiation, with float32 weights and eager attention, giving N=96×8=768N = 96 \times8 = 768 matrices per model. The mean Jacobian is their element-wise average,

Jˉ=1N∑c,tJc,t.(25)\bar{J} = \frac{1}{N}\sum_{c,t}J_{c,t}. \tag*{(25)}

where cc denotes context and tt denotes position in the text. To visualize the distribution of these matrices, we computed each Jacobian’s top 100 singular values, suppressing the rest as they may be noisy. We rescaled the singular value distribution by taking a logarithm, so that lower values can contribute in dimensionality reduction, and normalized the distribution for all Jacobians. We then fit and applied PCA to the individual Jacobians, then projected the mean Jacobian into this space.

Computing coherence factors for LLM J-lenses

We compute the J-lens of each LLM in Figure 1 from the middle block to the last block (indexing blocks from zero): gemma-2-2b (d=2304d = 2304, 26 blocks, block 13 →\to 25), Llama-3.2-3B (d=3072d = 3072, 28 blocks, 14 →\to 27), Qwen3.5-9B (d=4096d = 4096, 32 blocks, 16 →\to 31) and Qwen3-14B (d=5120d = 5120, 40 blocks, 20 →\to 39). Weights are in float32, and matrix products use TF32.

We fit the J-lenses to 512 articles of the WikiText-103 training split (the first 192 tokens, skipping the first 16 as they hold attention-sink activations), and evaluate the coherence parameters on English natural-language text from other datasets: news articles (CNN/DailyMail), dialogues (DialogSum), poems, contract clauses (LEDGAR) and recipes. We use 16 prompts per dataset, 80 held-out contexts in each individual run. Lags run over τ=1,…,H\tau= 1,\ldots,H with H=128H = 128. We repeat the analysis on independently sampled data, with 5 runs for gemma-2-2b and Llama-3.2-3B and 3 runs for Qwen3.5-9B and Qwen3-14B.

The J-lens directions are the top 50 right singular vectors viv_i of JHJ_H, ordered by singular value. For comparison, we include principal component analysis (PCA), SFA and DCA. PCA directions are the top 50 eigenvectors of the covariance of the source-layer activations hℓ,th_{\ell,t} at positions 16 and later in the 512 fit prompts, ordered by variance. Random directions are 50 independent standard Gaussian vectors. All directions are normalized to unit length before passing through the Jacobian.

SFA and DCA take into account the order of the tokens. Both use the source activations of the fit prompts at positions 16 and later, reduced to their top 200 principal components and whitened to the identity covariance. Let ztz_t be the whitened activation at token tt. Slow feature analysis takes the 50 unit vectors ww along which w⊤ztw^\top z_t changes least from one token to the next, that is, the eigenvectors of E(zt+1−zt)(zt+1−zt)⊤\mathbb{E}(z_{t+1}-z_t)(z_{t+1}-z_t)^\top with the smallest eigenvalues, the slowest first. Dynamical components analysis takes the 50-dimensional subspace whose trajectory has the largest predictive information: the mutual information between its past and its next T=16T=16 tokens under a Gaussian model, log⁡∣CT∣−12log⁡∣C2T∣\log|C_T|-\frac{1}{2}\log|C_{2T}| with CnC_n the covariance of nn consecutive tokens. We optimize it by gradient ascent from two starting points (the slow features and a random subspace) and keep the result with greater predictive information. A subspace has no order, so we order via a quasi Gram-Schmidt process by picking a direction that maximizes the predictive information of its own timeseries, then projecting this direction out of the subspace. Each method (J-lens, PCA, SFA, DCA) thus gives 50 rank-ordered unit directions, which we compare with the 50 random directions. For each unit direction vv we compute the Jacobian-vector products K(c,τ)vK(c,\tau)v for all HH lags, and from them the three coherence parameters as in Eq. (10):

a(v)=Ec,τ∥K(c,τ)v∥,ρτ(v)=Ec∥EτK(c,τ)v∥Ec,τ∥K(c,τ)v∥,ρc(v)=∥Ec,τK(c,τ)v∥Ec∥EτK(c,τ)v∥.(26)\begin{aligned} a(v) &= \mathbb{E}_{c,\tau}\|K(c,\tau)v\|,\qquad \rho_\tau(v) = \frac{\mathbb{E}_c\|\mathbb{E}_\tau K(c,\tau)v\|}{\mathbb{E}_{c,\tau}\|K(c,\tau)v\|},\qquad \rho_c(v) = \frac{\|\mathbb{E}_{c,\tau}K(c,\tau)v\|}{\mathbb{E}_c\|\mathbb{E}_\tau K(c,\tau)v\|}. \tag*{(26)} \end{aligned}

The shared-mode model

This appendix provides the averaging steps and assumptions behind the shared-mode model of Eq. (5).

Averaging. The shared component has singular strengths eTχi+τμie^{T\chi_i+\tau\mu_i}. Suppressing ℓ\ell in the notation, averaging gives

JH=SH+EcRc,SH=∑igiuivi∗,J_H=S_H+\mathbb{E}_cR_c,\qquad S_H=\sum_i g_i u_i v_i^\ast,
Rc=1H∑τ=1HR(c,ℓ,τ),gi=eTχifH(γi),(27)R_c=\frac{1}{H}\sum_{\tau=1}^{H}R(c,\ell,\tau),\qquad g_i=e^{T\chi_i}f_H(\gamma_i), \tag*{(27)}
fH(γ)=1H∑τ=1Heτγ={eγ(1−eHγ)H(1−eγ),eγ≠1,1,eγ=1.f_H(\gamma)=\frac{1}{H}\sum_{\tau=1}^{H}e^{\tau\gamma}= \begin{cases} \frac{e^\gamma(1-e^{H\gamma})}{H(1-e^\gamma)}, & e^\gamma\ne1,\\ 1, & e^\gamma=1. \end{cases}

The shared singular strengths after averaging are ∣gi∣|g_i|. Assume bounded accumulated depth growth and non-growing lag dynamics:

Tχi≤Γ,μi≤0,T\chi_i\le\Gamma,\qquad\mu_i\le0,
∥SH∥2=M≤eΓ,Ec∥Rc∥22≤M2.(28)\|S_H\|_2=M\le e^\Gamma,\qquad\mathbb{E}_c\|R_c\|_2^2\le M^2. \tag*{(28)}

These assumptions prevent the context-specific response from having arbitrarily greater magnitude than the shared response scale. Spectral dominance additionally requires shared strengths above the averaged remainder, as shown in Eq. (8).

Overlap of context-specific responses. For a unit input perturbation vv and independent context draws c,c′c,c',

∥(EcRc)v∥22=v∗Ec,c′[Rc∗Rc′]v=Ec,c′⟨Rcv,Rc′v⟩.(29)\|(\mathbb{E}_cR_c)v\|_2^2=v^\ast\mathbb{E}_{c,c'}[R_c^\ast R_{c'}]v=\mathbb{E}_{c,c'}\langle R_cv,R_{c'}v\rangle. \tag*{(29)}

Here ⟨A,B⟩F=tr⁡(A∗B)\langle A, B\rangle_F = \operatorname{tr}(A^*B) and ∗* denotes conjugate transpose. Thus growth is the expected Frobenius overlap of the Jacobians restricted to the same input direction. The unprojected overlap ⟨Rc,Rc′⟩F\langle R_c, R_{c'}\rangle_F sums over input directions instead.

Write Rc=∑jscjRucjR(vcjR)∗R_c = \sum_j s_{cj}^{R}u_{cj}^{R}(v_{cj}^{R})^*, using s,u,vs,u,v for singular values, output directions, and input directions. Then

⟨Rcv,Rc′v⟩=∑j,kscjRsc′kR(v∗vcjR)((vc′kR)∗v)((ucjR)∗uc′kR)(30)\left\langle R_cv,R_{c'}v\right\rangle= \sum_{j,k} s_{cj}^{R}s_{c'k}^{R}(v^*v_{cj}^{R})((v_{c'k}^{R})^*v)((u_{cj}^{R})^*u_{c'k}^{R}) \tag*{(30)}

The bound sup⁡∥v∥=1Ec,c′∣⟨Rcv,Rc′v⟩∣≤η Ec∥Rc∥22\sup_{\|v\|=1}\mathbb{E}_{c,c'}\left|\left\langle R_cv,R_{c'}v\right\rangle\right| \leq\eta\,\mathbb{E}_c\|R_c\|_2^2 used in Eq. (8) therefore requires that, on average, the input or output directions of the context-specific modes are poorly aligned across contexts.

Perturbation bounds. Write E:=EcRcE := \mathbb{E}_cR_c, so ∥E∥2≤η M\|E\|_2 \leq\sqrt{\eta}\,M by Eq. (8). By Weyl’s inequality, ∣σi(JH)−σi(SH)∣≤∥E∥2|\sigma_i(J_H)-\sigma_i(S_H)| \leq\|E\|_2. By Wedin’s theorem (Wedin, 1972), the sine of the largest angle between the top-kk right singular subspaces of JHJ_H and SHS_H is at most ∥E∥2/(Δk−∥E∥2)\lVert E\rVert_2/(\Delta_k-\lVert E\rVert_2), where Δk=σk(SH)−σk+1(SH)>∥E∥2\Delta_k=\sigma_k(S_H)-\sigma_{k+1}(S_H)>\lVert E\rVert_2.

Response-scale bound. Since ∥JHv∥=ρc(v)ρτ(v)a(v)\lVert J_Hv\rVert=\rho_c(v)\rho_\tau(v)a(v) and a(v)≤Ec,τ∥K(c,ℓ,τ)∥2a(v)\le E_{c,\tau}\lVert K(c,\ell,\tau)\rVert_2 for a unit input vv,

∥JHv∥≤ρc(v)ρτ(v)Ec,τ∥K(c,ℓ,τ)∥2.(31)\lVert J_Hv\rVert\le\rho_c(v)\rho_\tau(v)E_{c,\tau}\lVert K(c,\ell,\tau)\rVert_2. \tag*{(31)}

At a fixed response scale, a direction’s contribution to the lens is therefore capped by the product of its two coherences.

Proof of Corollary 2.1

Proof. Let e1,e2e_1,e_2 be orthonormal directions, and consider the linear response model

K(c,ℓ,τ)=s(e1e1∗+ξc(−1)τe2e2∗),s>0.K(c,\ell,\tau)=s\left(e_1e_1^*+\xi_c(-1)^\tau e_2e_2^*\right),\qquad s>0.

where ξc\xi_c takes values ±1\pm1 with equal probability. The first direction is perfectly coherent across contexts and constant across future lags; the second changes sign across contexts and oscillates rapidly across lags. Thus

JH=Ec1H∑τ=1HK(c,ℓ,τ)=se1e1∗.J_H=\mathbb{E}_c\frac{1}{H}\sum_{\tau=1}^{H}K(c,\ell,\tau)=se_1e_1^*.

The unique nonzero singular value is ss, and its input direction is e1e_1.

Independently, choose centered input activations, independent of ξc\xi_c, with covariance

C=βe1e1∗+e2e2∗,β>0.C=\beta e_1e_1^*+e_2e_2^*,\qquad\beta>0.

These responses are realized by the context-dependent linear maps h↦K(c,ℓ,τ)hh\mapsto K(c,\ell,\tau)h. The fraction of activation variance captured by projection onto the selected direction is

e1∗Ce1tr⁡C=β1+β⟶0as β→0.\frac{e_1^*Ce_1}{\operatorname{tr}C}=\frac{\beta}{1+\beta}\longrightarrow0\quad\text{as }\beta\to0.

Interchanging the two covariance eigenvalues makes this fraction approach 11, without changing the Jacobians, their coherence or slowness, or the singular values of JHJ_H.

By (12), every nonzero token-indexed J-lens direction in this example is proportional to e1e_1. Hence even the full span of the J-lens directions can capture arbitrarily little activation variance. Jacobian averaging favors coherent, slowly varying responses, weighted by their response magnitudes. Those properties do not require the corresponding activations to have large variance.

Bayes filter derivations

Any distribution pp on Zn\mathbb{Z}_n is defined by its modes Epϕj(X)\mathbb{E}_p\phi_j(X):

p(x)=1n∑j=0n−1Ep[ϕj(X)]ϕj(x)‾.(32)p(x)=\frac{1}{n}\sum_{j=0}^{n-1}\mathbb{E}_p[\phi_j(X)]\overline{\phi_j(x)}. \tag*{(32)}

Lemma F.1 (Expected dynamic). For j≠0j\ne0,

E[ϕj(Xt+1)∣Xt]=αjϕj(Xt),αj:=λcjeiθj,cj:=1−2q+2qcos⁡(2πj/n).(33)\mathbb{E}[\phi_j(X_{t+1})\mid X_t]=\alpha_j\phi_j(X_t),\qquad\alpha_j:=\lambda c_j e^{i\theta_j},\qquad c_j:=1-2q+2q\cos(2\pi j/n). \tag*{(33)}

Proof. The expectation of a mode is Eϕj=1n∑yϕj(y)=0\mathbb{E}\phi_j=\frac{1}{n}\sum_y\phi_j(y)=0. One update step gives

ϕj(Xt+v+Dt)=ϕj(Xt)eiθje2πijDt/n.(34)\phi_j(X_t+v+D_t)=\phi_j(X_t)e^{i\theta_j}e^{2\pi i jD_t/n}. \tag*{(34)}

and

Ee2πijDt/n=1−2q+q(e2πij/n+e−2πij/n)=cj.(35)\mathbb{E}e^{2\pi i jD_t/n}=1-2q+q\left(e^{2\pi i j/n}+e^{-2\pi i j/n}\right)=c_j. \tag*{(35)}

Derivation of the J-lens factors

We use the notation of § 5.2: Kj(c,τ)=αjτ+1AτK_j(c,\tau)=\alpha_j^{\tau+1}A_\tau, rj=∣αj∣(1−ε)r_j=|\alpha_j|(1-\varepsilon), and N(c)N(c) the number of tokens until the next reveal, with P(N=k)=(1−ε)k−1εP(N=k)=(1-\varepsilon)^{k-1}\varepsilon. Then Aτ=1A_\tau=1 for τ<N\tau<N and 00 from NN onward, so EcAτ=(1−ε)τ\mathbb{E}_cA_\tau=(1-\varepsilon)^\tau.

Magnitude. Since ∣Kj(c,τ)∣=∣αj∣τ+1Aτ|K_j(c,\tau)|=|\alpha_j|^{\tau+1}A_\tau,

a(j)=∣αj∣∑τ=1Hrjτ=∣αj∣rj(1−rjH)1−rj.(36)a^{(j)}=|\alpha_j|\sum_{\tau=1}^{H}r_j^\tau=|\alpha_j|\frac{r_j(1-r_j^H)}{1-r_j}. \tag*{(36)}

Lag coherence. For one mode, the lag coherence is

ρτ(j):=Ec∣1H∑τ=1HKj(c,τ)∣Ec1H∑τ=1H∣Kj(c,τ)∣,(37)\rho_\tau^{(j)}:=\frac{\mathbb{E}_c\left|\frac{1}{H}\sum_{\tau=1}^{H}K_j(c,\tau)\right|}{\mathbb{E}_c\frac{1}{H}\sum_{\tau=1}^{H}|K_j(c,\tau)|}, \tag*{(37)}

whose denominator is a(j)/Ha^{(j)}/H. Summing the Jacobian over lags,

∑τ=1HKj(c,τ)=αjSj,N(c),Sj,N:=∑τ=1min⁡(N−1,H)αjτ,(38)\sum_{\tau=1}^{H}K_j(c,\tau)=\alpha_jS_{j,N(c)},\qquad S_{j,N}:=\sum_{\tau=1}^{\min(N-1,H)}\alpha_j^\tau, \tag*{(38)}

where Sj,NS_{j,N} is the update accumulated over the steps until the state is next revealed. The lag coherence is therefore

ρτ(j)=∣αj∣Ec∣Sj,N∣∣αj∣∑τ=1Hrjτ=(1−rj)Ec∣Sj,N∣rj(1−rjH),(39)\rho_\tau^{(j)}=\frac{|\alpha_j|\mathbb{E}_c|S_{j,N}|}{|\alpha_j|\sum_{\tau=1}^{H}r_j^\tau}=\frac{(1-r_j)\mathbb{E}_c|S_{j,N}|}{r_j(1-r_j^H)}, \tag*{(39)}

where the expectation over the reveal time has the closed form

Ec∣Sj,N(c)∣=∑k=1H(1−ε)k−1ε∣Sj,k∣+(1−ε)H∣Sj,H+1∣.(40)\mathbb{E}_c|S_{j,N(c)}|=\sum_{k=1}^{H}(1-\varepsilon)^{k-1}\varepsilon|S_{j,k}|+(1-\varepsilon)^H|S_{j,H+1}|. \tag*{(40)}

Context coherence. The mean of the accumulated response is

EcSj,N(c)=∑τ=1Hαjτ(1−ε)τ=∑τ=1H(rjeiθj)τ,∣EcSj,N(c)∣=rj∣1−(rjeiθj)H∣∣1−rjeiθj∣.(41)\mathbb{E}_cS_{j,N(c)}=\sum_{\tau=1}^{H}\alpha_j^\tau(1-\varepsilon)^\tau=\sum_{\tau=1}^{H}(r_je^{i\theta_j})^\tau,\qquad\left|\mathbb{E}_cS_{j,N(c)}\right|=\frac{r_j|1-(r_je^{i\theta_j})^H|}{|1-r_je^{i\theta_j}|}. \tag*{(41)}

The context coherence

ρc(j):=∣Ec∑τ=1HKj(c,τ)∣Ec∣∑τ=1HKj(c,τ)∣=∣EcSj,N∣Ec∣Sj,N∣=rj∣1−(rjeiθj)H∣∣1−rjeiθj∣Ec∣Sj,N∣(42)\rho_c^{(j)}:=\frac{\left|\mathbb{E}_c\sum_{\tau=1}^{H}K_j(c,\tau)\right|}{\mathbb{E}_c\left|\sum_{\tau=1}^{H}K_j(c,\tau)\right|}=\frac{|\mathbb{E}_cS_{j,N}|}{\mathbb{E}_c|S_{j,N}|}=\frac{r_j|1-(r_je^{i\theta_j})^H|}{|1-r_je^{i\theta_j}|\mathbb{E}_c|S_{j,N}|} \tag*{(42)}

follows by dividing Eq. (41) by Eq. (40).

Long-window limit. Since ∣αj∣=λ∣cj∣<1|\alpha_j|=\lambda|c_j|<1, the accumulated responses are bounded, ∣Sj,k∣≤∣αj∣/(1−∣αj∣)|S_{j,k}|\le|\alpha_j|/(1-|\alpha_j|), so the boundary term (1−ε)H∣Sj,H+1∣(1-\varepsilon)^H|S_{j,H+1}| in Eq. (40) and the factors rjHr_j^H in Eqs. (36), (39), (41) and (42) vanish geometrically as H→∞H\to\infty. The magnitude and the mean accumulated response become

a(j)=∣αj∣rj1−rj,EcSj,N=rjeiθj1−rjeiθj,(43)a^{(j)}=\frac{|\alpha_j|r_j}{1-r_j},\qquad\mathbb{E}_cS_{j,N}=\frac{r_je^{i\theta_j}}{1-r_je^{i\theta_j}}, \tag*{(43)}

and, substituting Sj,k=αj(1−αjk−1)/(1−αj)S_{j,k}=\alpha_j(1-\alpha_j^{k-1})/(1-\alpha_j) into Eq. (40),

Ec∣Sj,N∣=ε∣αj∣∣1−αj∣∑k=0∞(1−ε)k∣1−αjk∣.(44)\mathbb{E}_c|S_{j,N}|=\frac{\varepsilon|\alpha_j|}{|1-\alpha_j|}\sum_{k=0}^{\infty}(1-\varepsilon)^k|1-\alpha_j^k|. \tag*{(44)}

The coherences are ρτ(j)=(1−rj)Ec∣Sj,N∣/rj\rho_{\tau}^{(j)}=(1-r_j)\mathbb{E}_c|S_{j,N}|/r_j and ρc(j)=rj/(∣1−rjeiθj∣Ec∣Sj,N∣)\rho_c^{(j)}=r_j/\left(|1-r_je^{i\theta_j}|\mathbb{E}_c|S_{j,N}|\right). For general θj\theta_j, the modulus ∣1−αjk∣|1-\alpha_j^k| prevents a closed form for Eq. (44), but it cancels from their product and from the singular value of Eq. (11),

ρτ(j)ρc(j)=1−rj∣1−rjeiθj∣,σ(j):=a(j)ρτ(j)ρc(j)=∣αj∣EcSj,N=∣αj∣rj∣1−rjeiθj∣.(45)\rho_{\tau}^{(j)}\rho_c^{(j)}=\frac{1-r_j}{|1-r_je^{i\theta_j}|},\qquad\sigma^{(j)}:=a^{(j)}\rho_{\tau}^{(j)}\rho_c^{(j)}=|\alpha_j|\mathbb{E}_cS_{j,N}=\frac{|\alpha_j|r_j}{|1-r_je^{i\theta_j}|}. \tag*{(45)}

so only the split of σ(j)\sigma^{(j)} between lag and context coherence requires the series. The split is closed when αj\alpha_j is real. Then 1−αjk>01-\alpha_j^k>0 for all kk, so Sj,kS_{j,k} has the sign of αj\alpha_j for every kk and Ec∣Sj,N∣=∣EcSj,N∣\mathbb{E}_c|S_{j,N}|=|\mathbb{E}_cS_{j,N}|. For a static latent (θj=0\theta_j=0), Ec∣Sj,N∣=rj/(1−rj)\mathbb{E}_c|S_{j,N}|=r_j/(1-r_j) and ρτ(j)=ρc(j)=1\rho_{\tau}^{(j)}=\rho_c^{(j)}=1: the singular value is pure magnitude. For an alternating mode (θj=π\theta_j=\pi), Ec∣Sj,N∣=rj/(1+rj)\mathbb{E}_c|S_{j,N}|=r_j/(1+r_j), ρc(j)=1\rho_c^{(j)}=1 and ρτ(j)=(1−rj)/(1+rj)\rho_{\tau}^{(j)}=(1-r_j)/(1+r_j): the context coherence is perfect, and the lag coherence carries the whole loss from rotation. For intermediate θj\theta_j both coherences are below one, with their product fixed by Eq. (45).

Singular-value switching. For the Bayes filter in belief units, the latents are independent and share only the reveal, so the lens is block diagonal over latents (§ 5.2) and each latent’s mode jj contributes a degenerate pair of singular values equal to σ(j)\sigma^{(j)}. Singular values of different latents therefore cross rather than avoid each other, and the top direction of the lens switches from one latent to the other exactly where their singular values are equal. Compare two latents, labeled 0 and 1 as in Figure 9, on mode j=1j=1, which carries the largest singular value here. We fix j=1j=1 and index by latent ii instead: αi=λic1eiθi\alpha_i=\lambda_ic_1e^{i\theta_i}, ri=(1−ε)∣αi∣r_i=(1-\varepsilon)|\alpha_i|, and σi\sigma_i is the corresponding singular value. Here c1c_1 is the diffusion factor of mode j=1j=1, shared by both latents. By Eq. (45), the switch occurs when

∣α0∣2∣1−r0eiθ0∣=∣α1∣2∣1−r1eiθ1∣.(46)\frac{|\alpha_0|^2}{|1-r_0e^{i\theta_0}|}=\frac{|\alpha_1|^2}{|1-r_1e^{i\theta_1}|}. \tag*{(46)}

Take latent 0 static (θ0=0\theta_0=0) with its persistence λ0\lambda_0 swept, and latent 1 fixed. Let κ:=σ1/(1−ε)=∣α1∣2/∣1−r1eiθ1∣\kappa:=\sigma_1/(1-\varepsilon)=|\alpha_1|^2/|1-r_1e^{i\theta_1}|. Then Eq. (46) is the quadratic ∣α0∣2+(1−ε)κ∣α0∣−κ=0|\alpha_0|^2+(1-\varepsilon)\kappa|\alpha_0|-\kappa=0, whose positive root gives the critical persistence

λ0∗=12c1[(1−ε)2κ2+4κ−(1−ε)κ].(47)\lambda_0^*=\frac{1}{2c_1}\left[\sqrt{(1-\varepsilon)^2\kappa^2+4\kappa}-(1-\varepsilon)\kappa\right]. \tag*{(47)}

This closed form needs θ0=0\theta_0=0; otherwise the equation is quartic and has no simple root. The singular value σ0\sigma_0 rises monotonically from 0 with λ0\lambda_0. The static latent therefore takes the top direction for λ0>λ0∗\lambda_0>\lambda_0^* and loses it below, and a switch exists within the sweep whenever σ0∣λ0=1>σ1\left.\sigma_0\right|_{\lambda_0=1}>\sigma_1. The rotating latent’s handicap enters only through ∣1−r1eiθ1∣|1-r_1e^{i\theta_1}|, the inverse of its product of coherences up to the factor 1−r11-r_1, which is smallest for θ1=0\theta_1=0 and grows with ∣θ1∣|\theta_1| up to π\pi. A faster-turning latent is thus overtaken at a lower λ0∗\lambda_0^*.

Transformer Training Methods

Each model is a standard decoder-only transformer with causal self-attention and rotary position embeddings (RoPE; Su et al., 2024), applied to the queries and keys only during attention. The vocabulary size VV is defined by the HMM: V=83+1=513V=8^3+1=513 for three latents on rings of 8 (every combination of revealed places, plus the null token) and V=(1+2⋅23)23=136V=(1+2\cdot2^3)2^3=136 for the context sweep (null or plain or keyed reveal of three ±1\pm1 latents, times the three key bits).

We write hℓ,t∈Rdh_{\ell,t}\in\mathbb{R}^d for the residual stream at position tt before block ℓ+1\ell+1: h0,th_{0,t} is the token embedding, hℓ,th_{\ell,t} the stream between the two blocks, and h2,th_{2,t} the output of the last block (so L=2L=2), which the final LayerNorm and WUW_U read. The J-lens is read at ℓ=0\ell=0 and ℓ=1\ell=1.

We trained each model with cross-entropy on next-token prediction, with AdamW (Loshchilov & Hutter, [20]) for 20,000 steps with learning rate 10−310^{-3} and weight decay 0.01, on uniform batches of 64 sequences. We compared it with two references: the Bayes filter, which is the optimal predictor, and a memoryless predictor that uses the stationary distribution of the process.

Data for all sweeps

For each sweep and seed we draw 500,000 training sequences of 192 tokens from the respective HMM process, and 200 test sequences. All sweeps use a reveal probability of ε=0.2\varepsilon= 0.2. We ran 8 model seeds per task, jittering λ\lambda, qq, ε\varepsilon and ψ\psi for each seed by independent uniform offsets of at most 0.05 around a fixed mean. For the magnitude sweep, we set the number of states per latent n=8n = 8, velocity v=0v = 0, diffusion probability q=1/4q = 1/4 and persistence λi=0.8,0.9,0.95\lambda_i = 0.8, 0.9, 0.95. For the lag sweep, we set n=8n = 8, v=4,2,0v = 4, 2, 0, q=1/4q = 1/4, λ=0.9\lambda= 0.9. For the context coherence sweep we set n=2n = 2, v=0v = 0, q=0q = 0, λ=0.95\lambda= 0.95, and key means ψi=0,0.75,1\psi_i = 0, 0.75, 1.

These parameter sweeps selectively modulate magnitude, lag coherence and context coherence:

Magnitude sweep. We only differ λi\lambda_i, hence all SN>0S_N > 0 and therefore Ec∣SN∣=EcSN\mathbb{E}_c|S_N| = \mathbb{E}_cS_N and so ρτ=1\rho_\tau= 1, and likewise ρc=1\rho_c = 1. Recall that

ai=λic1ri(1−riH)1−ri(48)a_i = \lambda_i c_1 \frac{r_i(1-r_i^H)}{1-r_i} \tag*{(48)}

with ri=λic1(1−ε)r_i = \lambda_i c_1(1-\varepsilon), giving magnitude parameters of 0.82, 1.23, 1.50 for λ=0.8,0.9,0.95\lambda= 0.8, 0.9, 0.95.

Lag sweep. We have that λ\lambda, c1c_1, ε\varepsilon are shared, hence the magnitude is fixed across all latents. Only θ\theta varies, which varies αi=λc1eiθi\alpha_i = \lambda c_1 e^{i\theta_i}, and with Sk=αi1−αik−11−αiS_k = \alpha_i^{\frac{1-\alpha_i^{k-1}}{1-\alpha_i}}, we have that ρτ=1,0.35,0.24\rho_\tau= 1, 0.35, 0.24 for θi=0,π/2,π\theta_i = 0, \pi/2, \pi. For ρc\rho_c, the sign of SNS_N is shared across all contexts for θ=0,π\theta= 0, \pi and so ρc=1\rho_c = 1. For π/2\pi/2, the value is slightly less, at ρc=0.945\rho_c = 0.945.

Context sweep. For the context sweep, we modified ψi\psi_i only. This keeps ρτ\rho_\tau and magnitude aa fixed, while ρc=ψ\rho_c = \psi, as Ec[Wt−1SN]=ψEcSN\mathbb{E}_c[W_{t-1}S_N] = \psi\mathbb{E}_cS_N and E∣Wt−1SN∣=EcSN\mathbb{E}|W_{t-1}S_N| = \mathbb{E}_cS_N.

Computing alignment of J-lens vectors and latent state representations

We compute the Jacobian lens on 1000 sampled sequences from the task HMM after a 32-token burn-in period, for sequences of length 192. We computed the Jacobian only on the tokens that revealed latent states, totaling about 19,000 sources. We summed over H=64H = 64 lags. For the transformer, the output is the token scores, using WUW_U scaled by the final LayerNorm gain, centered over tokens. The Jacobian was computed with forward-mode autodifferentiation and validated with a split-halves analysis. For the Bayes filter, the input is separated by latent, and the output is the predicted distribution over each latent separately as well.

We computed the singular value decomposition JH=UΣV∗J_H = U\Sigma V^* using standard linear algebra routines in Python. The left singular vectors UU are the output directions that the Jacobian writes, while the right singular vectors VV are the directions that the model reads. They are ordered by the singular values on the diagonal of Σ\Sigma.

Alignment between J-lens vectors and latent vectors

We identify the relationship between the J-lens vectors and the latent state features by identifying an encoding and decoding subspace for each latent state mode ϕj(X(i))\phi_j(X^{(i)}) (the Fourier mode jj of latent state ii), and computing the overlap between the J-lens vectors and these subspaces. Specifically, we take nsn_s sequences and, at the last time step of each, record pp latent state patterns (e.g. ℜϕ1(X(1))\Re\phi_1(X^{(1)}) and ℑϕ1(X(1))\Im\phi_1(X^{(1)}), the real and imaginary parts of the first Fourier mode of latent state 1). We stack the centered residual activity vectors into Z∈Rns×dZ \in\mathbb{R}^{n_s \times d} and the centered patterns into Φ∈Rns×p\Phi\in\mathbb{R}^{n_s \times p}, which has two columns (real and imaginary parts) for each latent mode. These are the patterns on which encoding and decoding regression is done.

We compute the encoding direction of each pattern independently via

E=diag⁡(ΦTΦ)−1ΦTZ,(49)E = \operatorname{diag}(\Phi^\mathsf{T}\Phi)^{-1}\Phi^\mathsf{T}Z, \tag*{(49)}

which is a map from patterns to activity; the diagonal means that each pattern is regressed independently, rather than jointly. For a decoding analysis, we reverse the process, computing

Di=(Z⊤Z+νI)−1Z⊤Mi(50)D_i = (Z^\top Z + \nu I)^{-1} Z^\top M_i \tag*{(50)}

where ν\nu is a ridge penalty and Mi∈Rns×2M_i \in\mathbb{R}^{n_s \times2} holds the Bayes filter beliefs of latent ii, for example E[ϕ1(Xt(i))∣Y≤t]\mathbb{E}[\phi_1(X_t^{(i)}) \mid Y_{\leq t}], split into real and imaginary parts.

On the output side, the patterns are directly readable from the tokens. Each token represents a particular state of all latents, so we can directly align the Fourier mode patterns broadcast to the output singular vectors. That is, each output singular vector is in RV\mathbb{R}^{V}, and for each Fourier mode of each latent we construct a vector in RV\mathbb{R}^{V} by setting the entry of each token to cos⁡(2πx/n)\cos(2\pi x/n) (or sin⁡\sin), where xx is the state of that latent in the token. Then, the encoding analysis simply comes down to projection of the J-lens singular vector onto the plane spanned by each pattern individually.

We compute alignment by measuring how much a unit vector of the J-lens lies in the span of a group of encoding or decoding directions, which in practice are taken to be the vectors corresponding to a single mode of a latent state (typically two vectors corresponding to the sine and cosine directions). We define the overlap of a unit lens vector vv by projecting it onto the span of the kik_i reference vectors corresponding to the relevant feature:

Oi(v)=∥Qi⊤v∥,(51)O_i(v) = \lVert Q_i^\top v \rVert, \tag*{(51)}

where the columns of QiQ_i are an orthonormal basis for the kik_i reference vectors, constructed with a QR decomposition. Under this construction, a random unit direction in dd dimensions has an expected squared projection of ki/dk_i/d onto a kik_i-dimensional subspace, making the chance level of overlap ki/d\sqrt{k_i/d}, with ki=2k_i = 2 for Fourier modes and d=128d = 128. We assign each J-lens direction to the latent with the largest overlap.

Validating singular value switching theory

The switching analysis (Appendix § 13.§ 1) makes two predictions. First, in the large-HH limit the singular value of each latent’s first Fourier mode is σi=∣αi∣ri/∣1−rieiθi∣\sigma_i = |\alpha_i| r_i / |1-r_i e^{i\theta_i}| (Eq. (45)). Second, for a static latent 0 with swept persistence λ0\lambda_0 and a fixed latent 1, the two singular values cross, and the top J-lens direction switches from latent 1 to latent 0, at the persistence λ0∗\lambda_0^* of Eq. (47). We test both predictions on the Bayes filter, and the second on transformers trained across the switch.

Task. We use the toy-model HMM with two unkeyed latents on rings of n=8n = 8 states, diffusion probability q=1/4q = 1/4 and reveal probability ϵ=0.2\epsilon= 0.2, which gives V=82+1=65V = 8^2 + 1 = 65 tokens. Latent 0 is static (v0=0v_0 = 0) and its persistence λ0\lambda_0 is swept. Latent 1 has fixed persistence λ1=0.95\lambda_1 = 0.95 and velocity θ1∈{1,2,3,4}\theta_1 \in\{1, 2, 3, 4\}, that is, angular velocity θ1=πv1/4∈{π/4,π/2,3π/4,π}\theta_1 = \pi v_1/4 \in\{\pi/4, \pi/2, 3\pi/4, \pi\}, which are all the nonzero turns a ring of 8 allows, up to direction.

Theory. The predicted singular values are Eq. (45), evaluated for each latent on mode j=1j = 1. The predicted switch point is Eq. (47), which depends only on latent 1 and the shared parameters, not on λ0\lambda_0. The series for Ec∣Sj,N∣\mathbb{E}_c|S_{j,N}| (Eq. (44)), needed for the individual coherences but not for σi\sigma_i, is truncated at 200 terms.

Measuring the singular values. We compute the J-lens as in Appendix § 15, on 1000 sampled sequences of 192 tokens with a 32-token burn-in, using only the revealed source tokens, and sum over H=64H = 64 lags. The first Fourier mode of each latent is a plane (its real and imaginary parts), so each latent owns two singular directions. We assign the J-lens directions to latents by the overlap of their output side with each latent’s mode-1 pattern (Appendix § 16), and take σi\sigma_i to be the mean of the two singular values assigned to latent ii. For the Bayes filter the two are degenerate (Appendix § 13.§ 1).

Bayes filter

Singular values. We sweep λ0∈[0.55,0.95]\lambda_0 \in[0.55, 0.95] in steps of 0.025 at θ1=π/2\theta_1 = \pi/2, and compare the measured σ0\sigma_0 and σ1\sigma_1 with Eq. (45). The same sampled sequences are reused at every λ0\lambda_0, so that sampling noise does not vary along the sweep.

Switch point. For each θ1\theta_1 we measure σ0\sigma_0 and σ1\sigma_1 at seven values of λ0\lambda_0, spaced 0.02 apart and centered on Eq. (47). We locate the crossing by linear interpolation of log⁡(σ0/σ1)\log(\sigma_0/\sigma_1), which increases monotonically with λ0\lambda_0, and compare it with Eq. (47).

Transformer

Training. For each θ1\theta_1 we train transformers (Appendix G) on a grid of 11 persistences λ0=λ0∗+Δ\lambda_0 = \lambda_0^* + \Delta, with Δ\Delta from −0.24-0.24 to 0.160.16 in steps of 0.040.04 and λ0∗\lambda_0^* from Eq. (47). The grid is wide because the transformer’s switch need not sit at the filter’s. At every grid point we train 5 models from independent seeds, 220 models in total, and compute each model’s J-lens at layers ℓ=0\ell= 0 and ℓ=1\ell= 1 on 1000 freshly sampled sequences. The transformer’s lens is in token-score units, so its singular values are on a different scale from the filter’s (Section 5.2). We therefore compare only the location of the crossing with the theory.

Estimating the crossing. For each model we take the difference Δσ=σ0−σ1\Delta\sigma= \sigma_0 - \sigma_1 and compute its mean and standard deviation over seeds at each grid point. We then smooth these with a Savitzky–Golay filter (a least-squares quadratic over a window of 5 grid points). The crossing λ^0∗\hat{\lambda}_0^* is where the smoothed mean μ\mu changes sign, found by linear interpolation on that grid step, and we propagate the spread across seeds into an uncertainty on the crossing as

δλ^0∗=s(λ^0∗)∣dμ/dλ0∣(λ^0∗)(52)\delta\hat{\lambda}_0^* = \frac{s(\hat{\lambda}_0^*)}{\lvert d\mu/d\lambda_0\rvert(\hat{\lambda}_0^*)} \tag*{(52)}

We compare λ^0∗±δλ^0∗\hat{\lambda}_0^* \pm\delta\hat{\lambda}_0^* at each layer with Eq. (47).

Supplementary Results

References

  1. [1]Bernard J. Baars. A Cognitive Theory of Consciousness. Cambridge University Press, 1988.
  2. [2]Nora Belrose, Igor Ostrovsky, Lev McKinney, Zach Furman, Logan Smith, Danny Halawi, Stella Biderman, and Jacob Steinhardt. Eliciting latent predictions from transformers with the tuned lens. arXiv preprint arXiv:2303.08112, 2023.arxiv.org/abs/2303.08112
  3. [3]Giancarlo Benettin, Luigi Galgani, Antonio Giorgilli, and Jean-Marie Strelcyn. Lyapunov Characteristic Exponents for smooth dynamical systems and for hamiltonian systems; a method for computing all of them. Part 1: Theory. Meccanica, 15(1):9–20, March 1980. ISSN 1572-9648. doi: 10.1007/BF02128236. URL https://doi.org/10.1007/BF02128236.
  4. [4]Ilias Chalkidis, Abhik Jana, Dirk Hartung, Michael Bommarito, Ion Androutsopoulos, Daniel Martin Katz, and Nikolaos Aletras. LexGLUE: A benchmark dataset for legal language understanding in English. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics, pp. 4310–4330, 2022.
  5. [5]Yulong Chen, Yang Liu, Liang Chen, and Yue Zhang. DialogSum: A real-life scenario dialogue summarization dataset. In Findings of the Association for Computational Linguistics: ACL-IJCNLP 2021, pp. 5062–5074, 2021.arxiv.org/abs/2105.06762
  6. [6]David Clark, Jesse Livezey, and Kristofer Bouchard. Unsupervised discovery of temporal structure in noisy data with dynamical components analysis. In H. Wallach, H. Larochelle, A. Beygelzimer, F. d’Alché-Buc, E. Fox, and R. Garnett (eds.), Advances in Neural Information Processing Systems, volume 32. Curran Associates, Inc., 2019. URL https://proceedings.neurips.cc/paper_files/paper/2019/file/704cd c91e2d1a5517518b2f12bc321-Paper.pdfarxiv.org/abs/1905.09944
  7. [7]Karl Cobbe, Vineet Kosaraju, Mohammad Bavarian, Mark Chen, Heewoo Jun, Lukasz Kaiser, Matthias Plappert, Jerry Tworek, Jacob Hilton, Reiichiro Nakano, Christopher Hesse, and John Schulman. Training verifiers to solve math word problems. arXiv preprint arXiv:2110.14168, 2021.arxiv.org/abs/2110.14168
  8. [8]Stanislas Dehaene, Michel Kerszberg, and Jean-Pierre Changeux. A neuronal model of a global workspace in effortful cognitive tasks. Proceedings of the National Academy of Sciences, 95(24): 14529–14534, 1998.
  9. [9]Robert J. Deissler and Kunihiko Kaneko. Velocity-dependent Lyapunov exponents as a measure of chaos for open-flow systems. Physics Letters A, 119(8):397–402, 1987.DOI
  10. [10]Tim Dettmers, Mike Lewis, Younes Belkada, and Luke Zettlemoyer. LLM.int8(): 8-bit matrix multiplication for transformers at scale. In Advances in Neural Information Processing Systems, volume 35, 2022.arxiv.org/abs/2208.07339
  11. [11]Jean-Pierre Eckmann and Omri Gat. Hydrodynamic Lyapunov modes in translation-invariant systems. Journal of Statistical Physics, 98(3):775–798, 2000.DOI
  12. [12]Jean-Pierre Eckmann and David Ruelle. Ergodic theory of chaos and strange attractors. Reviews of Modern Physics, 57(3):617–656, 1985.
  13. [13]Adam J Eisen, Mitchell Ostrow, Sarthak Chandra, Leo Kozachkov, Earl Miller, and Ila Fiete. Characterizing control between interacting subsystems with deep jacobian estimation. Advances in Neural Information Processing Systems, 38:51361–51406, 2025.
  14. [14]Rainer Engelken, Fred Wolf, and L. F. Abbott. Lyapunov spectra of chaotic recurrent neural networks. Phys. Rev. Res., 5:043044, Oct 2023. doi: 10.1103/PhysRevResearch.5.043044. URL https://link.aps.org/doi/10.1103/PhysRevResearch.5.043044.DOI
  15. [15]Borjan Geshkovski, Cyril Letrouit, Yury Polyanskiy, and Philippe Rigollet. A mathematical perspective on Transformers. arXiv preprint arXiv:2312.10794, 2023.arxiv.org/abs/2312.10794
  16. [16]Wes Gurnee, Nicholas Sofroniew, Adam Pearce, Mateusz Piotrowski, Isaac Kauvar, Runjin Chen, Anna Soligo, Paul Bogdan, Euan Ong, Rowan Wang, Ben Thompson, David Abrahams, Subhash Kantamneni, Emmanuel Ameisen, Joshua Batson, and Jack Lindsey. Verbalizable representations form a global workspace in language models. arXiv preprint arXiv:2607.15495, 2026.arxiv.org/abs/2607.15495
  17. [17]Danny Halawi, Jean-Stanislas Denain, and Jacob Steinhardt. Overthinking the truth: Understanding how language models process false demonstrations. In International Conference on Learning Representations, 2024.arxiv.org/abs/2307.09476
  18. [18]Karl Moritz Hermann, Tomáš Kočiský, Edward Grefenstette, Lasse Espeholt, Will Kay, Mustafa Suleyman, and Phil Blunsom. Teaching machines to read and comprehend. In Advances in Neural Information Processing Systems, volume 28, 2015.arxiv.org/abs/1506.03340
  19. [19]Kenfack Jiotsa, Aurelien Jiotsa, Antonio Politi, and Alessandro Torcini. Convective Lyapunov spectra. Journal of Physics A: Mathematical and Theoretical, 46(25):254013, 2013. doi: 10.1088/1751-8113/46/25/254013.
  20. [20]Ilya Loshchilov and Frank Hutter. Decoupled weight decay regularization. In International Conference on Learning Representations, 2019.
  21. [21]Shuai Lu, Daya Guo, Shuo Ren, Junjie Huang, Alexey Svyatkovskiy, Ambrosio Blanco, Colin Clement, Dawn Drain, Daxin Jiang, Duyu Tang, Ge Li, Lidong Zhou, Linjun Shou, Long Zhou, Michele Tufano, Ming Gong, Ming Zhou, Nan Duan, Neel Sundaresan, Shao Kun Deng, Shengyu Fu, and Shujie Liu. CodeXGLUE: A machine learning benchmark dataset for code understanding and generation. In Proceedings of the Neural Information Processing Systems Track on Datasets and Benchmarks, 2021.arxiv.org/abs/2102.04664
  22. [22]Yiping Lu, Zhuohan Li, Di He, Zhiqing Sun, Bin Dong, Tao Qin, Liwei Wang, and Tie-Yan Liu. Understanding and improving Transformer from a multi-particle dynamic system point of view. arXiv preprint arXiv:1906.02762, 2019.arxiv.org/abs/1906.02762
  23. [23]Yev Meyer, Marjan Emadi, Dhruv Nathawani, Lipika Ramaswamy, Kendrick Boyd, Maarten Van Segbroeck, Matthew Grossman, Piotr Mlocek, and Drew Newberry. Synthetic-text-to-SQL: A synthetic dataset for training language models to generate SQL queries from natural language prompts. https://huggingface.co/datasets/gretelai/synthetic_text_to_sql, 2024.
  24. [25]Valery I. Oseledets. A multiplicative ergodic theorem. Lyapunov characteristic numbers for dynamical systems. Transactions of the Moscow Mathematical Society, 19:197–231, 1968.
  25. [26]Mitchell Ostrow, Adam Eisen, and Ila Fiete. Delay embedding theory of neural sequence models. arXiv preprint arXiv:2406.11993, 2024.arxiv.org/abs/2406.11993
  26. [27]Koyena Pal, Jiuding Sun, Andrew Yuan, Byron C. Wallace, and David Bau. Future lens: Anticipating subsequent tokens from a single hidden state. In Proceedings of the 27th Conference on Computational Natural Language Learning (CoNLL), 2023. doi: 10.18653/v1/2023.conll-1.37.DOI
  27. [28]Keiran Paster, Marco Dos Santos, Zhangir Azerbayev, and Jimmy Ba. OpenWebMath: An open dataset of high-quality mathematical web text. In International Conference on Learning Representations, 2024.arxiv.org/abs/2310.06786

AI tools statement

No AI-use declaration is available for this version in Valency.

The available record does not establish whether AI systems or models contributed to this work.

How AI tools are recorded

Paper details

Cite this paper

Publication

Published
Version
Latest

Data & code

No code, data or supplementary files were declared for this version.

Pick where to look, or just type