DepRadar:深度学习库中基于上下文的缺陷影响分析代理协调
DepRadar: Agentic Coordination for Context Aware Defect Impact Analysis in Deep Learning Libraries
AI总结:
DepRadar通过代理协调框架实现深度学习库中缺陷影响分析,结合静态分析与领域规则提高准确性和可解释性,有效识别受影响程序。
摘要:
深度学习库如Transformer和Megatron现在被广泛应用于现代AI程序中。然而,当这些库引入缺陷,从静默计算错误到细微的性能退化时,下游用户往往难以评估其自身程序是否受影响。这种影响分析不仅需要理解缺陷语义,还需检查客户端代码是否满足复杂的触发条件,包括配置标志、运行时环境和间接API使用。我们提出了DepRadar,一种用于细粒度缺陷和影响分析的代理协调框架,用于DL库更新。DepRadar在三个步骤中协调四个专门的代理:1. PR Miner和Code Diff Analyzer从提交或拉取请求中提取结构化的缺陷语义,2. Orchestrator Agent将这些信号综合成统一的缺陷模式并生成触发条件,3. Impact Analyzer检查下游程序以确定缺陷是否可被触发。为了提高准确性和可解释性,DepRadar集成了静态分析与DL特定的领域规则进行缺陷推理和客户端侧跟踪。我们在两个代表性DL库的157个PR和70个提交上评估DepRadar。它在缺陷识别上实现了90%的精度,并生成高质量的结构化字段(平均字段分数1.6)。在122个客户端程序上,DepRadar在受影响案例的识别上实现了90%的召回率和80%的精度,显著优于其他基线方法。
英文摘要:
Deep learning libraries like Transformers and Megatron are now widely adopted in modern AI programs. However, when these libraries introduce defects, ranging from silent computation errors to subtle performance regressions, it is often challenging for downstream users to assess whether their own programs are affected. Such impact analysis requires not only understanding the defect semantics but also checking whether the client code satisfies complex triggering conditions involving configuration flags, runtime environments, and indirect API usage. We present DepRadar, an agent coordination framework for fine grained defect and impact analysis in DL library updates. DepRadar coordinates four specialized agents across three steps: 1. the PR Miner and Code Diff Analyzer extract structured defect semantics from commits or pull requests, 2. the Orchestrator Agent synthesizes these signals into a unified defect pattern with trigger conditions, and 3. the Impact Analyzer checks downstream programs to determine whether the defect can be triggered. To improve accuracy and explainability, DepRadar integrates static analysis with DL-specific domain rules for defect reasoning and client side tracing. We evaluate DepRadar on 157 PRs and 70 commits across two representative DL libraries. It achieves 90% precision in defect identification and generates high quality structured fields (average field score 1.6). On 122 client programs, DepRadar identifies affected cases with 90% recall and 80% precision, substantially outperforming other baselines.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。