Time Course MechInterp: Analyzing the Evolution of Components and Knowledge in Large Language Models

Understanding how large language models (LLMs) acquire and store factual knowledge is crucial for enhancing their interpretability and reliability.In this work, we analyze the evolution of factual knowledge representation in the OLMo-7B model by tracking the roles of its attention heads and feed forward networks (FFNs) over the course of pre-training.We classify these components into four roles: general, entity, relation-answer, and fact-answer specific and examine their stability and transitions.Our results show that LLMs initially depend on broad, general-purpose components, which later specialize as training progresses.Once the model reliably predicts answers, some components are repurposed, suggesting an adaptive learning process.Notably, attention heads display the highest turnover.We also present evidence that FFNs remain more stable throughout training.Furthermore, our probing experiments reveal that location-based relations converge to high accuracy earlier in training than namebased relations, highlighting how task complexity shapes acquisition dynamics.These insights offer a mechanistic view of knowledge formation in LLMs.We release the code and data. 1

Authors

Institutions

Publication Details

Published
2025-01-01
DOI
https://doi.org/10.18653/v1/2025.findings-acl.654
Primary Topic
Natural Language Processing Techniques
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Time Course MechInterp: Analyzing the Evolution of Components and Knowledge in Large Language Models

Philipp Wicke, Ahmad Dawar Hakimi, Hinrich Schuetze, Ali Modarressi
Natural Language Processing Techniques
article

Time Course MechInterp: Analyzing the Evolution of Components and Knowledge in Large Language Models

Philipp Wicke, Ahmad Dawar Hakimi, Hinrich Schuetze, Ali Modarressi
article en

Abstract

Understanding how large language models (LLMs) acquire and store factual knowledge is crucial for enhancing their interpretability and reliability.In this work, we analyze the evolution of factual knowledge representation in the OLMo-7B model by tracking the roles of its attention heads and feed forward networks (FFNs) over the course of pre-training.We classify these components into four roles: general, entity, relation-answer, and fact-answer specific and examine their stability and transitions.Our results show that LLMs initially depend on broad, general-purpose components, which later specialize as training progresses.Once the model reliably predicts answers, some components are repurposed, suggesting an adaptive learning process.Notably, attention heads display the highest turnover.We also present evidence that FFNs remain more stable throughout training.Furthermore, our probing experiments reveal that location-based relations converge to high accuracy earlier in training than namebased relations, highlighting how task complexity shapes acquisition dynamics.These insights offer a mechanistic view of knowledge formation in LLMs.We release the code and data. 1

Munich School of Philosophy (DE), Ludwig-Maximilians-Universität München (DE)
Deutsche Forschungsgemeinschaft
Quality Education
Openalex Percentile: Top 90%
Natural Language Processing Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Time Course MechInterp: Analyzing the Evolution of Components and Knowledge in Large Language Models — Philipp Wicke, Ahmad Dawar Hakimi, et al. · (2025) | TGRS Research Map | TGRS