Compile, Don’t Memorize: A Context Compilation Architecture (CCA) for In-Context Learning

Jinhu Qi, Minda Hu, Wentao Zhang, Weiqiang Jin, Yanyu Chen, Junli Wang, Irwin King


Abstract
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—and 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): compile the given context into a structured IR of rules, schemas, and exact terms; generate executable verifiers from the IR; run a checked reasoning loop that corrects any violation those verifiers flag. 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.
Anthology ID:
2026.findings-emnlp.1123
Volume:
Findings of the Association for Computational Linguistics: EMNLP 2026
Month:
October
Year:
2026
Address:
Budapest, Hungary
Editors:
Hung-Yi Lee, Sunipa Dev, Jessy Li, Desmond Elliott
Venue:
Findings
SIG:
SIGDAT
Publisher:
Association for Computational Linguistics
Note:
Pages:
23781–23803
Language:
URL:
https://aclanthology.org/2026.findings-emnlp.1123/
DOI:
Bibkey:
Cite (ACL):
Jinhu Qi, Minda Hu, Wentao Zhang, Weiqiang Jin, Yanyu Chen, Junli Wang, and Irwin King. 2026. Compile, Don’t Memorize: A Context Compilation Architecture (CCA) for In-Context Learning. In Findings of the Association for Computational Linguistics: EMNLP 2026, pages 23781–23803, Budapest, Hungary. Association for Computational Linguistics.
Cite (Informal):
Compile, Don’t Memorize: A Context Compilation Architecture (CCA) for In-Context Learning (Qi et al., Findings 2026)
Copy Citation:
PDF:
https://aclanthology.org/2026.findings-emnlp.1123.pdf