Knowledge Graphs as Context Sources for LLM-Based Explanations of Learning Recommendations

Hasan Abu-Rasheed,Christian Weber,Madjid Fathi
2024-03-05
Abstract:In the era of personalized education, the provision of comprehensible explanations for learning recommendations is of a great value to enhance the learner's understanding and engagement with the recommended learning content. Large language models (LLMs) and generative AI in general have recently opened new doors for generating human-like explanations, for and along learning recommendations. However, their precision is still far away from acceptable in a sensitive field like education. To harness the abilities of LLMs, while still ensuring a high level of precision towards the intent of the learners, this paper proposes an approach to utilize knowledge graphs (KG) as a source of factual context, for LLM prompts, reducing the risk of model hallucinations, and safeguarding against wrong or imprecise information, while maintaining an application-intended learning context. We utilize the semantic relations in the knowledge graph to offer curated knowledge about learning recommendations. With domain-experts in the loop, we design the explanation as a textual template, which is filled and completed by the LLM. Domain experts were integrated in the prompt engineering phase as part of a study, to ensure that explanations include information that is relevant to the learner. We evaluate our approach quantitatively using Rouge-N and Rouge-L measures, as well as qualitatively with experts and learners. Our results show an enhanced recall and precision of the generated explanations compared to those generated solely by the GPT model, with a greatly reduced risk of generating imprecise information in the final learning explanation.
Artificial Intelligence
What problem does this paper attempt to address?
This paper aims to address the problem of providing accurate and understandable explanations for learning recommendation automatically. Current Large Language Models (LLMs) lack precision in generating such explanations and may produce erroneous information. The paper proposes using a Knowledge Graph (KG) as a factual context source to reduce LLMs' erroneous generation (hallucinations), ensuring the accuracy of explanations while maintaining educational relevance. By involving experts, text templates are designed and filled in with LLMs to improve the recall and precision of generating explanations. Experimental results show that combining KG with the GPT model can generate more accurate explanations and reduce the risk of irrelevant or inaccurate information compared to using the GPT model alone.