arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2605.12694cs.SEcs.AIcs.PL
收藏

代理解释:基于格结构的证据用于基于LLM的程序分析

Agentic Interpretation: Lattice-Structured Evidence for LLM-Based Program Analysis

University of Southern California, Los Angeles, California, USA(美国南加州大学)

Jacqueline L. Mitchell, Chao Wang

AI总结:

本文提出代理解释框架,结合格结构静态分析与LLM程序推理,通过分解分析目标为局部断言并跟踪LLM判断,改进程序分析的灵活性和准确性。

摘要:

大型语言模型能够访问固定静态分析器无法获取的信息,如文档、当前安全公告、版本特定元数据和非正式API合同。这使LLM成为依赖超出源程序信息或无法用传统静态分析器处理的程序分析的有吸引力选项。然而,直接让LLM进行一次性整体程序分析是脆弱的,因为它将许多依赖证据的判断压缩成单一的不透明答案,而不是暴露哪些结论被支持或质疑,并利用中间发现引导后续更集中的搜索。本文提出代理解释框架,将基于格的静态分析学科引入LLM驱动的程序推理。在高层次上,代理解释将高层分析目标分解为局部断言,并在有限高度的格中跟踪LLM对每个断言的判断。工作表算法控制分析过程中断言及其判断如何演变。我们引入了代理解释的正式模型,探索其打开的设计空间,并通过分析依赖于不透明第三方组件的代码的实例来说明该方法。

英文摘要:

Large language models can consult information that fixed static analyzers cannot, such as documentation, current security advisories, version-specific metadata, and informal API contracts. This makes LLMs a compelling option for program analyses that depend on information beyond the source program, or that are otherwise not amenable to conventional static analyzers. However, directly asking an LLM for a one-shot whole-program analysis is brittle because it compresses many evidence-dependent judgments into a single opaque answer, rather than exposing which conclusions are supported or disputed and using intermediate findings to guide later, more focused searches. In this paper, we propose agentic interpretation, a framework that brings the discipline of lattice-based static analysis to LLM-driven program reasoning. At a high level, agentic interpretation decomposes a high-level analysis goal into localized claims, and tracks the LLM's judgment about each claim in a finite-height lattice. A worklist algorithm governs how claims and their judgments evolve during the analysis. We introduce a formal model of agentic interpretation, explore the design space it opens, and illustrate the approach with a worked example analyzing code that depends on opaque third-party components.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