Skip to content
ImagineWorld

Semantic Tube Prediction: Beating LLM Data Efficiency with JEPA

node_idnode-paper_arxiv-2602.22617_semantic-tube-prediction-beating-llm-data-efficiency-with-jepa
node_typenode-paper
schema_profileworld.node_paper.v1
alternate_namesarxiv-2602.22617
statusactive
orthogonal_scopemanifold, entropy, authority, state
manifoldworld
entropymedium
authorityguides
stateexternal
domainimagineworld.net
node_interiorrosetta_contract
unisonone evidence claim read five ways: seated in the world-models field, the work introduces semantic tube prediction with JEPA — predicting tubes of semantically consistent future representations, beating LLM data efficiency on the compared tasks — its framework, regime, and stance agreeing on what it is
governed_byWORLD-MANIFOLD, CORPUS
constitutional_citationCONSTITUTION
evidence_bundleworld-bundle-paper
publication_classarxiv_preprint
paper_titleSemantic Tube Prediction: Beating LLM Data Efficiency with JEPA
paper_authorsHai Huang, Yann LeCun, Randall Balestriero
arxiv_id2602.22617
arxiv_urlhttps://arxiv.org/abs/2602.22617
arxiv_categories{"primary":"cs.LG","secondary":[]}
arxiv_v1
arxiv_submitted_at2026-02-26
arxiv_updated_at2026-02-26
ocr_sourcearxiv_html
ocr_quality_classverbatim_latexml_html
extraction_toolarxiv-nodepaper-transpose
extraction_pipeline_versionworld-ingest-arxiv-html-v1.0
extracted_at2026-10-13T06:51:09Z
math_preserved_as_latextrue
figures_extractedtrue
references_structurally_parsedfalse
created_at2026-10-13T06:51:09Z
updated_at2026-10-14T05:20:09Z
local graph

Semantic Tube Prediction: Beating LLM Data Efficiency with JEPA

Section titled “Semantic Tube Prediction: Beating LLM Data Efficiency with JEPA”

Authors: Hai Huang, Yann LeCun, Randall Balestriero

arxiv: 2602.22617

Converted to markdown on 2026-10-13 from the arXiv HTML (LaTeXML) rendering; figures embedded from the same source.


Large Language Models (LLMs) obey consistent scaling laws—empirical power-law fits that predict how loss decreases with compute, data, and parameters. While predictive, these laws are descriptive rather than prescriptive: they characterize typical training, not optimal training. Surprisingly few works have successfully challenged the data-efficiency bounds implied by these laws—which is our primary focus. To that end, we introduce the Geodesic Hypothesis, positing that token sequences trace geodesics on a smooth semantic manifold and are therefore locally linear. Building on this principle, we propose a novel Semantic Tube Prediction (STP) task, a JEPA-style regularizer that confines hidden-state trajectories to a tubular neighborhood of the geodesic. STP generalizes JEPA to language without requiring explicit multi-view augmentations. We show this constraint improves signal-to-noise ratio, and consequently preserves diversity by preventing trajectory collisions during inference. Empirically, STP allows LLMs to match baseline accuracy with 16×\times less training data on the NL-RX-SYNTH dataset, directly violating the data term of Chinchilla-style scaling laws and demonstrating that principled geometric priors can surpass brute-force scaling. Code is available at https://github.com/galilai-group/llm-jepa#stp.

Machine Learning, ICML

(a) Semantic Tube

(a) Semantic Tube

We argue that empirical scaling laws characterize typical rather than optimal training, suggesting the rigid power-law barrier is an artifact of current objectives. The core limitation is next-token prediction: a local objective that conflates surface statistical noise with global semantic signal. We propose a fundamental shift: explicitly constraining hidden state dynamics to separate the error-free semantic trajectory from this noise.

First, we formally demonstrate that, although tokens are discrete, token sequences can be modeled by an Ordinary Differential Equation (ODE). The Picard-Lindelöf (Existence and Uniqueness) Theorem (Coddington and Levinson, 1955) guarantees that if the velocity is smooth enough, there is only one possible path forward from any starting point. In other words, trajectories originating from distinct initial states will never intersect. In the context of LLMs, if the ODE model holds, this implies that error-free generations from distinct prompts maintain their semantic separation, theoretically ruling out mode collapse and preserving diversity.

Next, we hypothesize that the Principle of Least Action (Lanczos, 1966) is at work. This principle states that the path taken by a system between two points minimizes the “Action” (the integral of the Lagrangian over time), resulting in a “straight line” or geodesic on the underlying manifold. We further hypothesize that, as the manifold is an artifact of the training process, it admits a smooth structure. Consequently, the geodesics are locally linear almost everywhere. In the context of LLMs, this implies that the trajectories of error-free token sequences—and by extension, the trajectories of error-free hidden states—are confined within a tube centered along a straight line.

We designate this structure the Semantic Tube (Figure 1) and leverage it to regularize the LLM training process. The Semantic Tube posits that the noise—which causes deviations from the error-free trajectories—concentrates along the directions perpendicular to the tube. Let s<r<ts<r<t denote the indices of three tokens. We define the noise term as (h_r−h_s)_⊥h_t−h_s(h\_{r}-h\_{s})\_{\perp h\_{t}-h\_{s}}, representing the component of h_r−h_sh\_{r}-h\_{s} perpendicular to h_t−h_sh\_{t}-h\_{s}, and the signal term as (h_r−h_s)_∥h_t−h_s(h\_{r}-h\_{s})\_{\parallel h\_{t}-h\_{s}}, representing the component parallel to h_t−h_sh\_{t}-h\_{s}. Minimizing the noise term is expected to improve the Signal-to-Noise Ratio (SNR) during training. We formulate this as an auxiliary loss term, the Semantic Tube Prediction (STP) loss L_STP\mathcal{L}\_{\rm STP}, which can be seamlessly integrated into the training objective:

L=L_NTP+λ⋅L_STP\mathcal{L}=\mathcal{L}\_{\rm NTP}+\lambda\cdot\mathcal{L}\_{\rm STP}

where L_NTP\mathcal{L}\_{\rm NTP} is the cross-entropy loss for Next Token Prediction (NTP) and λ\lambda is a hyperparameter controlling the strength of the STP loss.

Semantic Tube draws inspiration from the Joint-Embedding Predictive Architecture (JEPA) (Assran et al., 2023; Baevski et al., 2022), which learns to predict the representation of one view based on another. In our approach, we postulate that any segment of a token sequence aligns with the global trajectory; consequently, the predictor reduces to an identity function.

If the Geodesic Hypothesis holds, it entails the following predictions:

  • •

    (P1) L_NTP\mathcal{L}\_{\rm NTP} alone is insufficient for high-quality generation. Consequently, we expect to observe L_NTP\mathcal{L}\_{\rm NTP} plateau even as L_STP\mathcal{L}\_{\rm STP} continues to decrease.

  • •

    (P2) Semantic Tube improves SNR, resulting in superior data efficiency (Figure 1) and accuracy.

  • •

    (P3) Semantic Tube preserves diversity.

  • •

    (P4) We expect to see λ≪1\lambda\ll 1 to accommodate instances where the geodesic deviates from a straight line.

  • •

    (P5) The identity function serves as a superior predictor compared to learned projections.

We conducted extensive experiments validating predictions (P1) through (P5). These results provide a strong indication that the Geodesic Hypothesis represents a simplified form of self-consistency for autoregressive sequence models. Furthermore, they confirm the validity of the noise/signal decomposition (Figure 1) and establish Semantic Tube as an effective self-supervised learning objective for LLMs.

In this section, we formally analyze training and inference dynamics, proposing that token sequence trajectories can be modeled by an Ordinary Differential Equation (ODE) characterized by ballistic trajectories.

Let x_≤tx\_{\leq t} denote a token sequence of length tt, where x_tx\_{t} represents the tt-th token, h_th\_{t} is the corresponding hidden state, and f(⋅)f(\cdot) denotes the neural network such that h_t=f(x_≤t)h\_{t}=f(x\_{\leq t}). Each hidden state h_th\_{t} is subsequently unembedded to predict the next token x_t+1x\_{t+1}.

During training, the predicted token u(h_t)u(h\_{t}) may diverge from the ground truth x_t+1x\_{t+1}; this discrepancy constitutes the training loss. However, due to teacher forcing, we invariably feed the ground truth sequence x_≤t+1x\_{\leq t+1} into f(⋅)f(\cdot) to generate h_t+1h\_{t+1}. Consequently, assuming a converged network where the loss is minimized, the training dynamics can be modeled as:

x_t+1\displaystyle x\_{t+1}=u˚∘f˚(x_≤t)\displaystyle=\mathring{u}\circ\mathring{f}(x\_{\leq t})(1)
---------------
h_t\displaystyle h\_{t}=f˚(x_≤t)+ϵ_t\displaystyle=\mathring{f}(x\_{\leq t})+\epsilon\_{t}(2)

where f˚\mathring{f} and u˚\mathring{u} represent the functions of the converged network, and ϵ_t\epsilon\_{t} denotes the residual unembedding error.

If a time-indexed variable z_tz\_{t} follows the difference equation z_t+1−z_t=g(z_t,t)z\_{t+1}-z\_{t}=g(z\_{t},t), it can be approximated by an ODE of the form dz_t=g(z_t,t)dtdz\_{t}=g(z\_{t},t)dt. While the hidden state dynamics in Equation 2 do not fit this form (as h_t+1h\_{t+1} depends on the entire history x_≤tx\_{\leq t} rather than just h_th\_{t}), the sequence dynamics in Equation 1 do. Specifically, x_≤t+1=x_≤t⊕x_t+1=x_≤t⊕u˚∘f˚(x_≤t)x\_{\leq t+1}=x\_{\leq t}\oplus x\_{t+1}=x\_{\leq t}\oplus\mathring{u}\circ\mathring{f}(x\_{\leq t}), where ⊕\oplus denotes concatenation. Letting ⊖\ominus denote the prefix-removal operator, we obtain:

x_≤t+1⊖x_≤t=u˚∘f˚(x_≤t).x\_{\leq t+1}\ominus x\_{\leq t}=\mathring{u}\circ\mathring{f}(x\_{\leq t}).

This formulation closely resembles the update rule z_t+1−z_t=g(z_t,t)z\_{t+1}-z\_{t}=g(z\_{t},t), suggesting that an ODE is a plausible model for the dynamics.

