Using Large Language Models and Knowledge Graphs to Improve the Interpretability of Machine Learning Models in Manufacturing

arXiv cs.AI / 4/20/2026

📰 NewsIdeas & Deep AnalysisModels & Research

Key Points

  • The paper proposes using a Knowledge Graph (KG) alongside machine learning outputs to create clearer, more interpretable explanations for XAI in manufacturing.
  • It links domain-specific data, ML results, and their explanations in a structured way, then uses a selective retrieval mechanism to extract relevant KG triplets.
  • Retrieved triplets are fed into a Large Language Model (LLM) to generate user-friendly explanations tailored to users’ needs.
  • The approach is evaluated in a manufacturing setting using the XAI Question Bank, including newly designed complex, tailored questions, and is assessed with both quantitative (e.g., accuracy, consistency) and qualitative (e.g., clarity, usefulness) metrics.
  • The authors claim both theoretical value (dynamic LLM access to a KG for improved explainability) and practical applicability, demonstrating better decision support for manufacturing processes.

Abstract

Explaining Machine Learning (ML) results in a transparent and user-friendly manner remains a challenging task of Explainable Artificial Intelligence (XAI). In this paper, we present a method to enhance the interpretability of ML models by using a Knowledge Graph (KG). We store domain-specific data along with ML results and their corresponding explanations, establishing a structured connection between domain knowledge and ML insights. To make these insights accessible to users, we designed a selective retrieval method in which relevant triplets are extracted from the KG and processed by a Large Language Model (LLM) to generate user-friendly explanations of ML results. We evaluated our method in a manufacturing environment using the XAI Question Bank. Beyond standard questions, we introduce more complex, tailored questions that highlight the strengths of our approach. We evaluated 33 questions, analyzing responses using quantitative metrics such as accuracy and consistency, as well as qualitative ones such as clarity and usefulness. Our contribution is both theoretical and practical: from a theoretical perspective, we present a novel approach for effectively enabling LLMs to dynamically access a KG in order to improve the explainability of ML results. From a practical perspective, we provide empirical evidence showing that such explanations can be successfully applied in real-world manufacturing environments, supporting better decision-making in manufacturing processes.