HSG-RAG: Hierarchical Knowledge Base Construction for Embedded System Development
Customization is a fundamental aspect of embedded system development, requiring developers to acquire extensive domain-specific knowledge from technical documents. However, the sheer volume of these documents, coupled with the intricate relationships between their contents, makes it challenging to efficiently retrieve the necessary information. This challenge highlights the need for a structured approach to organize domain knowledge, with explicit representation of interrelationships. Moreover, while advanced large language models (LLMs) show promise in aiding embedded system development, they often lack the specialized knowledge needed to address domain-specific queries effectively. In this article, we present HSG-RAG, a knowledge base construction and retrieval method tailored for embedded system development that leverages knowledge graphs to represent the hierarchical structure within technical documentation. Unlike prior retrieval-augmented generation (RAG) or GraphRAG-based approaches, which build the index either rely on semantic similarity or keyword co-occurrence, HSG-RAG captures the inherited dependency and hierarchical relationships in the documents, which benefits the retrieval in both performance and efficiency. We also introduce a benchmark for evaluating the effectiveness of RAG systems in solving real-world challenges in embedded systems, particularly for multi-hop question answering. Experimental results show that HSG-RAG outperforms both RAG and GraphRAG, generating more specific and concise responses.
Authors
- Yanping Feng (ORCID: https://orcid.org/0000-0003-4723-5408)
- A. Q. Chen
- Wentao Pan (ORCID: https://orcid.org/0000-0001-7868-5829)
- Jiangli Huang (ORCID: https://orcid.org/0000-0001-9111-8474)
- Hailin Xu (ORCID: https://orcid.org/0009-0000-7570-4078)
- Zhouyang Lu (ORCID: https://orcid.org/0009-0005-6159-6914)
- Junyi Zhang
- Siyuan Tang (ORCID: https://orcid.org/0009-0004-8200-8862)
Institutions
- Fudan University (CN)
Publication Details
- Journal
- ACM Transactions on Design Automation of Electronic Systems
- Published
- 2025-04-21
- DOI
- https://doi.org/10.1145/3731680
- Citations
- 1
- Primary Topic
- Model-Driven Software Engineering Techniques
- Type
- article
- Field-Weighted Citation Impact
- 2.31