Although tokens are discrete, their embeddings lie in a continuous vector space x_t∈Rd_modelx\_{t}\in\mathbb{R}^{d\_{\rm model}}. Let TT denote the maximum sequence length; then the sequence resides in RT×d_model\mathbb{R}^{T\times d\_{\rm model}}. In Appendix A, we demonstrate that under specific arrangements, the operation x_≤t+1⊖x_≤tx\_{\leq t+1}\ominus x\_{\leq t} can be treated as vector subtraction x_≤t+1−x_≤tx\_{\leq t+1}-x\_{\leq t}. This leads to the following proposition:

The LLM training process can be modeled as a solution in the token sequence space RT×d_model\mathbb{R}^{T\times d\_{\rm model}} to the ODE:

dx_≤t=u˚∘f˚(x_≤t)dt.dx\_{\leq t}=\mathring{u}\circ\mathring{f}(x\_{\leq t})dt.

Proposition 2.1 models x_≤tx\_{\leq t} as following a ballistic trajectory in RT×d_model\mathbb{R}^{T\times d\_{\rm model}}. The Picard-Lindelöf Theorem guarantees that if u˚∘f˚(⋅)\mathring{u}\circ\mathring{f}(\cdot) and its partial derivatives with respect to x_≤tx\_{\leq t} are continuous, the ODE admits a unique solution for a given initial condition. Consequently, within this ODE framework, sequences generated from distinct prompts (initial conditions) cannot intersect, theoretically ruling out mode collapse, and preserving diversity.

Let h∗h^{\ast} denote the optimal trajectory of hidden states, defined as:

h∗_t=h_t−ϵ_t=f˚(x_≤t)h^{\ast}\_{t}=h\_{t}-\epsilon\_{t}=\mathring{f}(x\_{\leq t})(3)

If f˚(⋅)\mathring{f}(\cdot) is Lipschitz-continuous (Khalil, 2002), then the trajectory h∗h^{\ast} is also ballistic.

However, L_NTP\mathcal{L}\_{\rm NTP} alone may not suffice to drive ϵ_t\epsilon\_{t} to zero. Recall that the goal of L_NTP\mathcal{L}\_{\rm NTP} is to converge u(h_t)u(h\_{t}) to x_t+1x\_{t+1}. Since the hidden state h_th\_{t} is continuous while the token x_t+1x\_{t+1} is discrete, the training process can be modeled as finding the correct Voronoi cell (Okabe et al., 2000), without stipulating the exact location within the cell. This flexibility is necessary for the Picard-Lindelöf Theorem to apply: as illustrated in Figure 2, it allows error-free geodesics (h∗_th^{\ast}\_{t}) to traverse the same Voronoi cell at distinct locations, thereby avoiding intersection. Nevertheless, h_th\_{t} may drift onto an incorrect geodesic within the cell, leading to mode collapse.

Figure 2 : Two hidden state trajectories with similar prefixes pass through the Voronoi cell of the “ researcher ” token

Figure 2 : Two hidden state trajectories with similar prefixes pass through the Voronoi cell of the “ researcher ” token at different locations, leading to different next hidden states and hence different next tokens. Since ℒ NTP \mathcal{L}{\rm NTP} cannot guarantee that h t h{t} converges to h t ∗ h^{\ast}{t} (optimal hidden state), h t h{t} can be misplaced on another geodesic. This leads to mode collapse (the red dotted line mistakenly continues the generation, misattributing Hinton’s Nobel Prize to an arbitrary person, or if the error deviates in the opposite direction and precludes a winner).

This analysis indicates that L_NTP\mathcal{L}\_{\rm NTP} alone is insufficient for generation quality, strongly motivating an additional loss term (L_STP\mathcal{L}\_{\rm STP}) to explicitly minimize ϵ_t\epsilon\_{t}. It also implies that within the correct Voronoi cell, L_NTP\mathcal{L}\_{\rm NTP} may plateau while L_STP\mathcal{L}\_{\rm STP} continuously decreases. Therefore, (P1).

In Appendix B, we demonstrate that in the infinite-width limit (Yang and Littwin, 2021), the inference process can be modeled as a Stochastic Differential Equation (SDE) with a Brownian motion term.

A key challenge in minimizing the error ϵ_t\epsilon\_{t} is that the optimal trajectory h∗h^{\ast} remains latent and unknown. To address this, we must postulate a structural property that allows us to estimate h∗h^{\ast}, leading us to the Geodesic Hypothesis. In this section, we formalize this hypothesis and subsequently introduce Semantic Tube Prediction (STP).

If the Principle of Least Action holds, the trajectories of the token sequence x_≤t+1x\_{\leq t+1} in Equation 1 must be geodesics, which are locally linear almost everywhere. Since h∗_t=f˚(x_≤t)h^{\ast}\_{t}=\mathring{f}(x\_{\leq t}), when f˚(⋅)\mathring{f}(\cdot) is smooth enough, h∗_th^{\ast}\_{t} is also expected to be locally linear almost everywhere. Hence the Geodesic Hypothesis:

The trajectory of x_≤t∈RT×d_modelx\_{\leq t}\in\mathbb{R}^{T\times d\_{\rm model}} is locally linear almost everywhere. Similarly, the trajectory h_t−ϵ_t∈Rdh\_{t}-\epsilon\_{t}\in\mathbb{R}^{d} is locally linear almost everywhere.

We first formally define local linearity. Subsequently, we demonstrate that the Semantic Tube compresses the trajectory h_th\_{t} within a tube centered at h∗_th^{\ast}\_{t}.

A time-indexed trajectory h∗h^{\ast} is defined as locally linear if ∃τ,∃ε\exists\tau,\exists\varepsilon such that for any time indices s<r<ts<r<t satisfying ∣t−s∣≤τ|t-s|\leq\tau, we have:

∥(h∗_r−h∗_s)_⊥h∗_t−h∗_s∥_2≤ε\|(h^{\ast}\_{r}-h^{\ast}\_{s})\_{\perp h^{\ast}\_{t}-h^{\ast}\_{s}}\|\_{2}\leq\varepsilon(4)

where x_⊥yx\_{\perp y} denotes the component of vector xx that is perpendicular to vector yy.

Definition 3.1 captures the intuition that if a trajectory is locally linear, each local segment can be approximated by a straight line connecting its endpoints.

Next, we demonstrate that the Semantic Tube forces hh to approximate h∗h^{\ast}.

If h_s=h∗_sh\_{s}=h^{\ast}\_{s}, h_t=h∗_th\_{t}=h^{\ast}\_{t}, and L_STP≤ϵ\mathcal{L}\_{\rm STP}\leq\epsilon for all rr satisfying s<r<ts<r<t, then

∥(h_r−h_s)_⊥h∗_t−h∗_s∥_2≤2ϵ∥h_r−h_s∥_2.\|(h\_{r}-h\_{s})\_{\perp h^{\ast}\_{t}-h^{\ast}\_{s}}\|\_{2}\leq\sqrt{2\epsilon}\|h\_{r}-h\_{s}\|\_{2}.

Proof is deferred to Appendix D.

Let ∥h_r−h∗∥_2=min⁡_r′∥h_r−h∗_r′∥_2\|h\_{r}-h^{\ast}\|\_{2}=\min\_{r^{\prime}}\|h\_{r}-h^{\ast}\_{r^{\prime}}\|\_{2} denote the minimum distance from h_rh\_{r} to the trajectory h∗h^{\ast}. We establish the following theorem:

If h∗h^{\ast} is locally linear and for all rr satisfying 0≤s<r<t≤τ0\leq s<r<t\leq\tau, L_STP→0\mathcal{L}\_{\rm STP}\rightarrow 0, then

∥h_r−h∗∥_2≲ε\|h\_{r}-h^{\ast}\|\_{2}\lesssim\varepsilon

Only prove for the case h_s=h∗_sh\_{s}=h^{\ast}\_{s} and h_t=h∗_th\_{t}=h^{\ast}\_{t}. In this scenario, ∥h_r−h_s∥_2=∥h_r−h∗_s∥\|h\_{r}-h\_{s}\|\_{2}=\|h\_{r}-h^{\ast}\_{s}\|. Applying the triangle inequality yields ∥h_r−h∗_s∥≤∥h∗_r−h∗_s∥_2+ϵ_r\|h\_{r}-h^{\ast}\_{s}\|\leq\|h^{\ast}\_{r}-h^{\ast}\_{s}\|\_{2}+\epsilon\_{r}. Notice h_r∗h\_{r}^{\ast} and h∗_sh^{\ast}\_{s} are fixed, by Lemma 3.2, ∥(h_r−h_s)_⊥h∗_t−h∗_s∥_2→0\|(h\_{r}-h\_{s})\_{\perp h^{\ast}\_{t}-h^{\ast}\_{s}}\|\_{2}\rightarrow 0. By Definition 3.1 and the triangle inequality, it follows that ∥h_r−h∗∥_2≲ε\|h\_{r}-h^{\ast}\|\_{2}\lesssim\varepsilon ∎

In LLMs, it is standard to assume all sequences begin with and end with ; thus, it is reasonable to assume the boundary conditions h_0=h∗_0h\_{0}=h^{\ast}\_{0} and h_τ=h∗_τh\_{\tau}=h^{\ast}\_{\tau}. This is formally proven in Appendix E, which completes the proof of Theorem 3.3.

In practice, the indices s<r<ts<r<t are selected randomly. Consequently, minimizing L_STP\mathcal{L}\_{\rm STP} effectively drives E[1−cos⁡(h_t−h_r,h_r−h_s)]→0\mathbb{E}[1-\cos(h\_{t}-h\_{r},h\_{r}-h\_{s})]\rightarrow 0. By Markov’s inequality, for any ϵ\epsilon, P(1−cos⁡(h_t−h_r,h_r−h_s)>ϵ)→0P(1-\cos(h\_{t}-h\_{r},h\_{r}-h\_{s})>\epsilon)\rightarrow 0. This leads to the following corollary:

For randomly selected s<r<ts<r<t, if L_STP→0\mathcal{L}\_{\rm STP}\rightarrow 0, then for any ϵ\epsilon,

P(∥h_r−h∗∥_2>ε+ϵ)→0P(\|h\_{r}-h^{\ast}\|\_{2}>\varepsilon+\epsilon)\rightarrow 0

Corollary 3.4 implies that if L_STP→0\mathcal{L}\_{\rm STP}\rightarrow 0 for a given sequence, then with high probability, the trajectory of the sequence’s hidden states is confined within a tube centered around the optimal trajectory h∗h^{\ast}.

However, at inference time, the Brownian motion term diverges into a cone whose radius scales as ∝σ_tt\propto\sigma\_{t}\sqrt{t}, see Appendix F for details.

