arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2604.22207cs.SEcs.AIcs.CL
收藏

评估基于大语言模型的目标提取在需求工程中的应用:提示策略及其局限性

Evaluating LLM-Based Goal Extraction in Requirements Engineering: Prompting Strategies and Their Limitations

Department of Control and Computer Engineering(控制与计算机工程系)

Anna Arnaudo, Riccardo Coppola, Maurizio Morisio, Flavio Giobergia, Andrea Bioddo, Angelo Bongiorno, Luca Dadone

AI总结:

本文探讨了通过三个阶段自动提取功能目标以实现目标导向的需求工程,提出基于工程提示的LLM链,实验表明反馈循环机制在零样本学习中表现更优,但提示策略仍是性能限制因素。

摘要:

由于许多需求工程(RE) artifacts 的文本性和重复性,大语言模型(LLMs)已被证明有助于自动化其生成和处理。本文讨论了一种可能的自动化目标导向需求工程(GORE)过程的方法,通过三个阶段从软件文档中提取功能目标:演员识别、高层次和低层次目标提取。为了实现这些功能,我们提出了一条由工程提示驱动的LLM链。我们尝试了不同形式的上下文学习,并测量了输入数据与上下文示例之间的相似性以更好地研究其影响。另一个关键要素是生成-批评机制,实现为涉及两个LLM的反馈循环。尽管该流程在低层次目标识别中实现了61%的准确性,但最终阶段的结果表明,该方法最适合作为加速手动提取的工具,而非完全替代。反馈循环机制在零样本学习中优于单独的少样本学习,消融研究表明没有反馈循环时性能略有下降。然而,我们报告称反馈机制与少样本学习的结合并未带来任何优势,可能表明性能上限是应用于'批评' LLM的提示策略。结合-shot示例的数量和质量的改进,未来研究将整合检索增强生成(RAG)和思维链(CoT)提示以提高准确性。

英文摘要:

Due to the textual and repetitive nature of many Requirements Engineering (RE) artefacts, Large Language Models (LLMs) have proven useful to automate their generation and processing. In this paper, we discuss a possible approach for automating the Goal-Oriented Requirements Engineering (GORE) process by extracting functional goals from software documentation through three phases: actor identification, high and low-level goal extraction. To implement these functionalities, we propose a chain of LLMs fed with engineered prompts. We experimented with different variants of in-context learning and measured the similarities between input data and in-context examples to better investigate their impact. Another key element is the generation-critic mechanism, implemented as a feedback loop involving two LLMs. Although the pipeline achieved 61% accuracy in low-level goal identification, the final stage, these results indicate the approach is best suited as a tool to accelerate manual extraction rather than as a full replacement. The feedback-loop mechanism with Zero-shot outperformed stand-alone Few-shot, with an ablation study suggesting that performance slightly degrades without the feedback cycle. However, we reported that the combination of the feedback mechanism with Few-shot does not deliver any advantage, possibly suggesting that the primary performance ceiling is the prompting strategy applied to the 'critic' LLM. Together with the refinement of both the quantity and quality of the Shot examples, future research will integrate Retrieval-Augmented Generation (RAG) and Chain-of-Thought (CoT) prompting to improve accuracy.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