公开论文雷达

公开 arXiv 研究简报 · 2026-07-31T01:03:26.770285+00:00

先看结论和关键数字,再决定要不要读原文。页面只基于公开论文内容生成。

六张卡的共识:别让LLM单打独斗,先拆阶段再收口

六篇都在同一件事上使劲——把LLM关进流水线:先产出结构化中间物(规格、约束、特征、分类),再交给专门环节验证或兜底。SpecFirst、VeriSynth、原型插件证明拆分后能量化提升;协议评测与ABM则划出LLM独自下判断的失效边界;OAS换个轴讲何时该压缩记忆。想抓主线先读SpecFirst。

推荐阅读顺序

  1. 2607.27167:主线最清晰:把"探测出规格"与"照规格编码"彻底分开,通过率最高提升21.3%,先看它建立框架。
  2. 2607.19795:同一招的形式化版:LLM只当翻译前端,SMT求解器做最终裁判,看约束如何给出形式保证。
  3. 2607.20712:反面证据:LLM直接判协议安全,chat精度低于31%、推理漏检过半,看清模型独判的边界。
  4. 2607.17948:更极端的边界:小模型连重复工具调用都失败,讲怎么用统计检验先验证再谈集成。
  5. 2607.17545:换个轴:不是拆阶段而是按预算选算子,预算紧就合并、宽就保留,最高差48个百分点。
  6. 2607.14830:收尾看落地:特征分解+RAG+渲染前人工审查,但评测偏初步,结论只看方向不看数字。
共性方法
都不让LLM一步到位:先让它产出结构化中间物(规格、Z3约束、特征列表、邻居分类),再交给独立环节收口——合成智能体、SMT求解器、形式化工具或人工审查,并在公开基准上量化增益。共同信念是把探索/翻译与验证/落地拆开。
关键分歧
分歧在LLM能否顶替传统方法。SpecFirst、VeriSynth、原型插件显示拆分后LLM带来实测提升;协议评测与ABM则显示LLM独自下判断会漏检、精度崩塌,仍须形式化工具兜底;OAS的答案是"看预算再定",紧则合并、宽则保留,没有固定赢家。
选择准则
凡让LLM出最终结论,必须配一个独立验证环节兜底(求解器、形式化工具、测试或人工审查);能形式化验证的场景别信模型自报置信度,策略按预算压力与证据长度动态切换。

重点深读(6 / 6 篇)

形式化与程序验证(3 篇)

形式化与程序验证 8/30

Towards Automated Formal Verification of zkEVMs Using LLM-Guided Constraint Synthesis

VeriSynth:LLM引导的zkEVM形式化验证框架:zkEVM的隐性语义错误可以绕过密码学证明验证。VeriSynth将LLM严格限制为Rust操作码的翻译前端,输出Python/Z3符号约束,用SMT求解器做最终的正确性仲裁。在首个源码级基准上,检测率超过90%,比生产级手写变异测试套件多发现32个漏洞。

两句看懂

zkEVM手写规范随实现迭代无法扩展,纯LLM方案幻觉频发且缺乏形式保证;VeriSynth将LLM限定为Rust到Z3约束的翻译前端,SMT求解器作为仲裁后端。在首个源码级基准(95个注入漏洞)上,检测率超过90%(87/95),比生产级手写变异测试套件多发现32个漏洞。

核心判断

将LLM严格限定为Rust到符号约束的翻译前端、SMT求解器作为正确性仲裁后端,可自动化zkEVM形式化验证;首个源码级基准上检测率超过90%(87/95),优于直接LLM基线和生产级手写变异测试(55/95)。

关键要点

1. 现有zkEVM验证依赖人工编写规范(如手写变异测试),随低层Rust实现频繁优化无法扩展;纯LLM直接生成约束存在幻觉且无形式保证,缺少将Rust操作码隐性语义自动转化为求解器可用约束的工具链,且此前无源码级标准基准。 2. VeriSynth构建闭环流水线:语义分解将栈、内存、存储、gas等多组件状态转换拆分为子任务,检索增强提示提供代码上下文,LLM生成候选Python/Z3约束,验证引导自动修复纠正语法与排序错误,SMT求解器最终仲裁;基准含95个注入漏洞,覆盖正确与错误两类操作码实现。 3. VeriSynth检测87/95漏洞(超过90%),生产级手写变异测试套件仅检测55个(约58%);消融实验显示去除自动修复使检测率从91.6%骤降至66.3%,早期失败主要源于语法与排序错误而非语义理解不足,检索增强和语义分解各自提供独立增益。

证据与结果

首个源码级zkEVM Rust实现验证基准,含正确与错误两类操作码实现,共注入95个漏洞。指标:漏洞检测率。对比:直接LLM基线、对话式LLM基线、生产级手写变异测试套件(检测55/95,约58%)。VeriSynth检测87/95(超过90%)。消融:去除自动修复使检测率从91.6%降至66.3%,早期失败主要为语法与排序错误而非语义理解不足;检索增强与语义分解各自提供独立增益。

打开论文原文
它要解决什么
如何将Rust实现的zkEVM操作码自动转化为可执行形式化验证模型,同时避免LLM幻觉并提供形式化保证?
研究路径
Rust操作码处理器经语义分解拆分为栈、内存、存储、gas等子组件;检索增强提示将相关代码上下文注入LLM;LLM生成候选Python/Z3符号约束;验证引导自动修复识别语法或排序错误并在闭环中重新生成;SMT求解器对最终约束执行可满足性检验,判定实现是否违反操作码规范。
这对工程意味着什么
在形式化验证规范编写代价高的场景,可采用LLM翻译+SMT仲裁+验证引导自动修复闭环;有效性依赖自动修复消除语法错误,切勿直接将LLM输出作为最终约束并略过求解器仲裁步骤。
证据定位
VeriSynth在95个注入漏洞中检测87个(超过90%),显著优于直接LLM和对话式LLM基线;生产级手写变异测试套件仅检测55个。消融:去除自动修复使检测率从91.6%骤降至66.3%,各组件均有独立贡献。(筛选维度:形式化验证、可复核评测)
适用边界
基准仅覆盖zkEVM操作码层Rust实现,不涵盖更高协议层或其他语言;注入漏洞的数量(95个)和类型由构建者决定,代表性有限;论文摘录未说明基准覆盖的操作码种类及数量边界。
方法与英文摘要

数据集:首个源码级zkEVM Rust实现验证基准,包含正确与错误两类操作码实现,共注入95个漏洞。流程:①语义分解将栈、内存、存储、gas等多组件状态转换拆分为子任务;②检索增强提示为LLM提供相关代码上下文;③LLM将Rust操作码翻译为候选Python/Z3符号约束;④验证引导自动修复在闭环中纠正语法与类型错误;⑤SMT求解器执行最终正确性仲裁。

Zero-Knowledge Ethereum Virtual Machines (zkEVMs) secure Ethereum rollups by generating zero-knowledge proofs that guarantee off-chain execution correctness. However, subtle implementation bugs (e.g., incorrect gas accounting) can lead to valid proofs certifying semantically faulty states, thereby silently defeating cryptographic guarantees. Formal verification via SMT solvers can prevent this, but is bottlenecked by specification: current zkEVM development practice lacks automated methods to translate Rust opcode handlers into verification models. Current practices rely on unsustainable manual specifications, while LLM-based approaches suffer from hallucination and lack formal guarantees. To address this, we propose VeriSynth, a framework that synthesizes executable Python/Z3 verification models from Rust zkEVM code. VeriSynth enforces a hybrid paradigm: an LLM acts strictly as a formalization frontend to translate code into symbolic constraints, while an SMT solver serves as the correctness arbiter. To handle complex multi-component state transitions, VeriSynth integrates semantic decomposition, retrieval-grounded prompting, and verification-guided auto-repair into a closed-loop pipeline. We evaluate VeriSynth on the first source-level zkEVM verification benchmark, encompassing both correct and faulty opcode implementations. VeriSynth achieves a bug detection rate of over 90%, substantially outperforming direct and conversational LLM baselines, as well as a production-grade handwritten mutation-testing suite. Ablation studies confirm that each pipeline component is critical to the framework's overall effectiveness.

形式化与程序验证 6/30

Evaluating Large Language Models for Symbolic Security Protocol Analysis

LLM在安全协议形式化分析中的能力评测:针对130个经过名称与角色混淆的AnB/AnBx协议,覆盖388个安全目标,系统评测了chat与推理两类配置的LLM在安全判定上的表现。基准采用无界会话形式化验证工具(主)和有界一/两会话工具(辅)。chat模式召回率高(69-81%)但精度极低(低于31%);推理模式精度有所提升(共享底层模型对比从27.2%升至45.4%),但认证目标漏检超过一半(检出率低于41%)。

两句看懂

针对130个经混淆的AnB/AnBx协议与388个安全目标,系统评测了LLM在chat与推理两种配置下能否生成与形式化验证工具等效的安全判定。chat模式召回高(69-81%)但精度低于31%,推理模式精度提升(共享底层模型对比27.2%→45.4%)但认证目标检出率不足41%,两类模式均无法替代形式化验证。

核心判断

大型语言模型直接输出的安全判定无法替代形式化验证:chat配置精度低于31%,推理配置漏检超过一半,认证目标检出率不足41%;模型自报置信度与判定正确性无关。以上结论基于388个安全目标的三轮评测,以形式化工具输出为基准。

关键要点

1. chat与推理模式失效方向相反——chat精度低于31%(过度标注攻击),推理召回仅过半(保守判定),两者均无法同时满足精度与召回实用门限,不存在LLM整体替代路径。 2. 评测使用130个混淆AnB/AnBx协议、388个安全目标,以无界会话形式化工具为主基准、有界工具为辅,瀑布优先合并标签;其中一组配置共享底层模型以隔离推理链效果,另一组跨模型版本结论为参考。 3. 推理链使同底层模型精度从27.2%升至45.4%;injective agreement检出率仅38.5-40.2%(最差目标类型);机密性F1达95.7%(唯一强项);跨轮一致率最低74.0%;模型自报置信度94-99%与正确性无统计相关,不可用作质量信号。

证据与结果

数据集包含130个经过名称和角色混淆的AnB/AnBx安全协议,共388个安全目标,分为机密性、injective agreement和non-injective agreement三类。基准:主基准为无界会话形式化工具,辅以有界一/两会话工具,三源通过瀑布优先方案合并。评测:chat与推理配置各独立运行三轮,使用协议级cluster bootstrap计算95%置信区间,指标包括precision、recall、F1和accuracy。结果:chat配置recall 69-81%、precision低于31%;推理配置A(跨模型版本)precision 66.5%,推理配置B(同底层模型)precision 45.4%(其chat基准为27.2%);injective agreement检出率仅38.5-40.2%;机密性F1最高95.7%;跨轮一致率分别为89.7%和74.0%;模型自报置信度94-99%与正确性无显著相关。

打开论文原文
它要解决什么
大型语言模型能否直接输出与形式化验证工具相当的协议安全判定?chat与推理两类配置各在何处失效?
研究路径
流水线首先对协议名称和角色进行混淆,然后通过API提交零样本提示,要求模型返回结构化JSON,包含二元判定、0-100置信分、文字理由以及可选的攻击追踪(两会话)。其中一对配置共享同一底层模型,仅通过开关推理链来隔离推理效果;另一对配置跨模型版本,推理增益不可完全归因于推理链。无界会话形式化工具处理无界情形,有界工具处理一/两会话,三个来源通过瀑布优先方案合并生成最终基准标签。
这对工程意味着什么
在实际协议安全分析流水线中,推荐使用推理模式LLM对机密性目标进行预筛查(F1≈96%),以节省形式化工具的计算开销。认证目标必须直接使用形式化工具验证。避免的误区:不要依赖模型自报置信度(高达99%)来判断输出可靠性,因为置信度与正确性无统计相关;若据此过滤,会造成高置信漏检。
证据定位
共享底层模型的对照实验显示,推理链使精度从27.2%提升至45.4%,隔离开了推理效果。chat配置召回69-81%但精度低于31%。推理配置在认证目标上检出率不足41%(injective agreement仅38.5-40.2%)。机密性目标的推理模式F1达到95.7%。跨三轮判决一致率最低74.0%,模型自报置信度94-99%但与正确性无统计相关。(筛选维度:形式化验证、可复核评测)
适用边界
本评测仅覆盖AnB/AnBx记号下的130个协议,未包含TLS等工业级协议;基准标签由形式化工具生成,工具本身存在终止问题和状态爆炸局限;其中一对配置是跨模型版本对比,推理增益不能完全归因于推理链;评测仅涉及两家供应商的四种模型配置。
方法与英文摘要

构建Python自动化流水线,对130个经混淆的AnB/AnBx协议进行零样本提示。分别以chat和推理模式调用两家供应商的模型API,每次请求返回二元安全判定、0-100置信分及可选的攻击追踪。采用无界会话形式化工具作为主要基准,有界一/两会话工具作为辅助,通过瀑布优先方案合并产生388个安全目标的标签。每种配置独立运行三轮,使用协议级cluster bootstrap计算95%置信区间。其中一对配置共享同一底层模型,仅开关推理链,干净隔离了推理效果。

Security protocol verification relies on formal tools such as ProVerif and OFMC. This study evaluates whether Large Language Models (LLMs) can perform comparable analysis. We test GPT and DeepSeek in chat and reasoning modes over three runs on 130 obfuscated AnB/AnBx protocols covering 388 security goals, scored against ProVerif and OFMC. Chat models reach 69 to 81% recall at precision below 31%. Reasoning models reverse this trade-off, reaching 66.5% precision for GPT and 45.4% for DeepSeek, but detect just over half the attacks. DeepSeek's two modes share one underlying model, so the comparison isolates reasoning itself, which raises precision from 27.2% to 45.4%. The GPT contrast spans a model-version change and is only suggestive. All models perform worst on authentication goals: reasoning models detect well under half of injective and non-injective agreement attacks, whereas chat models over-flag them at low precision. Confidentiality is the exception, with F1 up to 95.7% in reasoning mode. Verdicts are unstable across runs, identical on 89.7% of goals for GPT but 74.0% for DeepSeek. Self-reported confidence is uniformly high yet shows no meaningful correlation with correctness. On this benchmark LLMs do not match formal verification, but may serve, at best, as pre-screening filters.

形式化与程序验证 6/30

Towards Agentic Agent-based Models: Feasibility, Performance, and Statistical Model Checking

LLM嵌入ABM仿真的可行性与统计验证:在经典Schelling分群模型中用单个LLM代理替换符号分类规则,通过MultiVeStA统计模型检验量化语义分类准确性与工具调用操作成功率。小规模本地LLM在重复工具调用时语义分类失败或工具不可用,较大模型通过了初步检验。

两句看懂

传统ABM用显式符号规则保证可复现性,而将局部规则替换为LLM工具调用后,语义错误和工具调用失败会传播到全局涌现行为。本文在Schelling分群模型中构建了一个单LLM代理混合基准来隔离该风险,并用MultiVeStA对不同规模本地LLM进行统计检验:小模型在重复工具调用时语义分类失败或操作不可用,较大模型通过了初步检验。

核心判断

