Compile, Don't Memorize: A Context Compilation Architecture (CCA) for In-Context Learning
Not on the map. Why?
Abstract (arXiv)
Large language models (LLMs) increasingly handle in-context learning (ICL) tasks where a long, novel context defines the rules, knowledge, and output schema for a series of questions. On benchmarks that grade against every detail of the context, even strong open-weights models pass only 12-16% of tasks: a single overlooked rule fails the whole response. We argue this brittleness is structural: the dominant "read-and-reason" paradigm asks the model to extract, plan, generate, and self-verify in one forward pass. We therefore ask whether explicit context compilation can fix it, how it compares to existing long-context strategies (gist retrieval, multi-agent self-play), and where the resulting harness benefit holds across task structure and model scale. We propose the Context Compilation Architecture (CCA), whose central novelty is a typed intermediate representation (IR) with fixed slots (rules.{must_do, must_not, conditional}, output_spec, available_tools, data_profile) into which any prose context is compiled once; executable verifiers and a violation-gated correction loop follow as downstream consequences. On CL-bench (1,899 tasks across 4 open base models), CCA outperforms vanilla prompting and two long-context baselines (ReadAgent-P, Ctx2Skill) on every base model, lifting Kimi K2.5 from 15.4% to 21.4% with gains concentrated on rule-dense sub-categories. Code and cached completions are available at https://github.com/TonyQJH/cca-emnlp2026.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 24 of its 33 references that are in the map. First posted on arXiv 1 Sep 2026.
Builds on
24 of 33 references.
References · 24
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,276
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
- 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,442
- 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,346
- 2022Program of Thoughts Prompting: Disentangling Computation from Reasoning for Numerical Reasoning Taskscited by 1,076
- 2023DSPy: Compiling Declarative Language Model Calls into Self-Improving Pipelinescited by 832
- 2023CRITIC: Large Language Models Can Self-Correct with Tool-Interactive Critiquingcited by 783
- 2026GLM-5: from Vibe Coding to Agentic Engineeringcited by 587
- 2024LLMLingua-2: Data Distillation for Efficient and Faithful Task-Agnostic Prompt Compressioncited by 348
- 2024Chain of Agents: Large Language Models Collaborating on Long-Context Taskscited by 206
- 2023SelfCheck: Using LLMs to Zero-Shot Check Their Own Step-by-Step Reasoningcited by 159
12 more
- 2024A Human-Inspired Reading Agent with Gist Memory of Very Long Contextscited by 146
- 2023Chain of Code: Reasoning with a Language Model-Augmented Code Emulatorcited by 123
- 2024AgentScope: A Flexible yet Robust Multi-Agent Platformcited by 121
- 2024Retrieval Augmented Generation or Long-Context LLMs? A Comprehensive Study and Hybrid Approachcited by 119
- 2026AutoSkill: Experience-Driven Lifelong Learning via Skill Self-Evolutioncited by 115
- 2024LongRAG: Enhancing Retrieval-Augmented Generation with Long-context LLMscited by 108
- 2024A Chain-of-Thought Is as Strong as Its Weakest Link: A Benchmark for Verifiers of Reasoning Chainscited by 65
- 2024In Defense of RAG in the Era of Long-Context Language Modelscited by 53
- 2026CL-bench: A Benchmark for Context Learningcited by 47
- 2026From Context to Skills: Can Language Models Learn from Context Skillfully?cited by 19
- 2026AutoPyVerifier: Learning Compact Executable Verifiers for Large Language Model Outputscited by 7
- 2026The Last Harness You'll Ever Buildcited by 6
Built on by
Not cited yet.