史诗组织 vs. 需求对齐的 Gherkin:基于 LLM 的验收标准生成的实证评估
Epic-Organized vs. Requirement-Aligned Gherkin: An Empirical Evaluation of LLM-Based Acceptance Criteria Generation
AI总结:
研究比较史诗组织与需求对齐的 LLM 生成 Gherkin 验收标准,发现史诗组织在正确性、可执行性和完整性上更优,语义覆盖率相当。
摘要:
Gherkin 行为驱动开发(BDD)验收标准的自动编写仍然是需求工程中的一个手动瓶颈。本研究调查了史诗组织的 LLM 生成的 Gherkin 是否比需求对齐的生成产生更高的质量和覆盖率。我们比较了我们的 Timeless(一种史诗组织的 LLM 流水线)方法与一个朴素的大语言模型(LLM)基线在来自 PURE 数据集的四个需求文档(107 个需求)上的表现。评估涵盖结构指标、通过 TF-IDF 和密集嵌入的自动需求覆盖率,以及四位研究人员的盲审专家评估。在我们的评估中,JSON 约束的流水线在所有生成的输出中产生了结构有效的场景,而零样本基线实现了 99% 的结构有效性。语义覆盖率与基线相当,Timeless 实现了 94.3% 的语义需求覆盖率,而基线为 92.9%。TF-IDF 对史诗组织的输出产生了较低的覆盖率分数,这表明当场景在更高抽象级别上改写需求时,词汇指标可能会遗漏覆盖率。专家评审员在正确性(4.61 vs 4.14)、可执行性(4.61 vs 4.07)和完整性(4.31 vs 3.50)上更偏好史诗组织策略。总体而言,结果表明史诗组织的生成可以提高感知的 Gherkin 质量,同时保持相当的语义覆盖率,尽管在推广这一发现之前需要更广泛的复制。
英文摘要:
Automated authoring of Gherkin Behavior-Driven Development (BDD) acceptance criteria remains a manual bottleneck in requirements engineering. This study investigates whether epic-organized LLM-generated Gherkin produces higher quality and coverage than requirement-aligned generation. We compare our Timeless (an epic-organized LLM pipeline) approach against a naive large language model (LLM) baseline on four requirements documents (107 requirements) from the PURE dataset. Evaluation covers structural metrics, automated requirement coverage via TF-IDF and dense embeddings, and blind expert assessment by four researchers. In our evaluation, the JSON-constrained pipeline produced structurally valid scenarios across all generated outputs, while the zero-shot baseline achieved 99% structural validity. Semantic coverage was comparable to the baseline, with Timeless achieving 94.3% semantic Requirement Coverage Rate compared with 92.9% for the baseline. TF-IDF produced lower coverage scores for the epic-organized output, suggesting that lexical metrics may miss coverage when scenarios paraphrase requirements at a higher level of abstraction. Expert raters prefer the epic-organized strategy on Correctness (4.61 vs 4.14), Executability (4.61 vs 4.07), and Completeness (4.31 vs 3.50). Overall, the results suggest that epic-organized generation can improve perceived Gherkin quality while maintaining comparable semantic coverage, although broader replication is needed before generalizing this finding.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。