Enhancing Domain-Specific Language Models with Knowledge Graph Injection and Graph Attention Networks

Authors

  • Jean Dupont Department of Mathematical and Computational Sciences, University of Toronto Mississauga, Mississauga ON L5L 1C6, Canada Author
  • Marie Laurent Department of Mathematical and Computational Sciences, University of Toronto Mississauga, Mississauga ON L5L 1C6, Canada Author
  • Michael Reynolds Department of Mathematical and Computational Sciences, University of Toronto Mississauga, Mississauga ON L5L 1C6, Canada Author

DOI:

https://doi.org/10.71465/fair603

Keywords:

Knowledge Graphs, Graph Attention Networks, Large Language Models, Domain Adaptation

Abstract

The rapid evolution of Large Language Models has revolutionized natural language processing, yet these models frequently exhibit limitations when deployed in specialized high-stakes domains such as medicine, law, and engineering. A primary deficiency is the propensity for hallucination and the inability to access up-to-date, structured factual knowledge that was not present or emphasized during the pre-training phase. This paper proposes a novel architecture that integrates Domain-Specific Knowledge Graphs with pre-trained language models utilizing Graph Attention Networks. By employing a dual-stream mechanism that processes textual input alongside structured graph data, we facilitate a deep injection of semantic relationships into the latent space of the language model. The Graph Attention Network component dynamically weighs the importance of neighboring entities within the knowledge graph, allowing the model to attend to the most relevant factual context corresponding to the input query. We evaluate this approach on two distinct domain-specific datasets involving biomedical and legal texts. Our experimental results demonstrate that this injection mechanism significantly outperforms standard fine-tuning approaches in terms of factual accuracy and reasoning capabilities. The proposed method offers a scalable pathway toward creating more reliable and logically sound domain-specific artificial intelligence systems.

Downloads

Download data is not yet available.

Downloads

Published

2026-01-30