potentialpaper

Neural Context Compiler: Learning KV Caches for Long-Context LLMs

Keep the title, authors and abstract in paper.json

potentialpaper · 2026-11-23 20:27 UTC · 94fd767363c8 ·

.potentialpaper/metadata.json modified

+++ b/.potentialpaper/metadata.json
@@ -1,19 +1,5 @@
{
- "layout": 5,
- "identifiers": [
- {
- "scheme": "openreview",
- "value": "wpLxpObES1"
- }
- ],
- "title": "Neural Context Compiler: Learning KV Caches for Long-Context LLMs",
- "authors": [],
- "abstract": "Documents that are queried many times can be compiled once into a compact key–value (KV) cache that a frozen language model reads at every query. We show that such compaction must alter attention at almost every query and that a training objective by itself bounds the loss only on the inputs it supervises. The leading learned method, self-study, supervises answers to synthetic questions that must first be generated for each document, and hence only the facts those answers state. We introduce Neural Context Compiler (NCC), whose refinement supervises a prediction of every document token and generates no text: starting from an Attention Matching (AM) cache, it refines only the compact keys and values by distilling the full-context teacher on teacher-forced continuations of the document. With the hybrid Qwen3.6-27B on 64 held-out papers, a 512-row NCC cache raises constrained recall of masked source numbers from 62.3% to 79.8% over AM and Qasper F1 from 38.1 to 44.2, 28–44 points above StreamingLLM, SnapKV and KVzip. It is statistically indistinguishable from self-study on constrained recall and QA, 11 points better under greedy decoding and 13–25 points better on numbers self-study’s answers never state, with 92% less refinement time. On three of four LongBench QA tasks it matches the full-context reader with a 5–11×smaller state, and on 34K–97K-token documents at 11–30×compression it retains 74–84% of full-context QA F1 (AM: 19–49%). A fully generation-free variant does as well,\nan FP4 reader with a 4-bit state keeps its accuracy with a 14×smaller stored state,\nand the recall gain replicates on three further hybrids, fading where the teacher\nmisses many numbers.",
- "year": 2027,
- "venue": "ICLR 2027 (under review)",
- "source": "openreview",
- "license": {
- "metadata": "CC0-1.0",
- "abstract": "CC0-1.0"
- }
+ "layout": 6,
+ "kind": "paper",
+ "key": "64b775d8-a9b1-4f09-8d1c-8c02e1fbf44f"
}

paper.json added

+++ b/paper.json
@@ -0,0 +1,9 @@
+{
+ "title": "Neural Context Compiler: Learning KV Caches for Long-Context LLMs",
+ "authors": [],
+ "abstract": "Documents that are queried many times can be compiled once into a compact key–value (KV) cache that a frozen language model reads at every query. We show that such compaction must alter attention at almost every query and that a training objective by itself bounds the loss only on the inputs it supervises. The leading learned method, self-study, supervises answers to synthetic questions that must first be generated for each document, and hence only the facts those answers state. We introduce Neural Context Compiler (NCC), whose refinement supervises a prediction of every document token and generates no text: starting from an Attention Matching (AM) cache, it refines only the compact keys and values by distilling the full-context teacher on teacher-forced continuations of the document. With the hybrid Qwen3.6-27B on 64 held-out papers, a 512-row NCC cache raises constrained recall of masked source numbers from 62.3% to 79.8% over AM and Qasper F1 from 38.1 to 44.2, 28–44 points above StreamingLLM, SnapKV and KVzip. It is statistically indistinguishable from self-study on constrained recall and QA, 11 points better under greedy decoding and 13–25 points better on numbers self-study’s answers never state, with 92% less refinement time. On three of four LongBench QA tasks it matches the full-context reader with a 5–11×smaller state, and on 34K–97K-token documents at 11–30×compression it retains 74–84% of full-context QA F1 (AM: 19–49%). A fully generation-free variant does as well,\nan FP4 reader with a 4-bit state keeps its accuracy with a 14×smaller stored state,\nand the recall gain replicates on three further hybrids, fading where the teacher\nmisses many numbers.",
+ "license": {
+ "metadata": "CC0-1.0",
+ "abstract": "CC0-1.0"
+ }
+}