{"id":2820,"date":"2026-01-28T14:11:51","date_gmt":"2026-01-28T05:11:51","guid":{"rendered":"https:\/\/www.sa.comp.isct.ac.jp\/?p=2820"},"modified":"2026-02-16T14:27:47","modified_gmt":"2026-02-16T05:27:47","slug":"%e4%bf%ae%e5%a3%ab%e8%ab%96%e6%96%87-structure-aware-enhanced-llms-via-knowledge-graphs-for-microservice-architecture-documentation","status":"publish","type":"post","link":"https:\/\/www.sa.comp.isct.ac.jp\/ja\/archives\/2820","title":{"rendered":"[\u4fee\u58eb\u8ad6\u6587] Structure-Aware Enhanced LLMs via Knowledge Graphs for Microservice Architecture Documentation"},"content":{"rendered":"<p>\u5c0f\u6797\u7814M2\u306eLin\u3055\u3093\u304c\u4fee\u58eb\u8ad6\u6587\u3092\u63d0\u51fa\u3057\u307e\u3057\u305f\uff0e<\/p>\n<p>\u984c\u76ee\uff1a<br \/>\n\u8ad6\u6587\u6982\u8981\uff1a Structure-Aware Enhanced LLMs via Knowledge Graphs for Microservice Architecture Documentation<\/p>\n<blockquote><p>Microservice documentation is critical yet hard to maintain due to its complex and distributed architecture. Developers use Large Language Models (LLM) with Retrieval Augmented Generation (RAG) to automate the creation and update of Microservice documentations, however, this approach has limitations. Standard RAG using naive semantic retrieval is blind to the high level, global structural dependencies among services and relies solely on semantic similarity. As a result, LLMs suffer from missing key dependencies and information during generation and lead to hallucinated and inaccurate documentation.<\/p>\n<p>In this thesis, we proposed a novel Graph enhanced structure-aware Retrieval Augmented Generation (RAG) framework that integrates Knowledge Graphs with Graph Neural Networks (GNN). We demonstrated the framework\u2019s effectiveness by comparing its documentation generation result against those generated with zero context baseline approach and standard semantic RAG approach across ten diverse microservice repositories.<br \/>\nWe proved that graph structure, when modeling the actual microservice architecture and provided to LLM as context, can improve the retrieval of structurally important dependencies that semantic search misses.<\/p>\n<p>Furthermore, we showed that our GNN based ranking strategy optimizes the context window utilization by promoting architecturally critical context. Our proposed approach effectively reduces LLM hallucinations and improves the quality across all quality metrics of the generated microservice documentations, addressing current limitations in this field.<\/p><\/blockquote>\n<div align=\"center\"><img decoding=\"async\" class=\"size-medium wp-image-2821\" src=\"http:\/\/www.sa.comp.isct.ac.jp\/wp-content\/uploads\/2026\/02\/lin-outline-300x169.png\" alt=\"\" height=\"169\" srcset=\"https:\/\/www.sa.comp.isct.ac.jp\/wp-content\/uploads\/2026\/02\/lin-outline-300x169.png 300w, https:\/\/www.sa.comp.isct.ac.jp\/wp-content\/uploads\/2026\/02\/lin-outline-1024x576.png 1024w, https:\/\/www.sa.comp.isct.ac.jp\/wp-content\/uploads\/2026\/02\/lin-outline-768x432.png 768w, https:\/\/www.sa.comp.isct.ac.jp\/wp-content\/uploads\/2026\/02\/lin-outline-1536x864.png 1536w, https:\/\/www.sa.comp.isct.ac.jp\/wp-content\/uploads\/2026\/02\/lin-outline-2048x1152.png 2048w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><img decoding=\"async\" class=\"size-medium wp-image-2822\" src=\"http:\/\/www.sa.comp.isct.ac.jp\/wp-content\/uploads\/2026\/02\/lin-rq-300x169.png\" alt=\"\" height=\"169\" srcset=\"https:\/\/www.sa.comp.isct.ac.jp\/wp-content\/uploads\/2026\/02\/lin-rq-300x169.png 300w, https:\/\/www.sa.comp.isct.ac.jp\/wp-content\/uploads\/2026\/02\/lin-rq-1024x575.png 1024w, https:\/\/www.sa.comp.isct.ac.jp\/wp-content\/uploads\/2026\/02\/lin-rq-768x432.png 768w, https:\/\/www.sa.comp.isct.ac.jp\/wp-content\/uploads\/2026\/02\/lin-rq-1536x863.png 1536w, https:\/\/www.sa.comp.isct.ac.jp\/wp-content\/uploads\/2026\/02\/lin-rq-2048x1151.png 2048w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><img decoding=\"async\" class=\"size-medium wp-image-2823\" src=\"http:\/\/www.sa.comp.isct.ac.jp\/wp-content\/uploads\/2026\/02\/lin-conclusion-300x167.png\" alt=\"\" height=\"169\" srcset=\"https:\/\/www.sa.comp.isct.ac.jp\/wp-content\/uploads\/2026\/02\/lin-conclusion-300x167.png 300w, https:\/\/www.sa.comp.isct.ac.jp\/wp-content\/uploads\/2026\/02\/lin-conclusion-1024x571.png 1024w, https:\/\/www.sa.comp.isct.ac.jp\/wp-content\/uploads\/2026\/02\/lin-conclusion-768x428.png 768w, https:\/\/www.sa.comp.isct.ac.jp\/wp-content\/uploads\/2026\/02\/lin-conclusion-1536x856.png 1536w, https:\/\/www.sa.comp.isct.ac.jp\/wp-content\/uploads\/2026\/02\/lin-conclusion-2048x1142.png 2048w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/div>\n<p>\u5c0f\u6797\u7814\u306e\u305d\u306e\u307b\u304b\u306e\u5b66\u4f4d\u8ad6\u6587\u7b49\u306e\u4e00\u89a7\u306f <a href=\"\/research\/theses\">\u3053\u3061\u3089<\/a> \u3067\u3059\uff0e<\/p>","protected":false},"excerpt":{"rendered":"<p>\u5c0f\u6797\u7814M2\u306eLin\u3055\u3093\u304c\u4fee\u58eb\u8ad6\u6587\u3092\u63d0\u51fa\u3057\u307e\u3057\u305f\uff0e \u984c\u76ee\uff1a \u8ad6\u6587\u6982\u8981\uff1a Structure-Aware Enhanced LLMs via Knowledge Graphs for Microservice Archite [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,3],"tags":[],"class_list":["post-2820","post","type-post","status-publish","format-standard","hentry","category-others","category-research"],"_links":{"self":[{"href":"https:\/\/www.sa.comp.isct.ac.jp\/ja\/wp-json\/wp\/v2\/posts\/2820","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sa.comp.isct.ac.jp\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sa.comp.isct.ac.jp\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sa.comp.isct.ac.jp\/ja\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sa.comp.isct.ac.jp\/ja\/wp-json\/wp\/v2\/comments?post=2820"}],"version-history":[{"count":4,"href":"https:\/\/www.sa.comp.isct.ac.jp\/ja\/wp-json\/wp\/v2\/posts\/2820\/revisions"}],"predecessor-version":[{"id":2827,"href":"https:\/\/www.sa.comp.isct.ac.jp\/ja\/wp-json\/wp\/v2\/posts\/2820\/revisions\/2827"}],"wp:attachment":[{"href":"https:\/\/www.sa.comp.isct.ac.jp\/ja\/wp-json\/wp\/v2\/media?parent=2820"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sa.comp.isct.ac.jp\/ja\/wp-json\/wp\/v2\/categories?post=2820"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sa.comp.isct.ac.jp\/ja\/wp-json\/wp\/v2\/tags?post=2820"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}