atlas

Research map / Large language models / Reasoning and chain of thought

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

ICML 2026 · Large language models › Reasoning and chain of thought · approach: Efficient and adaptive thinking · 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.

Clusters LLM latent activations during multi-step reasoning into algorithmic primitives, extracts function-vector-style primitive vectors, and tests their injection, steering, cross-task transfer, and arithmetic composition in Phi-4 family, Llama-3-8B, and Qwen models.

Problem

How LLMs implement multi-step reasoning via latent algorithmic primitives, whether these primitives are geometrically composable and transferable across tasks, and how reasoning finetuning changes primitive usage and composition.

Approach

Combine k-means clustering of residual-stream activations over reasoning traces, GPT-4o-based labeling of clusters, spectral meta-clustering of cluster transitions, and function-vector-style primitive vectors from top ICL attention heads that can be injected, subtracted, and summed to steer reasoning behavior across tasks.

Key results

Surprising findings

Limitations

Experimental setup

Datasets: TSP prompts (self-generated, 100+ examples per task) 3-SAT problems AIME 2025 problems GraphNav binary tree problems in-context TNR and RC tasks

Benchmarks: TSP 3-SAT AIME GraphNav

Metrics: proportion of nearest-neighbor paths number of unique valid paths token position of distance computation final answer token position verification and comparison word counts chi-squared dissimilarity of cluster frequencies cluster expressivity

Baselines: Phi-4 Phi-4-Reasoning

Builds on: function vectors in-context task vectors steering vectors

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