{"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\/ja\/archives\/3027","title":{"rendered":"[\u7814\u7a76\u4f1a] Structure-Aware Enhanced LLMs via Knowledge Graphs for Microservice Architecture Documentation"},"content":{"rendered":"<p>\u5c0f\u6797\u7814M2\u306eLin\u3055\u3093\u304c\uff0c3\u67089\u65e5\u304b\u30892\u65e5\u9593\u3067\u672c\u5b66\u5927\u5ca1\u5c71\u30ad\u30e3\u30f3\u30d1\u30b9\u306b\u3066\u958b\u50ac\u3055\u308c\u305f\u60c5\u5831\u51e6\u7406\u5b66\u4f1a\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u5de5\u5b66\u7814\u7a76\u4f1a3\u6708\u7814\u7a76\u96c6\u4f1a\u306b\u3066\u7814\u7a76\u767a\u8868\u3092\u884c\u3044\u307e\u3057\u305f\u3002\u3053\u306e\u7814\u7a76\u306fLin\u3055\u3093\u306e\u4fee\u58eb\u8ad6\u6587\u306e\u4e00\u90e8\u3092\u307e\u3068\u3081\u305f\u3082\u306e\u3067\u3059\uff0e<\/p>\n<blockquote><p>\n\u8457\u8005\uff1aQiao Lin, Profir-Petru Par?achi\uff0cTakashi Kobayashi\uff08Science Tokyo\uff09<br \/>\n\u984c\u76ee\uff1aStructure-Aware Enhanced LLMs via Knowledge Graphs for Microservice Architecture Documentation<br \/>\n\u63b2\u8f09\u8a8c\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>\u6982\u8981\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).<\/p>\n<p>\u30de\u30a4\u30af\u30ed\u30b5\u30fc\u30d3\u30b9\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u306f\u8907\u96d1\u304b\u3064\u5206\u6563\u7684\u3067\u3042\u308b\u305f\u3081\uff0c\u305d\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u7dad\u6301\u3059\u308b\u3053\u3068\u306f\u91cd\u8981\u3067\u3042\u308b\u4e00\u65b9\u3067\u5bb9\u6613\u3067\u306f\u306a\u3044\uff0e\u958b\u767a\u8005\u306f\uff0c\u30de\u30a4\u30af\u30ed\u30b5\u30fc\u30d3\u30b9\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306e\u751f\u6210\u304a\u3088\u3073\u66f4\u65b0\u3092\u81ea\u52d5\u5316\u3059\u308b\u305f\u3081\u306b\uff0cRetrieval Augmented Generation\uff08RAG\uff09\u3092\u7d44\u307f\u5408\u308f\u305b\u305f\u5927\u898f\u6a21\u8a00\u8a9e\u30e2\u30c7\u30eb\uff08LLM\uff09\u3092\u5229\u7528\u3057\u3066\u3044\u308b\uff0e\u3057\u304b\u3057\uff0c\u3053\u306e\u30a2\u30d7\u30ed\u30fc\u30c1\u306b\u306f\u4f9d\u7136\u3068\u3057\u3066\u9650\u754c\u304c\u5b58\u5728\u3059\u308b\uff0e\u6a19\u6e96\u7684\u306aRAG\u306f\uff0c\u30b5\u30fc\u30d3\u30b9\u9593\u306e\u9ad8\u6b21\u304b\u3064\u30b0\u30ed\u30fc\u30d0\u30eb\u306a\u69cb\u9020\u7684\u4f9d\u5b58\u95a2\u4fc2\u3092\u8003\u616e\u3067\u304d\u305a\uff0c\u610f\u5473\u7684\u985e\u4f3c\u5ea6\u306e\u307f\u306b\u4f9d\u62e0\u3059\u308b\u3068\u3044\u3046\u300c\u69cb\u9020\u7684\u76f2\u76ee\u6027\u300d\u3092\u6709\u3057\u3066\u3044\u308b\uff0e\u305d\u306e\u7d50\u679c\uff0cLLM\u306f\u751f\u6210\u904e\u7a0b\u306b\u304a\u3044\u3066\u91cd\u8981\u306a\u4f9d\u5b58\u95a2\u4fc2\u3084\u60c5\u5831\u3092\u53d6\u308a\u3053\u307c\u3057\uff0c\u4e0d\u6b63\u78ba\u306a\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u751f\u6210\u306b\u3064\u306a\u304c\u308b\uff0e<br \/>\n\u672c\u7814\u7a76\u3067\u306f\uff0c\u751f\u6210\u30d7\u30ed\u30bb\u30b9\u306b\u69cb\u9020\u7684\u77e5\u8b58\u3092\u7d44\u307f\u8fbc\u3080Graph RAG\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3092\u63d0\u6848\u3059\u308b\uff0e\u672c\u624b\u6cd5\u3067\u306f\uff0cKnowledge Graph\uff08KG\uff09\u304a\u3088\u3073GNN\u3092\u7528\u3044\u3066\uff0c\u751f\u6210\u6642\u306bLLM\u304c\u53c2\u7167\u3059\u3079\u304d\u6700\u3082\u95a2\u9023\u6027\u306e\u9ad8\u3044\u4f9d\u5b58\u95a2\u4fc2\u3092\u53d6\u5f97\u3059\u308b\uff0e\u3053\u308c\u306b\u3088\u308a\uff0c\u751f\u6210\u3055\u308c\u308b\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u304c\u610f\u5473\u7684\u6574\u5408\u6027\u3068\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u7684\u5b8c\u5168\u6027\u306e\u53cc\u65b9\u3092\u6e80\u305f\u3059\u3088\u3046\u306b\u306a\u308a\uff0c\u5f93\u6765\u624b\u6cd5\u306e\u9650\u754c\u306e\u4e00\u90e8\u3092\u514b\u670d\u3059\u308b\uff0e\u305d\u306e\u7d50\u679c\uff0c\u63d0\u6848\u624b\u6cd5\u306f\u30d9\u30fc\u30b9\u30e9\u30a4\u30f3\u3068\u6bd4\u8f03\u3057\u3066\uff0cCorrectness\uff080.66\u20131.64\uff09\uff0cCompleteness\uff080.86\u20132.24\uff09\uff0cFaithfulness\uff080.64\u20131.62\uff09\u306e3\u6307\u6a19\u306b\u304a\u3044\u3066\u6539\u5584\u3092\u9054\u6210\u3057\u305f\uff0e\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>\u5c0f\u6797\u7814M2\u306eLin\u3055\u3093\u304c\uff0c3\u67089\u65e5\u304b\u30892\u65e5\u9593\u3067\u672c\u5b66\u5927\u5ca1\u5c71\u30ad\u30e3\u30f3\u30d1\u30b9\u306b\u3066\u958b\u50ac\u3055\u308c\u305f\u60c5\u5831\u51e6\u7406\u5b66\u4f1a\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u5de5\u5b66\u7814\u7a76\u4f1a3\u6708\u7814\u7a76\u96c6\u4f1a\u306b\u3066\u7814\u7a76\u767a\u8868\u3092\u884c\u3044\u307e\u3057\u305f\u3002\u3053\u306e\u7814\u7a76\u306fLin\u3055\u3093\u306e\u4fee\u58eb\u8ad6\u6587\u306e\u4e00\u90e8\u3092\u307e\u3068\u3081\u305f\u3082\u306e\u3067\u3059\uff0e \u8457\u8005\uff1aQi [&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\/ja\/wp-json\/wp\/v2\/posts\/3027","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=3027"}],"version-history":[{"count":2,"href":"https:\/\/www.sa.comp.isct.ac.jp\/ja\/wp-json\/wp\/v2\/posts\/3027\/revisions"}],"predecessor-version":[{"id":3031,"href":"https:\/\/www.sa.comp.isct.ac.jp\/ja\/wp-json\/wp\/v2\/posts\/3027\/revisions\/3031"}],"wp:attachment":[{"href":"https:\/\/www.sa.comp.isct.ac.jp\/ja\/wp-json\/wp\/v2\/media?parent=3027"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sa.comp.isct.ac.jp\/ja\/wp-json\/wp\/v2\/categories?post=3027"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sa.comp.isct.ac.jp\/ja\/wp-json\/wp\/v2\/tags?post=3027"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}