Since the forward pass naturally computes h_sh\_{s}, h_rh\_{r}, and h_th\_{t}, the STP loss introduces negligible computational overhead—primarily the cost of computing cosine similarity. This is significantly more efficient than the fractional extra forward passes required by LLM-JEPA (Huang et al., 2025). Furthermore, because indices ss, rr, and tt can be selected randomly, STP eliminates the need for manual scaffolding of a two-view structure. In summary, STP effectively addresses the two primary limitations that have hindered the broader adoption of LLM-JEPA. Additionally, STP avoids the complexity of a predictor network (often a requirement in LLM-JEPA), as local linearity implies an identity predictor. Like LLM-JEPA, the STP loss is applied exclusively during training and is not required at inference time.

Further implementation details are provided in Appendix G.

Our approach addresses the classic Exposure Bias problem (Bengio et al., 2015), originally identified in recurrent neural networks (RNNs) (Elman, 1990; Siegleman and Sontag, 1995). The problem arises because the model is trained with Teacher Forcing (Williams and Zipser, 1989)—conditioning on the ground-truth history—but must rely on its own potentially drifting predictions during inference. Although Maximum Likelihood Estimation (L_NTP\mathcal{L}\_{\rm NTP} in the case of LLMs) is empirically effective, Huszár (2015) argues that it optimizes an objective different from generation quality, motivating our combined loss L_NTP+L_STP\mathcal{L}\_{\rm NTP}+\mathcal{L}\_{\rm STP}.

JEPAs (Assran et al., 2023; Baevski et al., 2022) learn predictive representations across views, offering theoretical benefits (Littwin et al., 2024) despite the risk of dimensional collapse (Jing et al., 2021; Kenneweg et al., 2025). While recent works extend these objectives to LLMs (Barrault et al., 2024; Wang and Sun, 2025), LLM-JEPA (Huang et al., 2025) is bottlenecked by manual two-view scaffolding and the computational cost of additional forward passes, neither is a problem for L_STP\mathcal{L}\_{\rm STP}.

Our framework extends the philosophy of Energy-Based Models (EBMs) (LeCun et al., 2006), which learn to assign low energy to compatible configuration of variables. While EBMs and recent architectures like JEPA (LeCun, 2022) typically minimize energy at specific states, our approach invokes the Principle of Least Action to minimize the action—the integral of the Lagrangian along the generation trajectory. By enforcing geodesic constraints via L_STP\mathcal{L}\_{\rm STP}, we generalize state-wise (or local) energy minimization to trajectory-wise action minimization, ensuring the generation follows the path of least resistance.

Scaling Laws govern the power-law relationship between compute, data, and parameters in both pre-training (Kaplan et al., 2020; Hoffmann et al., 2022) and fine-tuning (Zhang et al., 2024). While recent data efficiency research emphasizes identifying high-density subsets (Sorscher et al., 2022) or synthetic curation (Gunasekar et al., 2023; Muennighoff et al., 2023), L_STP\mathcal{L}\_{\rm STP} enhances the training SNR directly, obviating the need for explicit data subset selection.

SDE/ODE Perspective: Kong et al. (2020) interpreted ResNets as “Neural SDEs” which has a Brownian motion term. While Tong et al. (2025) recently adapted ODEs for LLMs, they model evolution across network depth (layers). Our work takes an orthogonal approach, focusing instead on the temporal dynamics of hidden states across the token sequence.

The Linear Representation Hypothesis (LRH) (Park et al., 2024; Park et al., 2025) posits that simple concepts are encoded as directions in the representation space, whereas the Geodesic Hypothesis suggests that both simple and composed concepts (expressed as token sequences) follow locally linear trajectories. Consequently, the vector arithmetic observed in LRH (v⃗_Paris−v⃗_France+v⃗_Italy≈v⃗_Rome\vec{v}\_{Paris}-\vec{v}\_{France}+\vec{v}\_{Italy}\approx\vec{v}\_{Rome}) emerges naturally from path linearity (v⃗_Paris,v⃗_to,v⃗_France,v⃗_is,v⃗_Rome,v⃗_to,v⃗_Italy\vec{v}\_{Paris},\vec{v}\_{to},\vec{v}\_{France},\vec{v}\_{is},\vec{v}\_{Rome},\vec{v}\_{to},\vec{v}\_{Italy} aligns on almost a straight line, see Figure 3).

Figure 3 : When the sentence aligns on a geodesic, the concept direction naturally aligns.

Figure 3 : When the sentence aligns on a geodesic, the concept direction naturally aligns.

The Manifold Hypothesis (Kiani et al., 2024; Robinson et al., 2025; Whiteley et al., 2025) posits that learned representations form a simple and smooth manifold. Under the Geodesic Hypothesis, this structure is a natural consequence of the Principle of Least Action.

The Curvature Straightening Phenomenon (Hosseini and Fedorenko, 2023; Hénaff et al., 2021) observes that the training process tends to straighten the curvature between consecutive tokens. We interpret this as a manifestation of the underlying geodesic, which approximates a straight line.

The Neural Tangent Kernel (NTK) simplifies infinite-width dynamics (Jacot et al., 2018), a framework generalized to Transformers (Hron et al., 2020; Yang and Littwin, 2021) and compatible feature learning regimes (Yang and Hu, 2021). While Seleznova and Kutyniok (2022) note the importance of the depth-to-width ratio, modern LLMs typically operate in the requisite width ≫\gg depth regime.

The application of geodesic geometry to LLMs remains underexplored, with existing studies primarily restricted to interpolating representations across models (Deng et al., 2025; Yu et al., 2024).

We conduct extensive experiments to show the performance of Semantic Tube across models, datasets, and model sizes. We also show that accuracy barely budges when the training dataset is halved. Both accuracy and data efficiency are solid evidence that Semantic Tube improves SNR. We ablate on various setups, including LLM-JEPA style explicit two-views and curvature straightening. Lastly we show how to tune λ\lambda in practices.

Implementing L_STP\mathcal{L}\_{\rm STP} is straightforward with HuggingFace transformers. When computing loss, we grab per-token hidden_state hh from last layer, pick (random) indices s<r<ts<r<t, and compute 1−cos⁡(h_t−h_r,h_r−h_s)1-\cos(h\_{t}-h\_{r},h\_{r}-h\_{s}). Across all experiments, we follow LLM-JEPA (Huang et al., 2025) to pick 5 random seeds: 82, 23, 37, 84, and 4, and report both mean accuracy and standard deviation. This also allows us to report pp-value of paired, single-tailed tt-Test. We inherit optimal number of epochs and learning rate from LLM-JEPA. λ\lambda is separately tuned.

(a) Loss curve

We begin by analyzing the loss landscape by fine-tuning Llama-3.2-1B-Instruct (Grattafiori et al., 2024) on the NL-RX-SYNTH (Locascio et al., 2016) dataset.

Figure 4(a) demonstrates that in regular fine-tuning, minimizing L_NTP\mathcal{L}\_{\rm NTP} does not automatically minimize L_STP\mathcal{L}\_{\rm STP}. With the Semantic Tube, however, L_STP\mathcal{L}\_{\rm STP} continues to decrease even after L_NTP\mathcal{L}\_{\rm NTP} plateaus, corroborating (P1). Moreover, while L_NTP\mathcal{L}\_{\rm NTP} remains comparable between regular and Semantic Tube fine-tuning, there is a significant gap in L_STP\mathcal{L}\_{\rm STP}. This confirms that the SNR gain is driven by L_STP\mathcal{L}\_{\rm STP}, validating the analysis in Section 2.2 that L_NTP\mathcal{L}\_{\rm NTP} alone is insufficient for generation quality and that L_STP\mathcal{L}\_{\rm STP} acts as a necessary complement.

Figure 4(b) illustrates that increasing λ\lambda on a logarithmic scale reduces L_STP\mathcal{L}\_{\rm STP} linearly across a wide range, while L_NTP\mathcal{L}\_{\rm NTP} remains stable. Given L_STP=1−cos⁡(h_t−h_r,h_r−h_s)\mathcal{L}\_{\rm STP}=1-\cos(h\_{t}-h\_{r},h\_{r}-h\_{s}), a value of L_STP>1.0\mathcal{L}\_{\rm STP}>1.0 implies that the trajectory vector h_t−h_rh\_{t}-h\_{r} diverges significantly (essentially reversing direction) relative to h_r−h_sh\_{r}-h\_{s}. At λ=0\lambda=0 (regular fine-tuning), L_STP≈1.4\mathcal{L}\_{\rm STP}\approx 1.4 indicates a trajectory resembling erratic Brownian motion. At λ=0.08\lambda=0.08, L_STP\mathcal{L}\_{\rm STP} drops to 0.60.6, reflecting a substantially smoother path. Notably, while the optimal performance is achieved at λ=0.02\lambda=0.02 (Table 2), the accuracy at λ=0.08\lambda=0.08 is only marginally lower (Figure 7).

On Various Datasets: We first fine-tune Llama-3.2-1B-Instruct to demonstrate that Semantic Tube yields significant accuracy improvements over regular fine-tuning and LLM-JEPA across diverse datasets: NL-RX-SYNTH, NL-RX-TURK (Locascio et al., 2016), GSM8K (Cobbe et al., 2021), Spider (Yu et al., 2018), NQ-Open (Lee et al., 2019), and HellaSwag (Zellers et al., 2019). Figure 5(a) illustrates the superior performance of Semantic Tube compared to regular fine-tuning and LLM-JEPA.

(a) Datasets

On Various Model Families: Next, we extend our evaluation to various model families. In addition to Llama, we evaluate gemma-2-2b-it (Team et al., 2024), OpenELM-1_1B-Instruct (Mehta et al., 2024), and OLMo-2-0425-1B-Instruct (OLMo et al., 2024) on NL-RX-SYNTH, as well as Qwen3-1.7B (Yang et al., 2025) and DeepSeek-R1-Distill-Qwen-1.5B (DeepSeek-AI et al., 2025) on GSM8K. The results are presented in Figure 5(b).

On Various Model Sizes: Finally, we examine scalability across model sizes using Llama-3 1B, 3B, and 8B models. Results are shown in Figure 5(c).

Data efficiency is another crucial metric demonstrating improved SNR. We randomly select subsets of 12\frac{1}{2}, 14\frac{1}{4}, 18\frac{1}{8}, 116\frac{1}{16}, and 132\frac{1}{32} of the NL-RX-SYNTH dataset and perform both Semantic Tube and regular fine-tuning on Llama-3 1B, 3B, and 8B models. To compensate for the reduced number of training steps, we scale the epochs proportionally: with a 1n\frac{1}{n} dataset fraction, we run n×n\times epochs. For Semantic Tube, accuracy shows a negligible drop when the training dataset is halved and remains robust until the dataset is reduced to 116\frac{1}{16}, at which point it matches the accuracy of regular fine-tuning on the full dataset. In contrast, regular fine-tuning suffers a significant drop immediately when the dataset is halved. See Figure 1 for 1B results and Figure 12 for 3B and 8B results.

