arXivDaily arXiv每日学术速递 周一至周五更新
​通知:联邦节假日调休:哥伦布日 / 原住民日(Columbus Day / Indigenous Peoples' Day),今日(13日)无更新。
arXiv 2506.23014cs.SEcs.AI

从软件文档生成隐私故事

Generating Privacy Stories From Software Documentation

School of Computing and Information Science(计算与信息科学学院);University of Maine(缅因大学)

Wilder Baldwin, Shashank Chintakuntla, Shreyah Parajuli, Ali Pourghasemi, Ryan Shanz, Sepideh Ghanavati

AI总结:

本文提出基于CoT、ICL和LLMs的方法,从软件文档提取隐私行为并生成用户故事格式的隐私需求,GPT-4o和Llama 3表现优异且可通过参数调优提升。

摘要:

研究表明,分析师和开发者将隐私视为安全概念或事后补充,这可能导致不合规和侵犯用户隐私。然而,当前大多数方法侧重于从法规中提取法律要求,并评估软件和流程与其的合规性。本文开发了一种基于思维链提示(CoT)、上下文学习(ICL)和大型语言模型(LLMs)的新方法,用于在软件开发前和开发期间从各类软件文档中提取隐私行为,然后以用户故事格式生成隐私需求。结果显示,常用的LLMs(如GPT-4o和Llama 3)能识别隐私行为并生成隐私用户故事,F1分数超过0.8。我们还表明,通过参数调优可提升这些模型的性能。我们的发现为在软件开发生命周期前或期间使用和优化LLMs生成隐私需求提供了见解。

英文摘要:

Research shows that analysts and developers consider privacy as a security concept or as an afterthought, which may lead to non-compliance and violation of users' privacy. Most current approaches, however, focus on extracting legal requirements from the regulations and evaluating the compliance of software and processes with them. In this paper, we develop a novel approach based on chain-of-thought prompting (CoT), in-context-learning (ICL), and Large Language Models (LLMs) to extract privacy behaviors from various software documents prior to and during software development, and then generate privacy requirements in the format of user stories. Our results show that most commonly used LLMs, such as GPT-4o and Llama 3, can identify privacy behaviors and generate privacy user stories with F1 scores exceeding 0.8. We also show that the performance of these models could be improved through parameter-tuning. Our findings provide insight into using and optimizing LLMs for generating privacy requirements given software documents created prior to or throughout the software development lifecycle.

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

↑