TL;DR
Researchers formally analyzed four major diabetic retinopathy grading texts and discovered significant logical defects—gaps, overlaps, and contradictory rankings—that are usually "silently repaired" by human readers. The study reveals that these textual flaws lead to inconsistent machine learning models and that while some large language models (LLMs) can detect these defects through deliberation, most tend to charitably "fix" the broken logic without warning.
What Problem Does This Paper Address?
Institutional grading schemes, such as those used to diagnose diabetic retinopathy (DR), are typically published as natural language texts. When clinicians use these tables, they rely on "silent repairs": they intuitively know to pick the most severe category if two apply or the closest sensible one if none do.
However, these tacit fixes fail when the text is executed by machines—whether coded into software, used to generate labels for machine learning, or processed by an LLM. The authors investigate what these grading systems actually determine when taken at their literal word. They aim to uncover structural disagreements where different guidelines, claiming to represent the same scale, actually produce conflicting medical actions for the same patient.
Methods
The authors employed a rigorous formal methods approach:
- Formal Transcription: They translated four major DR grading texts (English NHS 2025, ICO 2017, ICDR 2003, and an Italian 2015 guideline) into a formal rule language covering 24 clinical variables.
- Supervaluation: To handle vague terms like "isolated" or "prominent," they used a technique called supervaluation, creating multiple "precisifications" (admissible readings) for every ambiguous point. A defect is only reported if it survives every possible valid reading.
- Exhaustive Enumeration: Using an SMT (Satisfiability Modulo Theories) solver (Z3) and an OWL reasoner (HermiT), they checked 1,425,807,360 possible finding profiles to identify logical gaps (no category applies) and overlaps (multiple categories with different actions apply).
- LLM Evaluation: They tested whether LLMs (Qwen and Claude) would report these logical defects or "repair" them silently when asked to grade hypothetical cases.
Datasets
The study validated its findings using three public annotated image datasets:
- IDRiD: 81 images for segmentation and 516 for localization/grading.
- DDR: 757 images with lesion-segmentation annotations.
- DIARETDB1: 89 images with expert consensus findings.
The researchers also trained a U-Net with a ResNet-34 encoder to detect the fovea and optic disc to accurately calculate lesion distances and quadrant counts required by the grading rules.
Key Insights and Ideas
- The "Macular Gap": Every text analyzed contains "gaps"—specific clinical profiles that fit no defined category. For example, in the English text, an eye with a hard exudate outside the macula and no other features technically receives no retinopathy grade under any reading.
- Order Inversions: The guidelines don't just differ on thresholds; they sometimes rank eyes in opposite orders. As shown in Figure 1, England and Italy disagree on which of two specific eyes is "worse," meaning no simple mathematical mapping can ever perfectly align these two systems.
- The Invisible Variable: Much of the disagreement between the English and International (ICO) scales stems from "retinal thickening." Because thickening cannot be seen on a standard 2D color photograph, the English text's reliance on it makes many referral decisions undecidable based on images alone.
- LLMs as Charitable Readers: Most LLMs act like "charitable" humans; they will assign a grade to a logically broken case rather than reporting that the text is silent or contradictory. However, enabling "thinking" or deliberation in models like Claude 3.5 Sonnet significantly increased the model's ability to identify and report these defects.
Key Results
- High Disagreement: On the DDR dataset, the English text and the ICO 2017 tabulation disagreed on the referral action for 26.8% of eyes.
- Model Divergence: Classifiers trained on labels from different texts learned measurably different decision boundaries. A model trained on English labels will side with the English text 75-85% of the time when guidelines conflict.
- Empty Classes: The literal reading of the ICO 2017 tabulation contains a "proliferative" class that is mathematically empty because its requirements are self-contradictory (Figure 3).
- LLM Repair: In the literal condition, Claude Opus 5.5 was the most robust, reporting defects in almost all cases, whereas Qwen3.8-Flash-Next repaired nearly every gap and overlap item silently.
Limitations and Future Work
The authors acknowledge that their claims are about the texts themselves, not clinical best practices. The study is limited to diabetic retinopathy and relies on the authors' formal transcription of the natural language rules.
Future work could involve applying this formal "stress-testing" to other medical domains (like triage tables or cancer staging) to identify where silent repairs might be masking systemic risks in automated diagnostic pipelines. The authors also suggest that whoever pools labels across different grading texts needs to explicitly account for the "unseen findings" (like retinal thickening) that these labels inherently assume.
Summary updated