{"id":3027,"date":"2026-03-10T10:40:09","date_gmt":"2026-03-10T01:40:09","guid":{"rendered":"https:\/\/www.sa.comp.isct.ac.jp\/?p=3027"},"modified":"2026-05-14T10:57:35","modified_gmt":"2026-05-14T01:57:35","slug":"%e7%a0%94%e7%a9%b6%e4%bc%9a-structure-aware-enhanced-llms-via-knowledge-graphs-for-microservice-architecture-documentation","status":"publish","type":"post","link":"https:\/\/www.sa.comp.isct.ac.jp\/en\/archives\/3027","title":{"rendered":"[Tech. Repo] Structure-Aware Enhanced LLMs via Knowledge Graphs for Microservice Architecture Documentation"},"content":{"rendered":"<p>Mr. Lin, a second-year master student in our research group, presented his research at the 222nd meeting of the IPSJ Special interest group of Software Engineering (SIGSE), held over two days starting March 9 at the Ookayama Campus of our university. This presentation is based on a portion of his master thesis.<\/p>\n<blockquote><p>\nAuthors\uff1aQiao Lin, Profir-Petru Par?achi\uff0cTakashi Kobayashi\uff08Science Tokyo\uff09<br \/>\nTitle\uff1aStructure-Aware Enhanced LLMs via Knowledge Graphs for Microservice Architecture Documentation<br \/>\nPublication\uff1a The SIG Technical Reports of IPSJ,  Vol. 2026-SE-222, No. 20, pp.1-8.  <a href=\"https:\/\/ipsj.ixsq.nii.ac.jp\/records\/2007720\">[Link]<\/a>,  Mar. 9, 2026.<\/p>\n<p>Abstract\uff1a<br \/>\nMicroservice documentation is critical yet hard to maintain due to its complex and distributed architecture. Developers use Large Language Models (LLMs) with Retrieval Augmented Generation (RAG) to automate the creation and update of microservice documentations; however, this approach has limitations. Standard RAG is blind to the high level, global structural dependencies among services and relies solely on semantic similarity (Structural Blindness). As a result, LLMs suffer from missing key dependencies and information during generation and leading to inaccurate documentation. We introduce a Graph RAG framework that integrates structural awareness into the generation process. A Knowledge Graph (KG) and a GNN are used to help retrieve the most relevant dependencies for the LLM during generation. This ensures the generated documentation is both semantically coherent and architecturally complete, addressing some of the current limitation. As the result, we improve on three metrics over our baselines: Correctness (0.66-1.64), Completeness (0.86-2.24), and Faithfulness (0.64-1.62).\n<\/p><\/blockquote>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/wp-content\/uploads\/\" alt=\"\" width=\"590\" height=\"369\" class=\"alignnone size-large wp-image-2899\" \/><\/p>","protected":false},"excerpt":{"rendered":"<p>Mr. Lin, a second-year master student in our research group, presented his research at the 222nd meeting of th [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-3027","post","type-post","status-publish","format-standard","hentry","category-research"],"_links":{"self":[{"href":"https:\/\/www.sa.comp.isct.ac.jp\/en\/wp-json\/wp\/v2\/posts\/3027","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sa.comp.isct.ac.jp\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sa.comp.isct.ac.jp\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sa.comp.isct.ac.jp\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sa.comp.isct.ac.jp\/en\/wp-json\/wp\/v2\/comments?post=3027"}],"version-history":[{"count":2,"href":"https:\/\/www.sa.comp.isct.ac.jp\/en\/wp-json\/wp\/v2\/posts\/3027\/revisions"}],"predecessor-version":[{"id":3031,"href":"https:\/\/www.sa.comp.isct.ac.jp\/en\/wp-json\/wp\/v2\/posts\/3027\/revisions\/3031"}],"wp:attachment":[{"href":"https:\/\/www.sa.comp.isct.ac.jp\/en\/wp-json\/wp\/v2\/media?parent=3027"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sa.comp.isct.ac.jp\/en\/wp-json\/wp\/v2\/categories?post=3027"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sa.comp.isct.ac.jp\/en\/wp-json\/wp\/v2\/tags?post=3027"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}