在ABM中将单个代理的符号规则替换为LLM工具调用在技术上是可行的,但小规模本地模型在语义分类和工具调用操作层面均失败,较大模型通过了初步检验。统计模型检验(MultiVeStA)可以量化这种替换对系统级可观测量的影响。

关键要点

1. 传统ABM的符号规则保证可复现性,但引入LLM后语义错误和工具调用失败等新变量无法被现有分析框架量化。 2. 构建方法:基于Mesa Schelling模型,保留原始动力学不变,仅将一个代理的邻居相似性分类替换为LLM工具调用,控制LLM规模为唯一变量。 3. 决定性结果:小模型在语义分类或工具调用操作上失败,较大模型通过初步检验;MultiVeStA可估计LLM组件对仿真观测量的量化影响;但未报告具体准确率、失败率或置信区间。

证据与结果

基准:Mesa Schelling分群模型,混合种群(多数符号代理 + 一个LLM代理)。评估维度:(1) 语义可行性——LLM能否正确分类邻居相似性;(2) 操作可行性——LLM在重复工具调用中是否保持可用;(3) 计算开销。测试对象:多个规模的本地部署LLM(具体模型名称与参数量未披露)。结果:小模型在语义或工具调用操作层面失败;较大模型通过初步检验。本实验为初步研究,未报告具体准确率、失败率或样本数量数值。

打开论文原文
它要解决什么
将ABM中单个代理的符号分类规则替换为LLM工具调用,对仿真的可靠性、计算代价和涌现行为有哪些量化影响?
研究路径
LLM代理收到邻居的自然语言描述后,通过工具调用对每个邻居标记为相似或不同,每次调用递增相应计数器。计数器的值输入原始的Schelling幸福函数,决定该代理是否移动。MultiVeStA作为黑盒外部驱动Mesa仿真,自动执行多次模拟,并为可观测量提供具有统计保证的估计。
这对工程意味着什么
在将LLM代理集成到ABM仿真之前,务必先用统计模型检验框架单独验证其语义分类准确性和工具调用操作的可行性。不要因为模型规模较大就跳过操作可行性测试,直接将其集成到仿真循环中。
证据定位
小规模本地LLM在重复工具调用时语义分类错误或工具调用操作完全失败;较大规模LLM通过了初步的语义和操作可行性检验。MultiVeStA可量化LLM组件对ABM可观测量的影响。本实验为初步研究,未报告具体的准确率数值。(筛选维度:形式化验证、可复核评测)
适用边界
本实验仅测试了单LLM代理嵌入Schelling模型这一种场景,属于初步研究。LLM的具体规模和名称未披露,未提供准确率、失败率或置信区间数值。结论不适用于多LLM代理或其他ABM架构。
方法与英文摘要

基于Mesa Schelling分群模型,构建混合种群:多数代理使用符号规则计数相同邻居,一个代理将邻居相似性分类委托给本地LLM。LLM代理接收邻居的自然语言描述,通过工具调用递增相似/不同邻居计数器,计数器值输入原始Schelling幸福函数决定移动意愿。使用MultiVeStA对不同规模的本地LLM进行黑盒统计模型检验,分别评估语义分类准确性、工具调用操作成功率和计算开销。

Agent-based models (ABMs) rely on simple, explicit and reproducible rules for individual decision making, while complex collective behavior emerges from interactions among agents. Recent advances in large language models (LLMs) make it tempting to replace, enrich, or perturb these rules with LLM-based agentic capabilities. However, this raises a methodological question: how does introducing LLM-driven decisions affect the reliability, computational cost, and behavior of ABM simulations? We investigate this for Mesa ABM models, a popular Python library for ABMs, analyzed by statistical model checking. Building on Mesa's integration with the statistical model checker MultiVeStA, we extend the classical Schelling segregation model with a hybrid population: ordinary agents classify neighbors using the standard symbolic rule, while one agent delegates this task to an LLM through tool calls. The LLM-enabled agent receives natural-language descriptions of neighboring agents and invokes tools that increment counters of similar/different neighbors; these counters determine its happiness according to the original Schelling dynamics. This provides a minimal but controlled setting where the semantic, operational, and computational behavior of LLM-based decisions can be studied inside an otherwise standard ABM. We report preliminary experiments with locally served LLMs of different sizes, showing that smaller models may fail simple semantic classification experiments or become operationally unusable during repeated tool-call generation, while larger tested models pass these preliminary checks. We discuss how statistical model checking can estimate classical ABM observables and quantify the impact of introducing agentic LLM components into simulation models.

软件工程与仓库智能(1 篇)

软件工程与仓库智能 10/30

SpecFirst: Behavioral Specification Elicitation as a First-Class Step in Agent-Based Program Synthesis from Scratch

SpecFirst:规格先行将零起点代码合成通过率提升21%:现有框架将探索与合成混入单循环,致边界探测不足、行为意图漂移与错误持续累积。SpecFirst分两阶段:规格智能体先探测只读二进制生成结构化规格,再由合成智能体依此编码。在ProgramBench 200道实例、4个模型上,测试通过率提升6.9%–21.3%,覆盖率提升9.4%–18.5%,全部统计显著。

两句看懂

现有框架将探索与合成混入单循环,致边界探测不足、行为意图随上下文漂移丢失及错误持续累积;SpecFirst将规格提取设为独立前置阶段,规格智能体先探测只读二进制生成结构化规格,再由合成智能体依此编码。在ProgramBench全部200道实例、4个模型上对比单循环基线,测试通过率提升6.9%–21.3%,覆盖率提升9.4%–18.5%,全部统计显著。

核心判断

将行为规格提取独立为前置阶段可系统提升零起点程序合成质量:ProgramBench上测试通过率提升6.9%–21.3%、覆盖率提升9.4%–18.5%(统计显著),行为分析确认规格锚点使合成更早启动且持续更久。

关键要点

1. 现有单循环框架假设智能体可在同一轮次内兼顾探测与编码,但这导致三类系统性缺陷:边界条件与标志交互探测不足;长上下文中行为意图因推理令牌剥离和摘要压缩而漂移丢失;早期文档误读沿依赖链累积而无规格锚点可纠正——即使最强前沿模型在该基准上完整解题率仍低于1%。 2. SpecFirst在ProgramBench全部200道实例上将流程拆为两个独立阶段:规格智能体专项探测只读二进制,将观测与文档整合为结构化规格;合成智能体仅依规格编码。跨两个模型族系、能力跨量级的4个模型独立对比单循环基线,轮次预算一致,确保结论具有鲁棒性。 3. SpecFirst在4个模型上测试通过率提升6.9%–21.3%,二进制探测覆盖率提升9.4%–18.5%,全部统计显著。行为分析表明预先规格使合成智能体更早进入编码阶段且持续更久,而非在探测与编码间反复切换;绝对通过率仍低说明零起点合成是开放难题,规格分离是必要条件而非充分条件。

证据与结果

基准为ProgramBench,200道实例,每题仅提供自然语言文档和只执行二进制(无源码、无内部结构)。评测覆盖4个模型,跨两个模型族系、能力跨量级。指标为测试通过率和二进制探测覆盖率,与单循环基线对比。SpecFirst通过率提升6.9%–21.3%,覆盖率提升9.4%–18.5%,全部统计显著。行为分析追踪每轮次行为类型,显示规格前置使合成更早启动并持续更久。即使最强模型在原始基准上完整解题通过率仍不足1%,表明任务整体极难,规格分离是显著改善但非根本突破。

打开论文原文
它要解决什么
在零起点程序合成中,将行为规格提取独立为前置阶段能否系统性提升探测覆盖率与测试通过率?
研究路径
规格智能体系统调用只执行二进制的各种输入组合,发现文档未记载的边界条件、错误路径和标志交互,将全部观测与文档整合为结构化规格文档。合成智能体随后以该规格为唯一参考编码,无需再探测二进制,从而切断长上下文意图漂移和无锚点错误累积的来源。
这对工程意味着什么
构建零起点程序合成流水线时,应先用独立规格智能体全面探测目标行为并输出结构化规格,再启动合成智能体编码;将探测与合成混入单循环是常见捷径,但会导致边界行为漏测和行为意图在长上下文中漂移,最终拉低通过率。
证据定位
与单循环基线相比,SpecFirst在4个模型上测试通过率提升6.9%–21.3%,二进制探测覆盖率提升9.4%–18.5%,全部统计显著。行为分析显示预先规格使合成智能体更早编码且持续更久,而非在探测与编码间反复切换。(筛选维度:形式化验证、可复核评测、软件工程方法)
适用边界
评测仅限ProgramBench 200道实例(只执行二进制场景);规格智能体的探测策略与提示格式对结果的独立影响未系统量化;不同结构化规格格式对合成质量的敏感性及在有源码场景中的适用性均未报告。
方法与英文摘要

基准为ProgramBench全部200道实例,每题仅提供自然语言文档和只执行二进制(无源码)。SpecFirst分两阶段:①规格智能体系统探测二进制,覆盖边界条件、错误路径和标志交互,将观测与文档整合为结构化规格;②合成智能体以该规格为唯一锚点编码,不再探测。跨两个模型族系、能力跨量级的4个模型独立运行,与单循环基线对比,轮次预算保持一致。

LLM-based agents excel at software engineering tasks where an existing codebase provides context, but constructing a program from scratch remains fundamentally harder. Recent benchmarks such as ProgramBench quantify this gap: given only natural-language documentation and an execute-only binary as a behavioral oracle, even frontier models solve fewer than 1% of instances. Existing frameworks conflate documentation reading, behavioral exploration, and code synthesis into a single pass, causing agents to probe insufficiently, lose behavioral intent as context drifts, and propagate early misinterpretations into the final implementation. Inspired by classical requirements engineering, we argue that behavioral specification elicitation should be a first-class phase that precedes implementation. We present SpecFirst, a two-stage framework that forces the specification elicitation before code synthesis. A dedicated spec agent first probes the binary and combines observations with documentation into a structured specification. Next, a code synthesis agent then uses this specification to drive implementation. This decomposition resolves documentation ambiguities before coding begins and provides a stable behavioral reference throughout synthesis. We evaluate SpecFirst on all 200 ProgramBench instances across four models spanning two families and an order of magnitude of capability. SpecFirst consistently outperforms the single-loop baseline, improving test pass rates by 6.9%-21.3% and binary exploration coverage by 9.4%-18.5%, all statistically significant. Behavioral analysis on code synthesis further shows that a prior specification enables earlier and more sustained code construction. Our results demonstrate that an explicit requirements-engineering phase is an effective paradigm for from-scratch program construction.

代码质量与优化(0 篇)

本轮没有通过深读证据门的重点论文。

UI 与 GUI Agent(1 篇)

UI 与 GUI Agent 7/30

AI Prototyper: A Figma Plugin for Decomposition-Based GUI Prototyping with LLMs

特征分解+RAG流水线驱动GUI原型自动生成:单提示LLM生成GUI时组件遗漏、布局不一致。该插件将自然语言描述分解为离散特征JSON数组,经RAG检索32个自定义组件(7类)后渲染为可编辑设计图层,并在渲染前插入人工审查节点。初步两阶段评测中,插件组在完成数量和专家9维度质量评分上均优于手动基线。

两句看懂

单提示GUI生成因遗漏关键组件、布局不一致且小改动须全量重生成而难以实用,该插件以特征分解+RAG+人工审查三段流水线将整屏生成拆解为可管控子步骤。两阶段初步评测显示,插件用户在固定时间内完成更多原型,专家在9个质量维度对AI输出的评分优于手动基线。

核心判断

将自然语言屏幕描述分解为离散特征列表再逐一检索32组件库,可解决单提示生成的组件遗漏和布局不一致;初步两阶段评测中,插件组在完成量和专家9维度评分上均优于手动基线。

关键要点

1. 单提示GUI生成的核心问题是将整屏作为单一生成目标,导致组件遗漏、布局不一致,且任何需求变更必须全量重生成,这是原型开发瓶颈的根本原因。 2. 方法构造为四阶段流水线:NL特征分解→两阶段RAG检索→人工审查→逐特征渲染,在检索与渲染之间插入人工审查节点;评测以手动制作为基线,专家评分覆盖9个质量维度。 3. 结果与边界:固定时间内插件组完成更多原型,专家9维度评分均高于手动基线;但评测为初步性质,未报告参与者人数、时间窗口时长、统计显著性;32组件库的范围是主要边界条件。

证据与结果

两阶段初步评测:第一阶段参与者在固定时间窗口内完成原型任务,记录插件组与手动组的完成数量;第二阶段专家从9个质量维度对AI生成原型与手动原型评分,AI组在所有维度评分更高。论文未报告参与者人数、固定时间窗口时长、9个维度名称、原始分数均值或置信区间,量化统计不足,结论应以定性方向为主。多语言测试覆盖泰语、英语、普通话,但具体测试规模未量化。

打开论文原文
它要解决什么
将GUI需求分解为离散特征列表再逐一RAG检索,能否解决单提示生成中组件遗漏、布局不一致以及小改动需全量重生成的问题?
研究路径
①系统提示将LLM设定为产品经理角色,输出含名称和用途的特征JSON数组,语言规则检测输入语种并令所有用户可见文本使用同一语言;②后端对32组件库执行两阶段RAG:先用每组件单行摘要选出候选,再匹配完整JSON schema(含必填项、可选项及类型约束);③用户可在渲染前增删改特征列表;④每个特征渲染为独立带auto-layout的图层。
这对工程意味着什么
构建LLM驱动的UI生成系统时,维护小型精选组件库(约32个)并在渲染前设置特征列表审查节点。应避免直接用单提示生成完整屏幕——该模式组件遗漏率高,且任何局部修改都会触发全量重生成。
证据定位
固定时间窗口内,插件组完成原型数量多于手动组;专家在9个质量维度对AI生成原型的评分均高于手动原型。(筛选维度:可复核评测、GUI Agent 方法)
适用边界
评测为初步性质:未报告参与者人数、固定时间窗口时长、9个质量维度名称、原始分数或置信区间;32组件库覆盖场景有限;多语言测试规模未量化;对照设计不含统计显著性检验。
方法与英文摘要

四阶段流水线:①LLM将自然语言描述解析为含名称和用途的特征JSON数组,语言规则同步检测输入语种;②后端对32组件库(7类:排版4、表单6、操作3、展示5、导航4、反馈4、布局6)执行两阶段RAG检索;③人工审查/增删特征列表;④逐特征渲染为带auto-layout的可编辑设计图层。评测分两阶段:参与者完成量(插件组 vs 手动组)和专家9维度质量评分。

Graphical user interface (GUI) prototyping remains a time-consuming activity that demands both design expertise and considerable manual effort. As GUI prototypes are non-code artifacts that evolve alongside requirements throughout the development cycle, automating their generation is directly relevant to software maintenance and evolution. We present AI Prototyper, an open-source Figma plugin that automates GUI prototyping through a decomposition and retrieval-augmented generation (RAG) pipeline. Given a natural-language description of a desired screen, such as a login page or a product detail card, the plugin decomposes the request into discrete GUI features, retrieves matching components from a custom 32-primitive library, and renders each component as a fully editable Figma layer with auto-layout. The pipeline uses Gemini 2.5 Flash as its LLM back-end and a Node.js Express service. Unlike existing decomposition-based tools, AI Prototyper introduces a human-in-the-loop editing step that lets users review, modify, or extend the generated feature list before rendering, uses a different technology stack and LLM family, and supports multilingual input, producing correctly labelled interfaces in Thai, English, and Mandarin Chinese. In a preliminary evaluation, participants using AI Prototyper completed more prototypes in a fixed time window than those working manually, and expert practitioners rated the AI-generated prototypes higher across nine quality dimensions. A demonstration video is available at https://youtu.be/pRoFAH7MQaE. The source code and component library are available at https://github.com/tongsalangsingha/AI-prototyper-tool

