paperbot · PL 论文追踪

全部论文 待读 收藏

P2 AEON: a method for automatic evaluation of NLP test cases

AEON:一种自动评估NLP测试用例的方法
ISSTA Proceedings of the 31st ACM SIGSOFT International Symposium on Software Testing and Analysis2022匹配度 2/10 · 论文关注NLP测试用例的自动评估与测试预言构造,属于NLP软件测试/调试方向;与用户核心关注的静态分析、Agentic程序、LLM辅助静态分析/形式化验证、浮点程序分析和贝叶斯程序分析交叉点关系较弱。虽然涉及机器学习系统可靠性,但方法本身不涉及程序静态分析或LLM/Agent。引用 19 inbox
Jen-tse Huang, Jianping Zhang, Wenxuan Wang, Pinjia He, Yuxin Su, Michael R. Lyu
crossref: 2026-09-12

AI 速览

一句话:提出AEON,自动评估NLP测试用例的语义一致性与语言自然性,降低误报并提升模型训练效果。

NLP自动化测试通过变异已有测试用例并假定标签不变来发现缺陷,但许多生成用例语义不一致或不自然,导致高误报率,需大量人工检查,甚至污染训练。本文提出AEON,对每个生成测试用例从语义相似性和语言自然性两个维度打分,以自动评估其质量。作者在三个典型NLP任务、五个数据集上,用AEON评估四种主流测试技术生成的用例,并与人工判断及基线指标比较。结果表明AEON与人工判断最一致:检测语义不一致用例的平均精度比最佳基线高10%,检测不自然用例的平均精度高15%以上;按AEON优先级筛选用例进行模型训练还能提高准确率和鲁棒性。

问题
现有NLP自动化测试生成的测试用例常无法保持相似语义或不自然,造成高误报率并需要大量人工检查。
方法
提出AEON,对每个生成的NLP测试用例基于语义相似性和语言自然性输出评分,用于自动评价测试用例质量。
评估
在三个NLP任务、五个数据集上评估四种流行测试技术生成的用例,并与人工判断和基线指标比较;还检验按AEON优先级训练模型的效果。
原文摘要(Abstract)

Due to the labor-intensive nature of manual test oracle construction, various automated testing techniques have been proposed to enhance the reliability of Natural Language Processing (NLP) software. In theory, these techniques mutate an existing test case (e.g., a sentence with its label) and assume the generated one preserves an equivalent or similar semantic meaning and thus, the same label. However, in practice, many of the generated test cases fail to preserve similar semantic meaning and are unnatural (e.g., grammar errors), which leads to a high false alarm rate and unnatural test cases. Our evaluation study finds that 44% of the test cases generated by the state-of-the-art (SOTA) approaches are false alarms. These test cases require extensive manual checking effort, and instead of improving NLP software, they can even degrade NLP software when utilized in model training. To address this problem, we propose AEON for Automatic Evaluation Of NLP test cases. For each generated test case, it outputs scores based on semantic similarity and language naturalness. We employ AEON to evaluate test cases generated by four popular testing techniques on five datasets across three typical NLP tasks. The results show that AEON aligns the best with human judgment. In particular, AEON achieves the best average precision in detecting semantic inconsistent test cases, outperforming the best baseline metric by 10%. In addition, AEON also has the highest average precision of finding unnatural test cases, surpassing the baselines by more than 15%. Moreover, model training with test cases prioritized by AEON leads to models that are more accurate and robust, demonstrating AEON’s potential in improving NLP software.

链接与引用

DOI 原文 ·

BibTeX
@inproceedings{paperbot7376,
  title = {AEON: a method for automatic evaluation of NLP test cases},
  author = {Jen-tse Huang and Jianping Zhang and Wenxuan Wang and Pinjia He and Yuxin Su and Michael R. Lyu},
  booktitle = {ISSTA},
  year = {2022},
  doi = {10.1145/3533767.3534394}
}