In-Context Learning Amplifies a Latent Symbolic Circuit
Abstract
Large language models can learn abstract rules from just a few in-context examples, but how their internal mechanisms activate as examples accumulate is not well understood. We trace a three-stage symbolic reasoning circuit (abstraction, induction, retrieval) across shot counts in three model families and find it is detectable and functional well before the model achieves high accuracy. Per-head causal contribution grows up to 8x from 1- to 10-shot, and cross-shot activation patching raises accuracy from 1% to 56% at 0-shot and 17% to 88% at 1-shot. Function vectors scaled and injected at 0-shot rescue accuracy up to 86%, largely substituting for the induction stage but depending critically on an intact downstream retrieval stage. The infrastructure for abstract rule-following is present in the weights before any demonstrations; in-context examples, function vectors, and related interventions appear to supply input to the same latent circuit.
Create a lesson
Metadata
- Categories
- cs.LG, cs.AI, cs.CL
- Comments
- Accepted to the Mechanistic Interpretability Workshop at ICML 2026
Related papers
ContextWorld: Benchmarking In-Context Dynamics Adaptation in Latent World Models
Shared title terminologycs.LGGuo An, Yuhao Yan, Zijing Wu et al.
FIMOSS: Fair In-Context Learning via Multi-Objective Subset Selection
Shared title terminologycs.LGManish Chandra, Debasis Ganguly, Iadh Ounis
Message Passing Does More with Less for In-Context Learning on Graphs
Shared title terminologycs.LGDooho Lee, Jinmo Lee, Minho Jeong et al.
TaskBridge: Bridging Unsupervised Tabular Anomaly Detection and In-Context Learning via Virtual Tasks
Shared title terminologycs.LGDoyun Choi, Dooho Lee, Jaemin Yoo
Theory on Attention Dynamics for Out-of-Distribution In-Context Learning
Shared title terminologycs.LGJunze Deng, Daouda Sow, Sen Lin et al.
ALICE: In-context, Zero-shot, Mutual Information Estimation
Shared title terminologycs.LGGiulio Franzese, Simone Rossi, Pietro Michiardi