个人知识与本体(1 篇)

个人知识与本体 7/30

Retain or Consolidate? Budget-Dependent Operator Selection for Language Agent Memory

预算紧时合并,预算宽时保留:记忆算子选择取决于预算压力:语言智能体的记忆管理有个根本取舍:预算充足时保留原始记录,预算紧张时得压缩。本文把每种操作(保留、合并、抽象、改写)的价值拆成覆盖效应和替换效应,设计了一个轻量级选择器OAS。在LongMemEval上,预算紧的时候用合并比保留最多能高48个百分点的准确率;跨条目的抽象和合并优于局部改写。LoCoMo上同样出现预算依赖的交叉模式。

两句看懂

现有语言智能体记忆系统缺少统一原则来决定何时用压缩替代原始记录以及选哪种算子,本文通过分解算子的覆盖效应与替换效应并引入OAS轻量级选择器来解决。在LongMemEval和LoCoMo两个公开基准上,紧预算条件下合并最高提升48个百分点准确率,两个数据集均复现了预算依赖的保留与合并交叉模式。

核心判断

记忆保留与合并的优劣不是由固定阈值决定,而是由证据长度相对预算压力决定:紧预算时跨条目合并最高提升48个百分点准确率,宽松预算时保留更优。OAS通过生成前可观测特征估计算子效用实现轻量级自动选择。

关键要点

1. 保留与合并的选择依赖证据长度相对预算压力,而不是固定令牌阈值:预算宽时保留占优,预算紧时合并补回被排除的证据覆盖。 2. 在LongMemEval和LoCoMo上固定查询、检索器和推理模型,仅改变记忆表示,把Merge、Abstract、Rewrite和保留形式化为有限动作集;OAS从预算规模、证据适配压力、聚类几何等生成前特征估计效用,校准版在留出集上标定安全阈值抑制有害替换。 3. 紧预算下合并比保留提升最高48个百分点准确率;跨条目Abstract和Merge优于局部Rewrite,说明局部改写无法有效消除跨记录冗余。

证据与结果

在LongMemEval和LoCoMo两个公开基准上评测,固定查询、候选证据集、检索器、推理模型和回答时的令牌预算,只改变记忆表示形式来隔离算子效果。LongMemEval做长记忆对话评测,紧预算下合并最高提升48个百分点绝对准确率,宽松预算下保留优于合并。LoCoMo证据较短,交叉点出现在更小绝对预算处,与证据长度特点一致。两个数据集都显示跨条目Abstract和Merge在必须压缩时优于局部Rewrite,说明局部改写无法有效消除跨记录冗余。

打开论文原文
它要解决什么
固定令牌预算下,语言智能体什么时候该用压缩记忆替代原始记录?该选Merge、Abstract还是Rewrite?
研究路径
OAS把保留和三种合并算子建模为有限动作集,每个动作有对应的条件期望效用。从预算规模、证据适配压力、聚类几何、查询类型等生成前特征训练轻量级效用估计器,然后用插件最大化器选最优动作。决策分两步:先判断要不要合并(when),即预测收益是否超过安全阈值;再选具体算子(which)。校准版在留出问题集上标定阈值抑制有害替换;直接版阈值为零。
这对工程意味着什么
具体行动:当记忆预算紧张(相关证据放不下)时,优先使用跨条目合并或抽象提升覆盖率;预算充裕时直接保留原始记录,避免生成引入细节损失。误导性捷径:固定使用单一策略(全保留或全压缩),忽视预算压力的动态变化会导致系统在极端条件下大幅退化。
证据定位
LongMemEval上,紧预算下合并比保留提升最高48个百分点绝对准确率,宽松预算下保留更优。LoCoMo上证据更短,交叉点出现在更小的绝对预算处,复现了相同的预算-算子依赖模式。两个数据集都显示:必须压缩时,跨条目Abstract和Merge优于局部Rewrite。(筛选维度:置信度与不确定性、可复核评测)
适用边界
评测只限于LongMemEval和LoCoMo两个公开基准,证据长度分布不同(LoCoMo证据较短,交叉点出现在更小绝对预算处);未执行动作的效用在部署时不可直接观测,只能通过生成前特征估计,估计误差对选择质量的影响没有单独报告。
方法与英文摘要

在LongMemEval和LoCoMo两个基准上,固定查询、候选证据、检索器、推理模型和回答时的令牌预算,只改变记忆表示形式,以此隔离算子效果。把保留与三种合并算子(Merge、Abstract、Rewrite)形式化为有限动作集,每个动作对应一个条件期望效用。OAS是轻量级学习器,从生成前的特征(预算规模、证据适配压力、聚类几何、查询类型)估计每个动作的效用,然后通过插件最大化器选最优动作。两个版本:校准版用留出集标定有害替换的安全阈值;直接版阈值为零。

Language agents depend on memory across interactions. However, the limited context windows of large language models (LLMs) and their inference costs constrain how much memory can be used at once. Existing systems mainly follow two strategies: memory retention and memory consolidation. Retention keeps raw records and preserves exact details, but relevant evidence may not fit under a tight budget; consolidation compresses and combines records, improving coverage per token but risking the loss of query-critical details. Neither strategy is universally preferable. This raises two central questions: when should consolidation replace retention, and which operator -- Merge, Abstract, or Rewrite -- should be selected? We formalize this decision by decomposing each operator's utility into a coverage effect on evidence omitted by retention and a signed replacement effect on raw evidence that already fits. Their balance explains why the preferred action changes with relative budget pressure. We implement this mechanism with Offline Abstraction-Safety (OAS), a lightweight learner that estimates action utilities from pre-generation features with held-out harm calibration. The public LongMemEval and LoCoMo benchmarks show the same budget-dependent pattern. On LongMemEval, consolidation improves absolute accuracy by up to 48% under tight budgets, whereas retention is preferable under loose budgets; LoCoMo replicates this crossover at a smaller budget, consistent with its shorter evidence. On both datasets, cross-note abstraction and merging generally outperform local rewriting when compression is necessary.

人机协同与对齐(0 篇)

本轮没有通过深读证据门的重点论文。

本轮分类概览

同一论文只归入一个最先命中的赛道,避免重复计数。

赛道候选重点
形式化与程序验证133
软件工程与仓库智能131
代码质量与优化100
UI 与 GUI Agent21
个人知识与本体161
人机协同与对齐00

近一个季度监测日历

北京时间。绿色表示有可阅读候选,灰蓝表示已监测但无新增,橙色表示部分降级;“无记录”不等于失败。

2026 年 5 月

1无记录2无记录3无记录4无记录5无记录6无记录7无记录8无记录9无记录10无记录11无记录12无记录13无记录14无记录15无记录16无记录17无记录18无记录19无记录20无记录21无记录22无记录23无记录24无记录25无记录26无记录27无记录28无记录29无记录30无记录31无记录

2026 年 6 月

1无记录2无记录3无记录4无记录5无记录6无记录7无记录8无记录9无记录10无记录11无记录12无记录13无记录14无记录15无记录16无记录17无记录18无记录19无记录20无记录21无记录22无记录23无记录24无记录25无记录26无记录27无记录28无记录29无记录30无记录

近 14 次监测窗口

仅展示公开源的聚合运行状态,不含提示词、全文或个人数据。

候选阅读库(54 篇)

按赛道、评分和日期展开;中文标签用于导航,英文摘要用于核验。

形式化与程序验证(13 篇)

形式化与程序验证 · 5/30 · 2026-07-28部署字节码的基础精化证明LLM生成机器可验证的字节码与高层规范间精化证明,以代币换自动化Foundational Refinement Proofs for Deployed Bytecode, at the Price of Tokens

Relating low-level executable code to a high-level account of its behavior has been a central concern of programming-language research for decades. From formally verified compilers to translation validators, certifying compilers, and proof-carrying code, each approach chooses between laborious but foundational mechanized proofs and automation that costs completeness, generality, and an increased trusted base. Recently, large language models (LLMs) have begun to change the economics of formal verification. Agentic proof development is now capable of producing machine-checked proofs at a scale and speed that were previously out of reach. In this paper, we evaluate the capabilities of LLMs to produce foundational, machine-checked proofs of refinement between executable code and its high-level specification, as post hoc, per-artifact certificates. We study this in the context of the Ethereum Virtual Machine (EVM), a low-level virtual machine that executes smart contracts on the Ethereum blockchain. We build EquiVM, a foundational framework in Lean comprising an executable EVM semantics and a specification language that characterizes the intended behavior of smart contracts, but commits to no source language or compilation toolchain. In EquiVM, refinement is stated for deployed bytecode of arbitrary provenance, interaction with unknown code is part of the semantics, and each proof is a replayable, machine-checked certificate. No previous technique achieves this combination. Using frontier commercial LLMs, twenty-three real-world contracts are proved end to end with minimal human guidance, among them most of the MakerDAO stablecoin system, at up to a hundred million tokens and a hundred hours of proof time per contract. We conclude that foundational mechanized proofs can now be bought at the price of tokens, and that this shift can reshape how verification frameworks are architected.

阅读 arXiv 原文
形式化与程序验证 · 0/30 · 2026-07-27多智能体系统分布式后门早期检测检测恶意负载分散多个智能体、运行后重组的隐蔽攻击Early Detection of Distributed Backdoors in Multi-Agent LLM Systems: A Characterization Study

Multi-agent LLM systems can be attacked by a payload that no single agent ever holds in full: a poisoned tool hides encrypted fragments in its observations, spreads them across several agents, and an external step reassembles and executes them after the run. Per-step safety checks that judge each action in isolation may fail to recognize the complete distributed payload. We investigate how early such an attack can be detected while the run is still unfolding, and how robustly it can be caught once its most obvious cues are stripped away. We build a working instance on a hierarchical multi-agent system, run it under benign and attacked conditions across five language models and two task domains, and record when each fragment is injected and when the payload is assembled and executed. Detection is a race against assembly. Before the first fragment is injected, attacked and benign runs are indistinguishable; once injection begins, a prefix detector flags $99.3\%$ of successful attacks with a median of five steps remaining and a $10.3\%$ safe-run false-positive rate. Because assembly occurs only after the run, these alarms arrive in time to abort nearly every successful attack. We then measure how much of that warning rests on removable surface cues of the attack rather than on its distributed structure. Generic zero-shot and behavior-trained detectors provide almost no warning at all; the detectors that do work lean in part on removable surface cues, chiefly the ciphertext's length and entropy, and once the entropy cue is removed from the payload and the length features from the detector, detection arrives later and transfers poorly across domains, though a fine-tuned model recovers some of the loss.

阅读 arXiv 原文
形式化与程序验证 · 3/30 · 2026-07-24MEUSLI:多语言投影器拥抱多语ASR首个开源多语言投影器家族,连接Whisper与LLM支持28种欧洲语言MEUSLI: a Multilingual Projector for LLM-based ASR and Beyond

Lightweight projectors are an established way to connect pre-trained speech encoders with large language models (LLMs), mapping acoustic features into token-level embeddings for tasks like ASR and spoken question answering. Existing systems, however, typically only support a few languages and are often limited to English. We introduce MEUSLI, the first open-science multilingual projector family that links a Whisper encoder with open-source multilingual LLMs, enabling fully open-source end-to-end ASR in 28 European languages. MEUSLI extends prior monolingual pipelines, delivering strong results across high- and low-resource languages. Using proper continual leaning techniques, MEUSLI can be easily extended to other languages not seen in training. We further demonstrate that the MEUSLI projector can be leveraged beyond ASR, enabling multilingual speech translation and topic identification with only a few hours of task specific supervision per language. Overall, MEUSLI provides a solid foundation for multilingual speech understanding tasks, supporting scalable and inclu- sive open-source SpeechLLM

阅读 arXiv 原文
形式化与程序验证 · 5/30 · 2026-07-24KaPilot:LLM辅助不安全Rust验证多智能体框架自动提取安全需求生成Kani规范,验证内存安全KaPilot: LLM-Assisted Generation of Kani Specifications for Unsafe Rust Verification

Rust's ownership and type system provide strong memory safety guarantees, but unsafe code still presents memory safety risks. Formal verification is crucial for ensuring memory safety, but writing precise specifications for unsafe Rust is challenging and largely manual. Large language models (LLMs) have shown promise in generating formal specifications but are often code-centric, prone to inheriting implementation flaws, and lack systematic quality assessment. In this paper, we present KaPilot, a multi-agent framework for automatically generating specifications to verify unsafe Rust memory safety using Kani. The process begins with lightweight program analysis and proof harness generation. The SafetyReq agent extracts a concise, refined list of safety requirements from the target Rust function's documentation, which guides the SpecGenerate agent in producing initial specifications that specify memory safety concerns. Then, the specifications are iteratively refined through a generate-precheck-verify loop involving SpecGenerate, SpecPrecheck, and SpecVerify agents, which assess quality and feed errors back. By executing this loop multiple times, KaPilot generates a set of candidate specifications. Finally, the shuffle-and-implication strategy is applied to systematically determine the best specification from these candidates. We evaluated KaPilot on 54 unsafe Rust functions with ground truth and 70 without. KaPilot achieved 88.9% and 71.4% specification generation success, respectively, with 57.4% of generated specifications equivalent to or stronger than the ground truth. Compared with AutoSpec, KaPilot produces 14.8% more verifiable specifications and 25.9% more equivalent-or-better specifications.

阅读 arXiv 原文
形式化与程序验证 · 3/30 · 2026-07-23门控人机协同经济学理论开发门控多智能体架构,专门诊断模块推荐回溯,人类保留最终权威pAI-Econ-claude: A Gated Human-in-the-Loop Multi-Agent Architecture for AI-Assisted Economic Theory Development

In many social-science research tasks, such as economics, LLM-based agents must produce outputs for which no cheap, task-complete, machine-readable correctness signal exists. This creates a distinctive reliability problem for multi-agent systems: how should generation, critique, coordination, and human judgment be organized when no component can certify the final result? We address this problem through pAI-Econ-claude, a gated, human-in-the-loop multi-agent architecture for AI-assisted economic theory development. Agents coordinate through a shared workspace of inspectable intermediate records; specialized gates diagnose targeted failure modes and recommend loopbacks without certifying correctness; and human checkpoints retain authority over decisions that are costly to reverse. We evaluate the architecture on five matched economic-theory tasks against an ungated baseline. Two evaluators blinded to configuration agreed on all five pairwise rankings, preferring the gated architecture in four tasks and the baseline in one. Mean failure severity fell from 1.58 to 1.16, while overall usefulness rose from 2.60 to 3.10. The largest observed gain occurred when a reality check rejected a false market-structure premise and a proof review prompted revision of a false welfare claim. The negative case shows that scaffolding can also compress an economically important mechanism too aggressively. The results support a bounded claim: gated oversight improves the auditability of AI-assisted economic theory without substituting for formal verification, and the allocation of irreversible human judgment is a more informative design variable than pure agent autonomy. The workflow is publicly available at https://github.com/maxwell2732/pAI-Econ-claude.

