Zero Labs
Industry News / AI

What Does “The Shape of Thought” Look Like Inside an LLM?

Source · Towards AI By Kareem Soliman

From the publisher’s feed, collected in the ZeroLabs newsroom.

What Does “The Shape of Thought” Look Like Inside an LLM? And How Does Geometry Arise out of Psychology?Visualisation of Trajectory GeometryWhen a transformer gets something right, it literally moves differently through its own mind. The shape of that movement? It’s telling a story cognitive science has known about for decades..I started this because I was trying to understand creativity as a function of semantic distance between concepts. And I’ve been fascinated with Mechanistic Interpretability (or as I like to call it, neuroscience for AI). In psychology, we are often prevented, for good reason, from peering too closely into the skulls of living research participants so theories of cognition can never really find traction in physical processes outside of downstream behavioural observations from which we “infer” a variety of constructs. But AI Mech Interp work offers a new pathway, one where we can actively probe and prod and find answers to questions that have longue plagued us in the hope that perhaps some of these insights might translate into how the human mind works (or vice versa).Ask me later about perspective dependent semantic distance as an alternative to fixed statis vector embeddings. But for now, after several failed experiments and project termination recommendations from Google’s Antigravity, allow me to introduce you to trajectory geometry in LLMs and why it matters.Honestly, what I found surprised me more than I expected.The assumption nobody questionsThere’s this quiet thing baked into most AI interpretability work: understanding a model means understanding what it represents. Find the neuron. Pin down the feature. Map concept to vector. The whole approach assumes knowledge lives in static spaces that just get “looked up” like an address in a phone book. And that this was fundamentally how LLMs operated. Be it GPT, Gemini or Claude.I’m not hating on the amazing work that’s already been done in the field. Anthropic’s Scaling Monosemanticity work pulled millions of interpretable features from Claude 3 using sparse autoencoders (SAEs). Features for things as specific as the Golden Gate Bridge. It’s genuinely impressive, state-of-the-art stuff for what I’d call structural interpretability (asking what’s encoded in the weights).But here’s what keeps nagging at me, it felt nothing like how meaning is made in human context. And I know about the anthropomorphism trap but my intuition was telling me it was more complex than that. Take the Dictionary Trap for example. Having a million interpretable features is like owning a dictionary with a million entries. You know what words mean individually, sure. But dictionaries don’t explain how sentences work, why one word sequence creates poetry and another creates gibberish. The relationships between features, how representations evolve through time and layers during actual computation… that’s where the dynamic stuff happens and things get interesting. Just like in human conversation! But unfortunately I haven’t found too many people talking about it so far.I spent a while doing some theoretical work on creativity and how to measure it before my ADHD brain jumped to the next project. And eventually I worked up the courage to play around with Google’s Antigravity and start running some experiments myself. Putting my theoretical work to the empirical test. I went through all the joys of positive results from poor experimental design, brutal honesty about methodological flaws, flawed assumptions and intuitions leading to iterations of experiments resulting in dead ends. It seemed language was inevitably tied to thinking processes in LLMs and heavily influenced by the prompt. But then I thought that’s probably not a whole lot different to how humans think either. And we have plenty of evidence for Chain of Thought (CoT) prompting and its efficacy in LLMs now. Why don’t I look into that? What happened next was absolutely incredible but let’s start at the beginning.In Experiments 1 and 2, different cognitive operations (arithmetic, logical reasoning, creative stuff) did produce distinguishable clustering patterns in embedding space. Encouraging! Except the clusters were hopelessly tangled with content — the model’s representation of “multiplication” was inseparable from the specific numbers getting multiplied. Couldn’t isolate the operation from the operands. Experiment 3 tested whether models might have invariant geometric signatures for reasoning phases, sort of a Listen-Think-Speak architecture visible in hidden states. That idea died hard. Topic confounding dominated everything (R² I think of experiments 4 through 7 as just wandering in the forest trying new ideas out. Kept trying variations on the static approach: different validation schemes, bigger sample sizes, tighter controls. Probe signals stayed weak (F1 scores around 0.30 to 0.48), diminishing returns at every iteration. Experiment 7 was my most careful attempt: 2,000 problems, rigorous cross-validation. Got stability, which felt like progress. But that separability ceiling was real, F1 stuck around 0.30. The static paradigm just wasn’t working, no matter how hard I pushed.My main AI research collaborator told me to kill the project during this stretch. More than once, honestly. Signals too weak, confounds too strong, looked like a dead end. I’m grateful I was stubborn. But that stubbornness came from genuine curiosity and being guided by the evidence, not ego. Those clustering patterns from Experiments 1 and 2 kept telling me something real was there. I just wasn’t measuring it right.The pivot hit in Experiment 8. Stopped asking “where does reasoning live?” and started asking “how does reasoning move?” Defined a suite of dynamical metrics: Speed (how fast hidden states change between tokens), Curvature (how sharply direction shifts), Tortuosity (how winding the overall path gets). These were just descriptive at first, not predictive. But they worked. First time I could see clear, consistent differences between conditions.Experiment 9 was the breakthrough. Applied those dynamics to compare success and failure groups, in both Direct Answer and CoT to create four conditions and the signal exploded. Dimensional collapse. Regime-relative geometry. Effect sizes I’d never seen in any literature. Everything that follows came from that pivot.Turns out the model’s competence isn’t a place. It’s a path. The difference between getting something right and hallucinating isn’t about where the internal state ends up. It’s about how it moves getting there.I’m calling this Trajectory Geometry: measuring the shape, speed, and texture of a model’s reasoning process as it unfolds. And the results? Not subtle.What I actually didContext matters before diving into findings, because specifics determine what you can actually conclude.This emerged from 16 experiments over about a year, using small open-source transformers (mainly Qwen2.5–0.5B, with replication on Qwen2.5–1.5B and Pythia-70m). Task domain: multi-step arithmetic. Deliberately simple problems like `(47 × 3) + 12`, chosen because they give unambiguous binary outcomes. Either you get 153 or you don’t. No judgment calls, no fuzzy rubrics, no room for interpretation. Important because it kills the interpretive noise plaguing most reasoning benchmarks.Tested two prompting strategies across 300 problems. Direct prompting asks for immediate answers: “Answer the following question directly. Calculate (47 × 3) + 12?.” Chain-of-Thought (Wei et al., 2022) asks for explicit reasoning: “Calculate (47 × 3) + 12? Let’s think step by step before answering.”Creates four natural groups. G1: Direct Fail (answers directly, gets it wrong). G2: Direct Success (answers directly, correct). G3: CoT Fail (reasons step-by-step, still wrong). G4: CoT Success (reasons step-by-step, correct).Every comparison below comes from the model’s internal hidden states, not text output. Extracted residual stream activations across all 25 layers (including 0) for the full generation trajectory of every response (not truncated), then computed 33 geometric and dynamical metrics on these trajectories. All reported effects: statistically significant (p Quick note on effect sizes since I use them throughout: Cohen’s d measures standardized difference between groups. In psychology, d = 0.2 is “small,” 0.5 is “medium,” 0.8 is “large.” I’m routinely seeing d = 4.0 or higher. What that actually means: distributions barely overlap. These aren’t subtle signals needing sophisticated stats to detect. They’re visible to the naked eye as the charts below will show.Finding 1: Failure is flatSingle most striking thing across all 16 experiments: dimensional collapse.When the model reasons its way to a correct answer with Chain-of-Thought, its internal trajectory occupies a rich, high-dimensional subspace. Measured this using effective dimension which is basically how many independent directions of variation the hidden states explore while processing. Think of it as a rough count of conceptual axes the model’s actively using.When it fails on a direct answer? That subspace collapses.Numbers aren’t close. Successful CoT trajectories (G4) explore roughly 19–23 effective dimensions depending on layer. Failed Direct trajectories (G1) by contrast were confined to about 2–4 dimensions. Effect size at Layer 14: Cohen’s d = 4.69.Figure 1 shows this clearly. The separation between the red violin (G1, Direct Fail) and the blue violin (G4, CoT Success) is near-total. But notice something else: the yellow violin (G3, CoT Fail) is actually wider than the blue one. I will come back to that, because it changes the story considerably.Violin plot showing the distribution of effective dimension for all four groups at Layer 14. The separation between Direct Fail (G1, red) and CoT Success (G4, blue) is extreme (d = 4.69). Note that CoT Fail (G3, yellow) actually shows wider expansion than CoT Success.What does this mean in plain language? Imagine navigating a building. Successful CoT reasoning explores the full 3D layout: turning corners, stairs, entering rooms and walking out again. Failed Direct model walks down a single corridor. Somewhat more slowly and sure of itself as though it already knows where its going. Same building, radically different experience. The computation during failure is genuinely confined to a narrow slice of representational capacity. It’s pattern-matching, not computing.Anyone who’s worked with clinical populations will recognize something familiar here. Cognitive rigidity, or thoughts restricted to narrow, well-worn paths, are one of the most reliable dysfunction markers across clinical literature. OCD presentations, certain depressions, trauma responses: all share this signature of minds that collapsed their exploratory range in favour of premature convergence on certainty. Again I run the risk of anthropomorphising here but what we’re seeing is functionally analogous to how it works in humans. So its hard not to be excited when these kind of results show up. I’m pointing out that reduced computational capacity looks structurally similar whether you measure it in human brains or transformer hidden states.Connects to something deeper in neuroscience, too. Recent work on neural manifolds showed biological neural populations represent information on low-dimensional surfaces embedded in high-dimensional state spaces, and manifold geometry determines computational capacity. A 2025 [Science Advances] study demonstrated macaque V2 neurons solve classification problems by expanding from a 3D sensory manifold to 7D perceptual manifold through geometric “twist” operations. Parallel to what I’m seeing in transformer hidden states is hard to ignore: successful computation needs dimensional expansion, failure correlates with confinement.Finding 2: There is no universal “success detector”This is where it gets genuinely interesting, where the work diverges from standard interpretability playbooks.After discovering dimensional collapse, you’d expect a clean story: successful reasoning = high dimensionality, failure = low dimensionality. Build classifier, ship it, done.Turns out the story is a bit more complicated than that.When I expanded analysis to all four groups, especially comparing Direct successes (G2) against CoT successes (G4), signatures inverted. Direct success looks geometrically like CoT failure. Successful direct answers are low-dimensional, fast, efficient. The model retrieves answers in compressed, ballistic trajectories… the EXACT opposite of the expansive, winding path characterizing successful Chain-of-Thought.Out of 12 core metrics tested at middle layers, 9 flip sign depending on prompting strategy. A metric predicting success under CoT actively predicts failure under Direct, and vice versa. Speed, effective dimension, radius of gyration, directional consistency, tortuosity, spectral entropy: all reverse their relationship to correctness when you switch regimes.I’m calling this regime-relative success geometry, and it might be the most important finding in the whole project. Means there’s no single geometric “truth signature” working across all computational strategies. The model has fundamentally different *modes* for arriving at correct answers, and what “good geometry” looks like depends entirely on which mode’s active. Imagine different modes of thinking suited for different tasks of varying complexity. All tied back to the prompt that was used.Coming from psychology, I couldn’t help thinking of Kahneman’s dual-process theory (Kahneman, 2011). System 1: fast, automatic, low-effort pattern recognition producing answers without deliberation. System 2: slow, effortful, deliberate step-by-step reasoning consuming cognitive resources. The parallel struck me as fascinating. Direct success (G2) looks like System 1 cognition: compressed, efficient, ballistic. CoT success (G4) looks like System 2: expansive, exploratory, computationally expensive.But here’s what genuinely surprised me: in cognitive psychology, dual-process framework’s always been somewhat metaphorical. We infer two systems from behavioral data, response times, error patterns, cognitive load susceptibility. Nobody’s directly seen System 1 and System 2 as geometric objects.In a transformer? You can. This is why I love mech interp so much!Hidden-state trajectories of Direct success and CoT success aren’t just behaviorally different. They’re geometrically distinguishable at every network layer. They occupy different regions of representational space, move at different speeds, show different curvature profiles, exhibit different dimensional signatures. If dual-process theory describes something real about cognitive architecture (not just a useful metaphor), then maybe what I’m measuring is its geometric substrate.Cute analogy? Maybe. But to cement the point, recent Nature Reviews Psychology review (Brady et al., 2025) examined LLM reasoning through the dual-process lens, concluded LLMs mimic both System-1 and System-2 responses through different prompting methods. My work adds something new: first direct geometric evidence these two modes produce fundamentally different internal computational structures, not just different output behaviors.And the safety implication hits immediately. If you’re building a hallucination detector or reasoning monitor, you can’t build a universal one. Need to know what computational regime the model’s in first, then apply regime-appropriate geometric criteria. Single threshold on any metric will systematically misclassify.The cross-architecture twistHere’s where things get even more interesting, why I think replication efforts will be fascinating regardless of outcome.When I ran the metric suite on Qwen2.5–1.5B (3x the parameters) and Pythia-70m (completely different architecture), core findings replicated. but with an important inversion. In Qwen-0.5B, successful CoT looks like expansion: trajectory explores wide, high-dimensional space before converging. Corresponding failure mode: collapse, trajectory confined to narrow corridor. But in Qwen-1.5B and Pythia, polarity flips. Success looks like compression: efficient, focused trajectories avoiding unnecessary exploration. Failure mode in these models: wandering, trajectories expanding without purpose.What stays constant across all three: the Goldilocks principle. Success is always middle ground between two extremes. In the smaller model, success sits between collapse (too little exploration) and over-expansion (too much). In larger models, success sits between rigid compression (too focused) and aimless wandering (too diffuse). Specific geometry of “good reasoning” is scale-dependent, but the structural principle appears universal: success as Goldilocks zone between opposing failure modes.Matters for anyone planning replication, because means you should expect different geometric signatures in different models. Prediction isn’t “you’ll find the same patterns I found.” It’s “you’ll find regime-relative geometry with Goldilocks structure, but specific polarity may flip depending on model scale and architecture.” More interesting hypothesis to test, falsifiable regardless of direction.Finding 3: The Goldilocks problem, or how CoT fails differently than you thinkHere’s the finding full-trajectory analysis revealed that earlier truncated measurements completely missed.Standard story about Chain-of-Thought failure: it fails for the same reasons Direct prompting fails, just with extra tokens. Model doesn’t know the answer, so adding “think step by step” generates confident-sounding nonsense.Wrong. CoT failure looks nothing like Direct failure. Looks like an exaggerated version of CoT success.Across virtually every layer 0–23, G3 (CoT Fail) consistently shows higher effective dimensionality than G4 (CoT Success). Effect’s small to medium (d ≈ 0.2 to 0.45 per layer) but remarkably consistent, appearing at 24 of 25 layers. CoT failures aren’t collapsing… they’re over-expanding. They wander through even higher-dimensional space than successful CoT, but never converge on solutions.This only became visible with full-trajectory analysis. When I previously truncated to 32 tokens, both G3 and G4 looked similar because at token 32, both groups are still expanding. Full trajectory captures the extended wandering distinguishing failed CoT from successful CoT. The part where G4 starts converging while G3 keeps exploring.Completes what I think of as a Goldilocks story with three failure modes:- Direct failures collapse: too little exploration, trajectory confined to narrow corridor, never engages problem complexity- CoT successes explore and converge: just right amount of expansion, followed by decisive commitment to solution direction- CoT failures over-expand: too much exploration, trajectory wanders through high-dimensional space without convergent phase that would focus it toward correct answerFigure 3 shows this taxonomy directly. When I ran PCA on the geometric profiles of G3 (CoT Fail) trajectories alone, two distinct failure subtypes emerged. Type A failures show mode collapse, similar to Direct failures, where the CoT machinery simply does not engage. Type B failures show wandering, the trajectory explores extensively but never finds its way to convergence. The colour gradient (radius of gyration) reveals that these subtypes are geometrically distinct, occupying separate regions of the failure space.PCA decomposition of CoT Failure (G3) trajectories reveals two distinct failure subtypes. Type A (left cluster, purple) shows mode collapse. Type B (right cluster, yellow-green) shows extensive wandering without convergence. PC1 (99.8% variance) captures expansion/dimensionality.This has a precedent in cognitive psychology I find hard to dismiss as coincidence. In clinical assessment, two most common incorrect response patterns: perseveration (getting stuck on single strategy and repeating it) and confabulation (generating elaborate but unfounded reasoning). These map almost directly onto what I’m seeing geometrically. Type A failures (collapsed) resemble perseveration. Type B failures (wandering) resemble confabulation. Model’s either stuck or lost, and these two failure modes produce distinct geometric signatures.Li & Goyal (2025) recently demonstrated language model reasoning shows “fragility under distraction,” where off-trajectory perturbations catastrophically disrupt performance. Maps directly onto what I’m seeing: Type B wandering failures may represent exactly this distraction-induced trajectory departure, where reasoning path gets knocked off course and never recovers.Finding 4: The moment of commitmentMaybe the most tangible finding for the community as a whole… we can detect the precise moment the model commits to an answer direction.Tracked the point where radius of gyration (how spread out the trajectory is) drops most sharply. This commitment point shows dramatically different timing between groups:For Direct responses (G1 and G2), commitment happens almost immediately. Typically within first 3 tokens, regardless of correctness. Consistent with System 1 processing: model recognizes problem pattern, fires ballistic response, commits before real computation occurs. Difference between Direct success and failure isn’t *when* the model commits but *what* it commits to.For CoT responses, timing diverges. Successful CoT (G4): median commitment around token 51 with bimodal distribution, suggesting two sub-strategies within CoT success. Failed CoT (G3) commits later still, around token 53 median but with much longer tail (mean = 62) — consistent with over-expansion finding. Model keeps searching longer because never finds satisfying convergent state.Figure 4 shows this contrast starkly. The red distribution (G1, Direct Fail) clusters tightly near zero. The blue distribution (G4, CoT Success) shows two distinct peaks, one around token 35 and another around token 55. The arrow marks the point below which all Direct commitments fall. The separation between fast commitment and deliberate commitment is not gradual. It is a phase transition.Density plots of commitment timing (token index of maximum radius-of-gyration drop) for G4 (CoT Success, blue) and G1 (Direct Fail, red). The bimodal structure in G4 suggests two distinct CoT sub-strategies. Direct responses commit almost immediately regardless of correctness.Bimodal structure in G4 distribution was something I hadn’t anticipated, deserves more investigation. Suggests successful Chain-of-Thought may involve at least two distinct computational sub-strategies: one committing relatively early (around token 35), one requiring extended deliberation (around 55). Whether these correspond to different problem types, solution methods, or some other structural variable remains an open question. But the fact commitment timing is *measurable* from internal geometry alone, without reading any text output, makes this practically useful.This connects to recent work by Fumero et al. (2025) on latent vector fields in transformer hidden states, describing convergence to attractor states during generation. The commitment timing I measure may detect exactly when trajectory reaches these attractors. Difference between success and failure, in this framing: whether the attractor the model converges to and/or corresponds to correct solution.Finding 5: Harder problems produce bigger geometryOne concern you might reasonably raise: are these geometric signatures just proxies for problem difficulty? Maybe harder problems simply produce more tokens, tokens mechanically inflate metrics like radius of gyration or effective dimension.Data says otherwise, forcefully. When I binned problems by magnitude of correct answer (proxy for computational complexity, assuming larger answers need more computational steps), geometric separation between success and failure groups scaled with difficulty.Figure 2 shows the effect size for radius of gyration (G4 vs G1) across four difficulty bins. For the simplest problems (2–3 digit answers), the effect size is d = 4.8, already enormous. For the hardest problems (8+ digit answers), it reaches d = 18.1.Effect size (Cohen’s d) for radius of gyration comparing CoT Success (G4) vs Direct Fail (G1) across four difficulty bins. The geometric separation scales monotonically with problem complexity, from d = 4.8 for simple problems to d = 18.1 for complex ones.An effect size of 18.1 isn’t something I’ve ever encountered in psychology literature. For reference, largest effect sizes in cognitive psych typically fall d = 2 to 3 range. What this tells me: model’s internal geometry isn’t just correlated with difficulty. It’s calibrated to it. Harder problems produce proportionally larger trajectories, separation between success and failure scales accordingly. Exactly what you’d expect if geometry reflects genuine computational work rather than superficial artifact.And this scaling held across model sizes. Replicated core findings on Qwen2.5–1.5B (3x parameters) and Pythia-70m (completely different architecture with 14x fewer parameters). Absolute values change, but qualitative patterns persist. Dimensional collapse, regime-relativity, difficulty scaling all survived cross-architecture validation at these scales.Finding 6: Geometry predicts correctness (and the honest nuance about length)Trajectory Metrics Across Layers: Condition ComparisonPractical question: can you actually predict whether a model will get the right answer from trajectory shape? Yes. But full picture’s more nuanced than a single number suggests, and I want to present it honestly.In controlled 32-token window analysis (Experiment 14), using logistic regression with geometric features, achieved AUC of 0.898 for predicting correctness on Direct prompting, without reading a single output token. Response length alone achieves AUC 0.645 in this window. Geometry alone: 0.898. Combining geometry with length doesn’t improve over geometry alone, meaning geometric metrics subsume length’s predictive value entirely within this controlled window.When I extended to full trajectories in Experiment 15, relationship shifted. Response length becomes stronger predictor in full-context setting (AUC around 0.77), makes intuitive sense… longer Chain-of-Thought responses correlate with more complete reasoning, and length captures this. But geometry still adds unique predictive signal, particularly in early layers (0 through 7) where length information isn’t yet available to the model. This is where practical monitoring value lives. In first few layers and tokens of generation, before model’s produced enough output for length to be informative, trajectory geometry is the only signal we could have access to before things go off the rails.Mirtaheri & Belkin (2025) achieved AUC values approaching 1.0 using probes detecting “motivated reasoning” patterns in hidden states, a complementary structural approach. My dynamic trajectory analysis captures something different: not whether model’s encoded right information, but whether its *process* of accessing that information follows trajectories consistent with successful computation. Both approaches have value, measure different aspects of same underlying phenomenon.Immediate practical implication: if you can compute trajectory geometry in real time (computationally feasible for metrics I use), you can build monitoring systems flagging likely failures before the model finishes generating. Not by reading output. Not by asking it to self-assess (tested that too — model’s verbal self-reports don’t correlate with actual geometric state). By measuring the shape of its thought, especially in those critical early layers where other signals haven’t emerged yet.How this connects to what you’re already doingIf you work in mechanistic interpretability, you might wonder how trajectory analysis relates to tools and frameworks you already use. Short answer: complements them directly, integration points are concrete enough to be your next experiment.Trajectory-SAE Integration: If you work with sparse autoencoders, you already extract monosemantic features from residual stream activations. Natural next step: track how those feature activations evolve through the metric suite I’ve developed. Instead of computing Speed, Curvature, Tortuosity on full hidden states (high-dimensional, hard to interpret), compute them on SAE feature trajectories. Reduces dimensionality while preserving temporal dynamics, lets you ask: “Does feature X activate with same geometric profile during successful and failed reasoning?” Week of work for anyone with existing SAE pipeline.Temporal Circuit Discovery: Conmy et al. (2023) developed ACDC (Automatic Circuit DisCovery) to identify which model components contribute to specific computations. My findings add temporal dimension: geometric signatures aren’t uniformly distributed across layers. Regime identification concentrates in layers 0–7, success/failure separation peaks in layers 10–14, commitment timing signatures appear in layers 20–24. This layer specialization suggests different circuit components engage at different computational phases, ACDC-style analysis targeted at these specific layer windows could identify when circuits engage, not just which circuits exist. Two-week project for anyone already running circuit analysis.Causal Validation: Most important gap in my work: the causal question. Does changing trajectory geometry change outcomes? If you do activation patching, you could test this directly. Identify trajectory in “wandering failure” region of geometric space, patch activations to shift it toward “successful convergence” profile, check whether output changes. If it does, we’ve moved from “geometry correlates with success” to “geometry causally contributes to success”. That’s a different paper entirely! Two to four weeks for anyone with patching infrastructure. Lu & Yang (2025) reported “discontinuities in hidden state interpretability” in Huginn-3.5B that may correspond to regime transitions I observe geometrically. Causal intervention at these discontinuity boundaries would be particularly informative test.Point isn’t that trajectory analysis replaces existing methods. It’s that it gives existing methods a temporal axis they currently lack. SAEs tell you what features are active. Circuits tell you which components matter. Trajectory Geometry tells you how computation unfolds through time. Integrating these produces richer picture than any one approach alone.What this means (and what I think it might mean)Findings above are empirical. Here’s where I want to be honest about distinction between what I’ve demonstrated and what I believe these demonstrations point toward.What I’ve demonstrated: In small transformers solving arithmetic, internal hidden-state trajectories have measurable geometric properties distinguishing success from failure, differentiating computational regimes, scaling with problem difficulty, and predicting outcomes better than token length in early-layer analysis. These properties aren’t universal but regime-dependent, meaning any monitoring or interpretability tool must be regime-aware to work correctly.What I believe this points toward: A fundamental reorientation of how we think about interpretability. Dominant paradigm in mechanistic interpretability, exemplified by brilliant work like Anthropic’s sparse autoencoder research, is essentially lexicographic. Asks: “What are the basic units of representation?” My work suggests a complementary paradigm that’s essentially dynamical. Asks: “How do these representations move through time?”Language analogy: mechanistic interpretability is building the dictionary. Trajectory Geometry is studying the grammar. Both necessary. Neither sufficient alone. Right now, field’s heavily invested in dictionary-building while grammar remains almost entirely unexplored.The dual-process parallel extends further than I initially expected. Li et al., (2025) surveyed the reasoning LLM landscape, explicitly framed field’s trajectory as shift from System-1-like to System-2-like architectures. Bellini-Leite (2024) applied Predicting and Reflecting Framework from dual-process theory to suggest Chain-of-Thought and Tree-of-Thought prompting function as Type 2 reasoning strategies. My contribution to this conversation is less theoretical and more geometric. I can show you difference between System 1 and System 2 inside model’s hidden states. Trajectories look different. Live in different parts of space. Commit at different times. And critically, fail in completely different ways.If this generalizes beyond arithmetic (genuinely don’t know if it does yet), implications for AI safety are significant. Consider deception detection: a model “lying” (generating text it internally represents as false) might show geometric signature distinct from one that’s genuinely uncertain or confabulating. Right now, we detect deception by probing for truth-related features in residual stream, a structural approach. A dynamical approach would ask: does the trajectory of deceptive response look different from honest one? My intuition says yes, but that remains to be tested.Or consider capability prediction: if you can characterize geometric repertoire of a model (what shapes of trajectories it can produce), you might predict what it can and can’t do without exhaustive benchmarking. Dimensional collapse at certain layer might indicate fundamental computational bottleneck no amount of prompting can overcome.These are speculations. I’m flagging them as such for a reason. But they’re grounded in empirical observations I didn’t expect when I started.What I have not proven (yet)ntellectual honesty demands naming limitations clearly, I’ve got several significant ones.Two weeks of negative results are results: (I get a bit obsessive sometimes) Experiments 1–7 rigorously demonstrated static operator signatures don’t exist in the form I initially hypothesized. No fixed addresses. No invariant phase signatures. No clean probe separability above F1 of 0.48 across multiple validation schemes and sample sizes up to 2,000. These are valuable negative findings: if someone else is considering static approach to cognitive operation detection in hidden states, this work suggests they’ll hit same ceiling.Single task domain: All measured on arithmetic. Don’t know if same signatures appear in creative writing, factual recall, logical deduction, or code generation. I expect regime-relativity principle to generalize because it reflects something structural about how transformers process information rather than something math-specific. But that’s hypothesis, not finding.Small models only: Primary model has 500 million parameters. Replicated on 1.5 billion (Qwen) and 70 million (Pythia), showing scale stability and architecture independence at small scale. But haven’t tested on frontier models with hundreds of billions of parameters. Geometric signatures could wash out at scale, or become even more pronounced. Genuinely don’t know. Cross-architecture Goldilocks finding suggests principle survives but polarity may shift, meaning replication needs testing for regime-relative structure, not identical geometric profiles.Correlation, not causation: Shown geometry predicts success and contains information beyond token count. Haven’t shown changing geometry changes outcome. That’s the causal intervention question, obvious next step for people much more talented than myself. Someone with activation patching infrastructure could test this relatively quickly.No non-Qwen full replication with complete metric suite: Pythia confirmed basic signatures on different architecture but much smaller scale. Full replication on Gemma, LLaMA, or Mistral using all 33 metrics remains future work. Possibly the single most important validation this research line needs.The length confound requires continued honesty: In controlled 32-token analysis, geometry dominates length. In full-trajectory analysis, length is strong predictor. I’ve been transparent about this throughout, believe practical value of geometric monitoring lies in early-layer detection where length information isn’t yet available. But I don’t want to overstate the case just yet.Where this goes next (and who I need)want to be direct about something… my background is in organisational psychology, not machine learning. I built this research program by combining theoretical intuitions from cognitive science with AI tools that helped me implement experiments I couldn’t have coded entirely alone. Findings are real, statistics rigorous, experimental controls solid. But I’m one person working independently, and this needs stress-testing by people with different expertise than mine.Here are specific projects, each scoped to a few weeks, that would meaningfully advance this:Can you access Gemma-2B or LLaMA-3? Run 300 multi-step arithmetic problems through metric suite under both Direct and CoT prompting. Roughly 2–4 hours GPU time. Code and metric definitions will be on GitHub. Key test isn’t whether you find same signatures I found, but whether you find regime-relative geometry with Goldilocks structure. Based on cross-architecture results, I predict polarity may flip relative to Qwen-0.5B, but Goldilocks principle should hold. Either outcome’s publishable.Do you work with sparse autoencoders? Extract SAE feature activations across tokens for same problem set, then compute trajectory metrics on feature-level trajectories instead of full hidden states. Tests whether geometric signatures I found in raw residual streams survive dimensionality reduction through learned features. Roughly one week if you’ve got existing SAE pipeline. If signatures persist in SAE space, it bridges my work directly to Anthropic-style interpretability.Do you do activation patching? Identify trajectories in “wandering failure” and “successful convergence” regions of geometric space (I can provide classification criteria). Patch activations at commitment point to shift trajectories between regions. Test whether output correctness changes. This is the causal validation experiment, probably single highest-value project on this list. Two to four weeks.Interested in non-arithmetic reasoning? (I am too!) apply metric suite to syllogistic reasoning, simple code generation, or factual recall tasks. Question: does regime-relative geometry appear outside mathematics? I expect it will because underlying computational principles should be domain-general, but I’ve got no data. Two weeks for preliminary results.I’m open to co-authorship on any of these projects, and I need [ArXiv](https://arxiv.org/) endorsement in cs.LG, cs.AI, or cs.CL before I can submit preprint. If you’ve got endorsement capability and think this merits formal publication, I’d genuinely appreciate the help and be forever grateful. As mentioned before I’m quite open to co-authorship on a manuscript for formal publication with the right collaborator(s).Full experimental dataset, all 16 experiment logs, complete metric suite code, and statistical analysis pipeline will be available on GitHub [link forthcoming]. I welcome replication attempts. I welcome criticism. If someone can show me these findings are artifactual, I want to know. And if they’re real, I think they matter enough to warrant attention from people who can take them further than I can alone.The shape of thought is measurable. I’ve measured it. And what it reveals is that distinction between genuine reasoning and sophisticated pattern-matching isn’t just philosophical. It’s geometric, it’s quantifiable, and it’s hiding in plain sight in every transformer ever trained.ReferencesBellini-Leite, S. C. (2024). Dual process theory for large language models: An overview of using psychology to address hallucination and reliability issues. Adaptive Behavior, 32(5), 533–544. https://doi.org/10.1177/10597123231206604​Brady, T. F., McClelland, C. J., & others. (2025). Dual-process theory and decision-making in large language models. Nature Reviews Psychology, 4, 1–14. https://doi.org/10.1038/s44159-025-00506-1​Chen, Y., & others. (2025). From sensory to perceptual manifolds: The twist of neural geometry. Science Advances, 11(1), Article eadv0431. https://doi.org/10.1126/sciadv.adv0431​Conmy, A., Lieberum, T., Heaton, C., Baumgartner, S., Hsu, W., & Garriga-Alonso, A. (2023). Towards automated circuit discovery for mechanistic interpretability. arXiv. https://arxiv.org/abs/2304.14997​Fumero, M., Moschella, L., Rodolà, E., & Locatello, F. (2025). Navigating the latent space dynamics of neural models. arXiv. https://arxiv.org/abs/2505.22785​Jazayeri, M., & Ostojic, S. (2021). Interpreting neural computations by examining intrinsic and embedding manifolds of recurrent neural networks. Nature Neuroscience, 24, 1356–1367. https://doi.org/10.1038/s41593-021-00921-2​Kahneman, D. (2011). Thinking, fast and slow. Farrar, Straus and Giroux.​Kojima, T., Gu, S. S., Reid, M., Matsuo, Y., & Iwasawa, Y. (2022). Large language models are zero-shot reasoners. arXiv. https://arxiv.org/abs/2205.11916​Li, A. O., & Goyal, T. (2025). Off-trajectory reasoning: Can LLMs collaborate on reasoning trajectory? arXiv. https://arxiv.org/abs/2510.06410​Li, J., & others. (2025). From System 1 to System 2: A survey of reasoning large language models. arXiv. https://arxiv.org/abs/2502.17419​Lu, W., Yang, Y., Lee, K., Li, Y., & Liu, E. (2025). Latent chain-of-thought? Decoding the depth-recurrent transformer. arXiv. https://arxiv.org/abs/2507.02199​Mirtaheri, P., & Belkin, M. (2025). Detecting motivated reasoning in the internal representations of language models [Workshop paper]. Mechanistic Interpretability Workshop, NeurIPS 2025. https://neurips.cc/virtual/2025/129774​Templeton, A., & others. (2024). Scaling monosemanticity: Extracting interpretable features from Claude 3 Sonnet. Anthropic. https://transformer-circuits.pub/2024/scaling-monosemanticity/​Wei, J., Wang, X., Schuurmans, D., Bosma, M., Ichter, B., Xia, F., Chi, E., Le, Q., & Zhou, D. (2022). Chain-of-thought prompting elicits reasoning in large language models. arXiv. https://arxiv.org/abs/2201.11903​About the authorKareem is a psychology researcher whose work sits at the intersection of cognitive science and AI interpretability. My framework, Trajectory Geometry, applies principles from cognitive science and dynamical systems to understand how language models reason. I welcomes collaboration from researchers across disciplines and can be reached at kareem.soliman@outlook.com.au Code and data: [https://github.com/solimankareem159-glitch/Trajectory-Geometry-Experiments.git]. I’m also working on a visualisation tool which I think will help make the concepts more intuitive and easier to spot patterns that don’t jump out in numbers.This article presents findings from an independent research project. All statistical claims are backed by permutation testing (10,000 shuffles) at p What Does “The Shape of Thought” Look Like Inside an LLM? was originally published in Towards AI on Medium, where people are continuing the conversation by highlighting and responding to this story.