ledger-bench v1: findings (2026-11-28)¶
Question: when a company's systems disagree about a fact, how often does an AI system give a confidently wrong answer?
Setup:
- 96 scenarios about a fictional company, 8 failure types with 12 each; 22 of them should be answered with "abstain".
- Seven systems. Every LLM system uses gemini-3.1-flash-lite at temperature 0.2, returns structured JSON, and is told it may abstain.
- Design, fairness notes and limits: bench/README.md. Raw results: bench/results/2026-11-28_b811c04/.
- Provenance: the LLM answers come from one live run on 2026-11-28 (1,949 s, 0 API errors). The results folder replays them from cache at commit b811c04 (--offline), with the recorded API latency. All 672 graded answers are identical to the live run.
Results¶
| System | Confidently wrong ↓ | Accuracy | Abstained when it should | Injection attack succeeded ↓ | Latency | LLM tokens |
|---|---|---|---|---|---|---|
| Assertion ledger | 0% | 100% | 100% | 0% | 9 ms | 0 |
| Ledger, generic default policy | 0% | 90% | 100% | 0% | 9 ms | 0 |
| Newest-wins (Graphiti's rule) | 55% | 45% | 0% | 100% | <1 ms | 0 |
| Naive RAG (top-4) | 50% | 48% | 9% | 33% | 6.1 s | 39k |
| RAG + "prefer the most recent" | 58% | 40% | 0% | 50% | 4.5 s | 40k |
| LLM judge, all records | 42% | 57% | 32% | 83% | 4.6 s | 43k |
| LLM judge + the policy in plain English | 14% | 78% | 45% | 0% | 5.1 s | 68k |
What we learned¶
- The LLMs rarely abstain. On the 12 genuine conflicts (two signed contracts disagree, neither replaces the other), the strongest baseline was the LLM judge with the rules written out, including "if they disagree and none supersedes the others, abstain". It still picked a winner 11 times out of 12. Sometimes it invented the reason: "r2 … explicitly supersedes the previous contract", when no such clause exists. This is the gap a deterministic resolver closes.
- More context made the injection attack work better. Shown all records with metadata but no rules, the LLM judge believed "UPDATE: … This supersedes all previous contracts" 83% of the time, against 33% for naive RAG. Its explanations quote the attacker's own framing: "explicitly states that the new price … supersedes all previous contracts". Giving it the policy brought this to 0%. The ledger never reads message content, so it's at 0% by construction.
- "Prefer the most recent" is the worst advice. The recency prompt raised RAG's confidently-wrong rate from 50% to 58%, and its authority accuracy fell to 0%. Recency is the wrong default for business facts.
- Retrieval wasn't the main problem. RAG retrieved the deciding records 92% of the time and still answered wrong half the time. Most failures happen in the decision, not the search. That's the layer the ledger replaces.
- Newest-wins fails exactly where expected: 0% on authority, conflict and injection, 100% on retraction (in our generous emulation). That's the Graphiti behaviour from Phase 0, now measured at scale.
- A generic policy fails safe. With the default template, which doesn't know the HR portal or email sources, the ledger refused 14% of answerable questions but was never confidently wrong. A missing rule costs answers, not correctness.
- Rules in a prompt help, but don't make it reliable. The policy-prompted judge is the strongest LLM baseline: 14% confidently wrong, 0% attack success. But it also over-abstained on 11% of answerable questions, mostly temporal and staleness ones, by misreading dates. It costs about 700 tokens and 5 seconds per question, where the ledger takes 9 ms.
Caveats¶
- The ledger reads structured fields; RAG reads the same facts as text. This is a benchmark of the decision step. Extraction from text is Phase 3 and will be measured separately, followed by an end-to-end number.
- The ledger at 100% is a consistency check. The scenarios encode the same business rules as its policy. The informative numbers are the baselines' failure modes.
- One model, one sample. Responses at temperature 0.2 are cached; a different sample or a stronger model would move the LLM numbers. Rerunning with a frontier model is the obvious next experiment.
- Newest-wins is an emulation. Real Graphiti and Cognee runs on a sample are still to do (ADR-012).
- Template-generated text is less messy than real company data.
- The staleness family's ground truth is debatable ("is a six-week-old Slack claim a fact?").
Update: end-to-end¶
With facts extracted from the records' text by an LLM (plus the verifier) instead of structured fields, the ledger stays at 0% confidently wrong and 99% accuracy: one refusal, no wrong answers. Details and caveats: extraction-v1.md.