阅读 arXiv 原文
形式化与程序验证 · 6/30 · 2026-07-22LLM符号化安全协议分析评估130个混淆协议上GPT/DeepSeek推理模式精度66.5%但攻击检测不足Evaluating Large Language Models for Symbolic Security Protocol Analysis

Security protocol verification relies on formal tools such as ProVerif and OFMC. This study evaluates whether Large Language Models (LLMs) can perform comparable analysis. We test GPT and DeepSeek in chat and reasoning modes over three runs on 130 obfuscated AnB/AnBx protocols covering 388 security goals, scored against ProVerif and OFMC. Chat models reach 69 to 81% recall at precision below 31%. Reasoning models reverse this trade-off, reaching 66.5% precision for GPT and 45.4% for DeepSeek, but detect just over half the attacks. DeepSeek's two modes share one underlying model, so the comparison isolates reasoning itself, which raises precision from 27.2% to 45.4%. The GPT contrast spans a model-version change and is only suggestive. All models perform worst on authentication goals: reasoning models detect well under half of injective and non-injective agreement attacks, whereas chat models over-flag them at low precision. Confidentiality is the exception, with F1 up to 95.7% in reasoning mode. Verdicts are unstable across runs, identical on 89.7% of goals for GPT but 74.0% for DeepSeek. Self-reported confidence is uniformly high yet shows no meaningful correlation with correctness. On this benchmark LLMs do not match formal verification, but may serve, at best, as pre-screening filters.

阅读 arXiv 原文
形式化与程序验证 · 8/30 · 2026-07-22VeriSynth:LLM引导zkEVM形式验证LLM仅负责形式语法,符号引擎从Rust代码合成可执行验证模型Towards Automated Formal Verification of zkEVMs Using LLM-Guided Constraint Synthesis

Zero-Knowledge Ethereum Virtual Machines (zkEVMs) secure Ethereum rollups by generating zero-knowledge proofs that guarantee off-chain execution correctness. However, subtle implementation bugs (e.g., incorrect gas accounting) can lead to valid proofs certifying semantically faulty states, thereby silently defeating cryptographic guarantees. Formal verification via SMT solvers can prevent this, but is bottlenecked by specification: current zkEVM development practice lacks automated methods to translate Rust opcode handlers into verification models. Current practices rely on unsustainable manual specifications, while LLM-based approaches suffer from hallucination and lack formal guarantees. To address this, we propose VeriSynth, a framework that synthesizes executable Python/Z3 verification models from Rust zkEVM code. VeriSynth enforces a hybrid paradigm: an LLM acts strictly as a formalization frontend to translate code into symbolic constraints, while an SMT solver serves as the correctness arbiter. To handle complex multi-component state transitions, VeriSynth integrates semantic decomposition, retrieval-grounded prompting, and verification-guided auto-repair into a closed-loop pipeline. We evaluate VeriSynth on the first source-level zkEVM verification benchmark, encompassing both correct and faulty opcode implementations. VeriSynth achieves a bug detection rate of over 90%, substantially outperforming direct and conversational LLM baselines, as well as a production-grade handwritten mutation-testing suite. Ablation studies confirm that each pipeline component is critical to the framework's overall effectiveness.

阅读 arXiv 原文
形式化与程序验证 · 3/30 · 2026-07-22神经符号AI用于韩国刑法量刑LLM结合确定性法律规则,避免统计模型在算术约束下产生幻觉Neuro-Symbolic AI for Korean Criminal Law: Sentencing Prediction and Document Drafting

The Korean criminal justice system utilizes summary proceedings (guyaksik) to expedite high-volume minor infractions, such as simple driving under the influence (DUI), unlicensed driving, and minor traffic casualties. Although this mechanism improves judicial throughput, processing these cases creates a substantial administrative burden for prosecutors, driving the need for automated systems that can precisely translate unstructured legal text into deterministic statutory outcomes. While recent Large Language Models (LLMs) excel at semantic extraction, their probabilistic nature inherently limits their reliability in Legal Judgment Prediction tasks. Specifically, when confronted with the arithmetic constraints of legal statutes, LLMs can produce hallucinations. Given that legal accountability permits virtually no tolerance for stochastic errors, purely neural architectures remain limited in their direct judicial applications. To address these limitations, we propose a Neuro-Symbolic framework that bridges unstructured legal facts with formal verification. Our architecture restricts the LLM exclusively to semantic extraction, while offloading statutory fine calculations to a Satisfiability Modulo Theories solver. This division of labor reduces hallucination risks during computation. Furthermore, we incorporate a Human-in-the-Loop verification scheme to preserve professional legal oversight. We formalize the 2026 Sentencing Guidelines for Traffic Offenses within this pipeline, demonstrating a deterministic approach to supporting summary indictments.

阅读 arXiv 原文
形式化与程序验证 · 4/30 · 2026-07-21乱序多处理器弱内存形式验证首个针对支持弱内存行为的乱序多处理器进行无界形式验证Formal Verification of an Out-of-Order Multiprocessor against an In-Order Weak-Memory ISA

Out-of-order multiprocessor is a critical piece of modern hardware, and their verification must solve the following challenges. First, inter-core interleaving, in which the order their reads and writes reach shared memory is unrestricted. Second, intra-core out-of-order execution, in which instructions fire out of program order. The combination of the two yields weak outcomes, which no sequential execution explains, and modern ISA allows such behaviors to account for them. However, the microarchitecture even exhibits excess out-of-order executions, temporarily entering states forbidden by the ISA. While discarded later, such states complicate reasoning about the core in full-system verification. Prior works verify a range of processor designs, while none have performed unbounded verification for out-of-order multiprocessor exhibiting such weak outcomes. We present the first formal verification of an out-of-order multiprocessor against an in-order, weak-memory ISA. Our key idea is a well-designed core specification, which captures the essence of excess executions in a single list of instructions. Building upon this, we decompose the proof into two steps. The first is a core refinement, proving a core implementation against this specification, abstracting away every microarchitectural state except those necessary to reason about excess executions and the core interface. The second is a system inclusion, serializing the out-of-order memory executions and inter-core interleaving into the ISA, easily removing excess executions thanks to the core specification. All of our proofs are mechanized in Rocq, heavily utilizing large language model (LLM) agents to write proofs automatically.

阅读 arXiv 原文
形式化与程序验证 · 6/30 · 2026-07-20LLM驱动个体模型可行性评估将LLM智能体引入Mesa ABM,用统计模型检查分析可靠性Towards Agentic Agent-based Models: Feasibility, Performance, and Statistical Model Checking

Agent-based models (ABMs) rely on simple, explicit and reproducible rules for individual decision making, while complex collective behavior emerges from interactions among agents. Recent advances in large language models (LLMs) make it tempting to replace, enrich, or perturb these rules with LLM-based agentic capabilities. However, this raises a methodological question: how does introducing LLM-driven decisions affect the reliability, computational cost, and behavior of ABM simulations? We investigate this for Mesa ABM models, a popular Python library for ABMs, analyzed by statistical model checking. Building on Mesa's integration with the statistical model checker MultiVeStA, we extend the classical Schelling segregation model with a hybrid population: ordinary agents classify neighbors using the standard symbolic rule, while one agent delegates this task to an LLM through tool calls. The LLM-enabled agent receives natural-language descriptions of neighboring agents and invokes tools that increment counters of similar/different neighbors; these counters determine its happiness according to the original Schelling dynamics. This provides a minimal but controlled setting where the semantic, operational, and computational behavior of LLM-based decisions can be studied inside an otherwise standard ABM. We report preliminary experiments with locally served LLMs of different sizes, showing that smaller models may fail simple semantic classification experiments or become operationally unusable during repeated tool-call generation, while larger tested models pass these preliminary checks. We discuss how statistical model checking can estimate classical ABM observables and quantify the impact of introducing agentic LLM components into simulation models.

阅读 arXiv 原文
形式化与程序验证 · 6/30 · 2026-07-19自演化Lean证明智能体工作流可变证明智能体通过掌握阈值更新与基准共同进化Self-Modifying Lean Proof Agents with Verifier-Grounded Benchmark Coevolution

Designing effective Lean proof agents is a central challenge in formal mathematical reasoning. Beyond building stronger provers, recent work emphasizes the workflow around Lean: how an agent decomposes proof obligations, uses tools and compiler feedback, diagnoses failures, repairs proofs, and maintains structured proof context. Motivated by code-level self-evolving agents, we study whether such workflows can be evolved rather than hand-designed. We present a self-evolving Lean proof agent in which a small fixed, trusted runtime wraps a fully mutable workspace: the proof workflow, prompts, and tools. Unlike most self-evolving systems, which optimize against a fixed external benchmark, our system coevolves the agent and its benchmark. Between generations, the highest-scoring agent (the champion) revises the active task distribution through a mastery-throttled curriculum update that introduces harder proof obligations only after the current level is mastered, and a single-anchor recalibration re-runs the champion on the updated benchmark to keep scores comparable as difficulty rises. All evolution stays inside a Lean-grounded verification loop: however the agent rewrites itself, a success counts only when its behavior yields Lean-verified proofs under a trusted snapshot, and each attempt must emit a machine-readable, Lean-grounded proof context whose representation may evolve but whose groundedness is enforced. We run the coevolving trajectory and a fixed-benchmark baseline for 15 active generations and compare them on a held-out miniF2F test split. The best coevolving agent reaches a 45.1% held-out solve rate, versus 12.7% for the seed and 32.0% for the best fixed-benchmark agent, showing that verifier-grounded self-evolution can improve Lean proof workflows under a coevolving benchmark.

阅读 arXiv 原文
形式化与程序验证 · 6/30 · 2026-07-18PriorProof:形式证明新颖性度量基于过往Mathlib快照,用加权惊奇度量化证明路径非标准程度PriorProof: A Point-in-Time Measure of Technique Novelty for Formal Proofs

Mathematicians distinguish proofs that explain, simplify, or introduce a nonstandard route, but these judgments are difficult to operationalize. We study a deliberately narrower construct: time-relative proof-route nonstandardness in formal mathematics. For a Lean theorem, PriorProof extracts the dependency footprint of its elaborated proof term and scores the weighted surprisal of that footprint under a retrieval-conditioned, hierarchically smoothed prior built only from an earlier quarterly snapshot of Mathlib. The method requires no hand-built technique ontology and no human labels: statement retrieval is learned from proof-derived contrastive pairs, while the scored object is read mechanically from proof terms. In a blinded topology study, 100 presentations collapse to 76 distinct underlying pairs: 12 canonical contrasts shown three times for consistency screening and 64 distinct stratified pairs. Against the majority of three retained domain raters, PriorProof agrees on 53/76 pairs (69.7%, Wilson 95% CI 58.7-78.9%), including 11/12 canonical pairs (91.7%, 64.6-98.5%) and 42/64 stratified pairs (65.6%, 53.4-76.1%). Score-gap quartiles are nonmonotone after repeat collapse; the endpoints are 12/19 (63.2%, 41.0-80.9%) in the smallest-gap bin and 16/19 (84.2%, 62.4-94.5%) in the largest, supporting an endpoint-calibration tendency rather than a resolved staircase. The best language-model condition agrees on 60/76 pairs (78.9%, 68.5-86.6%); on paired outcomes, PriorProof alone is correct on 8 pairs and the model alone on 15 (exact two-sided McNemar p = 0.210), so the difference is not established at this sample size. We therefore present PriorProof not as a replacement for expert or model judgment, but as a decomposable, time-anchored signal whose score gap provides an interpretable reliability indicator.

阅读 arXiv 原文
形式化与程序验证 · 5/30 · 2026-07-18Rtl2lean:RTL到Lean自动翻译四层定理框架从组合语义到不变式,LLM据反馈提出中间引理Rtl2lean: Automated RTL-to-Lean Translation with Hierarchical Theorem Generation and Lemma Reuse

Formal verification with interactive theorem provers can provide strong correctness guarantees for register transfer level designs, but applying it to existing SystemVerilog code requires substantial manual effort in semantic modeling and proof construction. This paper presents Rtl2lean, a framework that automatically translates RTL designs into executable Lean 4 models and builds a hierarchical theorem library for subsequent verification. The generated model represents hardware execution as a pure state transition function, while a four layer theorem framework captures combinational semantics, sequential updates, single cycle behavior, and reachability and invariants. When a high level property cannot be discharged by the existing theorem base, an LLM based proving loop proposes intermediate lemmas from the current proof context and Lean feedback. Only lemmas accepted by the Lean kernel are added to the reusable lemma pool. Experiments on six SystemVerilog designs generate 403 theorems, all of which are successfully checked by Lean. Among 358 foundational lemmas, 287 are available for automatic reuse, yielding a reusable lemma ratio of 80.2 percent. The results demonstrate that Rtl2lean can construct machine checked RTL proof libraries with low checking overhead and substantial cross property lemma reuse.

阅读 arXiv 原文

软件工程与仓库智能(13 篇)

软件工程与仓库智能 · 10/30 · 2026-07-29SpecFirst:规范提取优先于编码从零编程中将行为规范提取设为独立阶段,避免早期误解在实现中蔓延SpecFirst: Behavioral Specification Elicitation as a First-Class Step in Agent-Based Program Synthesis from Scratch

LLM-based agents excel at software engineering tasks where an existing codebase provides context, but constructing a program from scratch remains fundamentally harder. Recent benchmarks such as ProgramBench quantify this gap: given only natural-language documentation and an execute-only binary as a behavioral oracle, even frontier models solve fewer than 1% of instances. Existing frameworks conflate documentation reading, behavioral exploration, and code synthesis into a single pass, causing agents to probe insufficiently, lose behavioral intent as context drifts, and propagate early misinterpretations into the final implementation. Inspired by classical requirements engineering, we argue that behavioral specification elicitation should be a first-class phase that precedes implementation. We present SpecFirst, a two-stage framework that forces the specification elicitation before code synthesis. A dedicated spec agent first probes the binary and combines observations with documentation into a structured specification. Next, a code synthesis agent then uses this specification to drive implementation. This decomposition resolves documentation ambiguities before coding begins and provides a stable behavioral reference throughout synthesis. We evaluate SpecFirst on all 200 ProgramBench instances across four models spanning two families and an order of magnitude of capability. SpecFirst consistently outperforms the single-loop baseline, improving test pass rates by 6.9%-21.3% and binary exploration coverage by 9.4%-18.5%, all statistically significant. Behavioral analysis on code synthesis further shows that a prior specification enables earlier and more sustained code construction. Our results demonstrate that an explicit requirements-engineering phase is an effective paradigm for from-scratch program construction.

阅读 arXiv 原文
软件工程与仓库智能 · 7/30 · 2026-07-29从合并PR中构建提交解缠数据集利用PR特征分支原子提交,将复合提交比例从9.5%提至55%Tangling Pull Requests: Curating a Commit Untangling Dataset from Merged PRs

