Where Structured Ontologies Actually Win: Post-Cutoff Temporal Rescues (5.9% → 100%), −81% E-Commerce Tokens, and Answerability Traps
Where bounded ontologies consistently pay off—overcoming stale LLM parametric priors (5.9% → 100%) and compressing e-commerce attributes (−81.4% tokens, 0% hallucination)—paired with clean falsifications of proxy answerability and naive 4-agent splitting.
Headline result: FY2025 post-cutoff accuracy: 5.9% → 100% (34/34) · SOL tokens −81.4% (98% acc, 0% hallu) · Real Opik answerability 0.30 (vs 0.80 proxy)
On this page (7 sections)
- 1. Motivation: Separating Genuine Ontology Utility From Proxy Illusions
- 2. Hypothesis, Falsification & Experimental Mechanism
- 3. Environment & Verification Hygiene
- 4. Visual Evidence & Quantitative Results
- 5. Mechanism Breakdown: Why Bounded Attribute Maps & Chunks Coexist
- 6. Key Findings & Transferable Insights
- 7. Scope Limits & Next Experiment
Pre-registered Hypothesis, Falsification Criteria & Environment Manifest
- Hypothesis
- While broad free-text ontology prompts often bloat general QA, bounded domain schemas excel at two concrete bottlenecks—post-cutoff temporal facts and dense attribute disambiguation—provided retrieval preserves real DB records instead of relying on prose fallbacks.
- Falsification Criteria
- If grounded retrieval fails to eliminate post-cutoff hallucinations, structured schemas fail to beat raw marketplace text / naive RAG by >= 70% token reduction, or role-decomposed multi-agent pipelines beat a single typed agent cleanly, the bounded-ontology thesis is revised.
- Host / Compute
- Local worktrees (wt-h1-sdk, openup/seocho-onto-eng, ~/lab/sol)
- Runtime
- MiniMax-M2.5 on MARA + kimi-k3 via OpenAI Agents SDK + DozerDB/Neo4j
- Workload / Dataset
- SEC EDGAR FY2025 (n=102, 34 stale); FinDER Opik subset (n=10); GraphRAG-Bench (n=25..50); SOL catalog (20 products × 5 queries)
- Sample Size / Repeats
- 102 paired temporal queries; 200 calls each (SOL Exp 1 & 3); 10×3×2 multi-agent runs (SOL Exp 2)
1. Motivation: Separating Genuine Ontology Utility From Proxy Illusions
If unconstrained schema injection often hurts general Text2SQL (Auto-Ontology Tier 3 regression) and hurts generic construction (LoG2026 Finding 1.4), where do explicit ontologies genuinely earn their keep? Auditing three independent local workspaces (wt-h1-sdk, openup/seocho-onto-eng, and sol) identifies two high-leverage regimes alongside two classic illusions:
- Temporal Prior Resistance (
sec-temporal,n=102): Overcoming pretraining cutoff hallucinations on fresh FY2025 SEC 10-K numbers. - Attribute Disambiguation (
solExp 1 & 3,n=200each): Compressing noisy marketplace specs cleanly without hallucinated MOQ or benchmark figures—while checking if multi-agent decomposition helps (solExp 2). - The Measurement Mirage (
opik-answerpath&gbench-keepraw): Detecting when “graph accuracy” actually came from answer-text fallbacks rather than graph queries returning records.
2. Hypothesis, Falsification & Experimental Mechanism
We hypothesized that bounded domain schemas excel at post-cutoff temporal facts and dense attribute disambiguation once chunk fallbacks prevent empty-graph failures (Mixed: Exp 1 cuts prompts −81.4% past the 70% target, whereas Exp 3 vs compact bigram RAG trims −64.6% (1,244 → 440 tokens), just under 70%, and opik reveals 0.30 true DB hit rate behind a 0.80 proxy).
3. Environment & Verification Hygiene
wt-h1-sdk/docs/experiments/sec-temporal/:102EDGAR facts (68fresh,34FY2025 post-cutoff) evaluated onMiniMax-M2.5(MARA) with Neo4j +chunk_fallback=1.wt-h1-sdk/openup/seocho-onto-eng(opik-answerpath&gbench-keepraw):n=10FinDER AnswerPath inspection,answerability_gate(n=16:8covered +8uncovered), andGraphRAG-BenchNovel/Med (n=25each) checking ADR-0104 serializer retention (seochovsseocho_keeprawvsgraphiti_episodesvsvector).solE-Commerce Suite (exp1,exp2,exp3):kimi-k3(temp=1, OpenAI Agents SDK) on20products ×5query types (moq,weight,factory,benchmark,recommend) +exp210-product pipeline. (Important exclusion: hardcoded mock TypeScript enginesempiricalOntologyExperiment.tsandrun_real_empirical_benchmark.jsinsol/generate fake random numbers and are completely excluded.)
4. Visual Evidence & Quantitative Results
Full Size ↗
| Experiment / Slice | Baseline Condition | Grounded / Ontology Condition | Verified Result |
|---|---|---|---|
SEC Temporal All (n=102) | Closed-book: 41.2% (42/102) | Grounded + chunk fallback: 100.0% (102/102) | Zero wrong-year errors |
SEC Stale FY2025 Cutoff (n=34) | Closed-book: 5.9% (2/34) | Grounded + chunk fallback: 100.0% (34/34) | Fixed cutoff refusals & FY2024 priors |
Opik Answerability (n=10) | Prose answer proxy: 0.80 | Real DB >=1 record: 0.30 (3/10) | Chunk fallback hit 6/10 (0.60) |
Opik AnswerShape (n=10) | Unshaped: 0.0 exact / 0.146 F1 | answershape_wide: 0.60 exact / 0.629 F1 | numeric_lookup F1 0.261 → 1.000 |
GraphRAG-Bench Novel (n=25) | Base seocho: 0.191 AC | seocho_keepraw: 0.495 AC (vector 0.403) | Proves chunk attachment drives ADR-0104 |
SOL Exp 1 (n=200 calls) | Raw text (2,313 tok/Q, 91%, 9% hallu) | JSON-LD (431 tok/Q, 98%, 0% hallu) | −81.4% prompt tokens, −40.1% cost |
SOL Exp 3 (n=200 calls) | Naive Bigram RAG (1,244 tok, 88%, 11% hallu) | JSON-LD (440 tok, 100%, 0% hallu) | 2.83× fewer tokens (−57.1% cost) |
SOL Exp 2 Multi-Agent (n=10) | Unified Agent (90%, 1 call, $0.283) | 4 Free-Text: 50% ($0.487) / 4 JSON n=9: 88.9% | Typed JSON saves accuracy vs free text, 3.79–4.23× tokens |
5. Mechanism Breakdown: Why Bounded Attribute Maps & Chunks Coexist
- Concrete FY2025 prior failure (
sec-temporal& Opik65-node subgraph): Without grounded context,MiniMax-M2.5explicitly refused or substituted FY2024 figures on Apple ("FY2025 ... has not yet been completed ... reported $391.04 billion"vs true$416,161 million) and Nvidia ($96.7Bvs true$215,938M). Notably, inside the grounded log itself—mirroring our65-node Opik subgraph where only3/10(0.30) Cypher queries matched populated edges—structured Cypher returned empty results on several FY2025 revenue queries, meaningchunk_fallback=1(vector chunks attached via Document nodes) rescued the34/34score just askeeprawdid on Novel (0.191 → 0.495). Meanwhile in then=16answerability gate, strict abstention yielded0/8silent wrong answers on uncovered queries whereas closed-book vector retrieval leaked3/8hallucinations. - Distinguishing genuine ontology cleanup from baseline disparity (
sol): InsolExp 1 (−81.4%tokens vs raw HTML/text listings), raw product pages mixed distractor benchmark noise with factory quotes, causing35%hallucination onbenchmarkqueries (65%acc →100%under normalized JSON-LD, verified across30full trace audits inaudit_exp1_verify.jsonl); against compact 500-char bigram RAG (Exp 3), JSON-LD eliminated11%hallucination cleanly (100%vs88%) and cut tokens−64.6%(1,244 → 440, slightly short of the≥ 70%Exp 1 benchmark bar). Meanwhile, Exp 2 suffered an artifact hygiene bug we surfaced during audit: a partialRUN_ONLY=Coverwrite dropped productP09inexp2_results.json(n=9vsdocs/EXPERIMENTS.md’s Run 1n=1090%/4.23×tokens), though both runs confirm multi-agent decomposition never beat unifiedA’s90%.
6. Key Findings & Transferable Insights
Distilled via multi-agent deliberation (Codex + Claude):
- Closed-book misses pre-cutoff facts (
41.2%overall =40/68pre-cutoff), not only post-cutoff (2/34): Subtracting2/34stale FY2025 hits from42/102shows closed-book parametric accuracy reached just58.8%(40/68) even on pre-cutoff filings—whilechunk_fallback=1(attached document chunks rather than Cypher alone) drove the34/34rescue whenever structured Cypher returned zero rows. - Measure
>=1returned DB rows separately from answer text, and benchmark against compact retrieval: An0.80answer-string score disguised0.30(3/10) true DB hits (opik), and while compact JSON-LD halved noise vs raw HTML (-81.4%tokens), vs 500-char bigram RAG (Exp 3) token savings were-64.6%(1,244 → 440) alongside clean11% → 0%hallucination removal.
7. Scope Limits & Next Experiment
- Toy vs production scale (
sol&opik): SOL used synthetic marketplace fixtures averaging2.3Kprompt tokens rather than real48K+-character 1688 DOM captures, and Exp 3 compared only against simple 500-char bigram RAG rather than dense hybrid retrieval + reranking. - Unaligned Answer-Path synonym trade-off: In
opik-answerpath/grounding_embedding_isolated.txt, synonym grounding tied baseline4/5 vs 4/5, fixinglocationwhile breakingleadership. Keeping raw chunks linked directly to canonical entity keys (keepraw+ strict answerability refusal0/8silent wrong) remains the safest production pattern.