paperbot · PL 论文追踪

全部论文 待读 收藏

P2 MEMRES: A Memory-Augmented Resolver with Confidence Cascade for Agentic Python Dependency Resolution

MEMRES:面向智能体式 Python 依赖解析的带置信级联的记忆增强解析器
FSE Proceedings of the 34th ACM International Conference on the Foundations of Software Engineering2026匹配度 3/10 · 论文是面向 Python 依赖解析的 Agentic 系统工程,虽涉及导入分析和 LLM 作为最后手段,但不属于对 ML/Agentic 程序做静态分析,也不是用 LLM 改进静态分析或形式化验证;实验基于 Gemma-2 9B 等较小模型,与用户核心方向偏离较大。引用 0 inbox
Tran Chi Nguyen, Dao Sy Duy Minh, Trung Kiet Huynh, Pham Phu Hoa, Nguyen Lam Phu Quy, Vu Nguyen
crossref: 2026-09-12dblp: 2026-09-12arxiv: 2026-09-12

AI 速览

一句话:提出 MemRes,以自演化记忆、错误模式知识库和置信级联实现智能体式 Python 依赖解析,LLM 仅作最后手段。

Python 代码片段常因导入名与包名不一致而无法直接运行,现有基于 LLM 的依赖解析方案成功率低且开销大。本文提出 MemRes,一个智能体式解析系统,采用多级置信级联,将 LLM 仅作为最后手段。系统包含四个组件:自演化记忆,通过 tips 与 shortcuts 积累可复用解析模式;含 200 余条人工整理 import-to-package 映射的错误模式知识库;语义导入分析器;以及针对最大失败类别的 Python 2 启发式检测器。在 HG2.9K 数据集上,使用 Gemma-2 9B(10 GB 显存),MemRes 在 10 次运行平均解析 2890 个片段中的 2503 个(86.6%),将会话内记忆与置信级联结合处理剩余案例,显著超过 PLLM 的 54.7% 总体成功率。

问题
Python 代码片段中的导入名常与包名不一致,自动解析依赖困难;已有 LLM 方法成功率低(如 PLLM 仅 54.7%),且依赖大模型调用。
方法
MemRes 采用多级置信级联:先查自演化记忆与错误模式知识库,再用语义导入分析器与 Python 2 启发式检测器,仅在无法确定时才调用 LLM。
评估
在 HG2.9K 数据集上以 Gemma-2 9B(10 GB 显存)评测,10 次运行平均成功率为 86.6%(2503/2890),远高于 PLLM 的 54.7%。
原文摘要(Abstract)

We present MemRes, an agentic system for Python dependency resolution that introduces a multi-level confidence cascade where the LLM serves as the last resort. Our system combines: (1) a Self-Evolving Memory that accumulates reusable resolution patterns via tips and shortcuts; (2) an Error Pattern Knowledge Base with 200+ curated import-to-package mappings; (3) a Semantic Import Analyzer; and (4) a Python 2 heuristic detector resolving the largest failure category. On HG2.9K using Gemma-2 9B (10 GB VRAM), MemRes resolves 2503 of 2890 (86.6%, 10-run average) snippets, combining intra-session memory with our confidence cascade for the remainder. This already exceeds PLLM's 54.7% overall success rate by a wide margin.

链接与引用

DOI 原文 · arXiv · PDF(开放获取) · DBLP

BibTeX
@inproceedings{abs-2604-16941,
  title = {MEMRES: A Memory-Augmented Resolver with Confidence Cascade for Agentic Python Dependency Resolution},
  author = {Tran Chi Nguyen and Dao Sy Duy Minh and Trung Kiet Huynh and Pham Phu Hoa and Nguyen Lam Phu Quy and Vu Nguyen},
  booktitle = {FSE},
  year = {2026},
  doi = {10.1145/3803437.3808242}
}