Composite commits (CC), in which multiple unrelated changes are bundled into a single commit, are frequent in software development and significantly hinder code comprehension and maintenance. Although machine learning-based methods have been developed to ``untangle'' such commits into smaller, coherent change sets, these methods require large-scale training data with correct untangling labels. Preparing such datasets is costly and typically requires expert labelling. In this study, we propose a scalable and cost-effective method for dataset construction by leveraging commits extracted from open-source repositories' pull requests (PRs). We empirically validated our dataset and found that when applying our filtering rules, PRs that, when viewed as a single commit, are tangled, yet each individual commit on the feature branch is atomic (ideal PRs), increased from 9.5% to 55%. This composite commits dataset is more than 5.7 times larger than previous heuristic-based datasets. Using our new dataset, we find that the PR-based dataset differs statistically from previous datasets directly constructed using Herzig's proposed heuristics even after accounting for our proposed rules that may alter CC or STS sizes. When constructing datasets using the previous heuristics, they differ statistically along dimensions that impact the confidence voters and are likely to impact learning-based approaches. We validate the impact on the original Herzig \etal method, which used confidence voters across our dataset. To show that our approach extends to other languages, we also create a Python dataset which we empirically validate, finding comparable rates for ideal PRs (56.5%).

阅读 arXiv 原文
软件工程与仓库智能 · 7/30 · 2026-07-29MultiFixer:多块缺陷多智能体修复协调者-提议者架构迭代生成补丁,修复Defects4J中326个缺陷MultiFixer: A Coordinator-Proposer Based Multi-Agent Framework For Fixing Multi-Hunk Bugs

Automated Program Repair (APR) has benefited greatly from Large Language Models (LLMs), but existing LLM-based APR methods still struggle with multi-hunk bugs that require coordinated changes across multiple locations. These bugs demand repository-level context understanding, repair-order scheduling, and effective hunk-level patch generation and selection. To address these challenges, we propose MultiFixer, a novel Coordinator-Proposer based multi-agent framework for multi-hunk repair. MultiFixer performs tool-augmented bug analysis, constructs fine-grained repair context, iteratively generates patches through a Coordinator-Proposer architecture, and applies two-stage patch refinement for syntactic and semantic correctness. We evaluate MultiFixer on 835 bugs from Defects4J and three vulnerability benchmarks. On Defects4J, MultiFixer fixes 326 bugs, including 62 multi-method and 27 multi-file bugs, and outperforms prior APR baselines in the reported comparisons with the same base model. Moreover, MultiFixer also fixes 46 multi-hunk bugs among 95 unique fixes. When combined with Claude-3.5-Sonnet, MultiFixer repairs 420 bugs, establishing a new state of the art on Defects4J. On VUL4J, MultiFixer repairs 24 real-world vulnerabilities, including 5 multi-hunk cases. On the multi-hunk subsets of SEC-bench and PatchEval, MultiFixer fixes 11 and 19 vulnerabilities, respectively, outperforming all compared baselines under GPT-3.5. These results demonstrate the effectiveness of MultiFixer for multi-hunk repair.

阅读 arXiv 原文
软件工程与仓库智能 · 6/30 · 2026-07-28三值不确定性评分需求配置LLM遍历形式域模型,符号验证器强制执行结构约束与逻辑一致性Model-Driven Requirements Configuration with Three-Valued Uncertainty Scoring

Context: Large Language Models (LLMs) offer natural-language flexibility for automated requirements elicitation but frequently generate structurally invalid requirements and logical inconsistencies, lacking formal correctness guarantees. Objectives: This study aims to eliminate logical inconsistencies and enforce structural conformance in LLM-generated requirements while quantifying the LLM's pre-validation decision uncertainty within a formal domain model. Methods: We present a neuro-symbolic multi-agent architecture that operationalizes the Object-Oriented Method for Requirements Authoring and Management (OOMRAM) lattice. The LLM acts as a non-deterministic heuristic for lattice traversal, while a deterministic symbolic validator enforces all structural constraints. We introduce a three-valued (T, I, F) -- Truth, Indeterminacy, Falsity -- framework to classify and score the LLM's requirement decisions before and after validation. Results: Evaluated across 37 natural-language project visions in eleven application families, the system completely eliminated structural inconsistencies in 35 out of 37 cases (94.6%), with the remaining two containing only 6 unresolved structural errors (0.39% of decisions) due to iteration limits. Three-valued analysis revealed that 24.7% of all decisions are indeterminate -- structurally valid but discretionary choices not explicitly mandated by the stakeholder. Conclusion: Offloading structural integrity to a deterministic symbolic layer successfully guarantees structural conformance, while the three-valued classification provides a formal way to measure neural uncertainty, facilitating safe LLM deployment in formal requirements engineering.

阅读 arXiv 原文
软件工程与仓库智能 · 3/30 · 2026-07-28LLM如何阅读缺陷报告?注意力研究首次实证分析LLM在程序修复中的注意力模式,揭示报告区域优先级How Do LLMs Read Bug Reports? An Empirical Study of Attention in LLMs for Automated Program Repair

Large Language Model (LLM)-based Automated Program Repair systems are advancing rapidly, yet their performance remains inconsistent. Even when provided with the same contextual information, an LLM may generate a correct patch for one bug but fail on another closely related bug. Why this happens remains poorly understood, and it is unclear how LLMs prioritize the diverse information in bug reports and whether model attention affects repair success. In this paper, we present the first empirical study of attention patterns in LLM-based program repair, providing interpretable insights into how models process bug reports and where their attention is concentrated during repair. We analyze 319 real-world Python and Java bugs from SWE-bench Verified and Multi-SWE-bench to study (RQ1) how model attention is distributed across bug report sections, (RQ2) how attention patterns within each section differ between successful and unsuccessful repairs, and (RQ3) how these patterns compare to information developers consider important for bug fixing. We find that successful repairs are characterized by diffused attention across multiple diagnostic components such as bug descriptions, stacktraces, and test cases, while failures often exhibit over-localized attention toward metadata such as version information. We further observe that stronger alignment between model attention and developer-identified key sections and phrases is associated with higher repair success. Our results provide the first empirical evidence that attention misallocation is a key factor in LLM-based APR failures, and offer actionable insights for designing more interpretable and reliable future APR systems.

阅读 arXiv 原文
软件工程与仓库智能 · 3/30 · 2026-07-27工业LLM测试切片与断言生成NL2Test从自然语言描述与流量捕获生成可执行API回归测试Industrial Practice of LLM-Based Test Case Carving and Assertion Generation (Experience Paper)

Enterprise regression testing for microservice systems is often constrained by incomplete or outdated documentation. In practice, QA engineers frequently rely on real execution traffic to reconstruct business scenarios; however, turning raw traffic into replayable regression tests with stable validation logic remains labor-intensive and error-prone. This paper presents NL2Test, an end-to-end approach and tool that generates executable API regression tests from (i) a natural-language scenario description and (ii) a traffic capture recorded while executing the scenario. NL2Test addresses two coupled tasks: test case carving, which extracts a minimal replayable request sequence and reconstructs data dependencies so that dynamic values are bound from their responses rather than hard-coded; and assertion generation, which produces assertions aligned with business intent while avoiding non-deterministic fields and hallucinated paths. To improve reliability, NL2Test uses LLMs for semantic interpretation and constrained code synthesis, and uses deterministic algorithms for request filtering, dependency confirmation via value consistency, and assertion-path validation. We evaluate NL2Test on 51 industrial regression scenarios extracted from a large consumer-facing Internet company. NL2Test achieves an exact-match rate of 82.4% (42/51), and produces a functionally usable draft in 98.0% (50/51) of scenarios when allowing minor post-edits. In a 9-month production deployment starting in March 2025, NL2Test generated 3,196 test cases with an overall code adoption rate of 85.4%. These results indicate that traffic-grounded generation with deterministic guardrails can substantially reduce manual effort while improving regression automation in complex microservice environments.

阅读 arXiv 原文
软件工程与仓库智能 · 3/30 · 2026-07-24AI从App原型生成待办列表评估多模态方法评估GPT-4o在史诗/用户故事上的F1达52-66%How Well Can AI Generate Backlogs from App Mockups?

Creating sprint backlogs requires considerable effort, as items such as epics, user stories, and tasks can be missed or inconsistently specified. We propose a multimodal approach to support backlog generation from visual app mockups, an artifact available at early project stages. We evaluate three prompting strategies on GPT-4o: a zero-shot baseline, Compositional Chain-of-Thought (CCoT) for vision-language reasoning, and a persona-driven prompt. We study seven app development projects across two countries and interview developers about the results. Overall, we observed that the baseline prompt favours recall over precision, whereas CCoT is more balanced, achieving average F1 scores of 52-66% for epics and user stories. Tasks were more challenging to generate accurately. Precision gains were most consistent when adding architectural context, particularly for backend tasks (precision gains up to 35%). Interviews with developers revealed that up to 26% of false positives were still considered useful, reflecting the creative and open-ended nature of backlog creation. To capture this, we propose a new measure called Revised Recall, which complements ground-truth evaluation with developer assessments. Our findings suggest that hybrid prompting with architectural context can assist backlog generation from early mockups, though results vary by item type and developer oversight remains necessary.

阅读 arXiv 原文
软件工程与仓库智能 · 3/30 · 2026-07-24全球数据保护需求比较与概念化跨司法辖区监管需求识别,为隐私合规要求工程提供系统化方法Comparing and Conceptualizing Data Protection Requirements Worldwide for Privacy Regulatory Compliance

The growing digitalization of society has intensified the collection, processing, and sharing of personal data, increasingly moving across national borders and regulatory jurisdictions, prompting a proliferation of data protection frameworks worldwide. These transborder personal data flows (TPDF) are essential to today's economy, but organizations managing them must reconcile data protection requirements that differ, sometimes subtly, across jurisdictions. For requirements engineering, this is the central challenge: regulatory data protection requirements (RDPRs) are complex and not directly translatable into software requirements, especially when frameworks impose similar, non-identical, or contradictory obligations. Identifying which requirements are shared and which diverge is therefore critical to managing TPDF, and addressing them late in the software development lifecycle (SDLC) causes costly rework, making early identification essential for compliance and stakeholder communication. This paper identifies and conceptualizes common RDPRs worldwide from the perspective of data protection legal experts, answering: (SQ1) which requirements are common across regulations and how are they conceptualized, and (SQ2) which requirements diverge and how do they differ conceptually. We combine deductive qualitative analysis of interviews with 70 legal experts from G20 economies and other countries and systematic content analysis of these economies' data protection regulations. We identify common requirements, such as consent, and divergent ones, such as the right to be forgotten. Given their impact across the SDLC and enterprise architecture, we translate these findings into a set of Data Protection Officer DPO (DPO) stories, using the user story notation, classified by SDLC phase and enterprise architecture layer, to help organizations manage TPDF compliance.

阅读 arXiv 原文
软件工程与仓库智能 · 4/30 · 2026-07-24开发者回应AI审查评论实证研究分析54,791条AI生成审查评论,核心开发者处理72.9%已解决评论"Go Home Copilot, You're Drunk": Understanding Developer Responses to Agent-Generated Code Review Comments

Code review is a critical quality assurance practice in software engineering development, and AI coding agents are increasingly generating review comments on pull requests. However, little is known about how developers actually respond to such agent-generated feedback. In this paper, we present the first large-scale empirical study on the resolution of agent-generated code review comments. We analyze $54{,}791$ comments generated by five widely used coding agents (i.e., Copilot, Cursor, Codex, Devin, and Claude) across $342$ Python repositories on GitHub. We examine (1) resolution rates across agents and comment types, (2) the role of developer experience, and (3) characteristics that influence comment usefulness. Our results show that resolution rate varies considerably across agents, with Copilot accounting for the majority of resolved comments (72.9\%). Core developers resolve the majority of agent-generated feedback, particularly for \textit{design} and \textit{evolvability}-related comments, while peripheral developers are more involved in resolving \textit{functional defect} comments. Through open card sorting of 470 unresolved comment discussions, we identify \textit{ten} discussion patterns explaining why comments remain unresolved, with \textit{incorrect suggestions} and \textit{intentional design decisions} being the most prevalent. Finally, our analysis reveals that the presence of an inline \textit{code suggestion} is the strongest predictor of comment resolution, while lengthy and complex comments are less likely to be acted upon. Our findings provide insights for improving AI-generated code review feedback and its integration into development workflows.

阅读 arXiv 原文
软件工程与仓库智能 · 6/30 · 2026-07-23需求工程质量的信息粒子模型信息粒子转移模型量化需求工程中信息流有效性与可操作洞见Information is all you need: Requirements Engineering Quality Reframed

To move beyond this vague appeal to context, this vision proposes a novel holistic theory of requirements engineering (RE) quality. This theory models how information particles, i.e., discrete pieces of domain knowledge, are transferred between roles and artifacts. Since the RE process is ultimately an information transfer, holistic RE quality depends on the properties of information flow, i.e., how effectively and efficiently information is transferred from sources (like stakeholders) to targets (like developers and testers), uniting both artifact- and process-based perspectives on RE quality. In an exemplary simulation of the theory we illustrate why a high-quality specification gets bypassed in an agile context, thereby demonstrating that a simulation can provide actionable insights into calibrating the RE process to optimize the information flow. Beyond organizational applications, we envision that the theory can serve as a coherent theoretical framework for understanding the success or failure of RE processes and artifacts.

阅读 arXiv 原文
软件工程与仓库智能 · 6/30 · 2026-07-21联邦学习开发者痛点实证分析495个SO帖子和9,116个GitHub议题,环境配置为持续难点Understanding Developer Pain Points in Federated Learning: Insights from Stack Overflow and GitHub

Federated Learning (FL) enables collaborative model training without centralizing raw data, but building and operating FL systems remains difficult due to distributed execution, rapidly evolving frameworks, and privacy and governance requirements. In this paper, we present an empirical study of FL developer challenges by independently analyzing 495 Stack Overflow posts and 9,116 GitHub issues and pull requests from 92 FL-related projects. Using BERTopic-based topic modeling and difficulty indicators such as unresolved rates and median resolution time, we characterize recurring problem areas and compare how they manifest across the two support platforms, Stack Overflow and GitHub. Our analysis surfaces nine dominant Stack Overflow topics and thirteen GitHub topics, with persistent difficulties concentrated in environment setup and dependency compatibility, API breakages and migration, training instability under non-IID data, evaluation and metric correctness, and the integration of privacy-preserving mechanisms. We also categorize posts by question intent to understand the kinds of help developers seek; this intent analysis shows that "How"-type questions dominate, reflecting strong demand for procedural guidance. Several topics, such as "TFF Installation and Environment Compatibility" and "Federated Feature Engineering and SecureBoost Issues," exhibit high unresolved rates and long resolution times, suggesting shortcomings in tooling, documentation, and debugging support. Based on these findings, we provide actionable implications for FL framework designers, documentation authors, and educators. Although our results are constrained to public discussions and a subset of widely discussed frameworks, the study offers a scalable method for continuously monitoring developer pain points and improving the usability, reliability, and deployability of FL systems.

阅读 arXiv 原文
软件工程与仓库智能 · 6/30 · 2026-07-21TrapHunter:代币合约陷阱路径检测意图偏差分析识别伪装合规的代币合约中的隐藏欺诈逻辑TrapHunter: Exposing Covert Pathways in Trap Token Contracts

