AIDB Daily Papers
大規模言語モデルによるソフトウェア設計パターンの検出パイロットスタディ:実証的評価
※ 日本語タイトル・ポイントはAIによる自動生成です。正確な内容は原論文をご確認ください。
ポイント
- 本研究では、大規模言語モデル(LLM)を用いてソースコード中のソフトウェア設計パターンを自動検出する能力を評価した。
- LLMによる設計パターン検出は、開発者の理解促進や品質問題の早期発見に繋がる可能性があり、従来手法と比較して新しいアプローチである。
- LLMは設計パターン検出に有望な結果を示し、特にNextCoderとGemma 3が高精度であり、アンサンブル学習で効率が向上した。
Abstract
Design patterns provide reusable solutions to recurring software design problems. Automatically detecting these patterns in source code can help bootstrap new developers' understanding of unfamiliar software system architectures, and can help experienced developers to quickly identify and rectify potential quality issues. While many prior research works have explored graph based and machine-learning based detection techniques, this work evaluates the design pattern recognition capabilities of four Large Language Models and two ensemble approaches consisting three out of the four models. We also compare their performance when prompted with a) Source code, b) PlantUML representation of source code, and c) Text-based descriptions of the source code. We investigate the detection of five design patterns: singleton, adapter, bridge, composite and decorator. Our preliminary results indicate that LLMs show promise for automatically detecting design patterns, with NextCoder and Gemma 3 demonstrating comparatively higher accuracy than other models evaluated, and the ensemble approaches enhancing the overall efficiency of design pattern detection. We identify several directions for future work.
Paper AI Chat
この論文のPDF全文を対象にAIに質問できます。
質問の例: