Using Large Language Models and Knowledge Graphs to Improve the Interpretability of Machine Learning Models in Manufacturing
Thomas Bayer, Alexander Lohr, Sarah Wei{\ss}, Bernd Michelberger, Wolfram H\"opken

TL;DR
This paper introduces a method combining Large Language Models and Knowledge Graphs to improve the interpretability of machine learning models in manufacturing, providing clearer explanations and supporting better decision-making.
Contribution
It presents a novel approach for LLMs to dynamically access KGs for enhanced ML explainability, validated through real-world manufacturing case studies.
Findings
Effective retrieval of relevant KG triplets improves explanation quality.
Quantitative metrics show increased accuracy and consistency in explanations.
Qualitative analysis indicates explanations are clearer and more useful for users.
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
