要約
実際のソフトウェア開発では、例外処理が不適切または欠落していると、コードの堅牢性と信頼性に重大な影響を与える可能性があります。
例外処理メカニズムでは、開発者は高水準に従って例外を検出、キャプチャ、管理する必要がありますが、多くの開発者はこれらのタスクに苦労しており、コードが脆弱になる原因となっています。
この問題はオープンソース プロジェクトで特に顕著であり、ソフトウェア エコシステムの全体的な品質に影響を与えます。
この課題に対処するために、コード内の例外処理を改善するための大規模言語モデル (LLM) の使用を検討します。
広範な分析を通じて、脆弱なコードの鈍感な検出、例外タイプの不正確なキャプチャ、および歪んだ処理ソリューションという 3 つの重要な問題を特定しました。
これらの問題は現実世界のリポジトリ全体に広がっており、堅牢な例外処理の実践がしばしば見落とされたり、誤って処理されたりしていることを示唆しています。
これに応えて、私たちは例外処理のための専門開発者の戦略からインスピレーションを得たマルチエージェント フレームワークである Seeker を提案します。
Seeker は、Scanner、Detector、Predator、Ranker、および Handler のエージェントを使用して、LLM による例外のより効果的な検出、キャプチャ、解決を支援します。
私たちの研究は、LLM を活用して例外処理の実践を強化することに関する最初の体系的な研究であり、将来のコードの信頼性向上に役立つ貴重な洞察を提供します。
要約(オリジナル)
In real world software development, improper or missing exception handling can severely impact the robustness and reliability of code. Exception handling mechanisms require developers to detect, capture, and manage exceptions according to high standards, but many developers struggle with these tasks, leading to fragile code. This problem is particularly evident in open source projects and impacts the overall quality of the software ecosystem. To address this challenge, we explore the use of large language models (LLMs) to improve exception handling in code. Through extensive analysis, we identify three key issues: Insensitive Detection of Fragile Code, Inaccurate Capture of Exception Types, and Distorted Handling Solutions. These problems are widespread across real world repositories, suggesting that robust exception handling practices are often overlooked or mishandled. In response, we propose Seeker, a multi agent framework inspired by expert developer strategies for exception handling. Seeker uses agents: Scanner, Detector, Predator, Ranker, and Handler to assist LLMs in detecting, capturing, and resolving exceptions more effectively. Our work is the first systematic study on leveraging LLMs to enhance exception handling practices, providing valuable insights for future improvements in code reliability.
arxiv情報
著者 | Xuanming Zhang,Yuxuan Chen,Yuan Yuan,Minlie Huang |
発行日 | 2024-10-09 14:45:45+00:00 |
arxivサイト | arxiv_id(pdf) |
提供元, 利用サービス
arxiv.jp, Google