Manuscript Offprint

arXiv:2610.31955

A Mathematical Theory of the Jacobian Lens

Mitchell Ostrow, Daoyuan Qian, Toni Liu, Ila Fiete

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Recent work from Anthropic introduced a new interpretability tool, called the Jacobian lens (J-lens, Gurnee et al., 2026). 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 to 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 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 applied to both model classes. We validate our analysis 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. We also introduce of a family of J-lenses built to emphasize different temporal scales of information processing in LLMs, which we call ω\omega-J-lenses.

1 INTRODUCTION

In a recent paper, Gurnee et al. (2026) 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 (Baars, 1988; Dehaene et al., 1998). 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 (Halawi et al., 2024), and that a single hidden state already carries information about tokens several positions ahead (Pal et al., 2023). The trajectory of tuned-lens predictions across layers can also detect malicious inputs (Belrose et al., 2023).

The Jacobian lens (J-lens, Gurnee et al., 2026) 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 K 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” (Gurnee et al., 2026), 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 Figs. 1 and 10 we visually demonstrate this phenomenon for four open source LLMs. What, then, does the J-lens capture?

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, Stein's lemma only applies when the input data is sampled from a Gaussian distribution, 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 (Dettmers et al., 2022; 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)∈Rd\boldsymbol{h}_{\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),Gc(ℓ,H):=1H∑τ=0H−1K(c,ℓ,τ)JH(ℓ):=EcGc(ℓ,H).\begin{align*}\boldsymbol{K}(c,\ell,\tau)&:=\frac{\partial\boldsymbol{h}_{L,t+\tau}(x)}{\partial\boldsymbol{h}_{\ell,t}(x)},\\\boldsymbol{G}_{c}(\ell,H)&:=\frac{1}{H}\sum_{\tau=0}^{H-1}\boldsymbol{K}(c,\ell,\tau)\\\boldsymbol{J}_{H}(\ell)&:=\mathbb{E}_{c}\boldsymbol{G}_{c}(\ell,H).\end{align*}

(1)

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

Figure

Qwen3.5-9B

Qwen3-14B

PC 1

PC 1

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 Fig. 9.

lens(hℓ,t)=softmax(WUnorm(JH(ℓ)hℓ,t))(2)\mathrm{lens}(\boldsymbol{h}_{\ell,t})=\mathrm{softmax}\big(\boldsymbol{W}_{U}\mathrm{norm}(\boldsymbol{J}_{H}(\ell)\boldsymbol{h}_{\ell,t})\big) \tag{2}

where WUW_{U} is the model's unembedding matrix.

Lyapunov exponents. Let δh(T)\delta h(T) be a perturbation of a state evolved for T steps under the dynamics. Its Lyapunov exponent (Oseledets, 1968; Eckmann & Ruelle, 1985) 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{\|\delta\boldsymbol{h}(T)\|}{\|\delta\boldsymbol{h}(0)\|},\qquad\delta\boldsymbol{h}(0)\neq\mathbf{0}, \tag{3}

when the limit exists. At finite T, the finite-time Lyapunov exponents 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 T-step Jacobian. For dynamical systems, this is typically computed by chaining with multiplication each one-step Jacobian with iterative renormalization

(Benettin et al., 1980; Engelken et al., 2023). Spatiotemporal versions also resolve how a perturbation travels across space: the convective Lyapunov exponent (Deissler & Kaneko, 1987; Jiotsa et al., 2013) measures the growth of a perturbation in a reference frame that is moving in space. Hydrodynamic Lyapunov modes (Eckmann & Gat, 2000) are long-wavelength Lyapunov vectors whose exponents approach zero as their wavenumber k approaches zero.

