The Commonplace
Home Papers Evidence Explore Trends Syntheses Digests References Docs 🎲 Workforce Futures
← Papers
Direction, evidence grade, and study type are AI-generated labels (gpt-5-mini), not human-verified. Syntheses are LLM-written. "Tensions" are machine-detected candidates, not confirmed contradictions. A research-acceleration tool, not peer review. How this is built →

Compile meaning once, read cheaply: ingest-time semantic compilation (validated, claim-level payloads plus maintained embeddings) answers dialogue questions more accurately while using far fewer reader tokens, and incremental upkeep is tens of times cheaper than full rebuilds; only a heavy contextualization+rerank stack matches accuracy at roughly 21× the per-query token cost.

RAG Deserves an Index: Why Ingest-Time Compilation Beats Query-Time Interpretation
Kyle Wild, Yusuke Takahashi, Asako Uraki · August 21, 2026
arxiv other medium evidence 7/10 relevance Full text usable extracted full text Source PDF

Structured author observations

Linked only from stored provider relations; the raw author line above is never matched by name.

Arxiv

Latest observation:

  1. Kyle Wild unresolved corpus identity
  2. Yusuke Takahashi unresolved corpus identity
  3. Asako Uraki unresolved corpus identity

Semantic Scholar

Latest observation:

  1. Kyle Wild provider ID
  2. Yusuke Takahashi provider ID
  3. Asako Uraki provider ID
Compiling provenance-validated, claim-level payloads at ingest and incrementally maintaining embeddings substantially reduces read-time token costs and improves QA accuracy versus query-time semantic reconstruction, with compiled claims achieving 85.2% accuracy from ~2.2k reader tokens compared with 72.5% from ~16.3k for the best chunk baseline and incremental maintenance ~33.7× cheaper than full recomputation in a synthetic pilot.

Citation observations

Cumulative provider counts captured on specific dates; providers are never combined.

Nearly every retrieval-augmented question-answering system in production ships with a hidden interpreter: on each query a language model re-derives the meaning of raw corpus text and then throws that work away. Cheaper models do not close the gap: per-token prices have fallen by orders of magnitude while inference spend has risen, because context volume grows faster than prices fall. This is the modern equivalent of the full-table scan, and the remedy is the one databases found fifty years ago: do the expensive work once, at write time, into a maintained structure that makes reads cheap. A corpus whose read pattern is known before it ever meets a user can and should be indexed too. We call the paradigm ingest-time semantic compilation (ISC): compile a corpus's meaning into a queryable substrate with two coupled layers - incrementally maintained embeddings, and atomic claims whose provenance is validated at compile time - and treat that substrate as a first-class database object with its own DDL, maintenance contract, migration contract, and cost model. Two existence proofs support it. Substrate upkeep scales with change rather than corpus size: incremental updates run 33.7x cheaper than reconstruction while tracking it to floating-point precision. And on a held-out sample of 500 broadcast-interview transcripts, compiled claims as the retrieval payload win all 32 budget-by-model cells: 85.2% correct from roughly 2.2k reader tokens against 72.5% from 16.3k for the best chunk configuration anywhere. The only baseline that keeps pace is a contextualized-chunk pipeline with hybrid retrieval and reranking, statistically indistinguishable from compiled claims at roughly twenty-one times the query-path tokens - and it reaches that parity, we argue, precisely because it has itself begun to compile. We close with the systems agenda this opens, from compilation planners to read planning.

Summary

Main Finding

Ingest-time semantic compilation (ISC) — compiling a corpus’s meaning into a maintained, queryable semantic substrate at write time — outperforms the dominant pattern of re-interpreting raw text on every query (query-time semantic reconstruction, QSR). ISC (1) makes reads much cheaper per query by paying once at ingest and maintaining the result incrementally, (2) yields higher reading accuracy per token (or the same accuracy for far fewer tokens), and (3) can be cost-amortized for realistically queried corpora. The paper demonstrates both a geometric existence proof (cheap, precise incremental maintenance of embeddings) and an applied retrieval-QA proof (compiled, provenance-validated claims as retrieval payloads dominate chunk-based baselines).

