Share the Strategy, Not the Words: Bounding Gradient Leakage in Federated Dialogue Policy Learning

Support, triage and negotiation chatbots get better when they learn from real conversations. Those conversations are among the most sensitive text people produce: a person describing a breakup, a scam victim explaining their bank details. Federated learning trains a shared model while each client keeps its raw data and sends back only weight updates (gradients). It looks like the natural fix, but recent attacks show those updates can be inverted to recover the original text almost exactly. This holds even when only small adapter modules are trained. We propose a different way to use an idea dialogue research already relies on: separating what the agent decides to do (its strategy, such as "ask a clarifying question" or "offer a suggestion") from how it phrases it. If the only component trained across clients is a small strategy selector, and that selector sees only a compact, human-readable description of the conversation state rather than the words themselves, then no gradient attack, however strong, can recover text the selector never saw.

In two sentences: train only the strategy-choosing part of a dialogue agent federatedly, and feed it a deliberately coarse state such as conversation stage, tracked emotion, past strategies and user resistance, so that the information an attacker can extract is bounded by that state rather than by noise added to gradients. The open question is whether this coarse state is rich enough to choose strategies well and to stay flexible when users go off-script, or whether it quietly turns the agent back into a rigid script.

Core Claim

A gradient is a deterministic function of the inputs to the model being trained. For a selector trained on tuples $(s, a, r, s')$, where $s$ is the abstract dialogue state, $a$ the chosen strategy, $r$ a reward and $s'$ the next state, anything an attacker reconstructs from shared updates is also a function of those tuples. Even a malicious server that rewrites the weights it sends out cannot extract the conversation's words if the words never entered the computation. This is the data-processing argument. It gives a leakage guarantee that is written down in advance: whatever the state schema contains is assumed exposed, and nothing else is. We claim that this guarantee can be bought with little loss in strategy-selection quality. The reason is that the decision of which strategy to use depends mostly on coarse signals: stage, emotion, resistance, belief uncertainty. The fine-grained, text-dependent work of producing a good reply can stay with a frozen language model running locally that is never trained.

The claim has a sharp failure mode in each of our three directions. On privacy, the abstract state may itself be sensitive. In emotional support, "problem type = job loss" is private, and we treat this as part of what the guarantee explicitly exposes, not something to hide. On strategy quality, the coarse state may lose the cues that separate good strategy choices from generic ones. On flexibility, a fixed state schema is exactly how older systems became brittle. So the work is an empirical test of whether the abstraction holds up on all three axes at once.

Grounding in Prior Work

The motivation comes from attacks showing that every obvious federated dialogue design leaks. DAGER recovers exact token sequences from the attention-layer gradients of GPT-2, LLaMA-2 and BERT, using a "span check" against the low-rank structure of those gradients, with ROUGE-1/2 above 0.99 for batches up to 128 and sequences up to 512 tokens, including under LoRA. FET shows that classifier-head gradients alone suffice for discrete text recovery, with exact-match rates above 50% on COLA and SST-2. MineGrad's PEFTLeak shows that a malicious server can turn the frozen backbone into identity maps and the adapter weights into filters, recovering 85.9% of image patches on CIFAR-100 at batch size 32 even with rank-8 adapters. This rules out "just federate a small adapter" as a privacy story, and it directly threatens per-skill adapter designs like The Adapter-Bot. Gradient Inversion in Federated Reinforcement Learning (RGIA) is the closest method we reuse: it recovers states and actions from policy and value gradients by adding regularizers that keep reconstructions physically plausible, reaching over 80–90% action recovery. It also reports that differential-privacy noise collapses RL policy return. All of these papers evaluate on images, single sentences, legal documents or control tasks. None of them studies multi-turn dialogue or strategy-level learners.

The method we build on comes from the strategy-selection line. DialogXpert has a frozen LLM propose a few candidate actions each turn, and a small Q-network (a model that scores each action by its expected future reward) picks among them. The Q-network runs on fixed BERT embeddings plus an emotion tracker. DialogXpert reports over 94% success with a Vicuna-13B prior across ESConv, P4G, CraigslistBargain and CIMA, in under 3 turns. Its architecture already decouples planning from wording, which is what we need. But its state is a sentence embedding, and the gradient of a first linear layer is $\delta s^\top$ (the backpropagated error times the input), so a single-example update reveals the embedding $s$ directly up to scale. We replace that state. The kind of state we have in mind follows BR-Agent, which switches strategies on the spread of a belief distribution, and the stage-tracking persuasion systems of Wang et al.. Towards Emotional Support Dialog Systems supplies the Exploration/Comforting/Action stage theory and the eight-strategy label set of ESConv. It also supplies the observation that conditioning on oracle strategy tokens sharply improves responses, which suggests that the choice of strategy carries much of the value. Chain of Strategy Optimization (CSO) is the strongest centralized strategy learner. Using tree-search self-play and turn-level preference optimization, it raises strategy Macro F1 from about 30% under supervised fine-tuning to 34% on LLaMA-3.1-8B. It is fully centralized, and its preference gradients over whole turns would be exposed to DAGER-style attacks if federated.

The rigidity literature constrains the design. Grosz et al. document fixed-agenda systems breaking on interruptions and digressions. Helping Customers In Distress shows that fully generative agents drift off task and that LLM judges agree with humans only about 60% of the time on empathy. A coarse state is a step back toward the finite-state designs those papers criticize. We keep flexibility in the candidate generator: the local frozen LLM reads the full text and proposes moves that include digression handling, while the selector only ranks them. AI-in-the-Loop federates a conversational scam agent but, per the file, does not attack its own updates. We fill exactly that gap.

Research Program

We build a three-part agent on each client. First, a frozen local LLM proposes $k$ candidate replies, each tagged with a strategy label. Second, a frozen local state extractor maps the dialogue history to an abstract state. Third, a small selector network, the only federated component, scores candidates from the abstract state and each candidate's strategy label. The extractor is either rule-based or a frozen classifier that is never updated. The abstract state contains:

  • the stage estimate;
  • the emotion category and intensity trend;
  • the last few strategies used;
  • turn count;
  • a resistance or progress signal;
  • an off-script flag (digression, backtrack or interruption detected);
  • the entropy of the extractor's own label distribution, an uncertainty cue in the spirit of BR-Agent.

The selector is trained by temporal-difference learning as in DialogXpert, with rewards from a simulated user. A supervised variant predicts the gold ESConv strategy.

The analysis has three parts. The first is a leakage audit. We run the full current attack suite against each federated configuration and report what is actually recovered. We also run an attacker that is told the schema and tries to infer text by retrieving the closest public utterances consistent with the recovered state. This measures how much "residual" content a state that is legitimately exposed still implies. The second is a utility measurement on strategy accuracy and task success. The third is a rigidity stress test with simulated users who digress, backtrack and swing emotionally. This checks that the selector keeps ranking the off-script-handling candidates highly instead of following the stage sequence.

Baselines

The naive reference point is per-client training with no federation. Each client trains the same selector on only its own conversations, with a central-training upper bound alongside it. The question is whether federation helps at all at realistic client data sizes. If local-only matches federated, the whole privacy problem is moot. We report both on identical data partitions, with ESConv dialogues split across 10–50 simulated clients by seeker problem type to create non-identical client distributions.

The strongest existing strategy learner is CSO, run centrally on ESC-Pro. Its reported Macro F1 is 34% on LLaMA-3.1-8B, against about 30% for supervised fine-tuning (Chain of Strategy Optimization). We do not expect a federated abstract-state selector to exceed a centralized 8B model. Beating it is not the goal. The bar is closing most of the 30-to-34 gap over supervised fine-tuning while leaking no text. Concretely, the result counts as success if the abstract-state selector, with the same frozen LLM supplying candidates, reaches at least 33% Macro F1 on the same test split.

The strongest goal-driven baseline is DialogXpert's original BERT-embedding Q-network, which reports over 94% success with a Vicuna-13B prior across ESConv, P4G, CraigslistBargain and CIMA. Federated naively, it is our main within-architecture competitor. We run it with the same candidate LLM, the same simulator, the same number of federated rounds and the same hyperparameter-search budget (an equal number of trials per configuration). Our method beats it if success rate stays within 3 points and average turns stay under its value, while its text-recovery numbers are high and ours are at chance.

The obvious federated alternative is LoRA fine-tuning of the response LLM itself on client dialogues. We attack it with DAGER and with a text adaptation of PEFTLeak.

The key ablation swaps the state alone. The same selector, rounds and data are trained with (i) BERT embeddings, (ii) the abstract state, and (iii) the abstract state minus the off-script flag. Comparing (i) and (ii) isolates the privacy and utility cost of abstraction. Comparing (ii) and (iii) isolates whether flexibility survives because of that flag. A second ablation removes the candidate generator, so the selector chooses a bare strategy token that a fixed decoder then realizes. This tests whether flexibility really comes from the local LLM.

Why not just…?

Why not just add differential privacy to the gradients of the BERT-embedding selector? This is the most serious alternative. The selector is tiny, and DP noise costs less on small models than on LLMs. The RGIA paper reports that DP noise collapses RL policy return. However, that finding comes from control tasks, not low-dimensional dialogue selectors, so it does not settle the question here. We compare directly. We sweep the DP noise level on the embedding selector until DAGER-style and analytic recovery of utterances falls to the level achieved by the abstract-state selector, then compare strategy F1 and success at that matched leakage. If DP at matched leakage wins on utility, the abstraction is not needed for privacy. In that case we would recast it as a complement to DP: noise on top of an abstract state, with a formal privacy budget (ε) spent only on schema fields.

Why not just use secure aggregation so the server sees only summed updates? Summing hides individual clients from a passive server. But user-level leakage across rounds and the low-entanglement isolation result of Wu et al. show that sums with few or dissimilar participants can still be separated. PEFTLeak's weight manipulation also operates before aggregation. We run all attacks on aggregated updates with 5, 10 and 50 clients. If text recovery from aggregated LoRA updates is already near chance at realistic client counts, we will say so, and the contribution narrows to the active-attacker and small-federation settings.

Why not just avoid training and adapt by prompting, as the banking triage agent does? Helping Customers In Distress avoids fine-tuning precisely for regulatory reasons, so there are no gradients to leak. The cost is that the agent cannot learn institution-specific patterns. CSO's result that a trained 8B model outperforms GPT-4o and Claude 3.5 Sonnet on strategy accuracy suggests that prompting alone leaves accuracy on the table. We include the prompt-only frozen LLM as a selector baseline. If it matches the federated selector, learning is unnecessary.

Why not just keep everything local and never share updates? That is our naive baseline above. It wins whenever clients have enough data, and we expect it to lose mainly for small clients with skewed problem types.

Proposed Experiments and Decisive Checks

The leakage audit runs DAGER (passive), FET-style discrete search, a PEFTLeak adaptation (active), and RGIA with schema-aware regularizers against the four federated configurations at batch sizes 1–64. It reports ROUGE-1/2 and exact match for utterances, recovery accuracy for strategy and emotion labels, and top-10 retrieval accuracy of the true utterance from the schema-aware retrieval attacker. Utility is measured with strategy Macro F1 on ESConv and ESC-Pro, plus success rate and average turns on ESConv, P4G, CraigslistBargain and CIMA under the DialogXpert simulator, with zero-shot transfer to ExTES. For ExTES, no reported number was found in the file for DialogXpert. Human pairwise ratings on Acceptance and Sensitivity follow CSO. We use humans rather than LLM judges for empathy, given the roughly 60% judge agreement noted above. Rigidity is measured with digression- and backtrack-injected simulated users. The metric is the fraction of off-script turns after which the agent addresses the digression and returns to the task within two turns.

Three results would decide the proposal:

  • Is the threat real for strategy learners? If the BERT-embedding selector's gradients do not yield meaningful utterance recovery (retrieval near chance), then the threat that motivates abstraction does not exist for strategy learners, and we report that negative result.
  • Does the state abstraction pay off? If the abstract state costs more than 2 Macro F1 points or 3 success points relative to embeddings, while DP at matched leakage costs less, the abstraction is not worth it.
  • Does the abstract-state agent stay flexible? If the abstract-state agent's digression-recovery rate falls clearly below the embedding agent's, the coarse state has reintroduced rigidity, and the design fails on the axis it was built not to break.