atlas

Research map / Large language models / Agents, code and math

Improving Reasoning Performance in Large Language Models via Representation Engineering

ICLR 2025 · Large language models › Agents, code and math · approach: Mathematical and structural reasoning benchmarks · 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.

Derives representation-engineering control vectors from residual-stream activations on reasoning tasks (IOI, bAbI, GSM8K) and applies them at inference to modestly improve accuracy of Pythia and Mistral models without training.

Problem

Whether reasoning ability in LLMs is encoded in the residual stream such that it can be modulated to improve performance on reasoning tasks at inference time.

Approach

Extract residual-stream activations on successful vs. unsuccessful reasoning examples, derive a layer-wise control vector (mean difference or PCA direction), and add it at the middle layer during inference with scaling alpha, improving task accuracy without any weight training.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Apply PCA-derived residual-stream control vectors at the middle layerPythia-1.4B and Pythia-2.8B · IOIlogit-based accuracyHelped
Apply PCA-derived residual-stream control vectors at the middle layerPythia-2.8B · IOIlogit-based accuracyHelped
Apply a contrast-based control vector at the middle layerMistral-7B-Instruct · bAbI task 15logit-based accuracyHelped
Apply a PCA-contrast control vector derived from GSM8KMistral-7B-Instruct · GSM8KaccuracyHelped
Apply a control vector derived from bAbIMistral-7B-Instruct · GSM8KaccuracyHelped
Apply a control vector derived from GSM8KMistral-7B-Instruct · bAbI task 15accuracyHelped
Use positive α rather than negative α (ablation)Pythia-1.4B control vectors · IOIaccuracyMixed
Use random-character-string negative prompts rather than reading vectors (ablation)Reasoning control-vector extraction · Reasoning tasksperformanceHelped
Apply the IOI-derived control vector across IOI conditionsPythia models · IOI conditions B, ABBA-Long, and BABA-LongaccuracyHelped

Surprising findings

Limitations

Experimental setup

Datasets: IOI (synthetic) bAbI task 15 GSM8K

Benchmarks: IOI bAbI GSM8K

Metrics: logit-based accuracy KL divergence entropy average probability on correct answer

Baselines: reading vectors random contrastive pairs

Builds on: representation engineering contrastive activation addition

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