Key Points

  • Paradigm: ISC stores two coupled layers as a first-class database object:
    • Geometric layer: incrementally maintained embeddings and their index.
    • Symbolic layer: atomic, provenance-validated claims (claim text + exact source span, speaker, offsets).
  • Validation gate: candidate claims must carry a verbatim source span located in the canonical transcript; unsupported (hallucinated) claims are rejected at write time.
  • Maintenance scales with change, not corpus size: incremental low-rank updates are much cheaper than full re-decomposition and can absorb embedding-model upgrades via alignment (orthogonal Procrustes).
  • Read-time performance:
    • Compiled claims achieved 85.2% accuracy at a ~2,048-token reader budget with roughly 2.2k reader tokens.
    • Best chunk-based configuration reached 72.5% at ~16.3k reader tokens.
    • A sophisticated contextualized-chunk stack (hybrid retrieval + reranker + preambles) matched facts on accuracy (~88% vs 85.2% in some cells) but required ~21× the query-path tokens (≈47.7k vs ≈2.2k).
    • Compiled claims carried gold evidence in 98–99% of cases; chunk reading accuracy degraded as more raw context was supplied.
  • Cost amortization: compiling the studied corpus (~500 transcripts) was estimated at ≈26.3M ingest tokens (~$32 at hosted pricing in the replay) and amortizes within the first few hundred–thousand reads for that workload. The paper frames a break-even read count R* as a planner statistic deciding whether to compile.
  • Research agenda: compilation planners (per-document R*), provenance-as-integrity-constraint design, production-scale maintenance & migration, multi-tenant substrate economics, read planning (how much compiled context to read), evaluation metrics for compilers, and interactions with agentic systems.

Data & Methods

Two complementary existence proofs:

1) Synthetic geometric pilot (embedding maintenance) - Corpus grown from 3,000 → 9,000 synthetic documents over 50 update events, constructed to isolate maintenance cost. - Incremental low-rank updates: 8.4 ms per update vs 283 ms for full re-decomposition (≈33.7× cheaper per update; ≈23.8× cheaper cumulatively). - Numerical fidelity: principal-angle drift < 1e-11 degrees; recall@10 = 1.0. - Embedding-model migration handled with orthogonal Procrustes: recovered 0.95 mean cosine similarity while re-embedding only ≈10% of corpus.

2) Retrieval-QA on real dialogue transcripts (symbolic payloads) - Corpus: broadcast-interview transcripts. Held-out sample: 500 transcripts and 499 questions (separate development set used to build extractors). - Compiled-substrate implementation: PostgreSQL tables for facts and fact_evidence; strict UNIQUE(document_id, content_hash) for idempotence; exact-quote string-match validation gate. - Validation outcomes: the gate admitted 69,746 claims in the corpus; in a 20-document replay it rejected 1.1% (29/2,724) of candidate claims, mostly due to spans not located verbatim in the source. - Baselines: fixed-width chunking, turn-aware chunks, semantic chunks; a contextualized-chunk stack with hybrid dense+full-text retrieval (reciprocal rank fusion) plus cross-encoder reranker was a pre-registered, strong baseline. - Retrieval/answering experiment: identical embedding, retrieval, and reader models across conditions; comparisons run across 32 budget-by-model cells; paired per-question outcomes tested with McNemar’s test and Holm correction for multiple comparisons. - Key performance numbers: - Compiled claims: 85.2% correct at 2,048 token budget (≈2.2k reader tokens). - Best chunk config: 72.5% correct at ≈16.3k reader tokens. - Contextualized-chunk stack: ≈88.0% correct at ≈47.7k reader tokens; statistically indistinguishable from compiled claims in the strongest cell (McNemar p = 0.202), but consumed ~21× tokens. - Cost estimate for compilation (replay): extraction averaged 48.2k prompt + 4.5k completion tokens per document ≈ $0.064/doc; compiling 500 docs ≈ 26.3M tokens and ≈$32 under the replay pricing assumptions. Given the contextualized stack’s extra ~45.5k tokens per query, compilation cost ≈ the token cost of ~580 queries, so amortization occurs within the first ~1k reads for this corpus. - Limitations noted: synthetic pilot idealized; grading used the same model family as extraction (automated judgment); human calibration and cross-model rejudgment are in progress; domain limited to broadcast transcripts.

Statistical evidence summarized: - Facts beat chunk baselines in all 32 budget-by-model cells; all 24 facts-versus-chunk comparisons survived Holm correction (p ≤ 4.9×10^-6; strongest 1.4×10^-42). - Only the assembled contextualized stack could match facts on accuracy, but at much higher token cost.

