Dependency-Aware Privacy for Multi-turn Agents

Divyam Anshumaan, Sarthak Choudhary, Nils Palumbo, Somesh JhaarXiv 2026

TL;DR

Standard differential privacy tools fail in multi-turn LLM agent workflows because adversaries can aggregate independent, noisy data releases across turns to reconstruct a user's private attributes. This paper introduces RootGuard, a framework that noises base "root" data exactly once and handles all subsequent multi-turn interactions deterministically from a sanitized cache. This approach provides robust privacy guarantees while turning an adversary's prolonged interrogation into a utility advantage for the user.

What Problem Does This Paper Address?

Large Language Model (LLM) agents are increasingly trusted with complex, multi-step tasks—like navigating medical diagnostic tools, managing financial portfolios, or handling legal consultations. To execute these workflows, agents must routinely share data with various external services over multiple interaction turns.

To protect user privacy, state-of-the-art prompt sanitizers apply metric differential privacy (mDP) to add noise to sensitive data before it leaves the client. However, these tools are stateless: they treat each data release in isolation.

The authors identify a fundamental flaw in this setup: in multi-turn workflows, an adversary can log independent noisy releases and use statistical estimation (like Maximum A Posteriori reconstruction) to filter out the noise and uncover the true data. Furthermore, if an agent independently noises a value derived from a non-linear function (e.g., calculating BMI from height and weight), the privacy leakage of the underlying data is amplified by the function's Lipschitz constant $L$. In common medical and financial formulas, this amplification can exceed $100\times$ the intended privacy parameter, rendering standard defenses ineffective.

Methods

The authors propose RootGuard, a dependency-aware privacy framework designed for multi-turn agentic workflows.

Instead of adding fresh noise to data on the fly at each turn, RootGuard identifies the core private variables—the roots of the computation graph (e.g., raw lab results)—and sanitizes them exactly once at initialization. These noised roots are stored in a secure cache.

Figure 1: Overview of RootGuard in an agentic deployment. At initialization, the user passes its private values X = (x1, x2, x3) to the user agent, which sanitizes each root once via Mε and stores the result in the sanitized cache. All subsequent interactions with the adversarial service are answered from the cache: repeated requests for the same root return the identical cached value (turns 1, 2), derived requests are deterministic post-processing of cached roots (turn 3), and the request that supplies all roots for task computation (turn 4) carries no additional privacy cost. The trust boundary separates the user agent from the adversarial service, which performs the user’s task by computing T( ˆX) and may concurrently log, collude with other parties, or attempt to reconstruct the underlying X. The task result T( ˆX) is returned to the user agent. By the post-processing theorem, the adversary’s view across the boundary is no more informative than the initial root sanitization, regardless of which functions f it requests.

As shown in Figure 1, all subsequent service requests are answered directly from this cache:

  • Repeated queries simply return the identical cached value.
  • Derived queries (functions of the roots) are computed deterministically from the cached roots.

By the post-processing theorem of differential privacy, deterministic functions of differentially private data do not consume any additional privacy budget. Thus, derived values inherit privacy at zero marginal cost.

Additionally, RootGuard optimizes the privacy-utility tradeoff by exploiting public domain knowledge at two levels:

  1. Inter-root dependencies: Identifying if some roots are deterministic functions of others, allowing them to inherit privacy for free and saving budget for truly independent variables.
  2. Target sensitivity: Using a power-law budget allocation ($\epsilon_i \propto \sqrt{|h_i| \cdot D_i}$) based on the sensitivity ($h_i$) of the target function to allocate more privacy budget to the roots that impact final task accuracy the most.

Datasets

The framework was evaluated using the CDC's National Health and Nutrition Examination Survey (NHANES) 2017–2018 dataset. The authors constructed 8 medical diagnostic templates (including FIB-4 for liver fibrosis, HOMA-IR for insulin resistance, and AIP for cardiovascular risk) to simulate realistic, multi-turn medical agent interactions using real patient data.

Key Insights and Ideas

  • The Double Asymmetry: A worst-case multi-turn adversary forcing $t$ turns of interaction inadvertently increases the total privacy budget ($B = t \cdot \epsilon$) available to the user. RootGuard distributes this larger budget across the roots to reduce noise per root (improving utility) while keeping privacy perfectly constant. Meanwhile, independent noising spends budget per turn, giving the adversary more independent observations to weaken user privacy while gaining zero utility.
  • Mechanism Independence: The optimal budget allocation strategy is governed purely by the sensitivity geometry of the computation graph, meaning developers can swap out the underlying noise mechanism (e.g., switching from an Exponential to a Staircase mechanism) without needing to recompute budget allocations.

Key Results

  • Substantial Utility Gains: On the NHANES medical templates, RootGuard achieved a $2.6\times$ lower target error (7.8% vs. 20.3% wMAPE) compared to independent noising at a strict privacy level ($\epsilon = 0.1$). This advantage widened to $3.8\times$ as the adversary forced more interaction turns.
  • Preserving Clinical Decisions: RootGuard reduced clinical Risk Class Error (RCE) by $2.2\times$ to $3.3\times$, ensuring that the privacy-preserving noise rarely caused the downstream service to output an incorrect medical diagnosis.
  • Immunity to Reconstruction Attacks: Under MAP reconstruction attacks, independent noising completely broke down as queries increased (reconstruction error dropped from 21.8% to 6.2%), whereas RootGuard's reconstruction error remained completely invariant.
  • End-to-End Validation: The authors successfully validated RootGuard in a real deployment using 21,600 LLM tool-call sessions driven by GPT-5.4 nano, reporting zero compliance or parsing failures.

Limitations and Future Work

RootGuard currently relies on the baseline assumption of perfect Named Entity Recognition (NER) to identify sensitive root tokens before sanitization. Integrating noisy, real-world NER into the formal privacy analysis remains an open challenge. Additionally, the evaluation focuses primarily on structured numeric values in single-user sessions; extending the framework to handle free-form text, multi-user composition, and scenarios where the target function must be approximated from population data are promising future directions.

Summary updated

BibTeX
@misc{anshumaan2026dependency,
  author = {Divyam Anshumaan and Sarthak Choudhary and Nils Palumbo and Somesh Jha},
  title = {{Dependency-Aware Privacy for Multi-turn Agents}},
  year = {2026},
  eprint = {2605.03188},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.03188},
}
Figure