A Hierarchical Graph Retrieval-Augmented Generation Framework for ROS Knowledge Question Answering
(Sichuan University of Science and Engineering, Yibin 644005, China)
Abstract
To address the problems of context fragmentation and macro-micro structure disconnection in graph retrieval for the Robot Operating System (ROS), this paper proposes a Hierarchical Graph Retrieval-Augmented Generation framework (HiGraphRAG). The framework repairs physical connectivity faults through global graph reorganization, constructs a bottom-up hierarchical summary index based on Gaussian Mixture Models (GMM), and adopts a perspective expansion mechanism to realize the accurate recall of multi-granularity structured knowledge. Experimental results on a self-built ROS dataset show that compared with the mainstream GraphRAG paradigm, HiGraphRAG achieves an overall generation quality win rate of 56.4% and a knowledge diversity win rate of 60.2%. The framework effectively bridges system information gaps and significantly improves the comprehensiveness and knowledge empowerment of large language models in complex reasoning.
Keywords
Retrieval-Augmented Generation; Knowledge Graph; robot operating system; hierarchical index; hierarchical retrieval
References
- [1] Lewis P,Perez E,Piktus A,et al. Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks [C]//Advances in Neural Information Processing Systems(S1049-5258),2020,33:9459-9474.
- [2] Gao Y F,Xiong Y,Gao X Y,et al. Retrieval-Augmented Generation for Large Language Models: A Survey [PP/OL].arXiv:2312.10997 [cs.CL].https://doi.org/10.48550/arXiv.2312.10997.
- [3] Christmann P,Weikum G. RAG-Based Question Answering over Heterogeneous Data and Text [PP/OL].arXiv:2412.07420 [cs.CL].https://doi.org/10.48550/arXiv.2412.07420.
- [4] Nguyen A T P,Hoang V D. Development of Code Evaluation System Based on Abstract Syntax Tree [J].Journal of Technical Education Science(S1859-1272),2024,19(Special Issue 01):15-24.
- [5] Wang Y C,Guo S X,Tan C W.From Code Generation to Software Testing: AI Copilot With Context-Based Retrieval-Augmented Generation [J].IEEE Software,2025,42(4):34-42.
- [6] Ao Shuai, Wang Jiahuan, Ma Bo Accurate localization method for mechanical fault sources based on knowledge graph relationship path inference and similarity discrimination [J]. Mechanical and Electrical Engineering, 2025, 42 (2): 387-396
- [7] Li M Z,Yang C H,Xu C J,et al. Context-Aware Inductive Knowledge Graph Completion with Latent Type Constraints and Subgraph Reasoning [C]//Proceedings of the AAAI Conference on Artificial Intelligence(S2159-5399),2025,39(11):12102-12111.
- [8] Zhu X R,Xie Y X,Liu Y, et al. Knowledge Graph-Guided Retrieval Augmented Generation [C]//Proceedings of the 2025 Conference of the Nations of the Americas Chapter of the Association for Computational Linguistics: Human Language Technologies,2025:8912-8924.
- [9] Kim S,Hwang S J,Kim J H,et al. ReGraphRAG: Reorganizing Fragmented Knowledge Graphs for Multi-Perspective Retrieval-Augmented Generation [C]//Findings of the Association for Computational Linguistics: EMNLP 2025,2025:5426-5443.
- [10] Edge D,Trinh H,Cheng N,et al. From Local to Global: A Graph RAG Approach to Query-Focused Summarization [PP/OLJ].arXiv:2404.16130 [cs.CL].https://doi.org/10.48550/arXiv.2404.16130.
- [11] Huang H,Huang Y,Yang J,et al. Retrieval-Augmented Generation with Hierarchical Knowledge [PP/OL].arXiv:2503.10150 [cs.CL].https://doi.org/10.48550/arXiv.2503.10150.
- [12] Zhao Yan, Cheng Kai Construction of a Regulatory Q&A Large Language Model Based on Retrieval Enhanced Generation Technology [J]. Computer Applications and Software, 2025, 42 (7): 192-198
- [13] Weng Jiayi, Zhai Jie, Xiong Hanrui, etc Intelligent Q&A System for Ancient Poetry Based on Knowledge Graph and RAG Technology [J]. Modern Information Technology, 2025, 9 (20): 115-120125
- [14] Wang Hongbiao, Zhao Jichun, Chen Lei Design and Implementation of an Intelligent Question Answering System for Animal Diseases Based on Knowledge Graph [J]. Computer Applications and Software, 2025, 42 (12): 29-34, 40
- [15] He Ziran, Jiang Bo, Wang Xiaolong Improving Retrieval Enhancement and LLM Thinking Chain Maintenance Strategy for Students [J]. Computer Applications and Software, 2025, 42 (3): 1-6, 83
- [16] Xu Zhihong, Tan Jinge, Wang Liqin, etc Knowledge Graph Embedding with Fusion Relationship Hierarchy [J]. Computer Applications and Software, 2024, 41 (2): 152-157228
- [17] Guo Z R,Xia L H,Yu Y H,et al. LightRAG: Simple and Fast Retrieval-Augmented Generation [PP/OL].arXiv:2410.05779 [cs.IR].https://doi.org/10.48550/arXiv.2410.05779.
- [18] Frana P L,Misa T J. An Interview with Edsger W. Dijkstra [J].Communications of the ACM(S0001-0782),2010,53(8):41-47.
- [19] Ehrmann M,Hamdi A,Pontes E L,et al. Named Entity Recognition and Classification in Historical Documents: A Survey [J].ACM Computing Surveys(S0360-0300),2023,56(2):1-28.
About the authors
Shi Yalong (1999-), male, Han ethnicity, from Yichang, Hubei, master's student, research interests include large models; Corresponding author: Zhao Jun (1984-), male, Han ethnicity, from Zigong, Sichuan, associate professor, doctoral student, research interests include networked control systems and time-varying formation control of multi-agent systems; Hou Jing (1968-), male, Han ethnicity, from Zigong, Sichuan, professor, doctoral student, research interests include artificial intelligence and intelligent detection.