For transformers, depth is the evolution coordinate (T) and token position the spatial coordinate. A hydrodynamic interpretation requires identifying long wavelength with growth near zero. We'll show here that the J-space is tightly linked to 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.

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(ℓ,τ):sharedmodes+∑jeTχcj+τγcjucjvcj∗⏟R(c,ℓ,τ):context−specificmodes,(5)\boldsymbol{K}(c,\ell,\tau)=\underbrace{\sum_{i}e^{T\chi_{i}+\tau\gamma_{i}}\boldsymbol{u}_{i}\boldsymbol{v}_{i}^{*}}_{S(\ell,\tau):shared modes}+\underbrace{\sum_{j}e^{T\chi_{cj}+\tau\gamma_{cj}}\boldsymbol{u}_{cj}\boldsymbol{v}_{cj}^{*}}_{R(c,\ell,\tau):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 + 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. At a fixed (ℓ,τ)(\ell, \tau), any matrix admits a singular value decomposition (SVD). Sharing directions across contexts, factoring depth (Fig. 2a) and lag (Fig. 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}_c R_c, in which shared mode ii is weighted by eTχifH(γi)e^{T\chi_i} f_H(\gamma_i), with

fH(γ)=1H∑τ=0H−1eτγf_{H}(\gamma)=\frac{1}{H}\sum_{\tau=0}^{H-1}e^{\tau\gamma}

where HH denotes the maximum lag between input and output token positions (Appendix C). We also assume the context-specific response is no larger than the shared one: Ec∥Rc∥22≤M2\mathbb{E}_c \| \boldsymbol{R}_c \|_2^2 \leq M^2, where M=∥SH∥2M = \| \boldsymbol{S}_H \|_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 \leq 0, ∣fH(γi)∣≤1|f_H(\gamma_i)| \leq 1. Slow modes with H∣μi∣H|\mu_i|, H∣θi∣≪1H|\theta_i| \ll 1 retain fH(γi)≈1f_H(\gamma_i) \approx 1, 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(ω)=∑τ=0H−1e−iωτy(τ),(6)\widetilde{y}_{H}(\omega)=\sum_{\tau=0}^{H-1}e^{-\mathrm{i}\omega\tau}y(\tau), \tag{6} 1Hy~H(0)=1H∑τ=0H−1y(τ).(7)\frac{1}{H}\widetilde{y}_{H}(0)=\frac{1}{H}\sum_{\tau=0}^{H-1}y(\tau). \tag{7}

Thus averaging over time extracts the zero-frequency coefficient of the finite window, thereby identifying slowly varying responses in space (token position). Similarly, time (layers) 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⟩\|(\mathbb{E}_c R_c) v\|_2^2 = \mathbb{E}_{c, c'} \langle R_c v, R_c' v \rangle, which quantifies the expected overlap between two contexts' responses to the same input (Appendix C). Suppose this overlap is small, sup⁡∥v∥=1Ec,c′∣⟨Rcv,Rc′v⟩∣≤ηEc∥Rc∥22\sup_{\|v\| = 1} \mathbb{E}_{c, c'} |\langle R_c v, R_c' v \rangle| \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.\begin{align*}\|\mathbb{E}_{c}\boldsymbol{R}_{c}\|_{2}^{2}&=\sup_{\|\boldsymbol{v}\|=1}\mathbb{E}_{c,c^{\prime}}\langle\boldsymbol{R}_{c}\boldsymbol{v},\boldsymbol{R}_{c^{\prime}}\boldsymbol{v}\rangle\\&\leq\sup_{\|\boldsymbol{v}\|=1}\mathbb{E}_{c,c^{\prime}}|\langle\boldsymbol{R}_{c}\boldsymbol{v},\boldsymbol{R}_{c^{\prime}}\boldsymbol{v}\rangle|\\&\leq\eta\mathbb{E}_{c}\|\boldsymbol{R}_{c}\|_{2}^{2}\leq\eta M^{2}=\eta\|\boldsymbol{S}_{H}\|_{2}^{2}.\end{align*}

(8)

Thus for small overlap η\eta, averaging suppresses the incoherent response relative to the shared response. Since JH=SH+EcRcJ_H = S_H + \mathbb{E}_c R_c, its leading singular directions approach those of SHS_H as η→0\eta \to 0.

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 T (magnitude a), (b) are maximally coherent across token lags τ\tau (lag coherence ρτ\rho_{\tau}), and (c) are maximally coherent across different contexts c (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_{c j}u_{c j}v_{c j}^{*},\qquad s_{c1}\geq s_{c2}\geq\cdots\geq0. \tag{9}

For a unit input direction v, define

a(v):=Ec,τ∥K(c,ℓ,τ)v∥,ρτ(v):=Ec∥Gcv∥Ec,τ∥K(c,ℓ,τ)v∥∈[0,1],ρc(v):=∥Ec,τK(c,ℓ,τ)v∥Ec∥Gcv∥∈[0,1].\begin{align*}a(\boldsymbol{v})&:=\mathbb{E}_{c,\tau}\left\|\boldsymbol{K}(c,\ell,\tau)\boldsymbol{v}\right\|,\\\rho_{\tau}(\boldsymbol{v})&:=\frac{\mathbb{E}_{c}\left\|\boldsymbol{G}_{c}\boldsymbol{v}\right\|}{\mathbb{E}_{c,\tau}\left\|\boldsymbol{K}(c,\ell,\tau)\boldsymbol{v}\right\|}\in[0,1],\\\rho_{c}(\boldsymbol{v})&:=\frac{\left\|\mathbb{E}_{c,\tau}\boldsymbol{K}(c,\ell,\tau)\boldsymbol{v}\right\|}{\mathbb{E}_{c}\left\|\boldsymbol{G}_{c}\boldsymbol{v}\right\|}\in[0,1].\end{align*}

(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: a describes the canonical notion of a Lyapunov exponent, here how a direction grows over time (layers). ρτ\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 direction is read in and written out across different contexts (instantiations of Jacobian), given the same vector.

We illustrate what each coherence parameter measures in Fig. 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 similarly in the same way for different contexts, and how prior context modulates its effect. For example, adding in a new rule such as “today is opposite day” into 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∥\|J_H v\|. The leading singular value of the lens is therefore

∣σ1(JH)=max⁡∥v∥=1ρc(v)ρτ(v)a(v).∣(11)\left|\sigma_{1}(\boldsymbol{J}_{H})=\max_{\|\boldsymbol{v}\|=1}\rho_{c}(\boldsymbol{v})\rho_{\tau}(\boldsymbol{v})a(\boldsymbol{v}).\right| \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). In the notation of Eq. 5, the J-lens selects

Figure

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.

the modes with the largest growth across layers χi\chi_i (magnitude), spatial changes that do not oscillate much ( θi≈0\theta_i \approx 0), and uiu_i, viv_i that change minimally across contexts (context coherence). Gurnee et al. (2026) found that the J-space summarized only a small portion of the variance. This observation is easily explained by recognizing that variance explained is unrelated to each of the factors in Eq. 11, which we formalize now:

Corollary 1.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 D.

References (54)