Implications for AI Economics

  • Shift in compute expenditure: ISC trades repeated per-query inference cost (expensive, especially as context size grows) for one-time or incremental ingest-time compute. For frequently-read corpora, this lowers marginal cost per query substantially and can change the cost structure of deployed RAG systems.
  • Break-even planning (R*): whether to invest in compilation becomes an explicit economic decision. Systems should model expected read volume, document volatility, and compilation cost to decide per-document what to compile and to what depth (embeddings only, claims, richer relations).
  • Billing and pricing models:
    • Current token-based billing (per-model prompt/completion) may underprice or misalign incentives: providers get paid more for repeated costly reads; ISC reduces per-query tokens and thus potentially reduces variable revenue. This could motivate new pricing (e.g., subscription/flat fees for compiled substrate maintenance, per-ingest billing, or charges for maintenance and migration operations).
    • Vendors might offer “compiled-substrate as a product” (managed maintenance, migration, access controls) with distinct billing and SLA tiers.
  • Vendor and market effects:
    • Demand for compiler/maintenance tooling, substrate index services, and migration/alignment tooling will grow, creating new product categories.
    • Multi-tenant compiled substrates create positive externalities: many agents can reuse the same compiled semantics, improving economic efficiency for organizations but concentrating value in substrate providers—raising competition and access concerns.
  • Model-product design choices:
    • With ISCs, teams can rely on cheaper reader models and smaller-context readers because the payload is already distilled and validated, reducing the need to pay for the highest-context frontier LLMs on every read. This can materially reduce operating costs for high-throughput systems.
    • However, embedding-model churn and migration impose maintenance and alignment costs that must be priced into long-term budgets.
  • Incentives and welfare:
    • ISC increases returns to investing in quality ingest-time extraction (better validators, stricter provenance rules) because errors are persistent; this raises the cost of mistakes but aligns incentives toward robust validation.
    • Systems that continue to QSR externalize repeated inference costs onto users/tenants and may be economically inefficient for hot data; suppliers of ISC tooling could capture much of the surplus.
  • Risks and externalities:
    • Upfront capital cost: small or volatile corpora might never recoup compilation costs; planners must prevent over-investment.
    • Concentration of knowledge assets: compiled, validated substrates could become proprietary assets with lock-in effects.
    • Privacy/access control and multi-tenant economics require new mechanisms (per-claim access control, versioning, isolation), which have economic implications for pricing and regulatory compliance.
  • Research-to-product pathway: empirical measures (per-document read curves, maintenance cost per change, validation-rejection rates) must become first-class inputs to cost models and optimizers; marketplace designs and billing primitives should evolve to reflect one-time + maintenance + per-read price decomposition.

Short takeaway for practitioners and economists: ISC reframes the dominant cost tradeoff in retrieval-augmented systems from “pay many times for expensive semantic interpretation” to “pay once (or incrementally) to compile validated semantics, then read cheaply.” For many workloads with repeated reads on relatively stable documents, that is a strictly better economic model — but it requires new tooling, billing primitives, and planner logic to decide what to compile and when.

Assessment

Paper Typeother Evidence Strengthmedium — The paper reports strong, statistically tested improvements on a held-out real-world dialogue dataset and a synthetic maintenance pilot, but key limitations reduce confidence: automated grading uses the same model family as extraction (potential bias), the maintenance pilot is synthetic/idealized, evaluation is concentrated on one domain (broadcast interviews) and a limited set of model/configuration families, and human re-judgment and cross-model validation are reported as in-progress. Methods Rigormedium — Experimental comparisons are well-structured (held-out sample, matched pipelines, paired tests, multiple-test correction) and the paper reports cost accounting, provenance validation, and incremental-update metrics; however, reliance on an automated grader that shares model family with extractors, partial dependence on synthetic pilots for maintenance claims, limited domain breadth, and lack of independent human evaluation or alternative model-family checks weaken methodological rigor. SampleHeld-out evaluation: 500 broadcast-interview transcripts and 499 questions (separate from development corpus); extraction admitted ~69,746 provenance-validated claims on corpus; experiments compared compiled-claim payloads against fixed-width, turn-aware, and semantic chunking and a contextualized chunking + hybrid retrieval + reranker stack. Maintenance pilot: synthetic corpus of embedding vectors grown from 3,000 to 9,000 documents over 50 update events; additional 20-document replays used for token-cost extrapolations. Automated answer grading used the same Kimi K2.6 model family as extraction. Themesproductivity org_design IdentificationControlled within-sample experimental comparisons on a held-out set of 500 broadcast-interview transcripts and 499 questions, matching embedding, retrieval, and reader models across conditions; paired per-question testing (McNemar) with Holm correction for multiple comparisons; plus a synthetic controlled pilot for incremental-maintenance cost measured against full re-decomposition. GeneralizabilityEvaluations limited to broadcast-interview (dialogue) transcripts; other genres (long-form prose, code, multi-document synthesis) not tested., Automated grading uses same model family as extraction, raising risk of correlated errors and overestimating gains; human re-judgment not yet reported., Maintenance pilot is synthetic and idealized; real-world revision patterns, streaming updates, and production embedding APIs may change costs and behavior., Results depend on specific embedding, retrieval, reader, and reranker choices and on token-pricing assumptions; transfer to other model families or pricing regimes is uncertain., Agentic and multi-tenant interactions flagged as open questions; integration with agents may alter the advantage.

