菜单

关于 🐙 GitHub
arXiv 提交日期: 2026-04-27
📄 Abstract - FGDM: Reasoning Aware Multi-Agentic Framework for Software Bug Detection using Chain of Thought and Tree of Thought Prompting

Deep Learning methods are becoming prominent in automated software bug detection; however, they lack the global understanding of the given code. Consequently, their performance tends to degrade, especially when they are applied to large interconnected code bases or complex modular programs. Recently, Large Language Models (LLMs) have proven to be effective at capturing dependencies among multiple interconnected modules in the codebase. This motivated us to propose the Flow-Graph-Driven Multi-Agent Framework (FGDM), which is composed of four agents that operate in a sequential manner. The framework converts the received code to a flow graph, identifies the erroneous segments, and further generates the repaired code. All the employed agents utilize Chain-of-Thought (COT) and Tree-of-Thoughts (TOT) prompts. Additionally, we also integrated with the FAISS vector database to retrieve similar previous bugs and their repairs. We demonstrated the efficacy of the proposed framework over 100 programs from several projects, including Ansible, Black, FastAPI, Keras, Luigi, Matplotlib, Pandas, Scrapy, SpaCy, and Tornado in both C and Python programs. Our experiments demonstrate that the FGDM outperforms the extant approaches and yielded reductions with a mean of 24.33 and 8.37 in Levenshtein distance and similarities of 0.951 and 0.974 in cosine similarity for Python and C, respectively.

顶级标签: agents llm
详细标签: bug detection reasoning chain-of-thought tree-of-thought multi-agent framework 或 搜索:

FGDM:基于思维链与思维树的推理感知多智能体软件缺陷检测框架 / FGDM: Reasoning Aware Multi-Agentic Framework for Software Bug Detection using Chain of Thought and Tree of Thought Prompting


1️⃣ 一句话总结

本文提出一个由四个顺序协作的智能体组成的框架FGDM,它通过将代码转化为流程图、利用思维链和思维树推理技术分析错误,并借助向量数据库检索相似历史修复案例,在多个真实项目的C和Python代码缺陷检测和修复任务中,显著降低了代码修改距离并提高了修复相似度。

源自 arXiv: 2604.24831