paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Requirements-Augmented Generation for Trustworthy Acceptance Testing of LLM-Based Software

面向可信的基于 LLM 软件验收测试的需求增强生成
ASE Proceedings of the 41st IEEE/ACM International Conference on Automated Software Engineering2026匹配度 3/10 · 论文聚焦 LLM-based software 的验收测试与测试预言生成,属于软件测试与 LLM 应用交叉,并未涉及用户核心关注的静态分析、形式化验证、浮点程序分析或贝叶斯程序分析。其 RAG 与置信校准级联主要服务于测试判定可靠性,与用户“PL→AI 静态分析”或“AI→PL 分析/验证”主线仅有较弱的 LLM+软件工程背景关联。引用 0 inbox
Fanyu Wang, Chetan Arora, Zhenping Xie, Yonghui Liu, Kla Tantithamthavorn, Aldeida Aleti, Siwei Jiang
crossref: 2026-10-09

AI 速览

一句话:提出 REAG 与置信度校准级联判定,为 LLM 软件自动生成上下文相关的测试预言并给出可靠判定。

基于 LLM 的软件(LBS)把大模型作为核心组件,其输出随用户画像与软件上下文而变且具有随机性,使经典验收测试与测试预言失效。本文提出一个具备判定可靠性校准的自动化验收测试框架,包含两项贡献:其一,需求增强生成 REAG,通过自适应 RAG 检索软件需求、领域知识与用户画像,并结合自推理生成上下文相关的测试预言;其二,针对检索到无关约束、意图误解或需求幻觉,提出置信度校准的级联判定,以模拟专家一致性量化判定可靠性,接受高置信结论、升级模糊案例或在不确定时弃权,并由 conformal risk control 提供经验可靠性保证。在生产级营养咨询应用上的工业案例研究表明,REAG 的预言质量达 3.91/5,82% 的案例达到合格或边缘质量;级联判定准确率 98.8%,经过滤不合格输出把预言质量提升至 4.30,且相比单一判定基线成本效率提升 31.7%,验证了工业可行性。

问题
LBS 的输出依赖上下文且具有随机性,同一查询在不同用户画像与软件情境下需要不同响应,传统验收测试与测试预言无法胜任,也难以可靠解释用户意图。
方法
提出需求增强生成 REAG,用自适应 RAG 与自推理检索需求、领域知识与用户画像以生成上下文相关测试预言;再用置信度校准的级联判定,通过模拟专家一致性量化可靠性,对高置信结论直接接受、对模糊案例升级、对不确定情况弃权,并由 conformal risk control 给出可靠性保证。
评估
在生产级营养咨询应用上开展工业案例研究,测量预言质量评分、判定准确率、成本效率,并与单一判定基线对比。
原文摘要(Abstract)

LLM-based software (LBS) integrates large language models as core components to deliver flexible and personalised responses. Unlike traditional software with deterministic outputs, LBSs exhibit context-dependent, stochastic behaviour that renders classical acceptance testing and test oracles insufficient: the same query may require fundamentally different responses depending on users' personas and software context. This gap creates an urgent need for automated acceptance testing frameworks that can autonomously interpret users' instructions, while also raising the challenge of how we can reliably interpret users' intentions in a changing environment. In this paper, we present an automated acceptance testing framework for LBS with calibrated verdict reliability through two technical contributions. First, we introduce REquirements-Augmented Generation (REAG), which interprets user intentions by retrieving relevant software requirements, domain knowledge, and personas via adaptive RAG and self-reasoning to generate context-aware test oracles. Second, recognising that oracle generation may retrieve irrelevant constraints, misinterpret intent, or hallucinate requirements, we introduce a confidence-calibrated cascade judgment that quantifies verdict reliability via simulated expert agreement, accepting high-confidence verdicts, escalating ambiguous cases, or abstaining when uncertain, with empirical reliability guarantees backed by conformal risk control. An industrial case study on a production nutrition advisory application demonstrates that REAG achieves a 3.91/5 oracle quality score, successfully achieving qualified or marginal oracle quality in 82% of cases. The confidence-calibrated cascade achieves 98.8% accuracy, improves oracle quality from 3.91 to 4.30 by filtering unqualified outputs, and delivers a 31.7% cost-efficiency improvement over single-judge baselines, validating industrial viability.

链接与引用

DOI 原文 · arXiv ·

BibTeX
@inproceedings{paperbot12449,
  title = {Requirements-Augmented Generation for Trustworthy Acceptance Testing of LLM-Based Software},
  author = {Fanyu Wang and Chetan Arora and Zhenping Xie and Yonghui Liu and Kla Tantithamthavorn and Aldeida Aleti and Siwei Jiang},
  booktitle = {ASE},
  year = {2026},
  doi = {10.1145/3832783.3834491}
}