arXiv:2610.36325cs.AIOct 2026

Manuscript Offprint

arXiv:2610.36325

Ontology-guided multi-agent reasoning for explainable differential diagnosis

Roxana Ramona Szomiu, George Ursu, Adrian Groza

Roxana Ramona Szomiu, George Ursu, Adrian Groza

Artificial Intelligence Research Institute AIRi@UTCN

Department of Computer Science, Technical University of Cluj-Napoca

Cluj-Napoca, Romania

Email: Roxana.Szomiu@cs.utcluj.ro, Ursu.Da.George@student.utcluj.ro, Adrian.Groza@cs.utcluj.ro

Abstract—Effective differential diagnosis depends on well-structured and unambiguous patient case descriptions, since incomplete or ambiguous clinical information readily leads to diagnostic errors and inconsistent reasoning. Large Language Models (LLMs) have recently shown promising capabilities in medical question answering and clinical reasoning; however, even when achieving competitive performance on medical benchmarks, they often rely on pattern recognition learned from training data rather than grounded clinical evidence, and can generate plausible yet unsupported diagnostic conclusions. Their reasoning remains largely opaque, making it difficult for clinicians to assess the evidence and rationale behind a given recommendation.

To address this gap, we propose an ontology-guided, multi-agent differential diagnosis framework that replicates the iterative reasoning process of physicians. The framework grounds diagnostic inference in a structured, expert-curated medical knowledge base, enabling interpretation of symptoms, clinical findings, or disease relationships, while decomposing diagnosis into explicit, auditable reasoning steps. This ontology-based grounding constrains inference to evidence-backed associations, reducing hallucination and improving diagnostic transparency, traceability, and consistency. The system then identifies the most discriminative missing symptoms and generates targeted follow-up questions to reduce uncertainty through a process that mirrors to clinical inquiry. Together, these components improve the reliability, explainability, and diagnostic accuracy of AI-assisted differential diagnosis. The source code is publicly available.

Index Terms—differential diagnosis, multi-agent systems, LLMs, ontology-based reasoning, explainable AI

I. INTRODUCTION

Differential diagnosis is an iterative process used to distinguish between two or more diseases with similar symptoms. Initial patient notes are often incomplete, making reliable diagnostic decision-making difficult without further investigation. Early evaluations of LLMs in healthcare formulated diagnostic reasoning as a single-turn question-answering task, assuming that all the information required for diagnosis and treatment selection was available at the time of prediction [1].

Transitioning from static QA systems [2] to interactive, multi-turn diagnostic dialogues is crucial for clinical decision-making. Physicians iteratively collect information through targeted questions to reduce uncertainty, highlighting diagnosis as an interactive process rather than a single-step inference.

Motivated by the potential of LLMs to support differential diagnosis and clinical decision-making [3], we propose an ontology-based multi-agent system (MAS) that replicates iterative clinical reasoning and assists clinicians in diagnosis.

Our neuro-symbolic framework integrates LLM-based language understanding with ontology-driven symbolic reasoning. Organized into two modules, it employs a task-oriented multi-agent architecture to interpret clinical narratives, extract symptoms, and manage patient interactions.

The symbolic reasoning module, grounded in medical ontologies (SYMP [4], DOID [5], and HPO [6]), performs transparent disease scoring and differential diagnosis. The module queries the medical knowledge graph (KG) to identify the most informative symptoms that distinguish among competing diagnoses. Based on this analysis, the dialogue-generator agent autonomously formulates targeted Yes/No follow-up questions that efficiently reduce diagnostic uncertainty, and maximize diagnostic information gain. Rather than relying on a single prediction from a fixed set of symptoms, the framework incrementally refines the differential diagnosis as new clinical evidence becomes available.

By combining LLMs with ontology reasoning, the proposed MAS supports an adaptive and explainable diagnostic workflow. Explainability is achieved through traceable decision-making: mathematical scoring functions rank diagnoses based on extracted evidence and ontology relationships. The system links each refinement with the contributing symptoms and scores, allowing clinicians to transparently interpret the reasoning behind the diagnosis. This enables a transparent, clinically meaningful interpretation of the diagnosis and its reasoning by clinicians.

In summary, our main contributions are as follows:

• ontology-guided multi-agent framework: We propose a neuro-symbolic framework that separates language understanding from clinical reasoning and grounds diagnostic scoring in expert-curated ontologies, reducing LLM hallucinations.

• interactive clinical reasoning: The system generates targeted follow-up questions for missing discriminative symptoms, reducing diagnostic uncertainty and compensating for up to 30% loss in initial symptom disclosure.

1^{1}Roxana Ramona Szomiu was supported by an Adobe Romania grant. Adrian Groza was supported by the Romanian Hub for Artificial Intelligence (HRIA), funded through the Smart Growth, Digitization and Financial Instruments Program (MySMIS No. 334906). The authors gratefully acknowledge the administrative and technical support provided by the Technical University of Cluj-Napoca during the development of this research.

• traceable explainability: Mathematical scoring functions rank diagnoses at each stage, enabling traceable diagnostic refinement.

References (24)