Secure Multi-agent Reinforcement Learning for Service Systems with Affinity and Byzantine Nodes: Stability Analysis and Protection Design

Yifan Jiang, Pan Jiasheng, Mengtian Li, Li JinICML 2026

Executive Summary

Modern decentralized service systems—ranging from Large Language Model (LLM) clusters to smart manufacturing floors—increasingly rely on multi-agent reinforcement learning (MARL) to optimize performance. A critical factor in these systems is "job-server affinity," where processing efficiency heavily depends on the specific match between a task and a server (e.g., a GPU processing a request faster if the relevant data is already in its KV cache).

However, deploying MARL in these environments introduces severe vulnerabilities. Malicious or faulty "Byzantine" agents can destabilize the learning process, leading to catastrophic queue overflows in unbounded state spaces. This paper introduces a resilient decentralized MARL framework that combines a robust consensus mechanism with a synchronized "safe" policy mixture, effectively preventing Byzantine agents from compromising system stability and performance.

The Challenge: Unbounded States and Byzantine Threats

Managing decentralized service systems via MARL presents three distinct, overlapping hurdles that traditional robust MARL methods fail to adequately address:

  1. Unbounded State Spaces: Unlike controlled game environments with fixed boundaries, real-world queues can grow infinitely. If a control policy fails or is corrupted, the system does not simply "lose" a game; it experiences a catastrophic state explosion (e.g., infinite queue lengths).
  2. Complex Affinity Dynamics: The "match" or affinity between a job and a server is time-varying and highly complex to learn in a decentralized, distributed manner.
  3. Byzantine Nodes: In networked environments, compromised or faulty nodes can send malicious parameter updates to their neighbors. These Byzantine agents can trick cooperative nodes into making decisions that collapse the entire traffic layer.

Existing resilient MARL methods typically assume bounded states, leaving a massive gap in the protection of physical and digital service infrastructure.

Proposed Methodology: Resilient Consensus-Based MARL

The authors propose a novel Resilient Consensus-based MARL algorithm utilizing an Actor-Critic architecture with Linear Function Approximation (LFA). To secure the system, they introduce two primary defensive layers:

1. Coordinate-wise W-MSR Aggregation

To prevent Byzantine nodes from corrupting the shared understanding of the system's value (the consensus), each agent collects parameter updates from its neighbors, sorts them, and trims the $H$ largest and smallest values. This Weighted Mean Subsequence Reduced (W-MSR) filter ensures that a minority of malicious actors cannot pull the average outside the legitimate range of honest agents.

2. Synchronized Stability-Constrained Policy Mixture

To prevent queue divergence, agents do not solely execute their learned, potentially vulnerable policy. Instead, they mix it with a known "safe" policy (such as Join-the-Shortest-Queue). Crucially, the agents use a shared randomness source (a common seed) to synchronize this mixture. This ensures the entire network acts coherently, preventing the state explosion that occurs when agents act independently on corrupted gradients.

The paper supports this architecture with rigorous stability analysis using Foster-Lyapunov drift criteria, proving that the system remains geometrically ergodic (stable) even under active Byzantine attacks.

Experimental Evaluation

The framework was evaluated across three highly realistic simulated service environments:

  • LLM Semantic Routing: Routers directing heterogeneous prompts to GPUs, where affinity is defined by KV cache hits.
  • Edge Computing Polling: Servers autonomously selecting polling policies to serve geographically distributed tasks.
  • Smart Manufacturing Logistics: Mobile robots delivering tasks on a factory floor, where affinity is based on physical distance and battery constraints.

Key Insights and Results

The Information-Traffic Coupling

The most dangerous aspect of Byzantine attacks in service systems is not merely "bad learning." Rather, corrupted information in the learning layer directly causes physical instability (infinite queues) in the traffic layer. The proposed defense successfully decouples this vulnerability.

Synchronization as a Shield

In decentralized MARL, if agents mix policies independently, the joint transition kernel becomes chaotic. By synchronizing the fallback to a safe policy, the authors maintain the mathematical properties necessary to guarantee system-wide stability.

Dramatic Performance Recovery

The proposed method significantly outperformed standard MARL and existing robust baselines:

  • Queue Stability: In the LLM routing scenario, undefended Byzantine attacks caused queue lengths to diverge toward infinity. The proposed defense maintained average queue lengths nearly identical to the "no attack" baseline.
  • Service Time: Under attack, the undefended LLM system's service time per task exploded to over 440,000 units—effectively a total system failure. With the defense enabled, service time was brought back down to 6.88 units, remarkably close to the nominal 6.59 units.
  • Theoretical Guarantee: The authors mathematically proved that cooperative agents' policies converge almost surely to a bounded neighborhood of the global stationary solution, providing a rigorous safety net for real-world deployment.

Limitations and Future Directions

While highly effective, the framework has a few limitations:

  • Reliance on Prior Knowledge: The approach requires a pre-defined "safe" policy (like JSQ). In highly novel or complex systems, formulating this fallback policy might be challenging.
  • Fixed Byzantine Bound: The algorithm assumes a known upper bound $H$ on the number of Byzantine neighbors. If the actual number of attackers exceeds this threshold, the W-MSR filter's protections could be bypassed.

Future work will focus on handling adaptive adversaries who dynamically alter their manipulation strategies over time, as well as accounting for communication uncertainties such as packet loss and latency during the consensus step.

Summary updated

BibTeX
@inproceedings{jiang2026secure,
  author = {Yifan Jiang and Pan Jiasheng and Mengtian Li and Li Jin},
  title = {{Secure Multi-agent Reinforcement Learning for Service Systems with Affinity and Byzantine Nodes: Stability Analysis and Protection Design}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=cgg0hpUGZB},
}
Figure