Standardized token contracts (e.g., ERC-20) form the foundation of digital assets. However, attackers increasingly abuse this standardization to disguise malicious trap tokens. Unlike obvious violations, these contracts employ a strategy of "deceptive adherence": they strictly adhere to standard protocols to evade detection while embedding covert logic to defraud users. To address this, we first systematize the trap landscape by proposing a novel taxonomy derived from the intrinsic functional lifecycle of tokens (Generation, Circulation, Persistence, and Observation). We then propose TrapHunter, a framework designed to identify these traps and expose covert pathways within these deceptive contracts via intent deviation analysis. Specifically, TrapHunter introduces a unified semantic representation combining Abstract Behavior Trees (ABTs) and Augmented Path Graphs (APGs) to normalize intra-procedural syntax and reveal hidden execution paths driven by inter-procedural state dependencies. Crucially, it bridges the semantic gap by leveraging LLMs to reason about the behavioral intent of deviations from reference implementations, followed by fork-based dynamic validation to confirm exploitability. Experimental evaluation on 269 real-world contracts with three LLMs (DeepSeek, GPT, and Gemini) demonstrates that TrapHunter effectively detects all six categories of traps, achieving an average precision of 81.8% and recall of 85.4%, significantly outperforming state-of-the-art tools.

阅读 arXiv 原文
软件工程与仓库智能 · 3/30 · 2026-07-20Mure:无损DNN变异测试加速首个可证明无损加速框架,通过记忆化重用原始模型公共前缀Provably Lossless Acceleration of DNN Mutation Testing via Memoization

Mutation analysis has recently reemerged in the context of deep neural networks (DNNs) as a promising, but notoriously costly, approach for assessing test dataset adequacy. Existing techniques speed up DNN mutation testing through lossy approximations that trade efficiency for mutation score accuracy. This paper introduces Mure, the first provably lossless framework for accelerating DNN mutation testing via memoization. Mure is based on the idea that DNN mutants and the original model share substantial redundant computation, so during mutation testing, it executes only the mutated suffixes of each mutant and reuses the common prefix from the original model, which is computed only once. We give a formal account of memoized mutation testing, and prove that Mure is sound, i.e., it produces results equivalent to exhaustive vanilla mutation testing, and identify basic conditions under which speed-up is guaranteed. We have implemented Mure and evaluated it on 15 DNN models of various architectures, complexities, and sizes ranging from a few thousands to millions of parameters. This provides empirical evidence that Mure reduces the computational cost of mutation testing by 44.54%, on average. We also observed that while state-of-the-art techniques tend to yield higher acceleration (up to 88.97%, on average), they come at the cost of some error in mutation score. We further analyze the effect of mutation generation selection ratio on the effectiveness of Mure and observed predictable reductions in memoization opportunities with increasing the percentage of mutated neurons. We observed that Mure offers more than 20% speed-up even when as high as 5% of the neurons are mutated.

阅读 arXiv 原文

代码质量与优化(10 篇)

代码质量与优化 · 6/30 · 2026-07-28强化学习用于代码优化三阶段解决执行时间作为奖励时的测量噪声、稀疏性与GRPO不稳定Reinforcement Learning for Code Optimization

RL for code correctness is now established: have the model generate a program, run it against hidden test cases, and reward solutions that pass. Extending this to code optimization seems straightforward: just add execution time to the reward. But in practice, once timing drives the reward, small problems in measurement noise, reward sparsity, or GRPO instability overwhelm the signal and make RL fail: generated solutions are barely faster, and more of them can fail. We make execution time learnable through three stages: (1) how code is tested, by building DMC-Optim with large optimization tests and a calibrated sandbox; (2) how speed is turned into reward, by composing correctness and speed in the RL environment and using an offline simulator to predict the most promising configurations; and (3) how the model learns from that reward, by adapting GRPO and evaluation to the sparser, noisier timed-execution setting. On DMC-Optim, the strongest optimization-aware configurations improve strict top-50% pass@1 from 18.0% to 31.3% on Qwen 2.5 7B and from 30.7% to 50.4% on CWM 32B. These gains further increase at stricter percentiles such as top-30%, with 125% relative improvement for CWM 32B, while preserving pure-correctness scores. When the timing sandbox is degraded, robust optimization RL reaches 100% to 200% improvement over standard RLVR, depending on the evaluation criterion. On LCB, CWM 32B wins up to 83% of median-sample speed comparisons against standard RLVR. Relative to the fastest correct human submissions per problem, it reaches about half the human rate of complexity-class improvements (14% vs. 28%).

阅读 arXiv 原文
代码质量与优化 · 3/30 · 2026-07-26Optimo:混合提示多级代码优化Mixture-of-Prompts架构识别性能瓶颈,从多个级别优化源代码Multi-level Code Optimization via Mixture of Prompts

Runtime efficiency is a critical factor that impacts both software quality and user satisfaction. There are many approaches proposed for code optimization to improve runtime efficiency. Traditional code optimization methods operate on intermediate representations (IRs) during compilation for static languages. They are effective but struggle to handle dynamic languages that do not require compilation. Recently, large language models (LLMs) have been leveraged to directly optimize source code in dynamic languages. However, these methods fail to identify suitable optimization targets and usually conduct incomprehensive single-level optimization. To address these challenges, we propose Optimo, a multi-level LLM-based code optimization approach built on a novel Mixture-of-Prompts (MoP) architecture. In the MoP architecture, Optimo identifies time-critical code structures as performance bottlenecks via differential profiling. These structures are then routed to some optimization strategies, akin to expert models in MoE, each tailored to optimize specific code patterns. Unlike traditional approaches that focus only on statement-level optimizations, Optimo operates at four levels of abstraction, ranging from coarse-grained algorithmic improvements to fine-grained optimizations in API usage. We evaluate Optimo on two code efficiency benchmarks, COFFE and Effibench. Our results demonstrate that Optimo achieves an up to 57.48% opt%, i.e., the percentage of optimized programs that are correct and at least 10% faster than the original programs, and an up to 3.97x speedup when optimizing human-written code, and it consistently outperforms the best baseline by up to 96.51% in terms of opt%. Furthermore, Optimo achieves an up to 42.42% opt% and an up to 13.51x speedup when optimizing LLM-generated code.

阅读 arXiv 原文
代码质量与优化 · 4/30 · 2026-07-24MineValiCoder:测试质量挖掘与互验证闭环TDD框架通过自验证过滤缺陷测试,二分图互验证选择可靠代码MineValiCoder: Reliable Code Generation with Test Case Quality Mining and Bipartite Graph-Based Mutual Validation

Large Language Model (LLM)-based Test-Driven Development (TDD) has advanced automated code generation. However, existing approaches depend heavily on human-crafted test cases and cannot operate effectively when only natural-language requirements are available. Although recent work enables automatic test generation, it often overlooks the inherent stochasticity of LLMs, leading to two key defects: faulty tests generate misleading feedback that distorts code optimization, while mixed-quality test cases produce conflicting evaluation signals that hinder reliable code selection. To address these challenges, we propose MineValiCoder, a collaborative closed-loop TDD framework based on the mutual reinforcement of test-case quality and code quality. MineValiCoder comprises three modules. The Test Case Quality Mining (TCQM) module filters faulty test cases through self-validation, providing reliable optimization supervision. The Parallel TDD Refinement module iteratively optimizes code and generates diverse high-quality code candidates using validated test-case feedback. The Bipartite Graph-Based Code-Test Mutual Validation (BiCoTeV) module dynamically models code-test interactions and performs mutual validation scoring for stable and reliable optimal-code selection. Extensive evaluations across four LLMs and mainstream benchmarks show that MineValiCoder significantly outperforms state-of-the-art methods. Specifically, it achieves Pass@1 scores of 96.34% on HumanEval, 87.40% on MBPP, 64.00% on APPS, and 51.33% on LiveCodeBench. These results demonstrate the effectiveness of MineValiCoder in mitigating LLM stochasticity and improving the reliability of automated code generation.

阅读 arXiv 原文
代码质量与优化 · 8/30 · 2026-07-24PolyBO:伪数据加速实验条件优化自适应多项式回归生成高质量伪实验数据,加速贝叶斯优化收敛Optimization of time-consuming experimental conditions using pseudo-experimental data guided by adaptive polynomial regression

Bayesian optimization (BO) is an optimization method that sequentially proposes the next candidate explainable variables for optimizing target variables by balancing exploration and exploitation. BO is often used under a limited evaluation budget, such as hyperparameter tuning of deep learning. Despite its effectiveness, conventional BO may have poor convergence in practical experimental science where each evaluation is often costly and time-consuming. Recently, BO methods have been proposed that accelerate optimization by using pseudo-experimental data that simulate experimental data. However, when only a limited number of experimental data are available, the generated pseudo-experimental data may be of insufficient quality. In this study, we developed PolyBO to improve optimization time by generating high-quality pseudo-experimental data even when the number of trials is limited. PolyBO performs BO efficiently by generating pseudo-experimental data with an adaptively updated versatile parametric model. This low-capacity polynomial regression model is intended to enable efficient BO even with limited experimental data. PolyBO updates the BO surrogate model with a combined dataset consisting of experimental data and pseudo-experimental data and then performs optimization. Using synthetic benchmark functions with diverse landscapes, we found that PolyBO reduced the optimization time by a median of 42\%. For a real-world material composition optimization problem, PolyBO reduced the optimization time by a median of 96\% compared with conventional methods. Overall, PolyBO achieves efficient optimization in settings where each experiment requires a long time.

阅读 arXiv 原文
代码质量与优化 · 0/30 · 2026-07-23小型LLM助射电天文学代码优化利用LLM优化LOFAR升级中的大规模代码,应对40倍计算增长Enhancing SLMs for Sustainable Code Optimization in Radio-Astronomy

Recent Large Language Models (LLMs) can produce and optimize complex code. We investigate the use of LLMs to generate and optimize code for large-scale sciences, focusing on radio astronomy and sustainability. The LOFAR telescope is currently being upgraded, significantly increasing the sky area observed, while simultaneously processing more data faster. However, this is expected to increase the computational requirements 40-fold. This upgrade thus critically depends on rigorous performance optimization of existing software and widespread adoption of accelerators. The code base is very large, making this a daunting task. We therefore investigate and demonstrate an AI-driven approach meant to assist developers in evaluating and optimizing their code, including porting to hardware accelerators. The LOFAR community is committed to sustainable solutions, and needs to achieve these improvements without increasing the energy budget. We thus need to optimize existing codes or port them to accelerators, while making sure that the optimization process itself is also energy efficient. This poses a challenge, since LLMs are energy-intensive. We therefore propose to use Small Language Models (SLMs) instead to limit environmental impact. In this paper, we show how to enhance SLMs through the use of agentic AI. We extend the SLMs in two ways to improve code generation quality and performance: first with a multi-sampling generation strategy and second with incorporating compiler feedback. We demonstrate that multi-sampling SLMs can match or surpass larger single-generation models with fewer computational resources and that feeding compiler output back into the SLMs leads to consistent improvements across all tested models. Our approach is generic, and can also use Retrieval Augmented Generation (RAG) as well as static and dynamic analysis tools in the code generation pipeline.

阅读 arXiv 原文
代码质量与优化 · 3/30 · 2026-07-22MoST:跨场景多源代码优化策略统一格式化教科书/网页等知识源,跨编程语言场景应用优化规则Multi-Source and Cross-Scenario Strategy-Guided Code Optimization

Automated code optimization improves program performance by refactoring source code, and recent studies use LLMs to generate optimization patches. The newest approaches are strategy-guided: they summarize strategies from historical optimization commits as static analysis rules, and use these rules to match code locations for LLMs to optimize. However, these approaches have two limitations: (1) the strategies may come from other knowledge sources, such as textbooks and web pages, but the existing approaches cannot utilize them; (2) a strategy may be applicable to different scenarios, e.g., different programming languages, but existing approaches can only formalize strategies for the scenario to which the source commit belongs. To address these limitations, we propose MoST, an LLM-based code optimization framework that integrates multiple knowledge sources across scenarios. MoST uniformly represents items in different knowledge sources as evidence objects, clusters them in a cross-source and cross-scenario manner to identify strategies, and transfers them to the target scenario when necessary for generating static analysis rules. To implement this process, MoST employs a novel self-balanced weighted clustering algorithm to balance evidence objects from different knowledge sources, and a novel example transfer procedure to ensure the quality of the generated rules when transferring across scenarios. On a benchmark containing 151 C/C++, 150 Python, and 50 Rust historical optimization tasks, compared with SemOpt, MoST yields 24.44%-180.00% and 21.88%-37.50% more patches that are exactly the same as or semantically equivalent to developer patches, respectively. When optimizing 15 real-world projects, MoST achieves 19.72%-717.42% maximum improvements and 4.44%-258.17% average improvements for the performance tests in the projects, significantly outperforming SemOpt and Codex.

阅读 arXiv 原文
代码质量与优化 · 5/30 · 2026-07-19Prefactory:自动库采纳重构LLM合成可执行搜索启发式,系统性替换手写代码为库API调用Prefactory: Automated Discovery and Application of Library-Adoption Refactorings

Replacing hand-written code with library API calls is a common refactoring that can reduce code size, make code more idiomatic, and reuse well-tested implementations. Yet many library-adoption opportunities are hard to find automatically: the original code often does not mention the target library and may resemble the library API only in behavior, with little syntactic overlap. Existing tools, such as linters and static modernizers, cover only a small set of manually specified patterns. LLMs and LLM-based agents, on the other hand, can generalize to more patterns, but they are costly, difficult to reproduce and to apply systematically at scale. This paper introduces Prefactory, an automated approach for library-adoption refactoring in Python. The key idea is to use an LLM to synthesize executable search heuristics rather than relying on repeated LLM prompting over a codebase. Given a target project and a target library name, Prefactory collects library metadata and project vocabulary, then generates lexical and structural detectors. Prefactory executes the detectors during a scan phase to find candidate functions. It then heuristically ranks the candidate functions, generates refactorings for the highest-ranked ones using an LLM, and validates the results with project tests and newly generated differential tests. We evaluate Prefactory on PrefactoryBench, a benchmark of 100 real-world library-adoption refactorings from 61 open-source Python projects and 18 libraries. Prefactory detects 75 instances at the file level and 56 at the function level, compared with 35 and 32 for the strongest baseline (Codex CLI). From the 56 detected functions, Prefactory produces 40 test-validated refactorings.

阅读 arXiv 原文
代码质量与优化 · 3/30 · 2026-07-13自改进编码智能体积累行为规则每次评审意见编码为持久规则,35+微服务平台从5条扩展到18条Self-Improving AI Coding Agents Through Accumulated Behavioral Rules: A Closed-Loop Framework

