In-Context Learning Amplifies a Latent Symbolic Circuit

Melissa Wessel
9/28/2026
cs.LGcs.AIcs.CL

No official code found. Best implementation: melissawessel/icl-symbolic (0 stars, MIT, last commit 2026-07-03).

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.

View on arXivView PDF

Code Implementations(1)

MIT

Companion code for "In-Context Learning Amplifies a Latent Symbolic Circuit" paper.

00May 5, 20263 months agoMIT

Similar Papers

Cite this paper

@article{wessel2026incontext,
  title  = {In-Context Learning Amplifies a Latent Symbolic Circuit},
  author = {Melissa Wessel},
  year   = {2026},
  eprint = {2609.36265},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2609.36265v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2609.36265.svg)](https://codeofpaper.com/paper/2609.36265)

Discussion