We also experimented with half compute (n2×\frac{n}{2}\times epochs) combined with a 2×2\times learning rate. In both full and half compute scenarios, we also tested 2×λ2\times\lambda. Interestingly, although the half-compute, double-learning-rate setting does not yield optimal accuracy at 12\frac{1}{2} or full training data, it performs comparatively better when the dataset fraction is <12<\frac{1}{2}.

The improved accuracy and data efficiency provide strong evidence that Semantic Tube improves SNR (see Appendix H for formal proofs linking SNR to accuracy and data efficiency). This validates (P2) and supports the proposed noise/signal decomposition in Figure 1, where the component perpendicular to the tube represents noise. Consequently, it supports the hypothesis that the geodesic is locally linear; otherwise, it could not be effectively approximated by the tube.

In this section, we demonstrate that Semantic Tube preserves diversity. In the NL-RX-SYNTH dataset, some regular expressions end with “.*”, while others end with “.*.*”. Although functionally equivalent, these variations represent a nuanced preference by the dataset creator; a robust neural network should be able to learn and preserve this diversity. As shown in Table 1, we find that regular fine-tuning struggles to learn either pattern effectively. LLM-JEPA learns the former pattern well but fails on the latter, likely because the former dominates the training set by a factor of 35×35\times. In contrast, Semantic Tube successfully learns both patterns. We list representative samples from the SYNTH dataset ending with either “.*” or “.*.*” in Table 3.

Table 1: Accuracy on functionally equivalent regular expression suffixes “.*” and “.*.*”. Semantic Tube effectively captures nuanced preferences, whereas LLM-JEPA exhibits mode collapse by biasing towards “.*”, which is 35×\times more prevalent in the training set than “.*.*”.

SuffixSemantic TubeRegularLLM-JEPA
.*88.5%29.9%68.9%
.*.*68.0%28.0%32.0%

Following LLM-JEPA, we compute the singular value decomposition (SVD) of Enc⁡(Text⁡)−Enc⁡(Code⁡)\operatorname{Enc}(\operatorname{Text})-\operatorname{Enc}(\operatorname{Code}) to gain insight into the learned representations. Interestingly, we find (Figure 6) that Semantic Tube exhibits polymorphism: when the difference vectors Enc⁡(Text⁡)−Enc⁡(Code⁡)\operatorname{Enc}(\operatorname{Text})-\operatorname{Enc}(\operatorname{Code}) are normalized, the singular value spectrum aligns with LLM-JEPA; however, without normalization, it closely resembles regular fine-tuning. This indicates that Semantic Tube enforces structure on the directions (normalized vectors) while tolerating complexity on the raw vectors. We conjecture that this mechanism allows Semantic Tube to maintain flexibility and preserve diversity.

(a) Without Normalization

Collectively, these results validate (P3).

Semantic Tube introduces a single hyperparameter, λ\lambda. Empirically, we observe that the accuracy vs. λ\lambda curve is concave (Figure 7), typically peaking between 0.010.01 and 0.080.08 (Table 2). Notably, this behavior persists across other variations (see Section 4.6): the accuracy curves remain concave, and the optimal λ\lambda consistently falls within the 0.010.01–0.080.08 range (see Figure 13). This validates (P4).

Figure 7 : Impact of λ \lambda tuning on Llama-3 1B across various datasets. In most cases, peak performance is achieved within the range of 0.01 0.01 to 0.08 0.08 .

Table 2: Optimal λ\lambda values yielding maximum accuracy.

SYNTHTURKGSM8KSpiderNQHS
0.020.040.0050.040.160.02
Gemma2Qwen3R1 DistOLMoOpenELM
0.0050.020.040.010.04
Llama3 3BLlama3 8B
0.010.0025

We conducted extensive ablation studies on design decisions, establishing that L_STP\mathcal{L}\_{\rm STP} yields superior performance compared to all variations (Figure 8). Full details are provided in Appendix L. We specifically note that the Pred variant—which trains a linear projector PP to minimize L_STP=1−cos⁡(P(h_r−h_s),h_t−h_r)\mathcal{L}\_{\rm STP}=1-\cos(P(h\_{r}-h\_{s}),h\_{t}-h\_{r})—results in degraded performance in all configurations. This validates (P5).

Figure 8 : Ablation study. Semantic Tube (our approach) outperforms all variations. Within the Semantic Tube family, alternative configurations consistently degrade performance.

This paper proposes the Geodesic Hypothesis, which posits that token sequence trajectories on the LLM manifold are locally linear geodesics. Based on it, we introduce Semantic Tube Prediction (STP)—a learning objective complementary to Next Token Prediction—which compresses hidden state trajectories into a signal-rich tube centered on the geodesic. Our approach generalizes LLM-JEPA by eliminating the need for manual scaffolding of two-view structures, additional compute, or auxiliary predictors. Empirically, STP significantly improves Signal-to-Noise Ratio, allowing models to maintain accuracy even when training data is reduced to 116\frac{1}{16}, thereby challenging standard Power Law scaling. Our framework unifies the Linear Representation and Manifold Hypotheses under the Principle of Least Action.

