Generating Privacy Stories From Software Documentation
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 35 of its 67 references that are in the map. First posted on arXiv 28 Jun 2025.
Builds on
35 of 67 references.
References · 35
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2023GPT-4 Technical Reportcited by 18,132
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
- 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 7,916
- 2024Qwen2.5 Technical Reportcited by 4,713
- 2023A Survey of Large Language Modelscited by 2,537
- 2019Fine-Tuning Language Models from Human Preferencescited by 2,124
- 2023Chain-of-Verification Reduces Hallucination in Large Language Modelscited by 317
- 2024Large Language Models for Data Annotation and Synthesis: A Surveycited by 201
- 2024HaloScope: Harnessing Unlabeled LLM Generations for Hallucination Detectioncited by 96
23 more
- 2023Igniting Language Intelligence: The Hitchhiker's Guide From Chain-of-Thought Reasoning to Language Agentscited by 72
- 2024A Chain-of-Thought Is as Strong as Its Weakest Link: A Benchmark for Verifiers of Reasoning Chainscited by 63
- 2024Astute RAG: Overcoming Imperfect Retrieval Augmentation and Knowledge Conflicts for Large Language Modelscited by 57
- 2024Beyond Chain-of-Thought: A Survey of Chain-of-X Paradigms for LLMscited by 48
- 2024Thinking LLMs: General Instruction Following with Thought Generationcited by 45
- 2023Advancing Requirements Engineering through Generative AI: Assessing the Role of LLMscited by 42
- 2023Investigating ChatGPT's Potential to Assist in Requirements Elicitation Processescited by 25
- 2024A Comparative Study on Annotation Quality of Crowdsourcing and LLM via Label Aggregationcited by 23
- 2024Using LLMs in Software Requirements Specifications: An Empirical Evaluationcited by 20
- 2023PolicyGPT: Automated Analysis of Privacy Policies with Large Language Modelscited by 16
- 2024Leveraging LLMs for the Quality Assurance of Software Requirementscited by 15
- 2024Large Language Models: A New Approach for Privacy Policy Analysis at Scalecited by 14
- 2025Foundations of Large Language Modelscited by 14
- 2024LLM-based agents for automating the enhancement of user story quality: An early reportcited by 13
- 2025HoT: Highlighted Chain of Thought for Referencing Supporting Facts from Inputscited by 9
- 2023Unpacking Privacy Labels: A Measurement and Developer Perspective on Google's Data Safety Sectioncited by 6
- 2023ATLAS: Automatically Detecting Discrepancies Between Privacy Policies and Privacy Labelscited by 5
- 2024Requirements Satisfiability with In-Context Learningcited by 5
- 2024Evaluating Privacy Perceptions, Experience, and Behavior of Software Development Teamscited by 4
- 2022Extracting Software Requirements from Unstructured Documentscited by 3
- 2023Towards Fine-Grained Localization of Privacy Behaviorscited by 2
- 2022Detecting Privacy Requirements from User Stories with NLP Transfer Learning Modelscited by 1
- 2024Toward Regulatory Compliance: A few-shot Learning Approach to Extract Processing Activitiescited by 1
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2025From Legal Text to Tech Specs: Generative AI's Interpretation of Consent in Privacy Law ↗
- 2025User Behavior Analysis in Privacy Protection with Large Language Models: A Study on Privacy Preferences with Limited Data
- 2024Privacy Policy Analysis through Prompt Engineering for LLMs
- 2026LADFA: A Framework of Using Large Language Models and Retrieval-Augmented Generation for Personal Data Flow Analysis in Privacy Policies
- 2025Cluster-guided LLM-Based Anonymization of Software Analytics Data: Studying Privacy-Utility Trade-offs in JIT Defect Prediction ↗
- 2025A Longitudinal Measurement of Privacy Policy Evolution for Large Language Models
- 2023A Survey on Large Language Model (LLM) Security and Privacy: The Good, the Bad, and the Ugly
- 2025SoK: The Privacy Paradox of Large Language Models: Advancements, Privacy Risks, and Mitigation