Dhruvin Dave

groundcheck

Do language models cite real evidence? A benchmark where a model answers a question from an event log and must name the log lines that support its answer. groundcheck scores those citations.

Problem

In Office Vision Twin an LLM investigator explains security incidents and must cite the event IDs behind each claim. A citation is only useful if it points at a line that exists, covers all the evidence, and leaves out lines that merely look related. Answer accuracy alone hides all three failures: a model can be right for the wrong reasons, or cite an ID that was never in the log.

groundcheck takes that check out of the product and makes it a benchmark any model can be run on.

Approach

Each scenario is a question, an event log with stable IDs, a gold answer, the minimal set of evidence lines, and labelled decoys. There are 123 scenarios. 27 are office incidents ported from Office Vision Twin. 96 are generated server logs, where a seeded generator sets the log length (20 to 200 lines), the share of decoys (0 to 75%), where the evidence sits, and the ID format. 31 scenarios have no answer in the log, to test whether a model says so instead of inventing one.

Scores per scenario are citation precision, recall and F1; the share of answers citing an ID that does not exist; the share of citations that are decoys; answer accuracy; grounded accuracy, which counts a right answer only if its citations are also right; and correct abstention. Every mean comes with a bootstrap 95% confidence interval over scenarios. The metrics have unit tests with hand-computed cases.

Three baselines that use no language model bound the scores: random lines, BM25 keyword search, and the answer key. BM25 reaches a citation F1 of 0.74, but drops from 1.00 to about 0.65–0.70 once decoys are present, because decoys share its keywords. In this example it finds the crash and misses its cause.

Results

Every figure links to the file it was drawn from.

Citation F1, all 123 scenarios

Baselines that use no language model. They set the floor and the ceiling an LLM is measured between.

How well the cited lines match the evidence. Higher is better. 95% CIs: random [0.04, 0.10], BM25 [0.68, 0.80].

Citation F1, all 123 scenariosBar chart: Random 0.07; BM25 0.74; Answer key 1.00.Random0.07BM250.74Answer key1.00
Citation F1, all 123 scenarios
ConditionValue
Random0.07
BM250.74
Answer key1.00

Server-log scenarios. With no decoys keyword search is perfect; decoys share its keywords.

BM25 citation F1 by decoy shareBar chart: 0% decoys 1.00; 25% 0.70; 50% 0.65; 75% 0.69.0% decoys1.0025%0.7050%0.6575%0.69
BM25 citation F1 by decoy share
ConditionValue
0% decoys1.00
25%0.70
50%0.65
75%0.69

Share of cited lines that are labelled decoys. Lower is better.

Citations that are decoysBar chart: Random 0.34; BM25 0.40; Answer key 0.00.Random0.34BM250.40Answer key0.00
Citations that are decoys
ConditionValue
Random0.34
BM250.40
Answer key0.00

123 scenarios: 27 office incidents, 96 server logs; 31 have no answer in the log. Bootstrap, 1,000 resamples.

Source

One scenario, scored

“Service billing crashed. Which host's full disk caused the crash?” The answer is web-11, and the evidence is two lines. Half the other lines are decoys: the same host, the same service or the same error.

  1. L0496host=web-11 disk=/data usage=90% WARNdecoy
  2. L0497host=web-03 disk=/var usage=100% ENOSPC write faileddecoy
  3. L0498service=inventory host=web-07 GET /health 200 5ms
  4. L0499cron job=logrotate host=web-07 status=ok duration=10s
  5. L0500cron job=logrotate host=web-09 status=ok duration=15s
  6. L0501host=web-11 disk=/data usage=88% WARNdecoy
  7. L0502cron job=logrotate host=web-01 status=ok duration=3s
  8. L0503cron job=logrotate host=web-05 status=ok duration=18s
  9. L0504host=web-06 ntp offset=2ms
  10. L0505host=web-11 disk=/data usage=89% WARNdecoy
  11. L0506service=checkout host=web-10 CRASH exit_code=1 reason=ENOSPC: no space left on devicedecoy
  12. L0507host=web-01 disk=/var usage=100% ENOSPC write faileddecoy
  13. L0508service=notifications host=web-01 CRASH exit_code=1 reason=ENOSPC: no space left on devicedecoy
  14. L0509user=bob login SUCCESS src=10.1.5.223
  15. L0510host=db-02 ntp offset=9ms
  16. L0511service=billing host=web-11 health_check latency=788ms SLOWdecoy · cited
  17. L0512host=web-03 disk=/var usage=100% ENOSPC write faileddecoy
  18. L0513host=web-11 disk=/var usage=100% ENOSPC write failedevidence
  19. L0514user=jun login SUCCESS src=10.1.167.162
  20. L0515service=billing host=web-11 CRASH exit_code=1 reason=ENOSPC: no space left on deviceevidence · cited

Keyword search (BM25) cites L0515 and L0511. It finds the crash, misses the full disk that caused it, and picks up a slow health check on the same host: citation F1 0.50, half its citations decoys.

Source

Limits

No language model has been scored yet; the published numbers are baselines only. Adapters for Anthropic, Amazon Bedrock and any OpenAI-compatible server, including local Ollama, are in the repository, and replies are cached so reruns are free.

The server-log scenarios come from four templates, so a model could learn them; they are a controlled probe, not a natural sample. 27 office scenarios give wide confidence intervals. Answer correctness is exact matching on entities, numbers and yes/no, not a judge model.

Code

Scenarios, metrics, adapters and results are on GitHub under Apache-2.0. One command reruns every baseline.