Kristian Krattiger

SEAR

Sparse Epistemically Anchored Reasoning, in two versions: token-level inside GIN, and verify-after in sear-demo

Done 2Failed 2Unfinished 2

What it is

Version 1 SEAR in GIN: verify while generating

A custom llama-cpp-python logits processor constrains every token at decode time to continue a span that occurs verbatim in the retrieved corpus. Text the corpus does not contain cannot be generated in the first place.

  • BUILT GIN's SEAR layer constrains every generated token, at decode time, to continue a span that occurs verbatim in the retrieved corpus, using a custom llama-cpp-python logits processor. #gin-sear-decode-constraint
  • MEASURED On a 20-query synthetic eval set, SEAR's no-continuation arm produced no fabricated claims, while a plain RAG arm on the same set fabricated about a quarter of its claims. #gin-nc-baseline
  • MEASURED On six two-node queries over excerpts of public institutional and advocacy texts, the no-continuation arm kept both sides of each divergence and fabricated nothing, with Mistral-7B and with Qwen2.5-7B. #gin-divergence-realtext

These entries live on the GIN page and are counted under GIN.

Version 2 sear-demo: verify after generating

The model writes freely. Each claim must then be entailed by its cited chunk (NLI), and every name and number must appear in that chunk, or the claim is dropped. When nothing survives, an explicit failure state replaces a guess.

  • BUILT sear-demo is a corpus-grounded answer pipeline with a verification gate: the model writes freely, then each claim must be entailed by its cited chunk (NLI) and every name and number must appear in it, or the claim is dropped; an explicit failure state replaces guessing. #sear-demo-pipeline
  • BUILT On its 27-probe main set, sear-demo refused all 9 probes that should be refused, but 5 of its 14 failure states were on probes that had a supportable answer. #sear-demo-results
  • NEGATIVE-RESULT When two retrieved chunks contradict each other, sear-demo does not notice: in 4 of 5 conflict probes it silently stated one value, each time the one the model knew from memory. #sear-conflict-fork

The rest of this page covers this version; the counts on this page and on Home are its entries only.

What exists4 entries

BUILT LINKED #sear-demo-pipeline as of 2026-10-09

sear-demo is a corpus-grounded answer pipeline with a verification gate: the model writes freely, then each claim must be entailed by its cited chunk (NLI) and every name and number must appear in it, or the claim is dropped; an explicit failure state replaces guessing.

Does not showDecode-time constraint: this is SEAR's verify-after stage, not GIN's decode-time mask. Verified is not true: the gate enforces the corpus, not the world (see sear-poisoned-fork).

Evidence
  • sear-demo @ main 730ad1d : README.md tier 2 worktree dirty — description; untracked .claude/ in worktree
  • sear-demo @ main 730ad1d : config/default.yaml tier 1 worktree dirty — microsoft/phi-4 generator, cross-encoder/nli-deberta-v3-base verifier
  • sear-demo @ main 730ad1d : src tier 1 worktree dirty — pipeline source

BUILT AUTHOR-REPORTED #sear-demo-results as of 2026-10-07

On its 27-probe main set, sear-demo refused all 9 probes that should be refused, but 5 of its 14 failure states were on probes that had a supportable answer.

Does not showA measurement. The README says every number is a smoke test, not a measurement (13 chunks, 27 + 6 + 5 probes). Retrieval is not tested: top_k 12 of 13 chunks means the generator sees almost the whole corpus.

Verification
Author-reported, not re-verified. No tier-1 artifact containing this claim was opened for this site.
Reported numbers
Numbers for sear-demo-results
MetricValuen / denominatorDatasetSyntheticSystemDate
failure-state recall9/99 probes that should refuse (5 out-of-corpus, 4 near-miss)hand-built film corpus, 13 chunks, 27 probesauthor-built from public film factsphi-4 generator + nli-deberta-v3-base + names-and-numbers check, commit 8a165f62026-10-07
failure-state precision9/1414 failure statessameauthor-builtsame2026-10-07
fabrication rate, emitted / raw (proposed definition)0/13 / 2/2713 probes that answered / 27 probessameauthor-builtsame2026-10-07
Evidence
  • sear-demo @ main (untracked) 8a165f6 : runs/8a165f6-base/corpus_stdout.txt tier 1 worktree dirty — log opened on disk; header names commit 8a165f6; runs/ is not tracked by git, so this cannot be LINKED
  • sear-demo @ main 730ad1d : README.md tier 2 worktree dirty — Results and Known limits
Notes
Kept at BUILT, not MEASURED, because the author labels these smoke tests and the primary logs are untracked.

IN-PROGRESS AUTHOR-REPORTED #sear-demo-status as of 2026-10-09

A sear-demo walkthrough is being prepared; the latest commit adds a plan for a library corpus.

Does not showA finished or public demo. The 85 tests the README describes were not run for this site; the author's notes of 2026-10-22 say they had not been run.

Verification
Author-reported, not re-verified. No tier-1 artifact containing this claim was opened for this site.
Evidence
  • sear-demo @ main 730ad1d : docs/DESIGN.md tier 2 worktree dirty — demo script (per commit 6558888)

IN-PROGRESS AUTHOR-REPORTED #sear-review-gaps as of 2026-10

A review of sear-demo found measurement gaps (narrator-probe denominators, inverted control values, misattributed failure states); whether each is fixed is unknown.

Does not showUNKNOWN — author to supply: which review, and the fix status of each gap. The review document was not found in the walk.

