atlas

Research map / Large language models / Language, safety and interpretability

Lines of Thought in Large Language Models

ICLR 2025 · Large language models › Language, safety and interpretability · approach: Linguistic encoding in LLM representations · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Treats LLM hidden-state trajectories of the last token as ensemble "lines of thought," finds they lie on a ~256-dimensional curved manifold, and models them with a Langevin/Fokker-Planck stochastic equation with few fitted parameters.

Problem

Understanding the internal transport of token representations through transformer layers at an ensemble level, and whether the high-dimensional trajectories can be described by a simple low-parameter model.

Approach

Treats the last-token hidden states across layers as trajectories; uses ensemble SVD bases per layer to show low-dimensional clustering, then models each layer-to-layer step as a linear rotation-and-stretch plus Gaussian noise whose variance scales as exp(lambda(t+tau)), extended to a continuous Langevin SDE.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Approximate later token positions using ensemble-derived rotation and stretch, with stochastic residualsGPT-2 medium · Walden, true versus extrapolated positions across layerslinear-classifier accuracy: 48–61; random guessing: 50%No clear effect
Keep only the first 256 principal components at each layer (ablation)GPT-2 medium trajectory representations · Next-token output distributionKL divergence relative to uncorrelated baseline: about 10%Helped
Reinitialize all model weights (ablation)GPT-2 medium · Walden trajectory ensemblesfit to the proposed stochastic trajectory modelHurt
Reinitialize layers 13–24 (ablation)GPT-2 medium · Walden trajectories through layers 13–24trajectory transportHurt
Use trained rather than reinitialized weightsGPT-2 medium · Walden trajectory ensemblesfit to the proposed stochastic trajectory modelHelped
Use Mistral 7B v0.1Mistral 7B v0.1 · Walden trajectories, final layerlinear-extrapolation errorHurt
Use Llama 3.2 1B or 3BLlama 3.2 · Walden trajectories, final layerresidual mean and varianceMixed

Surprising findings

Limitations

Experimental setup

Datasets: Walden (Henry David Thoreau, Project Gutenberg)

Metrics: KL divergence between truncated and full output distribution mean over standard deviation of residuals excess kurtosis variance scaling of residuals linear SVM separability accuracy

Baselines: untrained (reinitialized) GPT-2 gibberish inputs ablated GPT-2 with reinitialized layers 13-24

Builds on: neural ODE transformer residual stream

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy