User Behavior Analysis in Privacy Protection with Large Language Models: A Study on Privacy Preferences with Limited Data

Huan Yang, Q. Lu, Yan Wang, S. B. Liu, Jiayun Zheng, Xiang Ao

TL;DR

This paper introduces a privacy-aware framework that uses Large Language Models (LLMs) and Reinforcement Learning to predict user privacy preferences, even when data is scarce. By integrating Few-shot Learning and Differential Privacy, the researchers achieved up to 90.5% accuracy in dynamic privacy management, proving that AI can be both highly personalized and privacy-compliant.

What Problem Does This Paper Address?

In the era of GDPR and CCPA, modeling user privacy preferences—deciding when a user wants to share location, mic, or health data—is a major challenge. Traditional machine learning models are "data-hungry," requiring massive datasets to understand these nuances. However, privacy data is inherently difficult to collect because, well, it’s private.

The authors address this "data-limited" bottleneck. They explore how to build intelligent systems that can accurately predict a user's privacy choices without needing mountains of personal information, while simultaneously ensuring the training process itself doesn't leak sensitive data.

Methods

The researchers proposed a multi-layered approach centered around the Privacy-Driven Secure Synthesis (PDSS) Framework. Key technical components include:

  • Few-Shot Learning (FSL): This allows the LLM to generalize from a handful of examples (minimal data samples) rather than requiring thousands of labeled entries.
  • Q-Learning (Reinforcement Learning): To handle the "dynamic" nature of privacy, the authors used Q-learning. This allows the system to adjust privacy settings in real-time based on user feedback and changing contexts.
  • Privacy Computing: The framework incorporates Differential Privacy (DP) to add randomized noise to data, preventing the "reverse-engineering" of private info, and Federated Learning (FL) to keep training decentralized on local devices.
  • Advanced Preprocessing: They utilized Generative Adversarial Networks (GANs) and Diffusion Models to create high-quality synthetic data, which helps balance the datasets without compromising real user identities.

Datasets

The study utilized a mix of four primary data sources to ensure a comprehensive evaluation:

  1. User Privacy Survey (5,000 records): Anonymized responses regarding privacy settings in social media and e-commerce contexts.
  2. App Permission Logs (20,000 records): Real-world interactions involving camera, microphone, and location access.
  3. Public Privacy DS (15,000 records): Industry-specific privacy policies and feedback sourced from Kaggle and CCPA compliance data.
  4. Simulated Privacy (10,000 records): Synthetic data generated via GANs to improve model generalization and balance.

Key Insights and Ideas

  • The "Small Data" Paradox: One of the most interesting findings was that for very small datasets (around 1,000 records), a simple Naïve Bayes model actually outperformed complex neural networks. This highlights that in extreme data-scarcity, simpler probabilistic models are more robust.
  • LLMs as Inference Engines: LLMs aren't just for chat; their pre-trained semantic understanding allows them to "infer" privacy intentions from context much better than traditional rule-based systems.
  • Privacy is Dynamic, Not Static: Most privacy tools are "set it and forget it." By using Reinforcement Learning, the authors show that a system can "learn" a user's comfort level over time, leading to fewer intrusive prompts and better protection.
  • Synthetic Data as a Bridge: The use of Diffusion models to generate "edge-case" privacy behaviors suggests that we can train robust AI by simulating rare but critical privacy scenarios that are hard to find in real-world logs.

Key Results

The researchers compared a rule-based baseline, Naïve Bayes (NB), a Multilayer Perceptron (MLP), and Q-learning:

  • Overall Accuracy: Q-learning achieved the highest performance at 87.5% on average, peaking at 90.5% when provided with 10,000+ records.
  • Low-Data Performance: With only 1,000 records, Naïve Bayes led the pack with 76.5% accuracy, while more complex models struggled to converge.
  • Learning Curve: The Q-learning model showed a rapid "reward growth" within the first 50 training episodes, stabilizing after 100 episodes, indicating a fast and efficient adaptation to user preferences.
  • F1-Score: The LLM-based approaches maintained high F1-scores (approx. 86.3%), indicating a strong balance between precision and recall in identifying sensitive data.

Limitations and Future Work

While the results are promising, the authors note several areas for further exploration:

  • Multi-modal Integration: The current study focuses largely on text and logs. Future research needs to incorporate speech, images, and video data to create a truly holistic privacy assistant.
  • Cross-Platform Consistency: Users often have different privacy expectations on a smartphone versus a smart home device; modeling this cross-platform behavior remains a challenge.
  • Real-world "In-the-wild" Testing: Much of the data was surveyed or simulated. Testing these frameworks in live, high-stakes environments (like healthcare or finance) is the necessary next step to validate the theoretical gains.

Summary updated

Abstract

With the widespread application of large language models (LLMs), user privacy protection has become a significant research topic. Existing privacy preference modeling methods often rely on large-scale user data, making effective privacy preference analysis challenging in data-limited environments. This study explores how LLMs can analyze user behavior related to privacy protection in scenarios with limited data and proposes a method that integrates Few-shot Learning and Privacy Computing to model user privacy preferences. The research utilizes anonymized user privacy settings data, survey responses, and simulated data, comparing the performance of traditional modeling approaches with LLM-based methods. Experimental results demonstrate that, even with limited data, LLMs significantly improve the accuracy of privacy preference modeling. Additionally, incorporating Differential Privacy and Federated Learning further reduces the risk of user data exposure. The findings provide new insights into the application of LLMs in privacy protection and offer theoretical support for advancing privacy computing and user behavior analysis.
BibTeX
@misc{yang2025user,
  author = {Huan Yang and Q. Lu and Yan Wang and S. B. Liu and Jiayun Zheng and Xiang Ao},
  title = {{User Behavior Analysis in Privacy Protection with Large Language Models: A Study on Privacy Preferences with Limited Data}},
  year = {2025},
  eprint = {2505.06305},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.06305},
  howpublished = {arXiv},
}
Figure