Claims (13)

ClaimDirectionOutcomeConfidence & EvidenceDetails
Incremental low-rank updates maintained the embedding subspace 33.7 times more cheaply per update than full re-decomposition and 23.8 times more cheaply cumulatively. Organizational Efficiency positive Embedding-substrate maintenance cost
Reading fidelity high
Study strength medium
n=50
33.7× cheaper per update; 23.8× cheaper cumulatively
0.12
Incremental maintenance tracked the fully recomputed embedding subspace to floating-point precision, with maximum principal-angle drift below 10−11 degrees and recall@10 of 1.0. Organizational Efficiency positive Embedding-subspace fidelity and retrieval recall
Reading fidelity high
Study strength medium
n=50
maximum principal-angle drift below 10−11 degrees; recall@10 of 1.0
0.12
Incremental per-update maintenance cost stayed flat as the corpus tripled, whereas full re-decomposition cost increased with corpus size. Organizational Efficiency positive Maintenance cost scaling with corpus size
Reading fidelity high
Study strength medium
n=50
0.12
An orthogonal Procrustes virtual-axis update recovered a mean cosine similarity of 0.95 to truly re-embedded vectors while re-embedding only about 10% of the corpus. Organizational Efficiency positive Embedding migration alignment quality and migration cost
Reading fidelity high
Study strength medium
0.95 mean cosine; about 10% of corpus re-embedded
0.12
On a held-out sample of 499 questions from 500 broadcast-interview transcripts, provenance-validated compiled facts achieved 85.2% answer accuracy from roughly 2,200 reader tokens at a 2,048-token budget. Decision Quality positive Question-answering accuracy and reader-token usage
Reading fidelity high
Study strength medium
n=499
85.2% correct from roughly 2.2k reader tokens
0.12
Compiled facts outperformed every chunking policy in all 32 budget-by-model cells. Decision Quality positive Question-answering accuracy across model and token-budget conditions
Reading fidelity high
Study strength medium
n=499
32 of 32 cells won
0.12
At the 2,048-token budget, compiled facts achieved 85.2% accuracy versus 72.5% for the best chunk configuration, while using roughly 2,200 versus 16,300 reader tokens. Decision Quality positive Question-answering accuracy per reader-token budget
Reading fidelity high
Study strength medium
n=499
12.7 percentage-point accuracy advantage; roughly 2.2k versus 16.3k reader tokens
0.12
Compiled facts at a 256-token budget achieved 69.5% accuracy and outperformed every chunk policy evaluated at a 2,048-token budget. Decision Quality positive Question-answering accuracy under token constraints
Reading fidelity high
Study strength medium
n=499
69.5% accuracy
0.12
Fact payloads carried the gold evidence in 98–99% of cases, while chunk reading accuracy declined from 81% to 73% as more text was supplied. Decision Quality mixed Evidence coverage and reading accuracy as context increases
Reading fidelity high
Study strength medium
n=499
98–99% evidence coverage; chunk accuracy declined by 8 percentage points
0.12
A contextualized-chunk pipeline with hybrid retrieval and reranking was statistically indistinguishable from compiled facts on held-out accuracy, but used roughly 21 times more query-path tokens. Decision Quality null_result Question-answering accuracy and query-path token consumption
Reading fidelity high
Study strength medium
n=499
88.0% versus 85.2%; p=0.202; roughly 21× the query-path tokens
0.12
The provenance validation gate admitted 69,746 claims from the held-out corpus, with every admitted claim carrying a supporting quote located byte-exactly in its source transcript. Ai Safety And Ethics positive Provenance validity of compiled claims
Reading fidelity high
Study strength medium
n=69746
69,746 admitted claims; 100% had byte-exact source locations
0.12
In a 20-document replay, the validation gate rejected 1.1% of candidate claims, including 28 claims whose quoted text could not be located in the source. Ai Safety And Ethics negative Unsupported-claim rejection rate
Reading fidelity high
Study strength medium
n=2724
1.1% rejected; 29 of 2,724 candidates, including 28 unlocatable quotes
0.12
For the studied 500-document corpus, compilation costs were estimated to amortize within the first thousand reads relative to the additional query-path tokens used by the contextualized stack. Organizational Efficiency positive Compilation cost break-even read count
Reading fidelity high
Study strength low
n=20
approximately 580–600 equivalent queries; amortization within the first thousand reads
0.06

Notes