Corruption-Tolerant Asynchronous Q-Learning with Near-Optimal Rates

Sreejeet Maity, Aritra Mitra

TL;DR

Reinforcement learning (RL) algorithms frequently collapse when training data is corrupted by noise or malicious actors. This paper introduces Robust Async-Q, the first asynchronous Q-learning algorithm that achieves near-optimal convergence rates under adversarial reward corruption and heavy-tailed noise. By combining robust mean estimation with an adaptive thresholding safety net, the algorithm guarantees robust policy learning with an error that scales optimally with the fraction of corrupted data.

What Problem Does This Paper Address?

Standard reinforcement learning algorithms like Q-learning assume that the rewards an agent receives from the environment are clean and light-tailed (e.g., sub-Gaussian). However, real-world applications are messy: human feedback can be intentionally biased, sensors can malfunction, and web-based recommendation systems are prone to manipulation by fake users.

To model these vulnerabilities, the authors adopt the Huber contamination model from robust statistics. At each time step, the agent receives a true reward with probability $1-\epsilon$, but with probability $\epsilon$, an adversary injects an arbitrary, potentially unbounded corruption signal.

Solving this in an online RL setting introduces three massive challenges:

  1. Asynchronous Updates: Only one state-action pair is updated at a time, meaning the number of times any given pair is visited is a random variable.
  2. Time-Correlated Data: Data is collected sequentially along a single Markovian trajectory rather than being independent and identically distributed (i.i.d.).
  3. Heavy-Tailed Noise: Even uncorrupted rewards are allowed to be heavy-tailed, making it difficult to distinguish between a legitimate high-reward outlier and an adversarial attack.

Methods

The authors propose Robust Async-Q, which modifies the standard Q-learning update rule with two primary defense mechanisms:

  1. Robust Reward Estimation: Instead of tracking a simple running average of rewards, the algorithm maintains a history of rewards for each state-action pair and applies a univariate trimmed mean estimator. This filters out extreme values before computing the mean.
  2. Adaptive Thresholding: Robust estimators can still fail during rare, extreme events. To prevent catastrophic updates, the algorithm introduces a dynamic safety filter ($G_t$). If a reward estimate falls outside this "typical region," it is rejected and set to zero. Crucially, this threshold shrinks adaptively as the agent gathers more samples.
The Robust Async-Q Algorithm

The paper expands this framework into two additional variants:

  • Robust Async-RAQ (Reward-Agnostic): Eliminates the assumption that the agent knows the variance bounds of the true reward distribution ahead of time by substituting a slowly growing polynomial function of time ($t^p$) as a proxy.
  • Robust Async-RAQ-M (Markovian): Extends the algorithm to single-trajectory Markovian data using a blocking/sub-sampling technique. By only updating the Q-table every $\tau$ steps (where $\tau$ is related to the mixing time of the Markov chain), the algorithm breaks down temporal correlations to mimic i.i.d. sampling.

Datasets

The algorithms were evaluated using synthetic simulations and standard benchmarks from the OpenAI Gym/Gymnasium suite, modified to include adversarial reward corruption:

  • Synthetic Grid-world: A $25$-state, $10$-action environment.
  • FrozenLake-v1 ($8 \times 8$): Evaluated under sparse-reward conditions where goal-reaching transitions were hit with massive negative spikes (up to $-10^9$).
  • CliffWalking-v1: A dense-penalty task where stepping into the cliff was deceptively masked as a massive positive reward ($+10^5$) to trick the agent.
  • Taxi-v3: A sparse terminal reward task where successful drop-offs were corrupted with large negative outliers.

Key Insights and Ideas

  • The $\sqrt{\epsilon}$ Fundamental Barrier: The paper proves an information-theoretic lower bound of $\Omega(\sqrt{\epsilon})$ error for this setting. This means that no matter how clever an algorithm is, an adversary corrupting an $\epsilon$-fraction of data can always cause at least this much estimation error. Robust Async-Q matches this bound, proving its near-optimality.
  • Agnostic Robustness is Possible: Remarkably, you do not need to know the underlying reward statistics to defend against attacks. Using a polynomial time proxy ($t^p$) allows the algorithm to eventually dominate unknown variance parameters without hurting the dominant convergence rate.
  • New Mathematical Tools for RL: To prove the convergence of the reward-agnostic variant, the standard Azuma-Hoeffding inequality was insufficient because the Q-iterates grow deterministically before settling. The authors successfully adapted a refined martingale concentration inequality by Shamir & Spencer (1987), which could find broader use in analyzing other online RL algorithms.

Key Results

  • Near-Optimal Convergence: Given $T$ samples, Robust Async-Q achieves a finite-time error bound of $\tilde{O}(1/\sqrt{T}) + O(\sqrt{\epsilon})$. When $\epsilon=0$, it perfectly recovers the minimax optimal rate of vanilla Q-learning.
  • Markovian Resilience: Under single-trajectory sampling, the convergence rate is only inflated by a factor of $\sqrt{\tau}$ (where $\tau$ is the mixing time), matching the standard inflation seen in uncorrupted Markovian Q-learning.
  • Empirical Performance: In benchmarks like CliffWalking and FrozenLake, vanilla Q-learning completely failed to learn an optimal policy under adversarial attacks. In contrast, the robust variants consistently bypassed the corrupted signals and successfully converged to a tight neighborhood of the optimal policy ($Q^*$).

Limitations and Future Work

  • Hyperparameter Dependencies: The algorithm requires prior knowledge (or conservative upper bounds) of the corruption fraction $\epsilon$ and the minimum state-action visitation probability $\lambda_{\min}$ to tune its step sizes and thresholds.
  • Mixing Time Knowledge: The Markovian variant relies on knowing or estimating the environment's mixing time $\tau$ to perform effective sub-sampling.
  • Future Directions: The authors highlight three major areas for future research: extending this robustness to corruptions in the state transition dynamics (not just rewards), adapting the framework for deep RL (function approximation), and reducing the algorithm's memory footprint by utilizing streaming/online robust estimators.

Summary updated

BibTeX
@inproceedings{maity2026corruption,
  author = {Sreejeet Maity and Aritra Mitra},
  title = {{Corruption-Tolerant Asynchronous Q-Learning with Near-Optimal Rates}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=L5ZJv73k7x},
}
Figure