atlas

Research map / Large language models / Retrieval and knowledge

Procedural Knowledge in Pretraining Drives Reasoning in Large Language Models

ICLR 2025 · Large language models › Retrieval and knowledge · approach: Knowledge-augmented question answering · 1 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.

Uses EK-FAC influence functions over 5M pretraining documents (~2.5B tokens) to show that LLM reasoning on simple math tasks relies on procedural knowledge from documents rather than retrieval of answers, unlike factual recall.

Problem

Benchmark results cannot separate generalisation from contamination because pretraining corpora are too large for train-test separation; it is unclear what pretraining data LLMs rely on when reasoning versus recalling facts.

Approach

Scale EK-FAC influence functions to 7B and 35B transformers to rank pretraining documents by influence on reasoning and factual completions, then compare correlations across queries, magnitude of influence, answer presence, and source datasets.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use EK-FAC influence scores rather than TracIn to select positively influential training examples for removalGPT-2-small fine-tuned on Wikitext-2 · Wikitext-2perplexity: 22.45 ± 0.02 -> 23.05 ± 0.05 (k=300)Hurt
Use EK-FAC influence scores rather than random selection to select positively influential training examples for removalGPT-2-small fine-tuned on Wikitext-2 · Wikitext-2perplexity: 22.15 ± 0.05 -> 23.05 ± 0.05 (k=300)Hurt
Remove the most negatively influential training examples instead of randomly selected examplesGPT-2-small fine-tuned on Wikitext-2 · Wikitext-2perplexity: 24.85 ± 0.10 -> 23.32 ± 0.04 (k=300)Helped
Use EK-FAC influence scores rather than random selection to select fine-tuning examples for removalCommand 2 7B fine-tuned on DROP · DROPaccuracy: 0.57 ± 0.06 -> 0.38 ± 0.05 (k=2000)Hurt
Use EK-FAC influence scores rather than TracIn to select fine-tuning examples for removalCommand 2 7B fine-tuned on DROP · DROPaccuracy: 0.43 ± 0.06 -> 0.38 ± 0.05 (k=2000)Hurt
Use EK-FAC influence scores rather than random selection to select fine-tuning examples for removalCommand 2 7B fine-tuned on RACE · RACEaccuracy: 0.81 ± 0.04 -> 0.74 ± 0.05 (k=2500)Hurt
Use EK-FAC influence scores rather than TracIn to select fine-tuning examples for removalCommand 2 7B fine-tuned on RACE · RACEaccuracy: 0.79 ± 0.04 -> 0.74 ± 0.05 (k=2500)Hurt
Use approximate SVD instead of full SVD for query gradients (ablation)EK-FAC influence scoring · Wikitext-2 influence-score comparisonPearson R: 0.96 ± 0.01 -> 0.96 ± 0.01No clear effect
Approximate EK-FAC matrices using a 2-block diagonal approximation (ablation)EK-FAC influence scoring with approximate SVD · Wikitext-2 influence-score comparisonPearson R: 0.96 ± 0.01 -> 0.95 ± 0.00Hurt
Use a 4-block rather than 2-block diagonal EK-FAC approximation (ablation)EK-FAC influence scoring with approximate SVD · Wikitext-2 influence-score comparisonPearson R: 0.95 ± 0.00 -> 0.93 ± 0.00Hurt
Compare reasoning queries with factual queries for the frequency of answers among top-ranked documentsCommand R 7B · Top 500 influential documentsqueries with answer found: 55% factual vs 7.4% reasoningMixed
Compare reasoning queries with factual queries for the frequency of answers among top-ranked documentsCommand R 35B · Top 500 influential documentsqueries with answer found: 30% factual; never for reasoningMixed

Surprising findings

Limitations

Experimental setup

Datasets: Cohere pretraining data sample (5M documents) Wikitext-2 DROP RACE

Benchmarks: Two-step arithmetic queries Slope queries Linear equation queries Factual queries Control queries DROP RACE Wikitext-2

Metrics: Pearson correlation of influence scores influence per nat of query information answer presence in top 500 documents counterfactual retraining accuracy/perplexity

Baselines: TracIn Random removal Command R+

Builds on: EK-FAC influence functions Grosse et al. 2023 influence functions at scale TracIn kronfluence

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