This paper presents work whose goal is to advance the field of machine learning. There are many potential societal consequences of our work, none of which we feel must be specifically highlighted here.

  • Assran et al. (2023) M. Assran, Q. Duval, I. Misra, P. Bojanowski, P. Vincent, M. Rabbat, Y. LeCun, and N. Ballas Self-supervised learning from images with a joint-embedding predictive architecture. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 15619–15629. Cited by: §1, §3.3.
  • Baevski et al. (2022) A. Baevski, W. Hsu, Q. Xu, A. Babu, J. Gu, and M. Auli Data2vec: a general framework for self-supervised learning in speech, vision and language. In International conference on machine learning, pp. 1298–1312. Cited by: §1, §3.3.
  • Barrault et al. (2024) L. Barrault, P. Duquenne, M. Elbayad, A. Kozhevnikov, B. Alastruey, P. Andrews, M. Coria, G. Couairon, M. R. Costa-jussà, D. Dale, et al. Large concept models: language modeling in a sentence representation space. arXiv preprint arXiv:2412.08821. Cited by: §3.3.
  • Bengio et al. (2015) S. Bengio, O. Vinyals, N. Jaitly, and N. Shazeer Scheduled sampling for sequence prediction with recurrent neural networks. Advances in neural information processing systems 28. Cited by: §3.3.
  • Cobbe et al. (2021) K. Cobbe, V. Kosaraju, M. Bavarian, M. Chen, H. Jun, L. Kaiser, J. Schulman, J. Hilton, M. Knight, A. Weller, D. Amodei, et al. Training verifiers to solve math word problems. arXiv preprint arXiv:2110.14168. Cited by: §4.2.
  • Coddington and Levinson (1955) E. A. Coddington and N. Levinson Theory of ordinary differential equations. McGraw-Hill, New York. Cited by: §1.
  • Cover and Thomas (1991) T. M. Cover and J. A. Thomas Elements of Information Theory. Wiley Series in Telecommunications, Wiley-Interscience. External Links: ISBN 0-471-06259-6 Cited by: Appendix H.
  • DeepSeek-AI et al. (2025) DeepSeek-AI, D. Guo, D. Yang, H. Zhang, J. Song, R. Zhang, R. Xu, Q. Zhu, S. Ma, P. Wang, X. Bi, X. Zhang, X. Yu, Y. Wu, Z. F. Wu, Z. Gou, Z. Shao, Z. Li, Z. Gao, A. Liu, B. Xue, B. Wang, B. Wu, B. Feng, C. Lu, C. Zhao, C. Deng, C. Zhang, C. Ruan, D. Dai, D. Chen, D. Ji, E. Li, F. Lin, F. Dai, F. Luo, G. Hao, G. Chen, G. Li, H. Zhang, H. Bao, H. Xu, H. Wang, H. Ding, H. Xin, H. Gao, H. Qu, H. Li, J. Guo, J. Li, J. Wang, J. Chen, J. Yuan, J. Qiu, J. Li, J. L. Cai, J. Ni, J. Liang, J. Chen, K. Dong, K. Hu, K. Gao, K. Guan, K. Huang, K. Yu, L. Wang, L. Zhang, L. Zhao, L. Wang, L. Zhang, L. Xu, L. Xia, M. Zhang, M. Zhang, M. Tang, M. Li, M. Wang, M. Li, N. Tian, P. Huang, P. Zhang, Q. Wang, Q. Chen, Q. Du, R. Ge, R. Zhang, R. Pan, R. Wang, R. J. Chen, R. L. Jin, R. Chen, S. Lu, S. Zhou, S. Chen, S. Ye, S. Wang, S. Yu, S. Zhou, S. Pan, S. S. Li, S. Zhou, S. Wu, S. Ye, T. Yun, T. Pei, T. Sun, T. Wang, W. Zeng, W. Zhao, W. Liu, W. Liang, W. Gao, W. Yu, W. Zhang, W. L. Xiao, W. An, X. Liu, X. Wang, X. Chen, X. Nie, X. Cheng, X. Liu, X. Xie, X. Liu, X. Yang, X. Li, X. Su, X. Lin, X. Q. Li, X. Jin, X. Shen, X. Chen, X. Sun, X. Wang, X. Song, X. Zhou, X. Wang, X. Shan, Y. K. Li, Y. Q. Wang, Y. X. Wei, Y. Zhang, Y. Xu, Y. Li, Y. Zhao, Y. Sun, Y. Wang, Y. Yu, Y. Zhang, Y. Shi, Y. Xiong, Y. He, Y. Piao, Y. Wang, Y. Tan, Y. Ma, Y. Liu, Y. Guo, Y. Ou, Y. Wang, Y. Gong, Y. Zou, Y. He, Y. Xiong, Y. Luo, Y. You, Y. Liu, Y. Zhou, Y. X. Zhu, Y. Xu, Y. Huang, Y. Li, Y. Zheng, Y. Zhu, Y. Ma, Y. Tang, Y. Zha, Y. Yan, Z. Z. Ren, Z. Ren, Z. Sha, Z. Fu, Z. Xu, Z. Xie, Z. Zhang, Z. Hao, Z. Ma, Z. Yan, Z. Wu, Z. Gu, Z. Zhu, Z. Liu, Z. Li, Z. Xie, Z. Song, Z. Pan, Z. Huang, Z. Xu, Z. Zhang, and Z. Zhang DeepSeek-r1: incentivizing reasoning capability in llms via reinforcement learning. External Links: 2501.12948, Link Cited by: §4.2.
  • Deng et al. (2025) C. Deng, Y. Bai, and H. Ren Chipalign: instruction alignment in large language models for chip design via geodesic interpolation. In 2025 62nd ACM/IEEE Design Automation Conference (DAC), pp. 1–7. Cited by: §3.3.
  • Devlin et al. (2019) J. Devlin, M. Chang, K. Lee, and K. Toutanova Bert: pre-training of deep bidirectional transformers for language understanding. In Proceedings of the 2019 conference of the North American chapter of the association for computational linguistics: human language technologies, volume 1 (long and short papers), pp. 4171–4186. Cited by: Appendix L.
  • Elman (1990) J. L. Elman Finding structure in time. Cognitive science 14 (2), pp. 179–211. Cited by: §3.3.
  • Grattafiori et al. (2024) A. Grattafiori, A. Dubey, A. Jauhri, A. Pandey, A. Kadian, A. Al-Dahle, A. Letman, A. Mathur, A. Schelten, A. Vaughan, et al. The llama 3 herd of models. arXiv preprint arXiv:2407.21783. Cited by: §4.1.
  • Gunasekar et al. (2023) S. Gunasekar, Y. Zhang, J. Aneja, C. C. T. Mendes, A. Del Giorno, S. Gopi, M. Javaheripi, P. Kauffmann, G. de Rosa, O. Saarikivi, et al. Textbooks are all you need. arXiv preprint arXiv:2306.11644. Cited by: §3.3.
  • Hénaff et al. (2021) O. J. Hénaff, Y. Bai, J. A. Charlton, I. Nauhaus, E. P. Simoncelli, and R. L. T. Goris Primary visual cortex straightens natural video trajectories. Nature Communications 12 (1), pp. 5982. External Links: ISSN 2041-1723, Document, Link Cited by: Appendix L, §3.3.
  • Hoffmann et al. (2022) J. Hoffmann, S. Borgeaud, A. Mensch, E. Buchatskaya, T. Cai, E. Rutherford, D. d. L. Casas, L. A. Hendricks, J. Welbl, A. Clark, et al. Training compute-optimal large language models. arXiv preprint arXiv:2203.15556. Cited by: §3.3.
  • Hosseini and Fedorenko (2023) E. Hosseini and E. Fedorenko Large language models implicitly learn to straighten neural sentence trajectories to construct a predictive representation of natural language.. Advances in Neural Information Processing Systems 36, pp. 43918–43930. Cited by: §3.3.
  • Hron et al. (2020) J. Hron, Y. Bahri, J. Sohl-Dickstein, and R. Novak Infinite attention: nngp and ntk for deep attention networks. In International Conference on Machine Learning, pp. 4376–4386. Cited by: §3.3.
  • Huang et al. (2025) H. Huang, Y. LeCun, and R. Balestriero Llm-jepa: large language models meet joint embedding predictive architectures. arXiv preprint arXiv:2509.14252. Cited by: §3.2, §3.3, §4.
  • Huszár (2015) F. Huszár How (not) to train your generative model: scheduled sampling, likelihood, adversary?. arXiv preprint arXiv:1511.05101. Cited by: §3.3.
  • Jacot et al. (2018) A. Jacot, F. Gabriel, and C. Hongler Neural tangent kernel: convergence and generalization in neural networks. Advances in neural information processing systems 31. Cited by: §3.3.
  • Jing et al. (2021) L. Jing, P. Vincent, Y. LeCun, and Y. Tian Understanding dimensional collapse in contrastive self-supervised learning. arXiv preprint arXiv:2110.09348. Cited by: §3.3.
  • Kaplan et al. (2020) J. Kaplan, S. McCandlish, T. Henighan, T. B. Brown, B. Chess, R. Child, S. Gray, A. Radford, J. Wu, and D. Amodei Scaling laws for neural language models. arXiv preprint arXiv:2001.08361. Cited by: §3.3.
  • Kenneweg et al. (2025) T. Kenneweg, P. Kenneweg, and B. Hammer JEPA for rl: investigating joint-embedding predictive architectures for reinforcement learning. arXiv preprint arXiv:2504.16591. Cited by: §3.3.
  • Khalil (2002) H. K. Khalil Nonlinear systems. Prentice Hall, Upper Saddle River, N.J. (English). Cited by: §2.2.
  • Kiani et al. (2024) B. Kiani, J. Wang, and M. Weber Hardness of learning neural networks under the manifold hypothesis. Advances in Neural Information Processing Systems 37, pp. 5661–5696. Cited by: §3.3.
  • Kim et al. (2021) T. Kim, K. M. Yoo, and S. Lee Self-guided contrastive learning for BERT sentence representations. In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers), C. Zong, F. Xia, W. Li, and R. Navigli (Eds.), Online, pp. 2528–2540. External Links: Link, Document Cited by: 3rd item.
  • Kong et al. (2020) L. Kong, J. Sun, and C. Zhang SDE-net: equipping deep neural networks with uncertainty estimates. In 37th International Conference on Machine Learning, ICML 2020, pp. 5361–5371. Cited by: §3.3.
  • Lanczos (1966) C. Lanczos The variational principles of mechanics. Mathematical expositions, University of Toronto Press. External Links: LCCN 68088690 Cited by: §1.
  • LeCun et al. (2006) Y. LeCun, S. Chopra, R. Hadsell, M. Ranzato, F. Huang, et al. A tutorial on energy-based learning. Predicting structured data 1 (0). Cited by: §3.3.
  • LeCun (2022) Y. LeCun A path towards autonomous machine intelligence version 0.9. 2, 2022-06-27. Open Review 62 (1), pp. 1–62. Cited by: §3.3.
  • Lee et al. (2019) K. Lee, M. Chang, and K. Toutanova Latent retrieval for weakly supervised open domain question answering. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, A. Korhonen, D. Traum, and L. Màrquez (Eds.), Florence, Italy, pp. 6086–6096. External Links: Link, Document Cited by: §4.2.
  • Littwin et al. (2024) E. Littwin, O. Saremi, M. Advani, V. Thilak, P. Nakkiran, C. Huang, and J. Susskind How jepa avoids noisy features: the implicit bias of deep linear self distillation networks. Advances in Neural Information Processing Systems 37, pp. 91300–91336. Cited by: §3.3.
  • Locascio et al. (2016) N. Locascio, K. Narasimhan, E. DeLeon, N. Kushman, and R. Barzilay Neural generation of regular expressions from natural language with minimal domain knowledge. In Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing, pp. 1918–1923. Cited by: §4.1, §4.2.
  • Mehta et al. (2024) S. Mehta, M. H. Sekhavat, Q. Cao, M. Horton, Y. Jin, C. Sun, I. Mirzadeh, M. Najibi, D. Belenko, P. Zatloukal, et al. Openelm: an efficient language model family with open training and inference framework. arXiv preprint arXiv:2404.14619. Cited by: §4.2.
  • Muennighoff et al. (2023) N. Muennighoff, A. Rush, B. Barak, T. Le Scao, N. Tazi, A. Piktus, S. Pyysalo, T. Wolf, and C. A. Raffel Scaling data-constrained language models. Advances in Neural Information Processing Systems 36, pp. 50358–50376. Cited by: §3.3.
  • Okabe et al. (2000) A. Okabe, B. Boots, K. Sugihara, and S. N. Chiu Spatial tessellations: concepts and applications of Voronoi diagrams. 2nd ed. edition, Series in Probability and Statistics, John Wiley and Sons, Inc.. Cited by: §2.2.
  • OLMo et al. (2024) T. OLMo, P. Walsh, L. Soldaini, D. Groeneveld, K. Lo, S. Arora, A. Bhagia, Y. Gu, S. Huang, M. Jordan, et al. 2 olmo 2 furious. arXiv preprint arXiv:2501.00656. Cited by: §4.2.
  • Park et al. (2025) K. Park, Y. J. Choe, Y. Jiang, and V. Veitch The geometry of categorical and hierarchical concepts in large language models. In The Thirteenth International Conference on Learning Representations, External Links: Link Cited by: §3.3.
  • Park et al. (2024) K. Park, Y. J. Choe, and V. Veitch The linear representation hypothesis and the geometry of large language models. In Proceedings of the 41st International Conference on Machine Learning, ICML’24. Cited by: §3.3.
  • Robinson et al. (2025) M. Robinson, S. Dey, and T. Chiang Token embeddings violate the manifold hypothesis. In The Thirty-ninth Annual Conference on Neural Information Processing Systems, Cited by: §3.3.
  • Seleznova and Kutyniok (2022) M. Seleznova and G. Kutyniok Neural tangent kernel beyond the infinite-width limit: effects of depth and initialization. In International Conference on Machine Learning, pp. 19522–19560. Cited by: §3.3.
  • Shannon (1948) C. E. Shannon A mathematical theory of communication. The Bell System Technical Journal 27 (3), pp. 379–423. External Links: Document Cited by: Appendix H.
  • Siegleman and Sontag (1995) H. Siegleman and E. Sontag On the computational power of neural networks. Journal of Computer and System Sciences 50, pp. 132–150. Cited by: §3.3.
  • Sorscher et al. (2022) B. Sorscher, R. Geirhos, S. Shekhar, S. Ganguli, and A. Morcos Beyond neural scaling laws: beating power law scaling via data pruning. Advances in Neural Information Processing Systems 35, pp. 19523–19536. Cited by: §3.3.
  • Team et al. (2024) G. Team, M. Riviere, S. Pathak, P. G. Sessa, C. Hardin, S. Bhupatiraju, L. Hussenot, T. Mesnard, B. Shahriari, A. Ramé, et al. Gemma 2: improving open language models at a practical size. arXiv preprint arXiv:2408.00118. Cited by: §4.2.
  • Tong et al. (2025) A. Tong, T. Nguyen-Tang, D. Lee, D. Nguyen, T. Tran, D. Hall, C. KANG, and J. Choi Neural ode transformers: analyzing internal dynamics and adaptive fine-tuning. In International Conference on Learning Representations (ICLR), Cited by: §3.3.
  • Wang and Sun (2025) B. Wang and H. Sun Is the reversal curse a binding problem? uncovering limitations of transformers from a basic generalization failure. arXiv preprint arXiv:2504.01928. Cited by: §3.3.
  • Whiteley et al. (2025) N. Whiteley, A. Gray, and P. Rubin-Delanchy Statistical exploration of the manifold hypothesis. Journal of the Royal Statistical Society: Series B. Cited by: §3.3.
  • Williams and Zipser (1989) R. J. Williams and D. Zipser A learning algorithm for continually running fully recurrent neural networks. Neural computation 1 (2), pp. 270–280. Cited by: §3.3.
  • Yang et al. (2025) A. Yang, A. Li, B. Yang, B. Zhang, B. Hui, B. Zheng, B. Yu, C. Gao, C. Huang, C. Lv, C. Zheng, D. Liu, F. Zhou, F. Huang, F. Hu, H. Ge, H. Wei, H. Lin, J. Tang, J. Yang, J. Tu, J. Zhang, J. Yang, J. Yang, J. Zhou, J. Zhou, J. Lin, K. Dang, K. Bao, K. Yang, L. Yu, L. Deng, M. Li, M. Xue, M. Li, P. Zhang, P. Wang, Q. Zhu, R. Men, R. Gao, S. Liu, S. Luo, T. Li, T. Tang, W. Yin, X. Ren, X. Wang, X. Zhang, X. Ren, Y. Fan, Y. Su, Y. Zhang, Y. Zhang, Y. Wan, Y. Liu, Z. Wang, Z. Cui, Z. Zhang, Z. Zhou, and Z. Qiu Qwen3 technical report. External Links: 2505.09388, Link Cited by: §4.2.
  • Yang and Hu (2021) G. Yang and E. J. Hu Tensor programs iv: feature learning in infinite-width neural networks. In International Conference on Machine Learning, pp. 11727–11737. Cited by: §3.3.
  • Yang and Littwin (2021) G. Yang and E. Littwin Tensor programs iib: architectural universality of neural tangent kernel training dynamics. In International conference on machine learning, pp. 11762–11772. Cited by: Appendix B, Appendix F, Appendix H, §2.2, §3.3.
  • Yu et al. (2024) H. Yu, B. Inal, and M. Fumero Connecting neural models latent geometries with relative geodesic representations. In NeurIPS 2024 Workshop on Symmetry and Geometry in Neural Representations, Cited by: §3.3.
  • Yu et al. (2018) T. Yu, R. Zhang, K. Yang, M. Yasunaga, D. Wang, Z. Li, J. Ma, I. Li, Q. Yao, S. Roman, et al. Spider: a large-scale human-labeled dataset for complex and cross-domain semantic parsing and text-to-sql task. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, Cited by: §4.2.
  • Zellers et al. (2019) R. Zellers, A. Holtzman, Y. Bisk, A. Farhadi, and Y. Choi HellaSwag: can a machine really finish your sentence?. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, Cited by: §4.2.
  • Zhang et al. (2024) B. Zhang, Z. Liu, C. Cherry, and O. Firat When scaling meets llm finetuning: the effect of data, model and finetuning method. In The Twelfth International Conference on Learning Representations, Cited by: §3.3.

