{
  "id": 1512,
  "kind": "paper",
  "title": "A Circuit for In-Context Learning",
  "summary": "A complete, causally traced circuit for in-context learning in its cleanest setting: few-shot sentence classification with ARBITRARY labels, where the label mapping cannot have been memorized, so the learning must happen inside a single forward pass. Studied in three 3-4B-parameter transformers. The composition: the model builds a key-value memory over the label-token positions. Each label token's residual stream encodes the label's identity (the value), and middle-layer attention heads write into that position the class of the preceding demonstration (the key) - induction-head-style binding, but storing class rather than token identity. At the query, upper-layer reader heads match the query's class representation against the stored keys and copy out the label attached to the matching key. Two control components complete the circuit: an early-layer signal encoding whether any label has REPEATED anywhere in the prompt gates the readout - without it, the reader heads attend to the start of the prompt and no label is favored, so the lookup only fires once the prompt actually contains a repeated-label structure to look up - and a separate set of heads suppresses the most recently seen label, countering a pure recency/copy bias. Every step is established causally, not correlationally: activation patching, head ablations benchmarked against random-head baselines, and steering with the model's own signals; and a softmax model of the readout with just two fitted constants per head, fit on one prompt distribution, predicts behavior on a different distribution. Generality claims: the computation is conserved across all three models; the named heads alone reproduce the behavior; a transformer trained from scratch grows the same parts (the circuit is an attractor of training, not an artifact of one checkpoint); it transfers from arbitrary labels to semantic concepts and labels with meaning; and within one model family the same parts with the causal gate appear from 0.6B to 8B parameters and survive instruction tuning. Caveats: abstract-level evidence; the setting is few-shot classification - the most lookup-like form of ICL - and says nothing directly about many-shot, regression-style, or open-ended generative ICL; the three main models are not named in the abstract. Catalog placement: the mechanism counterpart to ID 1765 (LIDAS), which argued grown/looped models share a context-over-weights inductive bias rooted in induction heads - this paper shows what a mature version of that bias looks like as an explicit circuit: bind demonstrations into a key-value store in the residual stream, gate the lookup on prompt structure, and read by class match. The gating signal is also the architecturally interesting part: the model checks a global prompt property (has any label repeated?) before trusting its own associative memory.",
  "body": "",
  "notes": "arXiv 2611.05344 (cs.CL/cs.LG), submitted 3 Nov 2026, CC BY 4.0 (license icon on the arXiv page). Shared 2026-11-04 via a bare t.co link resolving to the paper's arXivBangers page ('Certified Banger', editorial score 88/100). Abstract-level research; no code link on the arXiv page at catalog time. The author pair (Andrew Gao, William Gao) shares its names with the Gao & Gao of ID 1797 (Fair Cast).",
  "url": "https://arxiv.org/abs/2611.05344",
  "links": [],
  "authors": [
    "Andrew Gao",
    "William Gao"
  ],
  "tags": [],
  "topics": "",
  "venue": "arXiv preprint",
  "publisher": "",
  "source": "arxiv",
  "language": "en",
  "access": "free",
  "license": "",
  "published_year": 2026,
  "added_at": "2026-11-04T00:00:00.000Z",
  "verified_at": "2026-11-04T00:00:00.000Z",
  "attrs": {},
  "enrichment": {},
  "enriched_at": null,
  "license_class": "unknown",
  "langs": [
    "en"
  ],
  "modalities": [],
  "size_class": null,
  "provenance": {
    "legacy_paper_id": "1811"
  },
  "visibility": "public",
  "status": "active",
  "duplicate_of": null,
  "origin": "legacy",
  "created_at": "2026-11-04T13:37:33.768Z",
  "updated_at": "2026-11-04T13:37:33.768Z",
  "page": "https://papers.projxon.ai/entries/1512",
  "markdown": "https://papers.projxon.ai/entries/1512.md",
  "api": "https://papers.projxon.ai/api/entries/1512",
  "relations": [],
  "duplicates": [],
  "similar": [
    {
      "id": 793,
      "kind": "paper",
      "title": "Context Language Models",
      "summary": "Introduces Context Language Models (CLMs): language models that natively manage their own context by treating the context as a file and allowing unrestricted updates to it, letting the model learn what is most important to maintain in context and naturally extending to multi-agent systems where multiple agent contexts coexist as files. Building CLMs zero-shot with existing models outperforms SOTA context-management strategies: 11.4% higher accuracy with 21.5% fewer FLOPs on BrowseComp-Plus, 5% higher scores with 59% fewer FLOPs on 12-hour EdgeBench, and 65% greater improvement with the same compute on a 24-hour multi-repository agent-swarm task. Shifting context management from external harness control to intrinsic model behavior enables both in-context and parametric learning of context-management strategies: steering CLMs with natural-language instructions evolved through a skill-optimization loop improves held-out accuracy by up to 35.9 points while reducing compute. An online RL method for CLMs improves Qwen3.5-9B on BrowseComp-Plus by 47.6% while using 12% fewer FLOPs. Co-designed Suffix Cache Reuse for CLM serving further cuts server-side compute by 35% relative to standard SGLang at matched performance.",
      "url": "https://arxiv.org/abs/2609.37725",
      "authors": [
        "Rulin Shao",
        "Shannon Zejiang Shen",
        "Junjie Oscar Yin",
        "Yuetai Li",
        "Minheng Wang",
        "Hamish Ivison",
        "Radha Poovendran",
        "Nathan Lambert",
        "Teng Xiao",
        "Mike Lewis",
        "Wen-tau Yih",
        "Luke Zettlemoyer",
        "Pang Wei Koh"
      ],
      "tags": [
        "agents",
        "long-context",
        "context-management",
        "rl",
        "multi-agent",
        "inference",
        "caching"
      ],
      "venue": "arXiv",
      "source": "arxiv",
      "license": "CC-BY-4.0",
      "published_year": 2026,
      "added_at": "2026-09-30T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "permissive",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": 0,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/793",
      "markdown": "https://papers.projxon.ai/entries/793.md",
      "api": "https://papers.projxon.ai/api/entries/793"
    },
    {
      "id": 1464,
      "kind": "paper",
      "title": "How Depth Growth and Looping Shape In-Context Learning in Language Models",
      "summary": "Question: do looped and depth-grown language models merely save compute and parameters, or does reusing computation across depth change what the model learns to rely on? The paper tests the hypothesis that (soft) parameter reuse creates a shared inductive bias toward learning from context rather than from weights, studying how in-context learning (ICL) is acquired, retained, and mechanistically supported. Setup: pretrained LMs at 360M, 1.7B, and 3B (main comparison: 36-layer dense reference, all models trained on the same 100B tokens in the same order, matched optimizer-step budget and final inference FLOPs), plus controlled RegBench (unseen formal languages) and Omniglot tasks that pit context against fixed in-weights associations. Methods compared: the dense baseline; LIDAS depth growth (the authors' earlier method: start from 4 layers and periodically duplicate the central 4-layer block, copying weights and AdamW moments without resetting the learning-rate schedule; growth uses shallower networks early, saving an estimated 26% of training FLOPs at 3B and 22% at 360M/1.7B); and a looped model (Loop 10-8x2-10: 36 layer applications but only 28 unique layers, ~2.45B unique parameters at the 3B scale). Findings: (1) Context use - grown and looped models show larger early-to-late token-loss reductions than dense, and the grown model also reaches lower absolute late-token loss; both beat dense on few-shot GSM8K at every shot count, with the LIDAS gap widening as demonstrations increase, ending about +7 points above baseline at 8 shots (~19% vs ~12% strict exact match, per the review thread); on RegBench both predict unseen formal languages more accurately, the advantage emerging within the first string. (2) Acquisition and retention - on Omniglot tasks where a fixed class-label solution competes, grown and looped models retain higher ICL accuracy (about 0.75-0.80 vs ~0.70 for dense late in training) alongside lower in-weights accuracy, and when labels are reassigned in every sequence they acquire ICL earlier than the dense reference. (3) Mechanism - tracing the 12 strongest final induction heads in the 3B LIDAS model backward through training, 10 descend from just two heads (L2H9 and L2H10) in the initial 4-layer network; duplication clones these circuits across depth at 4-layer intervals, and in the looped model the same heads fire periodically across passes through the shared block. Ablating the top-20% induction-ranked heads drops 19-task few-shot F1 by 0.08 in dense vs 0.18 in LIDAS vs 0.28 in Loop, with correspondingly larger late-token-loss increases - causal evidence that grown/looped models rely more heavily on induction heads, though function-vector heads remain important. Caveats: pretraining at all three scales uses a single random seed; the looped model gives up unique capacity and trails dense slightly on MMLU (38.32% vs 39.15%); and the RegBench looped gains used width d=256 vs d=128 for the dense baseline, which skews that comparison. No author code released (training builds on Hugging Face's public nanotron framework). Joins the catalog's looped-models cluster as its mechanism paper: depth reuse propagates early induction heads across layers, which is why grown and looped models lean on context - complements ID 1548's looped-LM training recipes and ID 928's looped-MoE scaling laws. Author-thread additions (Kapl, 2026-11-04): the backbone is SmolLM3, pretrained from scratch; at 3B the grown and looped models beat the dense baseline on all long-context benchmarks tested (RULER, HELMET, NoLiMa) while matching it on the short-context suite. Induction heads emerge in opposite order - top-down in the baseline, bottom-up in grown/looped models - and end stronger (higher prefix-matching score); ablating them raises FineWeb-Edu NLL by an amount that grows with token position for grown/looped models but stays flat for the baseline. On the Garg et al. random-linear-regression task the grown model shows better in-context prediction alongside MORE memorization, so the context-over-weights bias is task-dependent for growth (the looped model shows less in-weights learning and higher accuracy there).",
      "url": "https://arxiv.org/abs/2610.31421",
      "authors": [
        "Ferdinand Kapl (Technical University of Munich",
        "Helmholtz AI",
        "Munich",
        "Munich Center for Machine Learning (MCML))",
        "Kaitlin Maile (Google",
        "Paradigms of Intelligence Team)",
        "Stefan Bauer (Google",
        "Johannes von Oswald (Google"
      ],
      "tags": [],
      "venue": "arXiv preprint",
      "source": "arxiv",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-11-01T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/1464",
      "markdown": "https://papers.projxon.ai/entries/1464.md",
      "api": "https://papers.projxon.ai/api/entries/1464"
    },
    {
      "id": 1288,
      "kind": "paper",
      "title": "Learning to Learn a Language",
      "summary": "PFLM (Prior-Fitted Language Model) is a 300M-parameter byte-level transformer pretrained ONLY on samples from a synthetic non-linguistic prior, never seeing a word of any real language. The prior is a distribution over recurrent structural causal models: each training sequence is generated by a freshly drawn SCM (latent state evolving through a random graph of structural equations, one token per step), so the model never sees the same 'language' twice and the only way to predict continuations is to infer the language from the prefix — meta-learning by construction (prior-fitted networks à la TabPFN, extended to language). Prior samples share natural-text statistical signatures: Zipfian frequencies, slow entropy-rate convergence, long-range dependence. With frozen weights, given real text prefixes PFLM learns to predict languages in context: on Wikipedia in six languages (English, Chinese, Hindi, Arabic, Japanese, Korean), bits per byte falls from the uniform 8 to 0.9–2.4 at 1M bytes of context. Given numerals, it learns to count, compare magnitudes, and add approximately; it predicts deterministic sequences (Rudin-Shapiro, prime indicator, Kolakoski); it compresses six non-text domains (source code to speech) below gzip and PPMd.",
      "url": "https://arxiv.org/abs/2610.05879",
      "authors": [
        "Lennart Carstens-Behrens",
        "Holger Fröhlich"
      ],
      "tags": [
        "pflm",
        "prior-fitted-language-model",
        "synthetic-data",
        "meta-learning",
        "compression"
      ],
      "venue": "arXiv",
      "source": "x",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-10-07T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/1288",
      "markdown": "https://papers.projxon.ai/entries/1288.md",
      "api": "https://papers.projxon.ai/api/entries/1288"
    },
    {
      "id": 1590,
      "kind": "paper",
      "title": "Sample-Efficient In-Context Adaptation via Sleep",
      "summary": "Lee et al. (CMU, Yale, Microsoft Research; alphaXiv, Nov 24 2026) ask whether sleep - N recurrent forward passes refining a model's representations of a chunk of context - improves in-context adaptation for plain transformer LMs on general, non-synthetic tasks, not just long-context reasoning in SSM-attention hybrids where it was first shown. They pretrain LMs up to 1.2B parameters on up to 100B tokens with sleep mechanisms. Longer sleep learns faster in-context on multiple few-shot algorithmic and question-answering tasks and reaches lower next-token prediction loss on out-of-distribution evaluations. On held-out code, N=2 matches the no-sleep baseline's loss using 2.10x fewer tokens in-context, and N=4 using 2.39x fewer. The authors frame it as a tradeoff between in-context adaptation and decoding latency: sleep buys sample efficiency with extra recurrent passes per chunk. Flags, as entered: abstract-level at cataloging, authors' own numbers; alphaXiv Exclusive - NO arXiv ID exists for this paper (the '2611.sample-efficient-in-context-adaptation-sleep' string is the alphaXiv slug, not an arXiv identifier) and no license is confirmed; code/release status not confirmed. Cross-references: NOT a duplicate of ID 506 (Behrouz et al., Google Sleep, arXiv 2606.03979 - a different mechanism: MoE consolidation plus dreaming) - this is the recurrent-pass sleep of Lee et al.'s own earlier 'Do Language Models Need Sleep?' (arXiv 2605.26099, SSM-attention hybrids), which is itself NOT in the catalog. Sits beside the looped cluster (recurrent passes over context vs recurrent passes over layers) and the in-context-adaptation question of staged slot 18-adjacent work. For the user's 250M stack, the transferable idea is sleep as a pretraining mechanism for in-context sample efficiency at his scale (1.2B/100B evidence), with the caveat that it costs inference-time recurrent passes and must be baked in during pretraining, not bolted on after.",
      "url": "https://www.alphaxiv.org/abs/2611.sample-efficient-in-context-adaptation-sleep",
      "authors": [
        "Sangyun Lee",
        "Zhang Enyan",
        "Michael Xu",
        "Hao Tang",
        "Zinan Lin",
        "Weijia Xu",
        "Chris Quirk",
        "Jianfeng Gao",
        "Giulia Fanti",
        "Xiaodong Liu"
      ],
      "tags": [],
      "venue": "alphaXiv, Nov 24 2026",
      "source": "arxiv",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-11-24T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/1590",
      "markdown": "https://papers.projxon.ai/entries/1590.md",
      "api": "https://papers.projxon.ai/api/entries/1590"
    },
    {
      "id": 851,
      "kind": "paper",
      "title": "Harness Learning Enables Generalizable Test-Time Adaptation",
      "summary": "Introduces harness learning: instead of updating model weights at test time, train a proposer model to revise the solver's executable harness — the program organizing model calls, tool use, and information flow — using execution feedback. Framed as meta-learning over executable programs, with harness revisions playing the role of weight updates; the proposer is trained with RL using revised harnesses' task performance as reward, and candidate harnesses run under a frozen solver. On 21 unseen Reasoning Gym families, SFT followed by RL raises mean single-revision score from 0.32 (base proposer) to 0.62, and the trained 4B proposer beats its 35B teacher on average. A QA proposer trained with RL only on HotpotQA transfers to MuSiQue and 2WikiMultihopQA, with ten revision rounds nearly doubling exact match. Policies trained on single revisions keep improving harnesses over multiple rounds, suggesting harness design can become a reusable adaptation skill.",
      "url": "https://arxiv.org/abs/2609.35738",
      "authors": [
        "Alvin Zhang",
        "Xuecheng Liu",
        "Zixuan Wang",
        "Fahim Tajwar",
        "Daman Arora",
        "Ruslan Salakhutdinov",
        "Daniel Khashabi",
        "Yuda Song",
        "Andrea Zanette"
      ],
      "tags": [
        "harness-learning",
        "harness-optimization",
        "test-time-adaptation",
        "meta-learning",
        "proposer-model",
        "execution-feedback",
        "reasoning-gym",
        "hotpotqa",
        "musique",
        "continual-learning-agents"
      ],
      "venue": "arXiv:2609.35738 (cs.CL), submitted 28 Sep 2026",
      "source": "arxiv",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-10-01T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": 0,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/851",
      "markdown": "https://papers.projxon.ai/entries/851.md",
      "api": "https://papers.projxon.ai/api/entries/851"
    },
    {
      "id": 958,
      "kind": "paper",
      "title": "Scalable In-context Ranking with Generative Models",
      "summary": "In-context Ranking (ICR) is an emerging paradigm for Information Retrieval (IR), which leverages contextual understanding of LLMs by directly incorporating the task description, candidate documents, and the query into the model's input prompt and tasking the LLM to identify relevant document(s). While it is effective, …",
      "url": "https://arxiv.org/abs/2510.05396",
      "authors": [
        "Gupta",
        "Nilesh",
        "You",
        "Chong",
        "Bhojanapalli",
        "Srinadh",
        "Kumar",
        "Sanjiv",
        "Dhillon",
        "Inderjit",
        "Yu",
        "Felix"
      ],
      "tags": [
        "arxiv",
        "2510-05396",
        "ocr-vision-language",
        "long-context",
        "linkedin-thread"
      ],
      "venue": "arXiv 2510.05396",
      "source": "arxiv",
      "license": "",
      "published_year": 2025,
      "added_at": "2026-09-15T00:46:23.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [],
      "modalities": [],
      "size_class": null,
      "citation_count": 10,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/958",
      "markdown": "https://papers.projxon.ai/entries/958.md",
      "api": "https://papers.projxon.ai/api/entries/958"
    }
  ]
}