LLM-based coding agents repeat the same classes of mistakes across sessions because they lack a mechanism to retain corrections from human review feedback. We present a closed-loop framework in which every accepted review comment is codified as a persistent behavioral rule, progressively expanding the set of error classes the agent can self-detect. The framework combines an accumulating rule set in a version-controlled instruction file, a self-review checklist executed before code submission, and automated validation that ensures rule set integrity as it grows. In deployment across a 35+ service microservices platform, the rule set grew from 5 to 18 behavioral rules, 15+ language-specific standards, and a 15-item self-review checklist, all derived from real review feedback. We present empirical results from 11 recorded working sessions spanning code generation, PR review, incident investigation, and cross service refactoring. We observe that accumulated rules shift review effort from low-level correctness toward design-level validation, achieve a measured 0% recurrence rate for ruled-against error classes, and transfer across heterogeneous agent interfaces. We compare our approach against related work in experiential LLM learning (Reflexion, ExpeL, Voyager) and automated code review (CodeReviewer, SWE-bench agents), showing that our framework achieves persistent cross-session learning without weight updates, operates on production codebases rather than synthetic benchmarks, and addresses an orthogonal dimension (behavioral consistency over time) that existing benchmarks do not measure. The result is a coding agent that improves with every review cycle, accumulating the engineering wisdom of its human collaborators without changing a single model weight.

阅读 arXiv 原文
代码质量与优化 · 3/30 · 2026-07-11证据引导缓解代码异味谄媚偏差首次系统研究LLM对提示假设的谄媚,决策翻转率高达72%Mitigating LLM Sycophancy in Code Smell Detection Using Evidence-Guided Reasoning Prompts

Large Language Models (LLMs) are increasingly used for code smell detection tasks due to their ability to interpret program semantics. However, their reliability in this context remains poorly explored, particularly under varying prompt conditions where model predictions may be influenced by external cues rather than code characteristics. One such limitation is sycophancy bias, where models tend to align their outputs with user-provided assumptions instead of performing objective analysis. In this paper, we present the first systematic empirical study of sycophancy bias in LLM-based code smell detection. Using the MLCQ dataset, we evaluate how different prompt framings like confirmation bias, contradictory hints, and false premises affect model predictions. Our results show that LLMs are highly sensitive to prompt variations, with Decision Flip Rates reaching up to 72% and False Alignment Rates exceeding 90%, indicating substantial instability and agreement with misleading prompts. To address this issue, we propose Evidence-Guided Debiasing Prompting (EGDP), a structured prompting strategy that enforces evidence-first reasoning. EGDP reduces decision instability and improves robustness, lowering Decision Flip Rates to as low as 12% and False Alignment Rates to as low as 21%, while increasing reliance on structurally grounded evidence. Our findings demonstrate that sycophancy bias poses a critical threat to the reliability of LLM-based code smell detection, and that evidence-guided reasoning provides an effective and generalizable mitigation approach.

阅读 arXiv 原文
代码质量与优化 · 3/30 · 2026-07-11开源ML项目容器化实践分析1,993个ML Dockerfile实证,平均10.27GB,构建约8.84分钟ML in a Box: Analyzing Containerization Practices in Open Source ML Projects

Containerization has become increasingly essential in the machine learning (ML) domain, providing reproducibility, portability, and environment consistency. While prior studies have analyzed Dockerfile structures and best practices, none have examined ML projects in depth to reveal how the iterative nature of ML workflows influences container footprint, build performance, and caching behavior. We present the first large scale empirical study of 1,993 ML related Dockerfiles, combining quantitative analysis of container roles in ML projects and build dynamics with a qualitative investigation of refactoring practices. Results show that containers serve distinct roles across training, inference, and infrastructure. Containers are typically large, averaging 10.27 GB in size, and require long build times of about 8.84 minutes. We find that 44.4% of commits trigger rebuilds, primarily due to context file changes (96.4%), with experimentation being the main motive behind those commits that initiate rebuilds. Despite partial cache reuse, 71% of rebuild work is wasted on redundant computation. From stable projects, we identify 7 recurring ML-specific Dockerfile refactoring patterns that improve build efficiency and reduce container footprint.

阅读 arXiv 原文

UI 与 GUI Agent(2 篇)

UI 与 GUI Agent · 3/30 · 2026-07-20Sidekick:多任务GUI智能体通信环境提示+多模态摘要支持用户快速恢复后台智能体执行上下文Sidekick: Designing Communication for Effective Multitasking with Computer Use Agents

Computer Use Agents (CUAs) can autonomously execute complex, multi-step tasks within GUIs, enhancing efficiency through parallel multitasking. However, our formative studies with CUA experts and GenAI users indicated that current feedback is primarily text-based, requiring sustained attention to monitor progress and offering limited visibility to trace past GUI interactions. Based on the findings, we developed a prototype system, Sidekick, for communicating CUAs' status with multimodal feedback across different stages of interaction: (i) When CUAs run in the background, Sidekick signals its execution state through ambient cues. (ii) Upon resuming interaction with CUAs, Sidekick provides multimodal summaries of completed actions to support rapid context resumption. (iii) When CUAs operate in the foreground, Sidekick enhances transparency by verbalizing and visualizing the agent's reasoning. A study with 30 participants demonstrated that Sidekick significantly improved multitasking performance with CUAs compared to baseline systems that presented textual feedback either in a typical chat or in an ambient display. Sidekick supported progress awareness, and error and action traceability more effectively. Finally, we demonstrate the promise of Sidekick through several example applications, and discuss implications for long-horizon human-agent collaboration.

阅读 arXiv 原文
UI 与 GUI Agent · 7/30 · 2026-07-16AI Prototyper:Figma原型插件自然语言描述通过分解+RAG自动生成可编辑Figma GUI原型AI Prototyper: A Figma Plugin for Decomposition-Based GUI Prototyping with LLMs

Graphical user interface (GUI) prototyping remains a time-consuming activity that demands both design expertise and considerable manual effort. As GUI prototypes are non-code artifacts that evolve alongside requirements throughout the development cycle, automating their generation is directly relevant to software maintenance and evolution. We present AI Prototyper, an open-source Figma plugin that automates GUI prototyping through a decomposition and retrieval-augmented generation (RAG) pipeline. Given a natural-language description of a desired screen, such as a login page or a product detail card, the plugin decomposes the request into discrete GUI features, retrieves matching components from a custom 32-primitive library, and renders each component as a fully editable Figma layer with auto-layout. The pipeline uses Gemini 2.5 Flash as its LLM back-end and a Node.js Express service. Unlike existing decomposition-based tools, AI Prototyper introduces a human-in-the-loop editing step that lets users review, modify, or extend the generated feature list before rendering, uses a different technology stack and LLM family, and supports multilingual input, producing correctly labelled interfaces in Thai, English, and Mandarin Chinese. In a preliminary evaluation, participants using AI Prototyper completed more prototypes in a fixed time window than those working manually, and expert practitioners rated the AI-generated prototypes higher across nine quality dimensions. A demonstration video is available at https://youtu.be/pRoFAH7MQaE. The source code and component library are available at https://github.com/tongsalangsingha/AI-prototyper-tool

阅读 arXiv 原文

个人知识与本体(16 篇)

个人知识与本体 · 4/30 · 2026-07-29MemSecBench:记忆投毒全周期基准310个跨领域案例跟踪恶意语义从持久化到下游后果及选择性修复MemSecBench: Tracking Agent Memory Poisoning from Persistence to Consequence and Repair

Memory systems allow agents to retain and reuse information from past interactions, but they can also let malicious content persist. A malicious instruction crafted by an attacker may be stored in long-term memory, recalled much later, and quietly shape a real action. Recent benchmarks increasingly examine agent memory security, yet few trace the same malicious semantics across persistence, downstream consequences, and selective repair under diverse memory-backend comparisons. To address this gap, we introduce MemSecBench, a task-grounded benchmark for the lifecycle security of agent memory systems. It contains 310 cases drawn from 48 realistic contexts across code and science, daily life, and office work. Each case follows a controlled Write--Execute--Forget protocol in an isolated runtime under an exact agent configuration, defined by an agent harness, a memory backend, and an LLM backend. Evidence-based adjudication combines a deterministic write check, checkpoint-specific judge-model evaluations, and programmatic gates across seven lifecycle checkpoints. The experimental design spans a 24-configuration matrix of two agent harnesses, four memory backends, and three LLM backends. Across all 24 configurations, malicious memory persists in 84.2% of all cases, and the full Write--Execute chain succeeds in 50.3%. Among successfully poisoned cases, 59.6% complete the full Execute chain, while 56.1% achieve selective repair.Compared with matched Native configurations, the largest absolute differences are 16.1 percentage points for end-to-end attack success and 41.3 percentage points for selective repair. These descriptive contrasts indicate that the evaluated memory system stacks differ in lifecycle security, both in the propagation of malicious memory and in selective repair after successful memory poisoning.

阅读 arXiv 原文
个人知识与本体 · 4/30 · 2026-07-29Setoka:分层用户理解基准从语义记忆到人格特质四层次评估个性化智能体的用户深层理解Setoka: A Benchmark for Hierarchical User Understanding in Personalized Agents over Heterogeneous Data

Personalized agents are increasingly applied to assist users across a wide range of tasks. Effective personalized assistance requires not only retrieving explicit facts from past interactions stored in agent memory, but also inferring abstract personal characteristics. However, existing memory benchmarks primarily evaluate whether an agent can retrieve information explicitly stated in conversational histories, failing to provide an effective assessment of deeper user understanding. In this work, we propose Setoka, a benchmark for evaluating memory-augmented personalized agents with hierarchical user understanding from heterogeneous data. Grounded in theories from cognitive and personality psychology, Setoka defines four levels of user understanding, i.e., semantic memory, episodic memory, behavior pattern, and personality trait. Moreover, to enable realistic yet privacy-preserving evaluation, we design a psychometrics-based pipeline that synthesizes diverse, coherent heterogeneous user data and queries at scale. Finally, we leverage Setoka to evaluate 3 language models combined with 5 memory systems for 10 synthetic users. Our comprehensive evaluation reveals that while existing systems perform well on semantic memory retrieval, their performance declines on episodic memory. Moreover, when dealing with behavior pattern and personality trait understanding tasks that require integrating heterogeneous and fragmented information dispersed over time, performance declines even further. These findings demonstrate that user understanding cannot be handled by simple fact retrieval, motivating the design of memory mechanisms for cross-source integration and abstraction over long-term user behavior.

阅读 arXiv 原文
个人知识与本体 · -3/30 · 2026-07-29Metis:记忆原生基础模型将持久演化记忆内化为模型原生能力,实现自主存储与利用Metis: Memory Foundation Model

Recent advances in AI agents have increasingly internalized native capabilities into their underlying foundation models, giving rise to multimodal foundation models and large reasoning models. However, agent memory is still primarily implemented through external modules, leaving the native memory capability largely unexplored. In this paper, we take a first step toward this direction by introducing memory foundation models, which empower foundation models with native memory capabilities. We formalize native memory from two perspectives: a persistent and dynamically evolving memory state within the backbone, and native memory procedures that autonomously store and utilize information through model computation. We show that native memory offers advantages in architecture, end-to-end optimization, and efficiency. Based on this formulation, we propose Metis, the first prototype of memory foundation models. Metis introduces a new architecture that equips a foundation model with a native memory state, allowing historical information to be compressed into the model and accessed through memory attention. We construct large-scale memory-specific training data and introduce multiple optimization objectives to acquire these native memory procedures through mid-training. The online memory maintenance of Metis is gradient-free, and the memory update requires only a forward pass. At inference time, all learned model weights remain frozen, while the native memory states are autonomously transformed through standard forward computation. Through extensive experiments, we show that Metis exhibits native memory capabilities and further provide a detailed analysis of its strengths, limitations, and behaviors. To facilitate future research on memory foundation models, we release our project and model checkpoints.

阅读 arXiv 原文
个人知识与本体 · 3/30 · 2026-07-29文件系统作为LLM智能体记忆首次系统探索目录树Markdown文件的长期记忆组织与演化可行性Filesystem-Based Memory for LLM Agents: Organization, Evolution, and Sustainability

Deployed LLM agents increasingly keep their long-term memory as a filesystem: a directory tree of markdown files that the agent itself reads, writes, and reorganizes through generic file tools. Yet research has largely passed over this medium: prior systems design bespoke memory representations and study retrieval over them, leaving the default's two working assumptions untested: that an agent can keep a growing store organized as memories accumulate, conflict, and go stale, and that this organization pays. We present the first systematic exploration of filesystem-based memory for LLM agents. We formalize the setting as three roles around one memory filesystem: a management agent integrates and organizes incoming content, a search agent answers queries with cited sources, and an execution agent supplies task trajectories that are distilled into skills, unifying declarative memory and skills in a single store. Across long-conversation benchmarks and embodied tasks, we vary memory shape (agent-organized hierarchy, verbatim dump, chunk retrieval), stream scale, tool harness (sandboxed shell, memory-tool-style functions, varied search tooling), and the strengths of the management and search agents, tracking answer quality, cost, and store health as memory grows. What organization reliably buys is search economy: organized stores roughly halve retrieval cost where material is large. Today's agents, however, fall short of the default's promise: in our growth study, organization erodes for all but the strongest management agent, and no agent we measure converts organization itself into better answers. And the model is not the only lever over a store's shape: changing the tool set alone reshapes the store as strongly as swapping the model. The study turns the filesystem default from an assumption into a design space for agent memory.

阅读 arXiv 原文
个人知识与本体 · 6/30 · 2026-07-29NMKFR:时序冷启动推荐框架Titans语义编码器结合卡尔曼状态追踪,后验协方差校准不确定性NMKFR: A Robust Framework for Time-Aware Cold-Start Recommendation

Item cold-start recommendation is difficult when new items have sparse early interactions and appear in recommendation environments that keep changing over time. Static content, early feedback, and temporal-state evidence are all useful, but their reliability varies across the item lifecycle. This work proposes a framework--Neural Memory Kalman Fusion Recommender (NMKFR), which combines a Titans-based semantic encoder with time-aware Kalman state tracking. The semantic branch extracts memory-enhanced item observations from text, while the temporal branch estimates latent states under irregular interaction intervals. The NMKFR further uses posterior covariance as an uncertainty signal to calibrate semantic memory retrieval and adaptive static-temporal fusion. Experiments on Amazon Video Games and MovieLens-32M evaluate NMKFR under time-aware and item cold-start protocols using sampled candidate ranking. Across the reported comparisons, ablations, diagnostics, and robustness analyses, NMKFR achieves the strongest retained results and exhibits bounded uncertainty-related internal behavior. These findings provide empirical evidence for posterior-covariance-guided semantic-temporal fusion under the evaluated offline settings.

阅读 arXiv 原文
个人知识与本体 · 4/30 · 2026-07-27InMind:隐式关联盲点基准125个任务揭示记忆无法关联表层不相似知识,如坚果过敏与马卡龙Keep It InMind: Benchmarking the Implicit-Association Blind Spot in Agent Memory

Long-term memory systems store what a user says in an external store and retrieve it when a related query arrives. This interface rests on an assumption so natural that it is rarely stated: a memory that is needed will resemble the query that needs it. World knowledge breaks the assumption. A tree-nut allergy should change the answer to a macaron request through their almond-flour ingredient, yet the two texts share no cue a retriever can see. We call this failure mode the implicit-association blind spot and introduce InMind, a 125-task, expert-verified benchmark spanning ten life domains, with 113 tasks grounded in citable public sources. Its paired controls separate three explanations that existing evaluations conflate: the fact was never stored, the model lacks the bridging knowledge, or the fact was stored and never surfaced. The verdict is clean. With the decisive memory placed in context, the backbone answers 84.0 percent of indirect queries; when the same memory must be retrieved, six vector, graph, and agentic memory systems reach at most 14.4 percent, even though they recall the same facts on demand at up to 100 percent. An embedding with eight times the dimensionality raises answer-blind target recall for every system yet leaves the gap essentially intact. A minimal diagnostic probe that keeps memory visible before the query arrives recovers most of the gap, locating the failure in the query-conditioned interface itself and pointing to routing, deciding which facts must stay visible, as the open problem InMind is built to score.

