Corruption-Robust Algorithms with Uncertainty Weighting for Nonlinear Contextual Bandits and Markov Decision Processes

Chenlu Ye, Wei Xiong, Quanquan Gu, Tong Zhang

Reinforcement Learning (RL) agents are increasingly deployed in real-world environments, making them susceptible to adversarial corruption. From recommendation systems manipulated by fake reviews to autonomous vehicles confused by tampered road signs, "poisoned" data is a critical vulnerability. This paper introduces the first computationally efficient algorithms for nonlinear contextual bandits and Markov Decision Processes (MDPs) that remain robust under adversarial attacks, ensuring agents remain effective even under significant data corruption.

The Problem: The "Linear Wall" and Multiplicative Regret

Standard RL algorithms operate under the assumption of an "honest" environment where rewards and transitions follow a consistent, untampered distribution. When an adversary injects corrupted data, the agent's performance—measured by regret (the difference between optimal and actual rewards)—can degrade rapidly.

Previously, robust RL algorithms faced a "linear wall." They were either confined to simple linear models or suffered from sub-optimal regret bounds where the corruption level $\zeta$ was multiplied by the square root of the time horizon $T$ (i.e., $\tilde{\mathcal O}(\sqrt{T}\zeta)$). Under this multiplicative bound, even a small amount of corruption causes the error to explode over time. The primary objective of this research is to break this barrier by supporting general function approximation (such as neural networks) while achieving an additive regret bound of $\tilde{\mathcal O}(\sqrt{T} + \zeta)$.

Methodology: Uncertainty Weighting for Nonlinear Models

The authors propose two primary algorithms: CR-Eluder-UCB for contextual bandits and CR-LSVI-UCB for episodic MDPs. The core of their approach relies on three novel components:

  1. Uncertainty-Weighted Least-Squares: Rather than treating all data points equally, the algorithm assigns weights to each sample. Data points exhibiting high uncertainty—meaning they differ significantly from the agent's historical observations—receive lower weights during model fitting. This prevents a small number of highly corrupted outliers from derailing the entire learning process.
  2. Novel Uncertainty Estimator: The authors design a new mechanism to calculate uncertainty for general, nonlinear function classes. It works by comparing the prediction error on new data points against historical training errors.
  3. Eluder Dimension Analysis: To manage the complexity of nonlinear functions, the methodology leverages the "eluder dimension," a metric defining the number of independent queries required to learn a function. The authors develop a novel mathematical technique to prove that the sum of weighted uncertainties can be strictly controlled by this dimension.

By "punishing" uncertainty during estimation but "encouraging" it during decision-making (exploration), the agent becomes inherently resilient to adversarial attacks.

Key Theoretical Results

As a theoretical research paper, the findings are grounded in rigorous mathematical proofs rather than empirical benchmarks. The key breakthroughs include:

  • Contextual Bandits: The CR-Eluder-UCB algorithm achieves a regret bound of $\tilde{\mathcal O}(\sqrt{T \cdot \text{dim} \cdot \ln N} + \zeta \cdot \text{dim})$, where $\text{dim}$ is the eluder dimension. This nearly matches theoretical lower bounds and successfully decouples the cost of corruption from the time horizon.
  • Episodic MDPs: For more complex RL tasks, the CR-LSVI-UCB algorithm achieves a regret bound of $\tilde{\mathcal O}(\sqrt{T H \cdot \text{dim} \cdot \ln N} + \zeta \cdot \text{dim})$. This marks the first result for MDPs with general function approximation to achieve an additive dependence on corruption.
  • Computational Efficiency: Unlike previous theoretical models that required solving intractable optimization problems, the proposed algorithms remain computationally efficient, provided the underlying weighted regression problem for the chosen function class can be solved.

Limitations and Future Directions

While a significant theoretical leap, the paper notes a few practical limitations. First, the computational efficiency relies on the assumption that weighted regression can be efficiently solved for the chosen function class—a task that remains challenging for highly complex models like deep neural networks.

Second, the authors suggest that combining their "uncertainty weighting" with "variance weighting" (to account for the environment's inherent randomness) could further tighten regret bounds for MDPs. Finally, while the paper provides solutions for scenarios where the total corruption $\zeta$ is unknown, performance in this agnostic setting leaves room for future optimization.

Summary updated

BibTeX
@inproceedings{ye2023corruption,
  author = {Chenlu Ye and Wei Xiong and Quanquan Gu and Tong Zhang},
  title = {{Corruption-Robust Algorithms with Uncertainty Weighting for Nonlinear Contextual Bandits and Markov Decision Processes}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=9xMuDDbWIW},
}
Figure