Pith. Sign in

RECORD

AlgoTrace: Algorithmic Primitives and Compositional Geometry of Reasoning in Language Models

Machine Learning · Submitted 13 Oct 2025

abstract compiled · 2026-09-23 · no language-model review

The authors' main claim These findings demonstrate that LLM reasoning can be understood as a walk through algorithmic primitives in the latent space governed by compositional geometry.

how it is stated · asserted 1.00 read the record →

Comment (0) Read on arXiv ↗
Cite ▾
arXiv ID2510.15987 (version 3)
Pith IDDT5VTRCX, Pith's permanent record of this paper and its review
CitationIda Momennejad, Kimberly Lopez, Oliver Eberle, Pierce Zhang, Salma Ziadi, Samuel Lippl, Thomas McGee, Ziwen Pan. "AlgoTrace: Algorithmic Primitives and Compositional Geometry of Reasoning in Language Models." arXiv:2510.15987 (2025). https://pith.science/paper/DT5VTRCX
Claim paper

The compiled record

The paper's own sentences, arranged. Each label is drawn from a closed vocabulary; the number beside it is the probability the classifier gave that label. Numbers in the tables are the authors', checked by code. No sentence in this record was written by a model.

Open the compiled record

Compiled by classifier-1.13.0 via TypeSafe API, question bank abstract-p1-20260923, 2026-09-23: 1 request, 6,282 input tokens.

What the abstract itself states, as probabilities: claims first 0.06 · states limitation 0.07 · human participants 0.04 · controlled comparison 0.65 · randomized assignment 0.02 · states quantitative result 0.08 · compares with prior results 0.52 · mentions code or data availability 0.03.

The abstract, sentence by sentence

arXiv listing abstract v3. Results and the main claim are underlined; .

How do inference time and latent computations enable large language models (LLMs) to solve multi-step reasoning problems? We introduce AlgoTrace, a framework for tracing and steering algorithmic operations in the model latent space for multi-step reasoning. We operationalize primitives by clustering latent activations of the model when solving four benchmarks: Traveling Salesperson Problem (TSP), 3SAT, AIME, and Graph Navigation. We annotate the clusters using their corresponding tokens in the reasoning trace. We then apply function vector methods to extract primitive vectors as reusable compositional building blocks of reasoning. We find that a) injecting a primitive vector into models (Phi, Qwen, Llama) elicits the associated algorithmic operation in the reasoning trace, b) injecting primitives can steer behavior across tasks, c) primitive vectors can be composed through algebraic operations, revealing a geometric logic in activation space, and d) a fine-tuned model exhibits improved composition of primitives (Phi-4-Reasoning vs. Phi-4). These findings demonstrate that LLM reasoning can be understood as a walk through algorithmic primitives in the latent space governed by compositional geometry. These primitives transfer across tasks, and reasoning finetuning strengthens algorithmic generalization and composition across domains.

background contribution method result interpretation main claim

What the classifier reports for each sentence. The number is the probability it gave the label.
#sentencerolethe authors' own workstates the main conclusionstrength
s0 How do inference time and latent computations enable large language models (LLMs) to solve multi-step reasoning problems? background 0.76 0.04 0.02 unclear 1.00
s1 We introduce AlgoTrace, a framework for tracing and steering algorithmic operations in the model latent space for multi-step reasoning. contribution 0.99 0.93 0.05 asserted 0.98
s2 We operationalize primitives by clustering latent activations of the model when solving four benchmarks: Traveling Salesperson Problem (TSP), 3SAT, AIME, and Graph Navigation. method 0.98 0.96 0.03 asserted 0.97
s3 We annotate the clusters using their corresponding tokens in the reasoning trace. method 1.00 0.95 0.02 asserted 0.95
s4 We then apply function vector methods to extract primitive vectors as reusable compositional building blocks of reasoning. method 0.99 0.95 0.03 asserted 0.91
s5 We find that a) injecting a primitive vector into models (Phi, Qwen, Llama) elicits the associated algorithmic operation in the reasoning trace, b) injecting primitives can steer behavior across tasks, c) primitive vectors can be composed through algebraic operations, revealing a geometric logic in activation space, and d) a fine-tuned model exhibits improved composition of primitives (Phi-4-Reasoning vs. Phi-4). result 1.00 0.96 0.29 asserted 1.00
s6 These findings demonstrate that LLM reasoning can be understood as a walk through algorithmic primitives in the latent space governed by compositional geometry. interpretation 1.00 0.74 0.86 asserted 1.00
s7 These primitives transfer across tasks, and reasoning finetuning strengthens algorithmic generalization and composition across domains. interpretation 0.53 0.85 0.17 asserted 1.00

What kind of paper the classifier reports this is: method or tool 0.99 · evidence from observation or experiment 0.95.

What was examined, and what was not

sources read
  • arXiv listing abstract v3
not examined
  • full text
  • figures and tables
  • references and citing sentences
  • relations to other papers
levels run
  • P abstract
not run
  • S sections
  • T body sentences
  • C citations
  • R cross-paper relations

Every quoted sentence on this record is the authors'. Every label is from Pith's closed vocabulary, with the probability shown beside it. Every number in the measurements table is the authors', checked by code. Record as JSON

The paper
Original abstract

How do inference time and latent computations enable large language models (LLMs) to solve multi-step reasoning problems? We introduce AlgoTrace, a framework for tracing and steering algorithmic operations in the model latent space for multi-step reasoning. We operationalize primitives by clustering latent activations of the model when solving four benchmarks: Traveling Salesperson Problem (TSP), 3SAT, AIME, and Graph Navigation. We annotate the clusters using their corresponding tokens in the reasoning trace. We then apply function vector methods to extract primitive vectors as reusable compositional building blocks of reasoning. We find that a) injecting a primitive vector into models (Phi, Qwen, Llama) elicits the associated algorithmic operation in the reasoning trace, b) injecting primitives can steer behavior across tasks, c) primitive vectors can be composed through algebraic operations, revealing a geometric logic in activation space, and d) a fine-tuned model exhibits improved composition of primitives (Phi-4-Reasoning vs. Phi-4). These findings demonstrate that LLM reasoning can be understood as a walk through algorithmic primitives in the latent space governed by compositional geometry. These primitives transfer across tasks, and reasoning finetuning strengthens algorithmic generalization and composition across domains.

Human review
References
How the literature uses it

5 arXiv papers cite this in 5 sentences

Each citing sentence is taken from the citing paper's LaTeX source and typed by Pith's classifier. A label appears at probability 0.8 or more (0.95 for support), a contest at 0.7 or more; the quoted words are the citing authors'. How each label was checked · JSON

Papers citing it · 3 sentences without a confident label

Cites it as background 2 papers

What it cites · 20 sentences without a confident label

Cites as background 5 papers

Discussion

Know something about this paper? Leave a comment, or highlight any passage above to comment on it.