CLAIMGATE: Cautious On-Device Checking of Spoken Legal and Clinical Claims

Peter Forcha, Harshitha Kaje Kusumadhara, Audrey Moguem Souop, Shalom IboharXiv 2026

TL;DR

Imagine a tiny, privacy-preserving assistant sitting on your dashboard during a traffic stop or in an exam room during a medical visit, quietly checking spoken statements against official laws and clinical guidelines in under two seconds. ClaimGate is an on-device pipeline that pulls this off on an 8 GB consumer GPU—not by training a massive, all-knowing AI, but by teaching a small, quantized language model the high-stakes art of keeping its mouth shut when it isn't sure. By forcing the model to quote retrieved rules and letting plain code decide the final verdict, it slashes dangerous false-flag errors by 75% without ever sending sensitive audio to the cloud.

What Problem Does This Paper Address?

People misstate rules all the time in high-stakes conversations—a driver misremembering vehicle search laws, or a patient misquoting vaccine allergy guidelines. Nobody can pause a live conversation to ctrl+F through 500,000 words of state statutes.

Building an AI to check these claims on the fly hits a brutal trilemma:

  1. Chatter vs. Claims: Most human speech is just small talk; checking every sentence wastes compute and invites annoying false alarms.
  2. Hallucination Risk: In law and medicine, a "serious error" (calling a true statement false, or vice versa) is far worse than saying nothing at all. Standard LLMs, and even legal RAG tools, notoriously hallucinate rules or trip over negated sentences.
  3. Privacy and Speed: Sensitive conversations shouldn't leave the device, meaning the whole pipeline has to run locally within seconds on modest hardware.

Methods

ClaimGate is built like a series of increasingly strict bouncers in front of an expensive VIP room (the GPU), designed to "fail towards silence."

Fig. 1. The CLAIMGATE pipeline. Blue stages run on every window; dashed orange arrows are the exits that make the system fall silent or abstain instead of guessing. Everything runs on one desktop with an 8 GB consumer GPU; no audio leaves the device.
  • Raw Streaming ASR: whisper.cpp (base.en) transcribes speech on the CPU into windows closing at 35 words or a 3.5-second pause. Crucially, no LLM cleans up the transcript—rewriting speech risks accidentally altering a legal or medical claim.
  • Cheap CPU Filters: First, a Claim Gate (a logical OR of TF-IDF + logistic regression and a fine-tuned BERT-tiny, taking just 2.9 ms) filters out everyday chatter. Surviving claims hit Dense Retrieval (bge-small-en-v1.5), pulling the top 5 distinct rule sections. If cosine similarity is below 0.544, the system stays silent.
  • Restate, Quote, Match—Code Decides: This is the novel centerpiece. A 4-bit quantized Qwen2.5-7B-Instruct runs on the GPU using grammar-constrained decoding, forcing its output into a strict JSON schema. Instead of asking the LLM for a verdict, the prompt forces four steps: restate the spoken claim plainly (statement_says), pick a retrieved rule from a strict enum (R1–R5 or none, making hallucinated citations impossible), quote the rule (rule_says), and state if they match (same, different, or unrelated). Plain deterministic code then maps that match to supported, contradicted, or not covered.
Comparing direct LLM verdicts (v2) against ClaimGate's restate-quote-match approach (v3) on a tricky double negative.

Datasets

Because real, labeled recordings of traffic stops and clinic visits aren't publicly available, the authors blend real-world authoritative texts and conversations with synthetic spoken-style claims:

  • Authoritative Corpora (Real): 5,742 official 2026 Florida and Texas statute subsections (~505k words) plus 22 author-summarized federal case holdings (e.g., Whren, Knowles); and 280 clinical allergy passages from the CDC, FDA, MedlinePlus, and openFDA labels.
  • Speech & Negatives (Real): Two unrelated lab-meeting transcripts, 1,000 human-written DailyDialog windows (to train the gate to ignore small talk), and 7 live microphone pilot sessions.
  • Gold-Labeled Claims (Synthetic): Author-written claims in natural spoken style—including 141 held-out legal claims (plus 50 non-claims) and 148 clinical allergy test claims.

Key Insights and Ideas

  • LLMs stumble on double negatives; decomposing the task fixes it: Spoken claims are full of words like can't, don't need, and only ("you can't search my car just because you gave me a ticket"). Asking the 7B model directly for a verdict caused 13 serious errors, 10 of which were botched negations. Forcing it to restate the claim and quote the rule first turns gnarly logic into a simple sentence-matching task, cutting serious errors down to 5.
  • Higher accuracy doesn't mean safer: Giving the model more retrieved rules (Top-10 instead of Top-5) or upgrading to a 14B model actually increased accuracy—but also doubled serious errors because more confident setups commit to risky verdicts instead of abstaining.
  • Zero-shot verifier transfer: Moving from traffic laws to clinical allergies required no retuning of the verifier LLM—only the lightweight Claim Gate needed to be rebuilt for the new domain's vocabulary.
  • Context beats tiny chunks: Showing the model up to 220 words of a statute section—rather than just the matched 75-word chunk—prevented a 3x spike in serious errors by keeping legal definitions attached to the duties they qualify.

Key Results

Running entirely offline on an Intel i7-9700K and an 8 GB NVIDIA RTX 2070, feedback arrives a median 1.86 seconds after a speech window closes:

  • Traffic-Stop Claims (141 held-out): Reached 80.1% accuracy with only 5 serious errors (compared to 59.5% accuracy and 20 serious errors without retrieval, and 13 serious errors when letting the LLM output verdicts directly). Citation accuracy jumped from 0.75 to 0.85.
  • Claim Filtering: Passed 95.7% of held-out test claims while rejecting 100% (30/30) of everyday sentences, and cut false triggers on real lab meetings from 77% down to 8.7%.
  • Clinical Allergy Claims (148 test): Achieved 87.8% accuracy with 5 serious errors (vs. 20 without retrieval).
Fig. 3. Accuracy against serious errors for every system in Table II. The full system has the fewest serious errors; more accurate configurations (top-10, oracle, 14B) commit to more verdicts and make more serious errors.

Limitations and Future Work

(Note: Based on the provided text spanning Sections I through VI-C; later sections are omitted from the document.) * Synthetic Labeled Claims: Because real labeled recordings of police stops and medical consultations were unavailable, all gold-labeled evaluation claims were written by the authors, and live microphone runs were unlabelled. * Template Blind Spots: Four of the five claims missed by the Claim Gate involved police powers, an area thinly covered by the gate's training templates. * Domain-Specific Gating: While the LLM verifier transfers seamlessly across domains, the Claim Gate must still be rebuilt for each new domain. * Server State Quirks: A long-running llama.cpp server showed slight non-determinism on 5 of 141 claims (even at temperature zero), likely due to reused prompt-cache state.

Summary updated

BibTeX
@misc{forcha2026claimgate,
  author = {Peter Forcha and Harshitha Kaje Kusumadhara and Audrey Moguem Souop and Shalom Iboh},
  title = {{CLAIMGATE: Cautious On-Device Checking of Spoken Legal and Clinical Claims}},
  year = {2026},
  eprint = {2611.31569},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.31569},
}
Figure