paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Natural Test Generation for Precise Testing of Question Answering Software

面向问答软件精确测试的自然测试生成
ASE Proceedings of the 37th IEEE/ACM International Conference on Automated Software Engineering2022匹配度 2/10 · 该论文研究的是问答软件的黑盒/蜕变测试与测试预言增强,属于软件测试方向,但未涉及静态分析、LLM/Agent、浮点程序分析或贝叶斯程序分析等用户核心方向。虽然标签含“机器学习与程序语言”,但其技术路线与用户关注的 PL→AI 或 AI→PL 交叉点匹配度很低。引用 28 inbox
Qingchao Shen, Junjie Chen, Jie M. Zhang, Haoyu Wang, Shuang Liu, Menghan Tian
crossref: 2026-09-12

AI 速览

一句话:提出QAQA,基于句子级变异蜕变测试,用语义引导搜索和增强预言实现问答软件精确测试。

问答软件基于信息检索与自然语言处理自动回答自然语言问题,但可能含缺陷。现有无标注测试从问答对抽取事实并生成新问题,然而生成的问题可能歧义、混乱或语法异常,导致问答软件无法回答,造成较多误报。本文提出QAQA,一种句子级变异的蜕变测试技术:它使用五个蜕变关系,结合语义引导搜索与增强测试预言,以消除误报并实现精确自动测试。在三个问答数据集上的评估表明,QAQA在报告缺陷数量(8133对6601)和质量(真阳性率97.67%对49%)上均优于最新方法;其测试输入用于微调被测软件时,还将蜕变关系违反率从44.29%降至20.51%。

问题
问答软件可能包含缺陷;现有自动测试生成的问题常歧义或语法混乱,导致不可回答并产生大量误报。
方法
提出QAQA,采用句子级变异蜕变测试,定义五个蜕变关系,并用语义引导搜索和增强测试预言生成精确测试。
评估
在三个问答数据集上,QAQA报告缺陷的数量和质量均超过SOTA,真阳性率97.67%,并降低微调时的MR违反率。
原文摘要(Abstract)

Question answering (QA) software uses information retrieval and natural language processing techniques to automatically answer questions posed by humans in a natural language. Like other AI-based software, QA software may contain bugs. To automatically test QA software without human labeling, previous work extracts facts from question answer pairs and generates new questions to detect QA software bugs. Nevertheless, the generated questions could be ambiguous, confusing, or with chaotic syntax, which are unanswerable for QA software. As a result, a relatively large proportion of the reported bugs are false positives. In this work, we proposed QAQA, a sentence-level mutation based metamorphic testing technique for QA software. To eliminate false positives and achieve precise automatic testing, QAQA leverages five Metamorphic Relations (MRs) as well as semantics-guided search and enhanced test oracles. Our evaluation on three QA datasets demonstrates that QAQA outperforms the state-of-the-art in both quantity (8,133 vs. 6,601 bugs) and quality (97.67% vs. 49% true positive rate) of the reported bugs. Moreover, the test inputs generated by QAQA successfully reduce MR violation rate from 44.29% to 20.51% when being adopted in fine-tuning the QA software under test.

链接与引用

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

BibTeX
@inproceedings{paperbot7190,
  title = {Natural Test Generation for Precise Testing of Question Answering Software},
  author = {Qingchao Shen and Junjie Chen and Jie M. Zhang and Haoyu Wang and Shuang Liu and Menghan Tian},
  booktitle = {ASE},
  year = {2022},
  doi = {10.1145/3551349.3556953}
}