TL;DR
Can we train capable Large Language Model (LLM) agents across distributed users without ever centralizing their private data? Yes—using decentralized reinforcement learning (FedAgent), we can match centralized training quality, but with a fascinating catch: the agent easily handles users asking for wildly different tasks, yet can completely collapse when users operate in slightly different environments. This paper uncovers the fundamental architectural symmetry-breaking behind why decentralized agents thrive on what they can read in a prompt, while stumbling over the invisible rules of the world around them.
What Problem Does This Paper Address?
Training LLM agents to navigate websites, use tools, or run household errands takes massive amounts of interaction trajectories and user queries. Collecting all that data on a central server is a privacy nightmare, yet any single user rarely generates enough data to train a good agent on their own.
Enter Federated Learning (FL), where clients train models locally and only share parameter updates with a central server. While FL is well-understood for static datasets (like image classification) and simple reinforcement learning (RL) games, applying it to LLM agents introduces two big, unanswered questions:
- Does decentralized RL even work when the state and action spaces are sprawling, multi-step natural language trajectories?
- What happens when clients are heterogeneous (non-i.i.d.)? In agent RL, client differences aren't just skewed data labels—users differ both in what they ask the agent to do and where the agent has to do it.
Methods
The authors formalize FedAgent (Federated Agent Reinforcement Learning). The base protocol adapts standard Federated Averaging (FedAvg) to standard LLM policy optimization algorithms (PPO and GRPO): in each round, a subset of clients rolls out trajectories locally, updates their LLM weights (and critic weights, for PPO), and sends the parameters back to a server to be averaged.
What’s genuinely new is their theoretical framework for dissecting client differences. Instead of treating client heterogeneity as a generic data-skew problem, they ground it in a simple architectural truth of task-augmented Markov Decision Processes (MDPs), which they call Input-Dynamics Asymmetry:
- Task-level heterogeneity (differences in user requests—categorized by preference, coverage breadth, and hardness) enters the LLM directly through the prompt. It is observable.
- Environment-level heterogeneity (differences in transition dynamics, like how a search engine ranks items or how an OS behaves) is never fed into the prompt. It is implicit, visible only after acting and seeing what state comes next.
To test this cleanly, the authors design mathematical partitioning algorithms that isolate and dial up each task-level sub-type independently without shifting the overall dataset averages.
Datasets
The authors evaluate FedAgent on two established interactive agent benchmarks, plus a new suite of synthetic perturbations:
- ALFWorld: A text-based embodied household benchmark featuring six task types (e.g., Pick, Clean, Heat).
- WebShop: A simulated e-commerce site where agents search, browse, and buy products based on natural-language instructions.
- Perturbed WebShop Variants (New): To test environment-level heterogeneity, the authors modify WebShop's underlying transition pipeline across clients—splitting product catalogs, indexing different text fields, reweighting
BM25search parameters, injecting "lookalike" trap items with anLK_prefix, or wrapping and scrambling search result rankings.
Key Insights and Ideas
- Task-level differences are surprisingly harmless: Because the task description sits right in the prompt, a single LLM can learn conditional rules for everyone simultaneously. If Alice only asks for kitchen tasks and Bob only asks for bedroom tasks, their gradient updates modify complementary behaviors rather than fighting each other. Mathematically, federated training here is equivalent to centralized training on the combined mixture.
- Environment-level differences create a tug-of-war: When two clients see the exact same prompt and observation, an LLM must output the same action distribution. If Shop A puts the best product at Rank 1 and Shop B puts it at Rank 10 without telling the agent which shop it's in, client gradients pull the exact same model weights in opposite directions. No amount of extra LLM scale or training time can erase this worst-case performance floor.
- Three escape hatches for differing environments: Decentralized agents can survive differing environments if any of three sufficient conditions hold: (C1) the optimal path avoids the parts of the world that differ; (C2) the same action remains optimal despite different underlying mechanics (e.g., avoiding
LK_lookalikes works everywhere); or (C3) the environment leaks its identity in the observation history (like a website banner), letting the LLM infer where it is in-context.
Key Results
Testing across Qwen2.5 (1.5B, 3B, 7B) and Llama-3.2-3B backbones across 100 simulated clients:
- Matches centralized, crushes local: Under uniform distributions, FedAgent matches centralized training within ±2.6 percentage points on WebShop and actually edges it out by +0.5 to +6.8 points on ALFWorld, while substantially beating single-client local training (e.g., 63.0% vs. 12.5–35.9% on ALFWorld with Qwen-1.5B).
- Rock-solid on extreme task splits: Even when task preference is cranked to near one-hot extremes ($\omega = 0.99$, where almost every client only ever sees one task type), FedAgent's learning curves closely hug the uniform baseline.
- The Stable-Degrade-Collapse spectrum: On the perturbed WebShop environments, FedAgent behaves just as the theory predicts. When optimal rules stay shared (Catalog Split), PPO hits the ~60% baseline (Stable). When search rankings shift partially (Field-Subset Index, BM25 Reweighting), performance drops to ~17–42% (Degrade). And when rankings are scrambled with zero clues to recover environment identity (Rank Wrapper), the agent Collapses—flatlining below 13% under GRPO and ~20% under PPO.
Limitations and Future Work
While the main text focuses on establishing the theoretical asymmetry and empirical benchmarks (deferring discussions of communication overhead, differential privacy, and client drift to the appendices), a few natural boundaries stand out:
- Synthetic environment cues: The perturbed WebShop tests intentionally suppress explicit branding or identity cues to cleanly isolate implicit dynamics; real-world websites might naturally trigger the (C3) self-revealing recovery condition more often.
- Optimizer sensitivity: Even when recovery conditions hold theoretically (like in Catalog Split or Lookalike Injection), practical optimizer slack ($\epsilon_{\text{opt}}$)—especially in critic-free
GRPOcompared toPPO—can still leave a noticeable performance gap, pointing toward a rich avenue for better federated RL optimizers and environment-aware prompting strategies.
Summary updated