MedLean: A Modest Step Toward Reviving Formal Medical Verification as a Safety World Model in the Era of MLLMs
Tang et al. in Alignment
A safety check must catch what the care plan leaves out
MedLean: A Modest Step Toward Reviving Formal Medical Verification as a Safety World Model in the Era of MLLMs
MedLean checks the whole plan, not only proposals
A single-claim filter inspects only actions the model proposed; an omitted mandatory scan or workup is outside that check.
MedLean evaluates every rule in the active guideline, so it can block unsafe actions and report mandatory duties the model left out.
An omitted required action can be a safety failure, not just an incomplete answer.
Missing evidence stays unknown
- 1
Three-valued facts
Each standardized patient fact is confirmed present, confirmed absent, or unreported; missing is not silently treated as false.
- 2
Defer, then request
If a rule's prerequisite or exclusion is unresolved, that rule stays deferred; the verifier requests the missing check instead of guessing.
- 3
Scan the whole case
The kernel checks every rule, blocks unsafe or blind proposals, and flags approved mandatory actions omitted from the plan.
The offline library feeds an online safety check

Offline, four NCCN/CSCO guidelines yield 1,861 Lean rules; Z3's full-space audit found 362 binary-default leaks. Online, MedLean's proved Lean 4 kernel checks whole plans; its verifier returns feedback for up to two revisions.
v4 Main: MedLean improves certification and duty coverage
v4 Main, n=300 synthetic cases; duty n=127. DeepSeek-V4.1-Flash/GPT-6.2-Astra. Cert=pre-filter; parentheticals are blind. Whole-plan table.
Why the binary shortcut can reduce completeness
A missing finding can itself trigger a workup; assigning it false can remove that trigger.
Three-valued facts keep that evidence unresolved, while whole-case scanning flags an approved duty absent from the draft.
Plain Rule reduced all-duty completion in five of six model-cohort comparisons; the sixth tied at zero.
Exact gating rejected flawed plans and passed matched controls
v3 stress test: 50 paired adverse plans and matched controls. Source: diagnostic benchmarks table.
A base pass is not a referral answer
- 1
Base certificate
It rejects unsafe or blind actions, omitted approved duties, and missing or extraneous checks, but not every eligible target's status left unreported.
- 2
Consultation gate
It adds an exact status for each target: eligible, blocked, deferred, or not applicable, with no missing, extra, duplicate, or mismatched entries.
- 3
Empty-plan audit
Base certification passed 108/300 empty plans (36%); consultation certification passed 0/227 target cases (0%).
What this prototype has not established
Synthetic structured cases
All 428 cases were structured synthetic vignettes, not raw EHR notes; upstream extraction errors were outside the evaluation.
Narrow guideline coverage
The library covers four 2026 lung and gastric oncology guidelines; 143 of 1,029 source records remain partial or pending.
No clinical validation
No independent blinded review by board-certified oncologists was reported; guideline compliance does not establish real-patient efficacy.
Reward training not tested
The study tests inference-time correction capped at two turns, not end-to-end reinforcement-learning weight updates.
Why it matters
- A care plan can be unsafe through an action it proposes or a required action it omits.
- For structured cases, preserve unknown facts and check every applicable rule before release.
- Can this work with noisy records, independent oncology review, and specialties beyond the four guidelines?
10 slides, 3 min
1 day ago