Verification
Author-reported, not re-verified. No tier-1 artifact containing this claim was opened for this site.
Evidence

UNKNOWN — author to supply No primary artifact found in the context walked.

Notes
The README at 730ad1d now prints narrator denominators and splits failure states into generator refusals and gate withholds, and notes an exemption bug fixed at f91cfbd. These cannot be mapped to the review items without the review.

What was measured0 entries

No entry meets MEASURED: number, denominator, dataset, synthetic flag, system and date all known. Numbers that fall short are shown with their entries.

Not measured or built0 entries

No NOT-DONE, DESIGN-ONLY or BLOCKED entries.

What each entry does not show

  • #sear-demo-pipeline Decode-time constraint: this is SEAR's verify-after stage, not GIN's decode-time mask. Verified is not true: the gate enforces the corpus, not the world (see sear-poisoned-fork).
  • #sear-demo-results A measurement. The README says every number is a smoke test, not a measurement (13 chunks, 27 + 6 + 5 probes). Retrieval is not tested: top_k 12 of 13 chunks means the generator sees almost the whole corpus.
  • #sear-demo-status A finished or public demo. The 85 tests the README describes were not run for this site; the author's notes of 2026-10-22 say they had not been run.
  • #sear-review-gaps UNKNOWN — author to supply: which review, and the fix status of each gap. The review document was not found in the walk.
  • #sear-conflict-fork A fix. No conflict detector is built.
  • #sear-poisoned-fork Any defence against a poisoned corpus. The check enforces the report, not the world.

Weaknesses and negative results2 entries

NEGATIVE-RESULT AUTHOR-REPORTED #sear-conflict-fork as of 2026-10-07

When two retrieved chunks contradict each other, sear-demo does not notice: in 4 of 5 conflict probes it silently stated one value, each time the one the model knew from memory.

Does not showA fix. No conflict detector is built.

Verification
Author-reported, not re-verified. No tier-1 artifact containing this claim was opened for this site.
Reported numbers
Numbers for sear-conflict-fork
MetricValuen / denominatorDatasetSyntheticSystemDate
conflict probes resolved silently to one value4/55 conflict probesconflict fork, 17 chunksauthor-builtcommit 8a165f6 baseline2026-10-07
Evidence
  • sear-demo @ main 730ad1d : README.md tier 2 worktree dirty — Conflict fork table
  • sear-demo @ main (untracked) 8a165f6 : runs/8a165f6-base/conflict_stdout.txt tier 1 worktree dirty — exists on disk; contents not opened in the walk

NEGATIVE-RESULT AUTHOR-REPORTED #sear-poisoned-fork as of 2026-10-07

The poisoned-fork experiment passed the gate 5 of 5 with wrong facts; by the README's own reading this is the same property as counterfactual adherence (3 of 3), not a distinct finding.

Does not showAny defence against a poisoned corpus. The check enforces the report, not the world.

Verification
Author-reported, not re-verified. No tier-1 artifact containing this claim was opened for this site.
Reported numbers
Numbers for sear-poisoned-fork
MetricValuen / denominatorDatasetSyntheticSystemDate
poisoned probes answered with the corpus's (wrong) value5/55 poisoned probespoisoned fork of the film corpusauthor-builtcommit 8a165f6 baseline2026-10-07
Sources disagree
The seed listed 'does the poisoned fork show anything distinct from counterfactual adherence' as an open question. The repo README answers it: they are the same property. The site records the README's answer; it is still the author's reading, not an independent test.
Evidence
  • sear-demo @ main 730ad1d : README.md tier 2 worktree dirty — Known limits: 'Verified is not true'
  • sear-demo @ main (untracked) 8a165f6 : runs/8a165f6-base/poisoned_stdout.txt tier 1 worktree dirty — answered correctly (poisoned) 5/5

Where sources disagree

  • #sear-poisoned-fork The seed listed 'does the poisoned fork show anything distinct from counterfactual adherence' as an open question. The repo README answers it: they are the same property. The site records the README's answer; it is still the author's reading, not an independent test.

Open questions

  • Can the gate tell when two cited chunks contradict each other? from #sear-conflict-fork
    Would resolve it: A conflict detector, measured on the conflict fork.
  • Which of the review's measurement gaps are fixed? from #sear-review-gaps
    Would resolve it: The review document and a per-item status from the author.
  • What happens when retrieval actually has to choose? from #sear-demo-results
    Would resolve it: A corpus large enough that top_k leaves most chunks out.

Evidence

Repos with no public URL on this site (visibility not confirmed): sear-demo. UNKNOWN — author to supply

Every evidence pointer used on this page
Repo / sourceBranchSHAPathUsed by
sear-demomain730ad1dREADME.md#sear-demo-pipeline #sear-demo-results #sear-conflict-fork #sear-poisoned-fork
sear-demomain730ad1dconfig/default.yaml#sear-demo-pipeline
sear-demomain730ad1dsrc#sear-demo-pipeline
sear-demomain (untracked)8a165f6runs/8a165f6-base/corpus_stdout.txt#sear-demo-results
sear-demomain730ad1ddocs/DESIGN.md#sear-demo-status
———no primary artifact found in the context walked#sear-review-gaps
sear-demomain (untracked)8a165f6runs/8a165f6-base/conflict_stdout.txt#sear-conflict-fork
sear-demomain (untracked)8a165f6runs/8a165f6-base/poisoned_stdout.txt#sear-poisoned-fork