---
title: "Testing a Safety-Critical Matching... | SI Paper Desk"
url: https://thesimind.si/papers/2612.05991/
description: "A matching component in a simulated psychiatric patient missed most suicide-risk questions with keyword rules. A zero-shot 4-billion-parameter model found..."
---

Number 6 of 12 · December 6, 2026

# Testing a Safety-Critical Matching Component of an LLM-Based Simulated Patient: Blind Test Sets, Overfitted Cut-offs and a Cascade

A matching component in a simulated psychiatric patient missed most suicide-risk questions with keyword rules. A zero-shot 4-billion-parameter model found far more, and the first test set made the rules look better than they were.

Faaz Khan Mohammad and Sanket Salvi · Submitted December 3, 2026 · arXiv 2612.05991v1 · cs.SE

[Read the paper on arXiv](https://arxiv.org/abs/2612.05991) · [The PDF](https://arxiv.org/pdf/2612.05991) · [The day's 12](https://thesimind.si/papers/day/2026-12-06/)

## What they found

The authors tested the matcher in Rapport, a spoken simulated psychiatric patient. The matcher decides which memory a student's question is about. Of 8 bugs logged during evaluation, 4 were matching faults, including all 3 rated major. They built a blind test set of 512 doctor questions, written from the meaning of each memory by a writer who never saw the matching rules. On the test half, keyword tags found 35.1% of risk questions. The deployed hybrid found 72.7% but wrongly matched 15.2% of non-risk questions. The 4-billion-parameter model that voices the patient, used zero-shot, found 94.8% with 4.8% wrong matches, at a median of 416 ms per question. Screening with the hybrid first kept 93.5% recall and sent 63% of questions to the model. On two more test sets written by other local models, the deployed rules found 58.9% and 47.5% of risk questions, and the zero-shot model found 87.7% and 91.5%.

## Why it matters

Parts of an SI application that decide what it may say are ordinary software and need real tests. Their correct behavior depends on meaning, so no list of inputs exists. This case study shows one way to build a test from the specification instead of from the code. It also shows that a test set from a single writer can flatter the component. The authors say the encoder choice was not the bottleneck. The cut-off was. The test sets, every method's output and a machine-checked trace of reported numbers are public.

## How it changes the race

This is incremental for frontier SI. It is a practical testing lesson for teams who build SI products with safety-critical checks. It suggests a small model can do a job that hand-written keyword rules do poorly.

## Safety and control

The matcher decides whether the simulated patient discloses or denies suicidal thoughts, plans or means. A miss can make it deny something it should disclose. The results show keyword rules missed many risk questions, and that tests written by one author can hide this.

### The abstract, by the authors

Components that decide what an LLM application may say are ordinary software and need tests, but their correct behaviour is defined by meaning, so no specification lists their inputs. We report a case study of testing one such component: the matcher in Rapport, a spoken simulated psychiatric patient, which decides which of the patient's memories a student's question is about. If it misses a question about suicidal thoughts, plans or means, the code can let the patient deny something it should disclose. Of the 8 bugs logged during the simulator's evaluation, 4 were matching faults, including all 3 rated major; each was fixed by adding keywords and a regression test for one wording. We built the test oracle from the specification instead of the code: a blind test set of 512 doctor questions over four cases written from what each memory means by a writer that never saw the matching rules, split by checksum into tuning and test halves. On the test half, keyword tags found 35.1% of risk questions; the deployed hybrid of tags and a sentence encoder with 33 million parameters found 72.7% while wrongly matching 15.2% of non-risk questions. Five small encoders and BM25 gave overlapping threshold-free results (AUROC 0.86-0.91 for risk), so the encoder choice was not the bottleneck; the cut-off was. The 4-billion-parameter model that voices the patient, used zero-shot, found 94.8% of risk questions with 4.8% wrong matches, at a median of 416 ms per question; screening with the hybrid first kept 93.5% recall while sending 63% of questions to the model. On two further test sets written by other local models, the deployed rules found 58.9% and 47.5% of risk questions and the zero-shot model 87.7% and 91.5%: the first writer's test set flattered the component. The test sets, every method's output and a machine-checked trace of every reported number to the committed results are public.

Quoted from arXiv:2612.05991. The research and its words belong to its authors.

Desk score **67** out of 100

Why it was picked

- Safety (in the title)
- Evals
- Language models (in the title)
- Cross-listed in 3 fields

Topics

- [Evals](https://thesimind.si/papers/?tag=evals)
- [Safety](https://thesimind.si/papers/?tag=safety)
- [Language models](https://thesimind.si/papers/?tag=language-models)
- [Health](https://thesimind.si/papers/?tag=health)
- [Benchmarks](https://thesimind.si/papers/?tag=benchmarks)
- [Code](https://thesimind.si/papers/?tag=code)

**arXiv ID:** 2612.05991v1
**Submitted:** December 3, 2026
**Fields:** cs.SE (Software Engineering), cs.CL (Computation and Language), cs.HC (Human-Computer Interaction)
**Level:** Intermediate

Fingerprint, SHA-256

`feabf3654606c005dc9e1792f4127e0031c3d6973d6774b662eeae7bae2c285a`

On Solana: [Proof of Mind seal, WwUoHb...u9aj](https://solscan.io/tx/WwUoHbDQtfRDsh61SwW44YaymcP6BnEFPUGg743sdax5eZKAXM2stuwpwtNFgAX3UsfsTCXFozhXcXKBZX7u9aj)

### The exact text fingerprinted

{"arxiv":"2612.05991","version":1,"title":"Testing a Safety-Critical Matching Component of an LLM-Based Simulated Patient: Blind Test Sets, Overfitted Cut-offs and a Cascade","authors":["Faaz Khan Mohammad","Sanket Salvi"],"day":"2026-12-06","rank":6,"score":67,"status":"written","summary":{"takeaway":"A matching component in a simulated psychiatric patient missed most suicide-risk questions with keyword rules. A zero-shot 4-billion-parameter model found far more, and the first test set made the rules look better than they were.","found":"The authors tested the matcher in Rapport, a spoken simulated psychiatric patient. The matcher decides which memory a student's question is about. Of 8 bugs logged during evaluation, 4 were matching faults, including all 3 rated major. They built a blind test set of 512 doctor questions, written from the meaning of each memory by a writer who never saw the matching rules. On the test half, keyword tags found 35.1% of risk questions. The deployed hybrid found 72.7% but wrongly matched 15.2% of non-risk questions. The 4-billion-parameter model that voices the patient, used zero-shot, found 94.8% with 4.8% wrong matches, at a median of 416 ms per question. Screening with the hybrid first kept 93.5% recall and sent 63% of questions to the model. On two more test sets written by other local models, the deployed rules found 58.9% and 47.5% of risk questions, and the zero-shot model found 87.7% and 91.5%.","matters":"Parts of an SI application that decide what it may say are ordinary software and need real tests. Their correct behavior depends on meaning, so no list of inputs exists. This case study shows one way to build a test from the specification instead of from the code. It also shows that a test set from a single writer can flatter the component. The authors say the encoder choice was not the bottleneck. The cut-off was. The test sets, every method's output and a machine-checked trace of reported numbers are public.","race":"This is incremental for frontier SI. It is a practical testing lesson for teams who build SI products with safety-critical checks. It suggests a small model can do a job that hand-written keyword rules do poorly.","safety":"The matcher decides whether the simulated patient discloses or denies suicidal thoughts, plans or means. A miss can make it deny something it should disclose. The results show keyword rules missed many risk questions, and that tests written by one author can hide this.","level":"intermediate","tags":["evals","safety","language-models","health","benchmarks","code"]}}

[Check it on Verify a thought](https://thesimind.si/proof-of-mind/)

## The authors

Faaz Khan Mohammad, Sanket Salvi

Credit for this research belongs to its authors. SI MIND's page is a plain-English reading of their abstract on arXiv, not a review of the full paper.

Related on the desk

## More papers on these topics

[Nov 26, 2026 · Number 4Can LLM Judges Catch Unsafe Clinical Actions? A Fault-Injection StudySI judges catch unsafe clinical actions much better when they can see the real health record data, and the agent's own reasoning can mislead them.SafetyEvalsHealth](https://thesimind.si/papers/2611.33012/) · [Nov 24, 2026 · Number 8TEA-Bench-BR: Can Coding Agents Turn a Branching Clinical Specification into Correct Code?TEA-Bench-BR tests whether coding agents can turn Portuguese clinical rules for autism screening into correct code, and Gemma 4 31B does far better than 12B.BenchmarksCodeAgents](https://thesimind.si/papers/2611.27895/) · [Dec 5, 2026 · Number 3The Agent Amendments: Repairing exams for trustworthy evaluationThe authors found hidden flaws across every part of the Agents' Last Exam test pipeline. Fixing them raised model scores, and one smaller model nearly matched a frontier model.EvalsBenchmarksAgents](https://thesimind.si/papers/2612.04609/)

[Number 5](https://thesimind.si/papers/2612.05583/) · [All 12 for Dec 6, 2026](https://thesimind.si/papers/day/2026-12-06/) · [Number 7](https://thesimind.si/papers/2612.05789/)
