Circuit Localization in a Tiny Language Model: Geographic Routing and Representational Depth in Qwen2-0.5B

Abstract This paper investigates how the Qwen2-0.5B language model encodes and routes geographic associations. Using mechanistic interpretability techniques, including activation patching, causal ablation, and head-level path patching, we localize the circuits responsible for geographic fact recall. Key Findings: Mechanistic Bottleneck: We identify a critical "Contextual Integration Hub" at Layer 17. Specifically, patching out Layer 17 Head 7 alone causes a 103% damage to the model's geographic prediction, flipping the logit preference to a corrupted target. Representational Depth Disparity: We find a significant difference in how the model processes Western vs. MENA (Middle East and North Africa) geography. Western concepts resolve significantly earlier (mean Layer 18), while MENA concepts are consistently gated to the deepest layers of the model (Layer 21), regardless of prompt specificity. Routing Convergence: High-specificity cues (landmarks/currencies) trigger earlier circuit activation than ambiguous cultural cues, suggesting a multi-mode routing architecture based on cue strength. Methodology: Experiments were conducted using the TransformerLens library. The study includes: Multi-trigger convergence tests (Economic vs. Landmark vs. Cultural cues). A large-scale geographic bias audit (36 concepts). Layerwise causal ablation sweeps. Precision head-level path patching for circuit localization. Code and Reproducibility: The full codebase, including Jupyter notebooks for all experiments (core experiments and diagnostics), is available on GitHub: https://github.com/TheDS-EXE/geographic-routing-qwen2/tree/master

Authors

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-04-12
DOI
https://doi.org/10.5281/zenodo.19543460
Primary Topic
Complex Network Analysis Techniques
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Circuit Localization in a Tiny Language Model: Geographic Routing and Representational Depth in Qwen2-0.5B

Abdelrahman Elamrawy
Zenodo (CERN European Organization for Nuclear Research)
Complex Network Analysis Techniques
article

Circuit Localization in a Tiny Language Model: Geographic Routing and Representational Depth in Qwen2-0.5B

Abdelrahman Elamrawy
article en

Abstract

Abstract This paper investigates how the Qwen2-0.5B language model encodes and routes geographic associations. Using mechanistic interpretability techniques, including activation patching, causal ablation, and head-level path patching, we localize the circuits responsible for geographic fact recall. Key Findings: Mechanistic Bottleneck: We identify a critical "Contextual Integration Hub" at Layer 17. Specifically, patching out Layer 17 Head 7 alone causes a 103% damage to the model's geographic prediction, flipping the logit preference to a corrupted target. Representational Depth Disparity: We find a significant difference in how the model processes Western vs. MENA (Middle East and North Africa) geography. Western concepts resolve significantly earlier (mean Layer 18), while MENA concepts are consistently gated to the deepest layers of the model (Layer 21), regardless of prompt specificity. Routing Convergence: High-specificity cues (landmarks/currencies) trigger earlier circuit activation than ambiguous cultural cues, suggesting a multi-mode routing architecture based on cue strength. Methodology: Experiments were conducted using the TransformerLens library. The study includes: Multi-trigger convergence tests (Economic vs. Landmark vs. Cultural cues). A large-scale geographic bias audit (36 concepts). Layerwise causal ablation sweeps. Precision head-level path patching for circuit localization. Code and Reproducibility: The full codebase, including Jupyter notebooks for all experiments (core experiments and diagnostics), is available on GitHub: https://github.com/TheDS-EXE/geographic-routing-qwen2/tree/master

Zenodo (CERN European Organization for Nuclear Research)
Openalex Percentile: Top 5%
Complex Network Analysis 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.