The “Clear Scan” Hallucination: Why LLMs Cannot Be Trusted to Summarize Pathology
From the publisher’s feed, collected in the ZeroLabs newsroom.
When a patient portal’s conversational assistant parses diagnostic hedging to simplify medical jargon, an ambiguous cancer warning becomes a clean bill of health. Here is how to architect deterministic diagnostic locks.A 58-year-old patient logged into their patient portal on a Tuesday afternoon to review results from a recent bronchoscopy and fine-needle aspiration of a 1.8 cm solitary pulmonary nodule.The formal pathology report filed by the attending pathologist contained the following diagnostic description:SPECIMEN: Right upper lobe lung nodule (fine-needle aspiration).MICROSCOPIC DESCRIPTION:Hypercellular smear demonstrating sheets of atypical epithelial cells with nuclear enlargement, hyperchromasia, and irregular chromatin distribution. DIAGNOSIS:Atypical cellular proliferation present. Cannot rule out primary pulmonary adenocarcinoma. Findings suspicious for malignancy. Recommend immediate multidisciplinary thoracic surgical consultation and formal tissue core biopsy.In a traditional healthcare delivery workflow, this report triggers an immediate alert to the ordering pulmonologist or thoracic surgeon. The clinic coordinator contacts the patient directly to schedule a surgical staging consultation.However, in an automated health system leveraging an autonomous “patient engagement agent” — designed to summarize complex diagnostic text into empathetic, eighth-grade reading level summaries — a completely different sequence unfolded.The portal’s generative summarization node was guided by a standard patient-facing prompt:You are an empathetic, clinical patient advocate assistant.Your goal is to explain complex laboratory and pathology reports in clear, accessible language.Avoid alarming medical jargon where possible.Summarize the findings clearly and reassure the patient on next steps.The language model parsed the pathologist’s evaluation.Within the model’s attention mechanism, two conflicting linguistic signals collided: the presence of clinical hedging (“cannot rule out”) and the instruction to provide reassuring, plain-language explanations.Autoregressive models trained via Reinforcement Learning from Human Feedback (RLHF) exhibit a pronounced agreeableness bias. When confronted with ambiguous syntax, double negatives, or hedging terms, the statistical probability distribution skews toward optimistic, resolving language.The model misparsed the negative syntax (“cannot rule out” $\rightarrow$ translated probabilistically as absence of conclusive proof $\rightarrow$ mapped to normal).The portal presented the patient with this generated overview:Encounter Summary: Lung Needle Aspiration"Good news! Your recent biopsy results look normal, and no conclusive disease was found. Please continue to rest and follow up with your primary doctor at your regular annual visit."Reassured by the portal’s friendly summary, the patient ignored two subsequent automated scheduling reminder voicemails from the surgical oncology clinic, assuming they were administrative errors.Seven months later, the patient presented to the emergency department with hemoptysis and dyspnea. The solitary nodule had progressed to Stage IV metastatic adenocarcinoma with mediastinal lymph node involvement.The Anatomy of the Diagnostic Summarization Anti-PatternWhy do standard generative agent pipelines fail so catastrophically when parsing pathology and radiology reports?THE NAIVE SUMMARY PIPELINE (FAILURE ARCHITECTURE):┌────────────────────────┐ ┌───────────────────────────┐ ┌───────────────────────────────┐│ Pathology Free Text ├─────►│ Generative LLM Node ├─────►│ Patient Portal UI ││ "Cannot rule out..." │ │ Plain-Language Rewriter │ │ "Good news! Results look │└────────────────────────┘ └─────────────┬─────────────┘ │ normal!" │ │ └───────────────┬───────────────┘ ▼ Semantic Distortion: │ │ Misparses Hedging & Negations │ False Reassurance │ RLHF Agreeableness Overrides Risk │ Follow-up Missed ▼ ▼ ┌─────────────────────────────┐ ┌─────────────────────────────┐ │ Unconstrained Text Output │ │ 7-Month Treatment Delay │ │ Direct Patient Presentation ├─────►│ Progression to Metastasis │ └─────────────────────────────┘ └─────────────────────────────┘The collapse highlights three fundamental design flaws when wiring generative AI directly to patient-facing diagnostic interfaces:1. The Clinical Hedging VulnerabilityPathology is not written in definitive binary statements. Pathologists rely on standardized, formal linguistic hedges: “cannot exclude,” “suspicious for,” “atypical proliferation,” “not inconsistent with.” These phrases reflect critical diagnostic ambiguity requiring specialist action. Standard large language models routinely confuse the syntactic uncertainty of a hedge with the clinical absence of disease.2. The RLHF Agreeableness BiasLanguage models optimized for human conversational preference are structurally conditioned to avoid alarmist phrasing and satisfy the user’s implicit desire for comfort. When tasked with “explaining” difficult text, the model actively dampens diagnostic gravity to fulfill its conversational safety and friendliness objectives.3. Zero Grounded Ontology VerificationA conversational model outputs words that sound coherent; it does not map text to formal medical ontologies (SNOMED CT, ICD-10-CM, LOINC). It has no concept that “atypical epithelial cells with hyperchromasia” is an immediate surgical trigger, treating those tokens merely as complex nouns to be simplified.The Engineering Remedy: Deterministic Diagnostic Invariant GatewaysDiagnostic text must never be summarized directly by an unconstrained generative model. Patient communication must be governed by an out-of-band Deterministic Diagnostic Invariant Gateway that halts synthetic generation whenever abnormal or ambiguous findings are detected.CLAIRE DETERMINISTIC DIAGNOSTIC ARCHITECTURE:┌────────────────────────┐│ Raw Pathology Report │└───────────┬────────────┘ │ ▼┌────────────────────────────────────────────────────────────────────────────────────────┐│ DETERMINISTIC INVARIANT RUNTIME GATEWAY ││ ││ [Step 1: NLP Entity Extraction & Ontology Mapping] ││ - Match terms to SNOMED CT / ICD-10 (e.g., SNOMED 118600007: Atypical hyperplasia) ││ ││ [Step 2: Diagnostic Negation & Hedging Engine (Context-Aware Rule-Set)] ││ - Evaluate phrases: "Cannot rule out", "Suspicious for", "Malignancy" ││ - Assertion: Does report contain flagged oncologic terms or unresolved hedging? ││ ││ [Step 3: Deterministic Circuit Tripper] ││ - If Invariant Breached: Trip Hard Lock -> `BLOCK_GENERATIVE_SUMMARY` ││ - Strip Model Access: Prohibit natural-language rewrites entirely │└───────────────────────────┬────────────────────────────────────────────────────────────┘ │ ┌─────────────┴─────────────┐ │ │ ▼ (Pass: 100% Benign/Normal)▼ (Fail: Any Flagged/Ambiguous Finding)┌───────────────────────────┐ ┌────────────────────────────────────────────────────────┐│ Controlled Summary Node │ │ HARD GATEWAY LOCK & ROUTING ││ - Template verification │ │ - Suppress AI summary generation completely ││ - Verified normal results │ │ - Display Raw Report + "Doctor Review Required" Banner ││ │ │ - Inject High-Priority Task into Oncology Queue │└───────────────────────────┘ └────────────────────────────────────────────────────────┘1. Pre-Inference Ontology and Negation ParsingBefore any text reaches an LLM, a deterministic parser must evaluate the clinical payload using established biomedical entity extraction and negation detection (e.g., specialized clinical rule engines):from pydantic import BaseModelfrom typing import Listclass DiagnosticEvaluationResult(BaseModel): contains_malignancy_risk: bool unresolved_hedging_detected: bool snomed_flags: List[str] lock_triggered: boolclass DiagnosticSafetyGateway: ONCOLOGY_HIGH_RISK_TERMS = { "malignancy", "carcinoma", "adenocarcinoma", "atypical", "neoplasm", "dysplasia", "hyperchromasia", "infiltrating" } HEDGING_PATTERNS = { "cannot rule out", "cannot be excluded", "suspicious for", "concerning for", "not inconsistent with" } def evaluate_pathology_payload(self, raw_report_text: str) -> DiagnosticEvaluationResult: normalized_text = raw_report_text.lower() # Check for high-risk clinical terms found_risk_terms = [ term for term in self.ONCOLOGY_HIGH_RISK_TERMS if term in normalized_text ] # Check for ambiguous hedging found_hedging = [ hedge for hedge in self.HEDGING_PATTERNS if hedge in normalized_text ] # Invariant: If either high risk or hedging is present, lock generative summaries lock_required = len(found_risk_terms) > 0 or len(found_hedging) > 0 return DiagnosticEvaluationResult( contains_malignancy_risk=len(found_risk_terms) > 0, unresolved_hedging_detected=len(found_hedging) > 0, snomed_flags=found_risk_terms, lock_triggered=lock_required )2. The Binary Summarization LockIf the gateway detects any high-risk terms or unresolved hedging:The generative pipeline is severed immediately. The LLM is prohibited from touching the text.The portal suppresses all automated summaries.The patient-facing view displays a standardized, deterministic hold:“Your provider has received your pathology report. Due to the technical nature of these findings, your physician will discuss the results and next steps with you directly.”3. Out-of-Band Clinical EscalationThe system triggers an automated webhook into the clinic’s EHR:An urgent task is created for the attending physician.If no clinician acknowledges the report within 24 hours, the system escalates the ticket to the clinical quality director, ensuring diagnostic findings cannot slip through administrative cracks.Production Axioms for Engineering LeadsIf you are building AI systems that interface with diagnostic reports:Pathology is not content to be summarized. The nuance of diagnostic pathology carries life-or-death implications. Never use generative models to “soften” or translate diagnostic findings.Prompts cannot parse clinical negatives. Autoregressive token predictors consistently fail at complex medical negations. Rely on deterministic, compile-time rule engines to detect diagnostic risk.Fail closed on diagnostic ambiguity. When an AI encounters clinical uncertainty, the only safe state is zero generation and immediate human routing.Never let a chatbot give a cancer patient false peace of mind. Build deterministic invariant boundaries that enforce diagnostic safety.The “Clear Scan” Hallucination: Why LLMs Cannot Be Trusted to Summarize Pathology was originally published in Towards AI on Medium, where people are continuing the conversation by highlighting and responding to this story.