Is Decentralized LLM Agent RL Robust to Heterogeneity? An Asymmetric Tale

Canyu Chen, Kangyu Zhu, Zhaorun Chen, Zhanhui Zhou, Shizhe Diao, Yiping Lu, Tian Li, Manling Li, Dawn SongNeurIPS 2026

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:

  1. Does decentralized RL even work when the state and action spaces are sprawling, multi-step natural language trajectories?
  2. 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.

Figure 1: FEDAGENT Framework.

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.
Figure 2: Asymmetric Robustness Mechanism of FEDAGENT under Agent Heterogeneity. Top: the task τ is observable to the policy through its input channel, while the transition kernel Pi is implicit, visible only through successor states. This contrast is the Input-Dynamics Asymmetry (§3.1). Left: task-level heterogeneity (preference/coverage/hardness sub-types, §3.2) lies on the observable side and is provably benign (Theorems 1/2). Right: environment-level heterogeneity (e.g., catalog, ranking, and lookalike variants, §3.3) perturbs the implicit dynamics, and FEDAGENT is worst-case non-robust to it (Theorems 3/4) unless one of the recovery conditions (C1)–(C3) holds (§4.3).

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 BM25 search parameters, injecting "lookalike" trap items with an LK_ 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).
Figure 4: Training Dynamics of FEDAGENT (GRPO) and Centralized Training (validation success rate, Qwen2.5-1.5B-Instruct). Red is FEDAGENT’s aggregated server model, blue the centralized baseline, and colored circles the client models after local training in each round.
  • 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 GRPO compared to PPO—can still leave a noticeable performance gap, pointing toward a rich avenue for better federated RL optimizers and environment-aware prompting strategies.

Summary updated

Abstract

Training AI agents powered by Large Language Models (LLMs) requires large volumes of user data. Privacy concerns limit *centralized* collection, and an individual user may have insufficient data. We explore **FedAgent (Federated Agent Reinforcement Learning)**, a *decentralized* reinforcement learning paradigm that trains LLM agents collaboratively across distributed clients without sharing local data. We ask whether FedAgent is effective under a *uniform* client distribution and, more importantly, whether it is robust to client *heterogeneity*. For the first question, we provide the first empirical evidence that FedAgent matches Centralized Agent Training and outperforms Local Agent Training. For the second, we formalize Agent Heterogeneity at two structurally distinct levels: task-level differences in what clients ask the agent to do, and environment-level differences in the dynamics in which the agent acts. This distinction is grounded in the **Input-Dynamics Asymmetry** of task-augmented Markov Decision Processes (MDPs): tasks enter the policy as input, while environments do not. We then theoretically establish an **Asymmetric Robustness Mechanism**: FedAgent is robust to task-level heterogeneity but non-robust to environment-level heterogeneity. We identify three sufficient conditions under which FedAgent recovers robustness despite environment-level heterogeneity and describe four possible training-curve patterns. Experiments on WebShop and ALFWorld verify that FedAgent remains robust under extreme task-level heterogeneity, while under environment-level heterogeneity its outcomes range from stability to degradation and collapse.
BibTeX
@inproceedings{chen2026is,
  author = {Canyu Chen and Kangyu Zhu and Zhaorun Chen and Zhanhui Zhou and Shizhe Diao and Yiping Lu and Tian Li and Manling Li and Dawn Song},
  title = {{Is Decentralized LLM Agent RL Robust to Heterogeneity? An Asymmetric Tale}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=SsF2kYJfYC},
}
Figure