In this section, we present a form of u(⋅)u(\cdot) and f(⋅)f(\cdot) such that x_≤t+1⊖x_≤t=x_≤t+1−x_≤tx\_{\leq t+1}\ominus x\_{\leq t}=x\_{\leq t+1}-x\_{\leq t}. Throughout the section, we slightly abuse notation by letting x_tx\_{t} denote both a token and its embedding vector x_t∈Rd_modelx\_{t}\in\mathbb{R}^{d\_{\rm model}}, and letting x_≤tx\_{\leq t} denote both a token sequence and its embedding vector x_≤t∈RT×d_modelx\_{\leq t}\in\mathbb{R}^{T\times d\_{\rm model}}:

x_≤t=[x_1,...,x_t,0,...,0].x\_{\leq t}=[x\_{1},...,x\_{t},0,...,0].

Let f(x_≤t)∈Rdf(x\_{\leq t})\in\mathbb{R}^{d}. Let u(⋅):Rd→Rd_modelu(\cdot):\mathbb{R}^{d}\rightarrow\mathbb{R}^{d\_{\rm model}} be the unembedding function that maps the hidden state back to the token embedding.

Note that we need a function to lift u(f(x_≤t))u(f(x\_{\leq t})) from Rd_model\mathbb{R}^{d\_{\rm model}} to RT×d_model\mathbb{R}^{T\times d\_{\rm model}}. Define v(⋅,⋅):Rd_model×N→RT×d_modelv(\cdot,\cdot):\mathbb{R}^{d\_{\rm model}}\times\mathbb{N}\rightarrow\mathbb{R}^{T\times d\_{\rm model}} such that

v(x,t)=[0,...,0,x⏟_index t+1,0,...,0]v(x,t)=[0,...,0,\underbrace{x}\_{{\rm index}\ t+1},0,...,0]

Hence, we have

x_≤t+1=v(u(f(x_≤t)),t)x\_{\leq t+1}=v(u(f(x\_{\leq t})),t)

Define the ⊖\ominus operator as

x_≤t+1⊖x_≤t=v(x_t+1,t)x\_{\leq t+1}\ominus x\_{\leq t}=v(x\_{t+1},t)

By the definition of v(⋅,⋅)v(\cdot,\cdot), we have

x_≤t+1⊖x_≤t=x_≤t+1−x_≤tx\_{\leq t+1}\ominus x\_{\leq t}=x\_{\leq t+1}-x\_{\leq t}

Note that the network is now in the form v(u(f(x_≤t)),t)v(u(f(x\_{\leq t})),t), which can be written as g(x_≤t,t)g(x\_{\leq t},t) and satisfies the formulation of an ODE.

At training time, the unembedding error ϵ_t\epsilon\_{t} does not propagate to the next token. However, at inference time, h_t+1h\_{t+1} depends (indirectly) on h_th\_{t}, causing ϵ_t\epsilon\_{t} to accumulate into a Brownian motion term.

Yang and Littwin (2021) established that in the limit of infinite width, the pre-activations of a neural network (and thus the hidden state) are well-approximated by Gaussian processes. Hence, we can assume ϵ_t\epsilon\_{t} are i.i.d. Gaussian. Furthermore, as shown by (Yang and Littwin, 2021), ϵ_t\epsilon\_{t} remains i.i.d. Gaussian when passed through a randomly initialized neural network, which remains constant in the infinite-width limit. Consequently, ϵ_t\epsilon\_{t} accumulates to form a Brownian motion term dW_tdW\_{t}. Thus the inference process can be modeled by a Stochastic Differential Equation (SDE).

The inference process of an LLM can be modeled by an SDE in the token sequence space RT×d_model\mathbb{R}^{T\times d\_{\rm model}},

dx_≤t=u˚∘f˚(x_≤t)dt+σ_tdW_tdx\_{\leq t}=\mathring{u}\circ\mathring{f}(x\_{\leq t})dt+\sigma\_{t}dW\_{t}

Consider the example in Figure 2, if the Brownian motion shifts the top trajectory to the bottom, mode collapse occurs. Conversely, if the bottom trajectory shifts to the top, mode collapse occurs. This motivates the construction of an approach to explicitly suppress ϵ_t\epsilon\_{t}. Indeed, Section 4.1 demonstrates that next token prediction alone is insufficient for high-quality generation, making our approach a necessary complement.

We can view h_t−h_sh\_{t}-h\_{s} as the semantic evolution induced by the sub-sequence x_[s,t]x\_{[s,t]} given the context x_≤sx\_{\leq s}. In this sense, h_t−h_sh\_{t}-h\_{s} acts as a context-aware hidden state transition, which is significantly more informative than the static hidden state of the isolated sub-sequence x_[s,t]x\_{[s,t]}.

For example, given the prefix v⃗_The,v⃗_capital,v⃗_of\vec{v}\_{\rm The},\vec{v}\_{\rm capital},\vec{v}\_{\rm of}, appending the token v⃗_France\vec{v}\_{\rm France} shifts the overall semantic trajectory toward v⃗_Paris\vec{v}\_{Paris}. However, given a different prefix v⃗_The,v⃗_language,v⃗_of\vec{v}\_{\rm The},\vec{v}\_{\rm language},\vec{v}\_{\rm of}, appending the same token v⃗_France\vec{v}\_{France} shifts the trajectory toward v⃗_French\vec{v}\_{French}. If we were to compute the hidden state of v⃗_France\vec{v}\_{France} in isolation, we would lose this contextual nuance and fail to capture the context-specific semantic semantic shift.

Figure 9 : The same token v → F ​ r ​ a ​ n ​ c ​ e \vec{v}_{France} directs the geodesic along different concept direct

Figure 9 : The same token v → F ​ r ​ a ​ n ​ c ​ e \vec{v}{France} directs the geodesic along different concept directions when appended to distinct prefixes, illustrating the necessity of the context-aware state difference h t − h s h{t}-h_{s} .

Thus, h_t−h_sh\_{t}-h\_{s} serves as a context-aware representation of the added information.

Appendix D Proof of the Straightening Lemma

Section titled “Appendix D Proof of the Straightening Lemma”

In this section, we provide the proof for Lemma 3.2. The objective is to show

∥(h_r−h_s)_⊥h∗_t−h∗_s∥_2≤2ϵ∥h_r−h_s∥_2.\|(h\_{r}-h\_{s})\_{\perp h^{\ast}\_{t}-h^{\ast}\_{s}}\|\_{2}\leq\sqrt{2\epsilon}\|h\_{r}-h\_{s}\|\_{2}.

Figure 10 : Geometric illustration for the proof of Lemma 3.2

Figure 10 : Geometric illustration for the proof of Lemma 3.2

Referring to Figure 10, we have

∥(h_r−h_s)_⊥h∗_t−h∗_s∥_2=∥h_r−h_s∥_2⋅sin⁡θ\|(h\_{r}-h\_{s})\_{\perp h^{\ast}\_{t}-h^{\ast}\_{s}}\|\_{2}=\|h\_{r}-h\_{s}\|\_{2}\cdot\sin\theta

Since θ′≥θ\theta^{\prime}\geq\theta, it follows that

∥(h_r−h_s)_⊥h∗_t−h∗_s∥_2≤∥h_r−h_s∥_2⋅sin⁡θ′\|(h\_{r}-h\_{s})\_{\perp h^{\ast}\_{t}-h^{\ast}\_{s}}\|\_{2}\leq\|h\_{r}-h\_{s}\|\_{2}\cdot\sin\theta^{\prime}

We also have

L_STP=1−cos⁡θ′≤ϵ\mathcal{L}\_{\rm STP}=1-\cos\theta^{\prime}\leq\epsilon

When ϵ\epsilon is sufficiently small, we can approximate cos⁡θ′≈1−θ′22\cos\theta^{\prime}\approx 1-\frac{\theta^{\prime 2}}{2}. Hence

θ′22≲ϵ\frac{\theta^{\prime 2}}{2}\lesssim\epsilon

Rearranging gives

θ′≲2ϵ\theta^{\prime}\lesssim\sqrt{2\epsilon}