阅读 arXiv 原文
个人知识与本体 · 3/30 · 2026-07-27MemTX:事务性信念提交协议记忆写入不等于信念提交,快照隔离事务+验证管道防止污染动作MemTX: Transactional Belief Commit for Stateful Agent Memory

LLM agents increasingly coordinate through persistent shared memory: one agent's write becomes another agent's premise, and eventually a tool call with real side effects. Current agent memory systems treat every accepted write as immediately actionable truth, so a polluted tool result, a stale update, or a teammate's half-finished note can silently drive an irreversible action. We argue that a memory write is not a belief commit. We present MemTX, a transactional belief-commit protocol. Each record carries evidence, permissions, provenance, and validity. Writes are staged inside snapshot-isolated transactions and admitted by a validate-and-commit pipeline, irreversible tool calls are gated on in-flight belief state, and retracting a belief triggers typed cascading repair of its derived records and tool side effects. Two invariants, action-safety gating and cascade-repair completeness, are machine-checked by property-based testing and bounded exhaustive enumeration of 5.5 million protocol states, with zero violations. Across five backbones from three model families, MemTX leads all eight baselines with paired-McNemar significance on four backbones and statistically ties the best baseline on the fifth and strongest, while remaining the only method with zero downstream harm on every backbone. Backbone capability does not substitute for commit discipline.

阅读 arXiv 原文
个人知识与本体 · 5/30 · 2026-07-24先有真相:智能体记忆纵向评估反向流水线先采样事实再生成对话,避免标签误差与污染问题Ground Truth First: A Longitudinal Evaluation Instrument for Agent Memory, and the Tenure Crossover in Memory-Architecture Rankings

Benchmarks for LLM-agent memory typically generate conversations first and extract answer keys afterwards -- with documented label-error and contamination problems -- and they overwhelmingly measure short interaction histories. We invert the pipeline: a seeded life-script sampler emits facts with validity intervals, volatility classes, and source channels before any text exists; an LLM renderer writes chat and email from per-event fact manifests; a fidelity verifier confirms every planted fact; and questions are instantiated mechanically from the script, so gold answers are script-valid by construction and separately validated for answerability. The synthetic, fictionalized corpus (~380 questions, 15 types) embeds features absent from the benchmarks we survey: per-fact validity intervals, sent/received trust distinctions, injection probes in a benign harness, and as-of-date question sets. Benchmarking five memory architectures against a no-memory control (fixed answerer, versioned LLM judge, three replicates, two horizons), we find backend rankings invert with history length: the budgeted curated-map memory that leads at three weeks loses recall of evicted content by nine weeks (96% to 72%) while a provenance-typed graph rises to 90%; the inversion is positive for all six users under complete cross-family re-judging (exact p=0.031). A full-rendered-history baseline ties or exceeds the best memory system at the short horizon but shows no judge-independent advantage at nine weeks, at about twice the read cost. Write-stage quality strongly correlates with downstream quality (weakly-written facts fail 24% vs 2%), and injection resistance tracked whether provenance boundaries survive representation. A layered architecture performs best among the memory systems in both regimes (96.8% short-horizon) and is released as Veracium, an open-source library, with the corpus generator and harness.

阅读 arXiv 原文
个人知识与本体 · 3/30 · 2026-07-23上下文管理是生命周期问题将智能体内存重新定义为生命周期而非存储检索,覆盖决策到压缩Agentic Context Management: Solving Agent Memory and Cost by Treating Them as Lifecycle and Architecture Problems

Production AI agents' failures are less often due to an inability to reason well and more often because they cannot manage what is in their reasoning context: conversation histories, large prompts, large tool definitions, and ballooning tool outputs. Agents drown in their own accumulating history while paying a token cost that grows every turn, producing missing recalls within and across conversations. The incumbent response treats this as a storage-and-retrieval problem. We argue that framing is too narrow. Actively managing what an agent holds in mind is a lifecycle, not merely a store: it spans deciding what to remember, extracting and structuring it, choosing the right store per data type, consolidating and forgetting while preserving provenance, deciding what is relevant now, anticipating what is needed next, and compacting context to a budget without losing what matters. In serious production this operates not over a single user but across an organizational scope hierarchy. We name this discipline Agentic Context Management (ACM) and decompose it into five primitives: architecting, ingesting, scoping, anticipating, and compacting & consolidation. We then make the economic case: naive context accumulation grows token cost quadratically in conversation length, crude summarization buys linear cost at the price of an accuracy cliff, and only validated compaction achieves linear cost with preserved fidelity. We describe a reference implementation, Maximem Synap, that realizes the five primitives as a multi-tenant service and reports 92% on LongMemEval and 93.2% on LoCoMo under the configuration detailed in Section 6. We close with dimensions existing benchmarks do not yet capture, latency, token efficiency, and context-rot resistance, and the frontier of decision-level and organization-level context the category points toward.

阅读 arXiv 原文
个人知识与本体 · 3/30 · 2026-07-23AttriMem:归因引导记忆过程反馈利用归因信号提供细粒度过程反馈,解决记忆构建信用分配瓶颈AttriMem: Attribution-Guided Process Feedback for Agent Memory Learning

Effective memory is crucial for LLM agents, yet constructing it effectively remains challenging. A memory-construction policy decides what information to extract, store, update, compress, or discard as interactions accumulate. Heuristic memory methods rely on subjective, task-specific rules, which can misalign with downstream objectives and limit cross-task adaptability. RL-based methods, by contrast, learn from task feedback but mainly use outcome- or module-level rewards. These coarse signals indicate task success but cannot identify which intermediate memory contents support the final answer, creating a fine-grained credit-assignment bottleneck. However, constructing such process feedback is prohibitively difficult because intermediate memory decisions lack unique ground-truth targets, while the appropriate credit varies with the agent's uncertain reasoning trajectory and therefore cannot be specified in advance. We propose AttriMem, an attribution-guided process-feedback framework for learning memory-construction policies with RL. AttriMem augments the global outcome reward with local rewards derived from token-level contributions to the final answer. Experiments on long-horizon dialogue question answering show that AttriMem outperforms retrieval-based, heuristic, and RL-based baselines, generalizes across benchmarks and answer models, stabilizes RL optimization.

阅读 arXiv 原文
个人知识与本体 · 0/30 · 2026-07-21MR-ConceptGCN:多关系GCN用户建模全无监督方法利用多关系图卷积网络捕捉用户交互序列Sequential Learner Modeling Using Multi-Relational Graph Convolutional Networks

User modeling is a critical task in a variety of personalized systems. Recognizing their effectiveness in learning from graph-structured data, Graph Neural Networks (GNNs), particularly Graph Convolutional Networks (GCNs), are increasingly employed for user modeling. However, existing approaches typically treat different relation types in a graph as homogeneous, limiting their ability to capture richer semantics and construct more informative user models. While multi-relational GNNs (MR-GNNs) have been adopted for representation learning and recommendation, their application for user modeling remains unexplored. Moreover, existing GNN-based user modeling approaches ignore the user interaction sequence. To address these research gaps, in this work we propose MR-ConceptGCN, a novel fully unsupervised approach focused on concept-based sequential learner modeling using multi-relational GCNs (MR-GCNs). MR-ConceptGCN effecively combines Personal Knowledge Graphs (PKGs), MR-GCNs, and the pre-trained language model SBERT to obtain enhanced relation- and semantic-aware representations of the PKG items. The enriched embeddings of the knowledge concepts that a learner did not understand when interacting with learning materials in CourseMapper are then used to construct a sequential learner model that combines long-term and short-term learner interactions. We report the results of an online user study (n = 31), demonstrating the benefits of MR-ConceptGCN in terms of several important user-centric aspects including accuracy, usefulness, diversity, and satisfaction with an educational recommender system.

阅读 arXiv 原文
个人知识与本体 · 3/30 · 2026-07-20AGMR:注意力引导记忆精化利用检索头注意力信号揭示记忆利用模式,指导定向精化Mechanistic Attention Guidance for Agent Memory Refinement

Existing self-evolving memory systems mainly improve agent memory based on textual outputs, such as task trajectories and reflections. However, this text-based paradigm rarely incorporates internal mechanistic signals, leaving how retrieved memory is actually utilized during task execution underexplored. This limitation can lead to unreliable error attribution and hallucinated memory modifications. In this work, we show that retrieval-head attention provides a mechanistic signal for revealing segment-level memory utilization. By aggregating attention over memory segments and decision steps, we construct a context utilization matrix that exposes recurring memory-use patterns and indicates corresponding refinement strategies. Building on this observation, we propose Attention-Guided Memory Refinement (AGMR), a framework that uses utilization patterns revealed by attention to guide targeted segment-level memory updates. AGMR corrects or enhances memory for failed executions, simplifies memory for successful executions, and verifies each update through re-execution. Experiments on interactive decision-making benchmarks show that AGMR improves both task performance and memory efficiency over text-only memory refinement baselines. Code is available at https://anonymous.4open.science/r/AGMR_code-3262/

阅读 arXiv 原文
个人知识与本体 · 7/30 · 2026-07-20保留还是压缩?预算依赖记忆策略形式化记忆保留与合并的效用分解,为智能体选择最优操作符Retain or Consolidate? Budget-Dependent Operator Selection for Language Agent Memory

Language agents depend on memory across interactions. However, the limited context windows of large language models (LLMs) and their inference costs constrain how much memory can be used at once. Existing systems mainly follow two strategies: memory retention and memory consolidation. Retention keeps raw records and preserves exact details, but relevant evidence may not fit under a tight budget; consolidation compresses and combines records, improving coverage per token but risking the loss of query-critical details. Neither strategy is universally preferable. This raises two central questions: when should consolidation replace retention, and which operator -- Merge, Abstract, or Rewrite -- should be selected? We formalize this decision by decomposing each operator's utility into a coverage effect on evidence omitted by retention and a signed replacement effect on raw evidence that already fits. Their balance explains why the preferred action changes with relative budget pressure. We implement this mechanism with Offline Abstraction-Safety (OAS), a lightweight learner that estimates action utilities from pre-generation features with held-out harm calibration. The public LongMemEval and LoCoMo benchmarks show the same budget-dependent pattern. On LongMemEval, consolidation improves absolute accuracy by up to 48% under tight budgets, whereas retention is preferable under loose budgets; LoCoMo replicates this crossover at a smaller budget, consistent with its shorter evidence. On both datasets, cross-note abstraction and merging generally outperform local rewriting when compression is necessary.

阅读 arXiv 原文
个人知识与本体 · 4/30 · 2026-07-18RECON:长上下文组合推理记忆基准24个案卷50k-100k标记,测试多跳证据链等六种记忆密集型任务RECON: Benchmarking Agent Memory for Compositional Reasoning over Long Contexts

Large language models and LLM-based agents are widely used as personal chat assistants, enterprise copilots, and autonomous workflow agents. In all these applications, memory (the ability to retain, access, and reason over information accumulated over long contexts and multiple interactions) plays a crucial role in determining the reliability of any agent. We introduce RECON (Reasoning over Extended Contexts with Obfuscated Narratives), a benchmark for evaluating compositional reasoning over long contexts. RECON spans 24 case files across three domains (criminal, medical, and financial), each ranging from 50k to 100k tokens, and tests agents on six memory intensive tasks: reconstructing multi-hop evidence chains, propagating cascading invalidations, resolving source conflicts, counterfactual reasoning, satisfying temporal constraints, and temporal fact retrieval. Recent memory benchmarks evaluate whether agents can retrieve scattered facts or detect if a fact has changed whereas RECON evaluates what happens after the change, whether agents can trace which downstream conclusions are affected, which survive through independent support, and how alternative timelines would have unfolded. Our evaluation reveals substantial limitations across current architectures: even the strongest non-Oracle system reaches only 22.4% Accuracy, with retrieval and reasoning each surfacing as challenges.

阅读 arXiv 原文
个人知识与本体 · 0/30 · 2026-07-17LazyMem:宽检索精构建记忆策略延迟记忆构建到查询时,轻量模型在并行窗口中选择性保留压缩内容LazyMem: Retrieve Broadly, Construct Selectively for Efficient Long-Term Agent Memory

Long-term memory enables LLM agents to leverage past interactions, but dialogue histories quickly exceed the context window, forcing agents to retrieve relevant subsets at query time. Because useful evidence is sparse and scattered across verbose conversations, retrieval faces a fundamental tension: broadening recall improves coverage but floods downstream reasoning with noise, while compressing memories at write time eases retrieval but irreversibly discards details that future queries may need. We introduce LazyMem, which resolves this tension by deferring all memory construction to query time. Given a retrieved candidate pool, a lightweight model processes it in overlapping parallel windows, selectively retaining and compressing only query-relevant content. The model is trained with supervised fine-tuning followed by reinforcement learning, using a reward that jointly encourages the identification of relevant messages and the generation of compressions that are faithful to the source and useful for answering the query. On LongMemEval, LazyMem-4B achieves an LLM-judge accuracy of 0.85, outperforming the strongest non-oracle baseline while using only 213 answer-context memory tokens, 21.0 times fewer than the baseline. It further generalizes to LoCoMo without target-domain training and reduces mean latency relative to the prior query-time baseline. Code is available at https://github.com/allacnobug/LazyMem.

阅读 arXiv 原文
个人知识与本体 · 3/30 · 2026-07-14Oracle Agent Memory企业级内存数据库原生记忆层,覆盖生命周期与显式范围控制Oracle Agent Memory as an Enterprise Memory Substrate for Long-Horizon AI Agents

Agent memory is a systems problem for long-horizon agents. Practical deployments require retention of task state across extended conversations, recovery of user-specific facts and preferences across sessions, and accumulation of procedural knowledge from prior outcomes. These requirements extend beyond document retrieval: a memory layer must determine which interactions become durable state, how that state is scoped, how it is retrieved under latency constraints, and how it is revised or removed over time. This report studies Oracle Agent Memory as a database-native memory substrate built on Oracle Database. Three themes organize the discussion: memory as a lifecycle spanning ingestion, extraction, consolidation, retrieval, summarization, and revision or removal; a layered architecture that separates an active memory core from a passive memory-store interface with explicit scope control across users, agents, and threads; and evaluation methodology in which downstream task accuracy is complemented by memory-centric measures such as evidence retrieval, recall, latency, and estimated token use. The report summarizes LongMemEval results, reaching 93.8% accuracy, compares Oracle Agent Memory against flat-history baselines, using about 10.7x fewer tokens, and published or reported external baselines where available, and closes with implementation-oriented appendix material covering setup, thread lifecycle, and search semantics.

阅读 arXiv 原文

人机协同与对齐(0 篇)

本轮该赛道没有候选论文。