← Lab /AI/ML

Token- and message-level DP bounds link temperature to privacy leakage in AI agents

They can derive differential privacy bounds for AI agent responses that depend on generation temperature and message length, and identify an optimal temperature for privacy-utility tradeoff

AI/ML arXiv 18 Mar 2026 Theory Theory

Published as “Differential Privacy in Generative AI Agents: Analysis and Optimal Tradeoffs”

Why it matters

Temperature can be tuned in deployed LLM agents to achieve a quantifiable trade-off between response quality and privacy protection.

Summary

Higher decoding temperature reduces privacy leakage in LLM agents, while longer messages increase leakage; the paper provides theoretical bounds linking privacy loss to temperature and message length and validates the trends with GPT-2 experiments (250 samples per setting).

What they found 1

  1. Empirically, increasing temperature lowers privacy leakage metrics.

    “Across all message lengths, the empirical privacy loss, total variation distance, and Jensen-Shannon divergence generally decrease as the temperature increases.”

Caveats 2

  • longer responses accumulate more logit and information scores, which may slightly increase both privacy leakage and utility variation.
  • Future work includes extending the framework to multi-agent settings, incorporating more realistic utility functions, jointly optimizing temperature, message length, and other privacy-related control parameters, as well as conducting experiments on enterprise datasets and business-oriented LLMs.

What’s new here 3

  • Introduces token-level and message-level differential privacy definitions for the generation process, not just training.
  • Derives explicit privacy bounds that depend on decoding temperature and message length.
  • Formulates an optimal privacy-utility design problem where temperature is the control knob.