Also, when θ′\theta^{\prime} is sufficiently small, sin⁡θ′≈θ′\sin\theta^{\prime}\approx\theta^{\prime}. Therefore

∥(h_r−h_s)_⊥h∗_t−h∗_s∥_2≤∥h_r−h_s∥_2⋅sin⁡θ′≲2ϵ∥h_r−h_s∥_2.□\|(h\_{r}-h\_{s})\_{\perp h^{\ast}\_{t}-h^{\ast}\_{s}}\|\_{2}\leq\|h\_{r}-h\_{s}\|\_{2}\cdot\sin\theta^{\prime}\lesssim\sqrt{2\epsilon}\|h\_{r}-h\_{s}\|\_{2}.\quad\quad\quad\square

Appendix E Proof of the Semantic Tube Theorem

Section titled “Appendix E Proof of the Semantic Tube Theorem”

We introduce two auxiliary tokens, and . The token appears only at the 0-th position and always precedes , while appears only at the τ+1\tau+1-th position and always follows . This augmentation increases the total sequence length from τ\tau to τ+2\tau+2. By anchoring the sequence with and , we ensure that the boundary conditions h_0=h∗_0h\_{0}=h^{\ast}\_{0} and h_τ+1=h∗_τ+1h\_{\tau+1}=h^{\ast}\_{\tau+1} are satisfied.

The proof follows from these conditions. □\square

As STP explicitly reduces ϵ_t\epsilon\_{t}, it lowers σ_t\sigma\_{t} in the Brownian Motion term of Proposition B.1. At inference time, the Brownian motion term causes the token sequence trajectory diverge into a cone whose radius grows at a rate ∝σ_tt\propto\sigma\_{t}\sqrt{t}. A lower σ_t\sigma\_{t} reduces the probability that the cone collides with another token sequence, which would causes mode collapse (Figure 11).

Figure 11 : The inference cone defines the probabilistic range of a Brownian motion, and its radius grows ∝ σ t ​ t \pro

Figure 11 : The inference cone defines the probabilistic range of a Brownian motion, and its radius grows ∝ σ t ​ t \propto\sigma_{t}\sqrt{t} . A larger σ t \sigma_{t} leads to a wider cone, which has a high probability of colliding with a token sequence trace that is far away (blue cone and green geodesic), while a smaller σ t \sigma_{t} leads to a narrower cone that may only collide with a nearby trace (yellow cone and red geodesic). The dotted red and green fine lines are the Brownian motions confined by the yellow and blue cones, respectively.

The distortion between h_th\_{t} and h∗_th^{\ast}\_{t} behaves as a Gaussian process, where the scale of the deviation grows as ∥h_t−h∗_t∥_2∝σt\|h\_{t}-h^{\ast}\_{t}\|\_{2}\propto\sigma\sqrt{t}

According to Proposition B.1, at inference time, we model the token sequence trajectory as following an SDE dx_≤t=u˚∘f˚(x_≤t)dt+σ_tdW_tdx\_{\leq t}=\mathring{u}\circ\mathring{f}(x\_{\leq t})dt+\sigma\_{t}dW\_{t}, where σ_tdW_t\sigma\_{t}dW\_{t} is a Brownian motion. Let h_t=f˚(x_≤t)h\_{t}=\mathring{f}(x\_{\leq t}) be the hidden state. Let x∗_≤tx^{\ast}\_{\leq t} be the error-free generation satisfying dx∗_≤t=u˚∘f˚(x∗_≤t)dtdx^{\ast}\_{\leq t}=\mathring{u}\circ\mathring{f}(x^{\ast}\_{\leq t})dt, and let h∗_t=f˚(x∗_≤t)h^{\ast}\_{t}=\mathring{f}(x^{\ast}\_{\leq t}) be the error-free hidden state. We can quantify the distortion between h_th\_{t} and h∗_th^{\ast}\_{t} by examining how the Brownian motion is transformed by f˚\mathring{f}.

Yang and Littwin (2021) establishes that in the infinite-width limit, f˚\mathring{f} converges to a Neural Tangent Kernel (NTK) determined by random initialization. It further showed that Gaussian noise remains Gaussian when passed through a randomly initialized network. Hence, a Brownian motion remains a Brownian motion when passed through f˚\mathring{f}. Therefore,

h_t−h∗_t =∑_s≤tϵ_sh\_{t}-h^{\ast}\_{t}\ =\sum\_{s\leq t}\epsilon\_{s}

where ϵ_s\epsilon\_{s} are Gaussian noises. By Donsker’s theorem, when t→∞t\rightarrow\infty, 1t∑_s≤tϵ_s∼N(0,Σ)\frac{1}{\sqrt{t}}\sum\_{s\leq t}\epsilon\_{s}\sim N(0,\Sigma). Consequently, the magnitude of the distortion scales as

∥∑_s≤tϵ_s∥_2∝σt.\left\|\sum\_{s\leq t}\epsilon\_{s}\right\|\_{2}\propto\sigma\sqrt{t}.

Putting everything together, the distortion between h_th\_{t} and h∗_th^{\ast}\_{t} satisfies ∥h_t−h∗_t∥_2∝σt\|h\_{t}-h^{\ast}\_{t}\|\_{2}\propto\sigma\sqrt{t} ∎

Proposition F.1 implies that with high probability, the trajectory of the generated hidden state hh is confined within a cone centered at h∗h^{\ast} whose radius grows at a rate ∝σt\propto\sigma\sqrt{t}.

When mode collapse occurs at inference time, i.e., a generated sequence x_≤tx\_{\leq t} collides with y_≤t′y\_{\leq t^{\prime}}, then their corresponding hidden states hh and gg must collide. Let ∥h∗−g∗∥_2\|h^{\ast}-g^{\ast}\|\_{2} be the minimum distance between h∗h^{\ast} and g∗g^{\ast}. By Proposition F.1, ∀ε>0\forall\varepsilon>0, ∃c\exists c,

P(∥h∗−g∗∥_2>c⋅σt)≤εP(\|h^{\ast}-g^{\ast}\|\_{2}>c\cdot\sigma\sqrt{t})\leq\varepsilon

On the other hand, L_STP\mathcal{L}\_{\rm STP} suppresses ϵ_t\epsilon\_{t} and consequently reduces σ\sigma, which decreases the lower bound of the probability of mode collapse.

If the training data already possesses a two-view structure, such as a (query,answer)(query,answer) pair, one can leverage it by anchoring ss at the beginning of the queryquery and tt at the end of the answeranswer. However, we suggest that rr should be randomly selected to maximize the benefit of the STP loss. As demonstrated in our ablation study, fixing rr at the end of the queryquery yields lower accuracy.

Typically, h_t−h_sh\_{t}-h\_{s} does not equal the hidden state of the isolated sub-sequence x_[s,t]x\_{[s,t]}. However, as discussed Appendix C, we can view h_t−h_sh\_{t}-h\_{s} as the semantic evolution induced by the sub-sequence x_[s,t]x\_{[s,t]} given the context x_≤sx\_{\leq s}. In this sense, h_t−h_sh\_{t}-h\_{s} acts as a context-aware hidden state, which is significantly more informative than the hidden state of x_[s,t]x\_{[s,t]} computed in isolation. For example, given the prefix v⃗_The,v⃗_capital,v⃗_of\vec{v}\_{\rm The},\vec{v}\_{\rm capital},\vec{v}\_{\rm of}, appending the token v⃗_France\vec{v}\_{\rm France} shifts the overall meaning to v⃗_Paris\vec{v}\_{\rm Paris}. Conversely, given the prefix v⃗_The,v⃗_language,v⃗_of\vec{v}\_{\rm The},\vec{v}\_{\rm language},\vec{v}\_{\rm of}, appending v⃗_France\vec{v}\_{\rm France} shifts the meaning to v⃗_French\vec{v}\_{\rm French}. Computing the hidden state of v⃗_France\vec{v}\_{\rm France} separately loses this context and fails to capture the context-specific meaning of the tokens (see Figure 9).

We can also leverage h_t−h_sh\_{t}-h\_{s} to bypass unwanted tokens. For example, setting s>0s>0 allows us to skip the system prompt. Similarly, in multiple-choice Q&A, distractor choices that are semantically inconsistent with the queryquery are often located between the queryquery and the correct answeranswer. In such cases, we can pick rr and r′r^{\prime} such that x_[s,r]x\_{[s,r]} is the queryquery and x_[r′,t]x\_{[r^{\prime},t]} is the correct answeranswer, computing the STP loss as:

L_STP=1−cos⁡(h_t−h_r′,h_r−h_s).\mathcal{L}\_{\rm STP}=1-\cos(h\_{t}-h\_{r}^{\prime},h\_{r}-h\_{s}).

This formulation effectively skips the irrelevant choice branches in the middle.

Finally, the STP loss assumes that h_sh\_{s}, h_rh\_{r}, and h_th\_{t} are collinear, which may not hold strictly in reality as geodesics can exhibit curvature. In practice, this implies that we must select a small λ\lambda to tolerate the angular deviation between h_t−h_rh\_{t}-h\_{r} and h_r−h_sh\_{r}-h\_{s}. Indeed, our experiments consistently show that λ≈0.01\lambda\approx 0.01 is effective across various models, datasets, and model sizes.

Directly measuring Signal-to-Noise Ratio (SNR) in the latent representations of LLMs is intractable. In self-supervised learning, the decomposition of activations into “semantic signal” and “nuisance noise” is not explicitly observable without access to the ground-truth data manifold.

In this subsection, we formally show an information theoretic link between SNR and data efficiency and training accuracy. Hence we can validate our hypothesis via the predicted impact on them.

We model LLM training process as extracting information about a discrete target YY (tokens) from continuous latent representations XX (hidden states). Let Y∈VY\in\mathcal{V} be the discrete target token from a vocabulary of size ∣V∣|\mathcal{V}|. Let Xm={X_i,1≤i≤m}X^{m}=\{X\_{i},1\leq i\leq m\} be a set of mm hidden states that are conditionally i.i.d. given YY. The training objective is to minimize cross-entropy, which is asymptotically equivalent to minimizing the conditional entropy H(Y∣Xm)H(Y|X^{m}).

$$H(YX^{m})\geq H(Y)-m\cdot I(Y;X)$$

The goal is to show:

$$H(YX^{m})\geq H(Y)-mI(X;Y)$$

By the definition of Mutual Information:

$$H(YX^{m})=H(Y)-I(Y;X^{m})$$

We need to bound I(Y;Xm)I(Y;X^{m}). Apply chain rule of mutual information,

$$I(Y;X^{m})=H(X^{m})-H(X^{m}Y)$$

