Skip to main content
QUICK REVIEW

[Paper Review] Differential Privacy in Generative AI Agents: Analysis and Optimal Tradeoffs

Ya-Ting Yang, Quanyan Zhu|arXiv (Cornell University)|Mar 18, 2026
Privacy-Preserving Technologies in DataComputer Science0 citations
TL;DR

This paper develops a probabilistic framework to analyze privacy leakage in AI agents powered by LLMs using differential privacy, deriving token- and message-level bounds and proposing an optimal privacy–utility temperature design. It also provides empirical insights linking decoding parameters to privacy and utility.

ABSTRACT

Large language models (LLMs) and AI agents are increasingly integrated into enterprise systems to access internal databases and generate context-aware responses. While such integration improves productivity and decision support, the model outputs may inadvertently reveal sensitive information. Although many prior efforts focus on protecting the privacy of user prompts, relatively few studies consider privacy risks from the enterprise data perspective. Hence, this paper develops a probabilistic framework for analyzing privacy leakage in AI agents based on differential privacy. We model response generation as a stochastic mechanism that maps prompts and datasets to distributions over token sequences. Within this framework, we introduce token-level and message-level differential privacy and derive privacy bounds that relate privacy leakage to generation parameters such as temperature and message length. We further formulate a privacy-utility design problem that characterizes optimal temperature selection.

Motivation & Objective

  • Motivate privacy concerns for enterprise LLM agents accessing internal data.
  • Provide a probabilistic input–output model of LLM-based agents as stochastic generators.
  • Derive token-level and message-level differential privacy bounds linked to generation parameters.
  • Formulate and analyze a privacy–utility design problem to optimize temperature as a control knob.

Proposed method

  • Model response generation as a stochastic mechanism mapping prompts and datasets to distributions over token sequences.
  • Define token-level and message-level differential privacy and derive related bounds.
  • Use temperature T and message length L as key variables influencing privacy and utility.
  • Prove DP composition for token-by-token generation and relate bounds to logit differences and temperature.
  • Introduce a Gibbs-form utility/temperature framework and derive first-order optimality conditions for temperature.
  • Provide an empirical case study with GPT-2 to illustrate privacy leakage versus temperature and length.
(a) Empirical privacy loss.
(a) Empirical privacy loss.

Experimental results

Research questions

  • RQ1How can privacy leakage in LLM-based agents be quantified under differential privacy at token and message levels?
  • RQ2How do decoding parameters like temperature and message length affect privacy-utility tradeoffs?
  • RQ3What are the optimal settings to balance enterprise data privacy with response quality in AI agents?

Key findings

  • Privacy leakage bounds grow with the number of tokens generated and decay as temperature increases.
  • Token-level DP leads to an overall message-level DP bound via sequential composition.
  • Higher temperatures flatten output distributions, reducing sensitivity to dataset differences in practice.
  • There exists a tractable optimal temperature under a regularized privacy–utility objective that trades off privacy cost and utility.
  • Empirical results on GPT-2 show privacy metrics decline with higher temperature and longer messages influence leakage.
  • The framework enables principled tuning of decoding parameters to balance privacy and utility in enterprise settings.
(b) Total variation distance.
(b) Total variation distance.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.