KG2QA: Knowledge Graph-enhanced Retrieval-augmented Generation for Communication Standards Question Answering

Zhongze Luo, Wenfang Wan, Tianle Zhang, Dan Wang, Xiaoying TangarXiv 2025 · DOI

Abstract

The rapid evolution of communication technologies has led to an explosion of standards, rendering traditional expert-dependent consultation methods inefficient and slow. To address this challenge, we propose KG2QA, a question answering (QA) framework for communication standards that integrates fine-tuned large language models (LLMs) with a domain-specific knowledge graph (KG) via a retrieval-augmented generation (RAG) pipeline. We construct a high-quality dataset of 6,587 QA pairs from ITU-T recommendations and fine-tune Qwen2.5-7B-Instruct, achieving significant performance gains: BLEU-4 increases from 18.86 to 66.90, outperforming both the base model and Llama-3-8B-Instruct. A structured KG containing 13,906 entities and 13,524 relations is built using LLM-assisted triple extraction based on a custom ontology. In our KG-RAG pipeline, the fine-tuned LLMs first retrieves relevant knowledge from KG, enabling more accurate and factually grounded responses. Evaluated by DeepSeek-V3 as a judge, the KG-enhanced system improves performance across five dimensions, with an average score increase of 2.26%, demonstrating superior factual accuracy and relevance. Integrated with Web platform and API, KG2QA delivers an efficient and interactive user experience.

Introduction

The telecommunications industry is currently navigating an "explosion" of technical standards, primarily those issued by the ITU-T. For engineers, consulting these documents is a slow, manual process requiring deep domain expertise. While general-purpose Large Language Models (LLMs) like ChatGPT are proficient in natural language tasks, they often struggle with niche technical domains, lacking specific terminology or "hallucinating" incorrect technical specifications.

Standard Retrieval-Augmented Generation (RAG) systems, which typically search through raw text snippets, also fall short when dealing with complex, interconnected technical relationships. To bridge this gap, we developed KG2QA, a framework designed to make AI both a domain expert and a reliable librarian for complex communication standards.

Methodology

The KG2QA framework employs a three-pronged approach to enhance question-answering performance: domain-specific fine-tuning, knowledge graph construction, and a specialized KG-RAG pipeline.

The overall architecture of KG2QA, illustrating the LLM fine-tuning path, Knowledge Graph path, and the integrated RAG QA system.

Domain-Specific Fine-Tuning

We utilized Low-Rank Adaptation (LoRA) to fine-tune Qwen2.5-7B-Instruct and Llama-3-8B-Instruct on a specialized dataset of communication standard QA pairs. This process allowed the models to internalize the specific "language" and formatting conventions of telecom standards.

Knowledge Graph Construction

Rather than relying solely on unstructured text, we built a structured Knowledge Graph (KG). Using an LLM-assisted pipeline, we extracted 13,906 entities and 13,524 relations from 288 ITU-T recommendation files. The KG is based on a custom ontology featuring six entity types (e.g., Identifier, Action, Function) and ten relationship types (e.g., Rely on, Influence).

KG-RAG Pipeline

In the KG-RAG pipeline, user queries trigger a search for relevant structured knowledge within the KG (hosted on Neo4j). This structured context is then provided to the fine-tuned LLM, anchoring its generation in verified facts rather than just statistical word patterns.

Datasets and Evaluation

The study introduced several key data components:

  • ITU-T QA Dataset: A high-quality collection of 6,587 QA pairs extracted from ITU-T recommendations (G, V, and X series) in Alpaca format.
  • Source Documents: 288 PDF files from the ITU-T series served as the foundation for both the QA pairs and the KG triples.

To evaluate the system, we moved beyond traditional metrics like BLEU and ROUGE. We employed DeepSeek-V3 as an impartial judge to assess answers based on similarity, fluency, coherence, relevance, and factual accuracy. This revealed that the KG-enhanced system was significantly more accurate, even when its wording differed from the reference.

Key Results and Discussion

The implementation of KG2QA yielded substantial improvements across multiple metrics:

  • Performance Leap: The Qwen2.5-7B model's BLEU-4 score rose from 18.86 to 66.90 after fine-tuning.
  • KG Added Value: Integrating the KG provided an additional 2.26% average score increase across all evaluation dimensions compared to standard text-based RAG.
  • Efficiency: Inference speed increased from 0.15 to 0.87 samples per second on the Qwen series, as the model became more "decisive" within the domain.
The KG2QA user interface, demonstrating a multi-turn dialogue where the system uses Knowledge Graph context to answer technical questions about IPv6.

As shown in the interface, the system provides clear, factually grounded answers by explicitly referencing the relationships found in the Knowledge Graph, such as the connection between IPv6 and specific ITU-T recommendations.

Conclusion

KG2QA demonstrates that while fine-tuning provides a massive baseline boost in domain vocabulary, a Knowledge Graph provides the necessary factual guardrails for high-stakes technical environments. Future work will focus on scaling the KG to include tens of thousands of global standards and developing methods for dynamic, automated updates as standards evolve.

The project is open-sourced at: https://github.com/luozhongze/KG2QA.

Summary updated

BibTeX
@misc{luo2025kg,
  author = {Zhongze Luo and Wenfang Wan and Tianle Zhang and Dan Wang and Xiaoying Tang},
  title = {{KG2QA: Knowledge Graph-enhanced Retrieval-augmented Generation for Communication Standards Question Answering}},
  year = {2025},
  eprint = {2506.07037},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.07037},
  howpublished = {arXiv},
}
Figure