Since X_iX\_{i} are conditionally independent given YY:

$$H(X^{m}Y)=\sum_{i=1}^{m}H(X_{i}

For the first term H(Xm)H(X^{m}), by sub-additivity of entropy, the entropy of the joint distribution is always less than or equal to the sum of individual entropies (independence maximizes entropy):

H(Xm)≤∑_i=1mH(X_i)H(X^{m})\leq\sum\_{i=1}^{m}H(X\_{i})

Substitute these back into the Mutual Information expansion:

$$I(Y;X^{m})\leq\sum_{i=1}^{m}H(X_{i})-\sum_{i=1}^{m}H(X_{i}Y)$$
$$I(Y;X^{m})\leq\sum_{i=1}^{m}\left(H(X_{i})-H(X_{i}Y)\right)$$
I(Y;Xm)≤∑_i=1mI(Y;X_i)I(Y;X^{m})\leq\sum\_{i=1}^{m}I(Y;X\_{i})

Since X_iX\_{i} are identically distributed, I(Y;X_i)I(Y;X\_{i}) is the same for all ii:

I(Y;Xm)≤m⋅I(Y;X)I(Y;X^{m})\leq m\cdot I(Y;X)

Finally substitute this upper bound on Information back into step 1. Since we are subtracting a larger value, the result is a lower bound on entropy:

$$H(YX^{m})=H(Y)-I(Y;X^{m})\geq H(Y)-m\cdot I(Y;X)$$

∎

Suppose H(Y∣Xm)≤ϵH(Y|X^{m})\leq\epsilon after training, we have

$$\epsilon\geq H(YX^{m})\geq H(Y)-m\cdot I(Y;X)$$

Recent theoretical work on infinite-width limits (Yang and Littwin, 2021) establishes that layer pre-activations converge to Gaussian distributions. Motivated by this, we model the local representation dynamics using a canonical Gaussian Channel approximation with additive noise. Specifically, we decompose X=Z+NX=Z+N, where ZZ is the latent signal, and N∼N(0,σ2I)N\sim\mathcal{N}(0,\sigma^{2}I) is the additive Gaussian noise. We define the Signal-to-Noise Ratio as

SNR=E[∥Z∥2]E[∥N∥2]{\rm SNR}=\frac{\mathbb{E}[\|Z\|^{2}]}{\mathbb{E}[\|N\|^{2}]}

Under the Gaussian channel approximation, mutual information is a logarithmic function of SNR (Shannon, 1948):

I(X;Y)=12log⁡(1+SNR)I(X;Y)=\frac{1}{2}\log(1+\rm{SNR})

Substituting this capacity into Lemma H.1, we have

m≥H(Y)−ϵ12log⁡(1+SNR)m\geq\frac{H(Y)-\epsilon}{\frac{1}{2}\log(1+{\rm SNR})}(6)

Corollary H.2 indicates that mm is inversely proportional to log⁡(1+SNR)\log(1+{\rm SNR}). Consequently, if the Semantic Tube works as expected, it will increase SNR and strictly lower the data requirement mm.

Let Y^=f(Xm)\hat{Y}=f(X^{m}) be the estimator of YY produced by the model. Let P_e=P(Y^≠Y)P\_{e}=P(\hat{Y}\neq Y) be the probability of error (incorrect token generation). Fano’s Inequality (Cover and Thomas, 1991) provides a lower bound on the conditional entropy H(Y∣Xm)H(Y|X^{m}) in terms of the error probability:

$$H(YX^{m})\leq H_{b}(P_{e})+P_{e}\log(

where H_b(P_e)H\_{b}(P\_{e}) is the binary entropy function. For LLMs, ∣V∣≫1|\mathcal{V}|\gg 1, the term P_elog⁡∣V∣P\_{e}\log|\mathcal{V}| dominates H_b(P_e)H\_{b}(P\_{e}). Hence we can simplify Fano’s inequality to be:

$$H(YX^{m})\leq P_{e}\log(\mathcal{V}

Plug Equation 5 into Equation 7, immediate we get

$$P_{e}\gtrsim\frac{H(Y)-m\cdot\frac{1}{2}\log(1+{\rm SNR})}{\log\mathcal{V}}$$

Equation 8 indicates that if we observe significant improvement on training accuracy, we know that SNR is higher.

In this section we present the results of experiments on Llama3 3B and 8B using 12\frac{1}{2}, 14\frac{1}{4}, 18\frac{1}{8}, 116\frac{1}{16}, and 132\frac{1}{32} of the dataset in Figure 12, where we see similar trend as in Llama3 1B (Figure 1).

(a) Llama3 3B

We list in Table 3 a few samples from the SYNTH dataset that end with either “.*” or “.*.*”, which are functionally equivalent.

Table 3: Regular expression samples from the SYNTH dataset that end with either “.*” or “.*.*”, which are functionally equivalent.

Regular Expressions
.*([a-z])$
.*([A-Za-z]).*([0-9]).*.*
((dog)(.*)).*([AEIOUaeiou]).*
(dog).*((truck)$
.*(.)&([0-9])&(dog).*
.*(dog).*((.)*).*.*
.*dog.*[a-z].*.*

In this section, we present the accuracy vs. λ\lambda curves for the various configurations of Semantic Tubes, Two Views, and Mask detailed in Section 4.6. As shown in Figure 13, we observe across all cases that the curve is concave, most of the time with a maximum reached at λ\lambda values between 0.010.01 and 0.80.8. Furthermore, when λ\lambda exceeds the optimal value, we occasionally observe a precipitous drop in accuracy accompanied by a drastic increase in standard deviation. Collectively, these results provide strong evidence supporting the validity of (P4).

(a) Semantic Tube

Semantic Tube: We ablate several variations of the Semantic Tube configuration:

  • •

    Zero: Instead of randomly picking ss, this variation fixes the start index s=0s=0. The loss becomes L_STP=1−cos⁡(h_r−h_0,h_t−h_r)\mathcal{L}\_{\rm STP}=1-\cos(h\_{r}-h\_{0},h\_{t}-h\_{r}).

  • •

    Pred: We introduce a learnable linear projector PP and modify the loss to L_STP=1−cos⁡(P(h_r−h_s),h_t−h_s)\mathcal{L}\_{\rm STP}=1-\cos(P(h\_{r}-h\_{s}),h\_{t}-h\_{s}). aligns the approach more closely with the JEPA style, utlizing a non-identity predictor. PP is randomly initialized and trained during fine-tuning.

  • •

    Inst: We incorporate instructions into the token sequence x_≤tx\_{\leq t}. These instructions consist of system prompt such as “Convert natural language to regular expression”.

Two Views: This configuration adopts the LLM-JEPA style two-view structure, where query and answer represent two views of the same concept. Note that we retain the L_STP\mathcal{L}\_{\rm STP} formulation but fix s=0s=0 and set rr to the index of the last token of the query.

  • •

    Warmup: We linearly warm up λ\lambda throughout the training process.

  • •

    Pred: Identical to the Pred variation in the Semantic Tube configuration.

  • •

    Mean: Instead of the difference vector h_r−h_sh\_{r}-h\_{s}, we use the average embedding 1r−s+1∑_s≤i≤rh_i\frac{1}{r-s+1}\sum\_{s\leq i\leq r}h\_{i}. Consequently, the loss becomes L_STP=1−cos⁡(1r−s+1∑_s≤i≤rh_i,1t−r+1∑_r≤j≤th_j)\mathcal{L}\_{\rm STP}=1-\cos(\frac{1}{r-s+1}\sum\_{s\leq i\leq r}h\_{i},\frac{1}{t-r+1}\sum\_{r\leq j\leq t}h\_{j}). This is inspired by BERT Mean Pooling (Kim et al., 2021).

Mask: This variation is inspired by BERT mask-and-recover training objective (Devlin et al., 2019). Given a token sequence x_≤tx\_{\leq t}, we randomly pick a span [s,r][s,r] and replace the tokens within this span with the [MASK] token. Let y_≤ty\_{\leq t} denote the masked sequence and g_t=f(y_≤t)g\_{t}=f(y\_{\leq t}). The loss is defined as L_mask=1−cos⁡(h_r−h_s,g_t)\mathcal{L}\_{\rm mask}=1-\cos(h\_{r}-h\_{s},g\_{t}). This can be interpreted as recovering the information of the masked tokens using the representation of the masked sequence y_≤ty\_{\leq t}.

  • •

    Full: Instead of aiming to match h_r−h_sh\_{r}-h\_{s}, we target h_th\_{t}. The loss becomes L_Mask=1−cos⁡(h_t,g_t)\mathcal{L}\_{\rm Mask}=1-\cos(h\_{t},g\_{t}), corresponding to the recovery of the full masked sequence rather than just the masked span.

  • •

    Pred: Identical to the Pred variation in the Semantic Tube configuration.

  • •

    Inst: Identical to the Inst variation in the Semantic Tube configuration.

Curvature: This variation is inspired by the curvature straightening objective (Hénaff et al., 2021). Let θ_i\theta\_{i} be the angle between h_i−h_i−1h\_{i}-h\_{i-1} and h_i+1−h_ih\_{i+1}-h\_{i}. The loss is defined as L_Curvature=1t∑_i≤t∣θ_i∣\mathcal{L}\_{\rm Curvature}=\frac{1}{t}\sum\_{i\leq t}|\theta\_{i}|.

  • •

    Sign: Replaces ∣θ_i∣|\theta\_{i}| with θ_i\theta\_{i} (allowing for signed curvature).

The fact that Pred yields inferior performance in both the Semantic Tube and Two Views configurations supports (P5).

The pp-values comparing variations and options are presented in Tables 4 and 5.

Table 4: Pairwise pp-values comparing variation families. A cell is populated only if the mean accuracy of the row method exceeds that of the column method. pp-values are computed using a paired, one-tailed tt-test, restricted to the best-performing variant from each family.

Two ViewMaskCurvature
LLM-JEPA21.14e-31.77e-33.04e-5
Two View4.76e-35.10e-5
Mask1.28e-4

Table 5: Pairwise pp-values comparing options within each variation family. A cell is populated only if the mean accuracy of the row option exceeds that of the column option. pp-values are computed using a paired, one-tailed tt-test. Values exceeding 0.050.05 are struck through.

ZeroPredInst2ViewPredMean
LLM-JEPA20.05342.03e-32.34e-42View+Warmup0.2650.04269.16e-6
+Zero0.01855.56e-42View0.06891.19e-6
+Pred2.97e-4+Pred2.78e-4
Inst,RecovInstMaskSigned
Mask+all0.06290.01594.02e-3
-Pred2.34e-31.18e-3Curvature0.0368
-Recov,Pred0.0103