Are Diagnostic Concepts Within the Reach of LLMs?

Anna Sztyber-Betley, Elodie Chanthery, Louise Travé-Massuyès, Silke Merkelbach, Karol Kukla, Maxence Glotin, Alexander Diedrich, Oliver Niggemann

Abstract

Model-Based Diagnosis (MBD) is a robust framework for identifying faults in complex systems, yet it is often hindered by the "modeling bottleneck"—the high cost and expertise required to create formal mathematical models. This paper investigates whether the latest generation of reasoning-focused Large Language Models (LLMs), such as OpenAI’s o1 and o3-mini, can automate the structural analysis and diagnostic reasoning required for MBD. By evaluating these models on a benchmark of arithmetic and logic circuits, the study finds that while LLMs can successfully perform symbolic logic tasks like generating incidence matrices and identifying Minimal Structurally Overdetermined (MSO) sets, they currently lack the 100% reliability necessary for safety-critical industrial applications.

Introduction

Identifying faulty components in complex engineering systems requires comparing observed behavior against a formal model. While MBD offers a powerful solution, the manual effort involved in model creation and structural analysis remains a significant barrier. This research explores the potential of LLMs to bridge this gap by automating Structural Analysis—a technique that uses an "incidence matrix" to identify redundant equation subsets, known as Minimal Structurally Overdetermined (MSO) sets, which serve as indicators of system failure.

Methodology

The researchers developed a dual-path methodology to test LLM capabilities across different system types. The "Broad Approach" focuses on continuous systems described by differential equations, primarily targeting MSO set generation. The "Dedicated Approach" is tailored for arithmetic and logic circuits, extending the pipeline to include conflict evaluation and the generation of final diagnoses.

Methodological pipeline for LLM-based diagnosis.

The diagnostic pipeline involves several prompting stages:

  1. Incidence Matrix Generation: Mapping system equations to their constituent variables.
  2. MSO Generation: Identifying minimal subsets of equations with structural redundancy.
  3. Conflict Generation: Comparing MSOs against observations to detect inconsistencies.
  4. Diagnosis Generation: Applying "minimal hitting set" logic to pinpoint likely failing components.

Experimental Setup

The models were evaluated using a benchmark of 23 manually generated arithmetic and logic circuits. These circuits ranged in complexity from simple 3-variable systems to more intricate designs featuring 29 variables and 15 relations, including components like adders, multipliers, and various logic gates. By using novel, manually created examples, the researchers ensured that the results reflected the models' reasoning capabilities rather than memorized training data.

Results and Discussion

The study compared three OpenAI models: gpt-4o-mini (with code interpreter), o1, and o3-mini. The reasoning-focused "o-series" models demonstrated a clear advantage in handling the rigid symbolic requirements of structural analysis.

Example of structural analysis and diagnosis generation.

Key Performance Metrics

  • Structural Accuracy: Both o1 and o3-mini achieved perfect accuracy (F1 score of 1.0) in generating incidence matrices, whereas gpt-4o-mini struggled with irrelevant variables.
  • Diagnostic Reasoning: Performance decreased as tasks became more combinatorially complex. For diagnosis generation, o3-mini led with an F1 score of 0.784, highlighting the difficulty of the "minimal hitting set" logic.
  • Complexity Scaling: An inverse relationship was observed between system size and model performance. As the number of relations increased, the likelihood of missing MSOs or generating "hallucinated" diagnoses rose significantly.

Conclusion

While reasoning LLMs represent a significant leap forward in automating diagnostic concepts, they are not yet ready for autonomous use in safety-critical environments. Their stochastic nature and the potential for false negatives or positives pose risks that traditional algorithmic tools, like the Fault Diagnosis Toolbox (FDT), do not. Future research will focus on multi-modal inputs—allowing LLMs to interpret schematics directly—and integrating LLMs with specialized diagnostic servers via protocols like the Model Context Protocol (MCP) to combine LLM reasoning with algorithmic rigor.

Summary updated

BibTeX
@inproceedings{sztyberbetley2025are,
  author = {Anna Sztyber-Betley and Elodie Chanthery and Louise Travé-Massuyès and Silke Merkelbach and Karol Kukla and Maxence Glotin and Alexander Diedrich and Oliver Niggemann},
  title = {{Are Diagnostic Concepts Within the Reach of LLMs?}},
  booktitle = {DX},
  year = {2025},
  doi = {10.4230/oasics.dx.2025.2},
}
Figure