Pessimistic-Behavior / Greedy-Target Q-Learning against Adversarial State Perturbations

Adithya Venkatesh, Xiaolin Sun, Zizhan ZhengarXiv 2026

TL;DR

When reinforcement learning agents face attackers who mess with their sensors, a clever defense called pessimistic Q-learning protects them by assuming the worst—both while learning and while acting at deployment. This paper disentangles those two steps and discovers a crucial trade-off: almost all the defensive magic comes from the expensive, real-time worst-case search at test time, not from how the value function was trained. You can't skip the runtime compute tax if you want the protection, and worse, that cautious mindset can actually paralyze the agent when no attacker is around.

What Problem Does This Paper Address?

Imagine driving a car where a prankster can slightly nudge your GPS coordinates. The road hasn't moved, your physics haven't changed,-only your observation of reality is slightly off. Standard Q-learning agents, which pick actions by greedily trusting the highest value for whatever state they currently "see," fail catastrophically under such adversarial state perturbations.

One prominent defense is belief-enriched pessimistic Q-learning. Instead of blindly trusting the current reading, the agent maintains a belief set: all true states that are mathematically consistent with its past actions and noisy observations. It then plays a maximin game—picking the action whose worst-case value across that entire belief set is highest.

Here is the catch: the original algorithm applies this worst-case pessimism in two places simultaneously:

  1. During training, inside the Bellman target (the formula used to update action values).
  2. At test time, as the decision rule used to pick actions.

Because test-time belief tracking and worst-case searching add heavy computation to every single decision, the authors ask a sharp, practical question: Does pessimistic training bake robustness directly into the Q-function—allowing us to deploy a cheap, standard greedy rule at test time—or is the expensive test-time search doing all the heavy lifting?

Methods

To isolate cause and effect, the authors introduce PB-GT (Pessimistic-Behavior, Greedy-Target) Q-learning. During training, PB-GT explores the world under attack using the exact same cautious maximin behavior as pessimistic Q-learning, ensuring comparable data collection. However, it updates its Q-values using the standard, optimistic ("greedy") Bellman target, and deploys a fast, greedy lookup at test time.

Table 2: The three training procedures, along the axes of §3.3.

Because training with different targets leads agents to visit different states, comparing PB-GT and Pessimistic Q-learning head-to-head still mixes training effects with deployment rules. To cleanly sever the two, the authors run a 2×2 rule swap: they take both trained Q-functions (Pessimistic $Q$ and PB-GT $Q$) and evaluate each under both the greedy test rule and the maximin test rule.

For continuous state spaces (where tracking exact discrete sets is impossible), rather than training a neural particle filter, the authors construct a sound box—an axis-aligned bounding box propagated via known interval dynamics that is mathematically guaranteed to contain the true state.

Datasets

In reinforcement learning, interactive environments serve the role of datasets. No static datasets are used; instead, agents are trained and attacked across three environments:

  • Tabular 5×5 GridWorld: A discrete grid with step penalties, a +10 gold goal, and a -10 bomb, evaluated across 500 random seeds against 21 learned DQN attackers (including "belief-aware" attackers that can see the defender's uncertainty set).
  • Continuous GridWorld: A newly introduced continuous lift of the 5×5 grid on $[0, 5]^2$ featuring an added corridor barrier and a second bomb adjacent to the gold.
  • CartPole-v1: The classic Gymnasium pole-balancing benchmark with continuous 4D observations.
The continuous GridWorld domain featuring gold, bombs, and a corridor barrier.

Key Insights and Ideas

  • The test-time rule is the real hero: Simply training on adversarial trajectories with a standard greedy update (PB-GT) leaves the agent nearly as vulnerable as vanilla Q-learning. Conversely, slapping the maximin test-time rule onto weights that were never even fine-tuned under attack (frozen vanilla CartPole) immediately restores high robustness.
  • Paranoia has a peacetime cost: On the tabular grid, when no attacker is present, the maximin rule performs terribly. Why? Because a 1-cell uncertainty neighborhood on a tiny 5×5 map rarely shrinks to a single cell; fearing an imaginary nudge into a nearby bomb, the agent freezes or loops until time runs out. Yet querying that exact same Q-table greedily reaches the goal easily—proving the brain knows the way, even when the decision rule panics.
  • Blind attackers flatter defenders: Attackers that only see the true state make maximin look much stronger than it really is. Giving the attacker visibility into the defender's current belief set drastically drops defender returns.

Key Results

Tabular GridWorld returns showing clean performance drops for maximin rules alongside superior attack resistance.

Figure 2: Tabular grid, mean return ± sample std, 500 seeds. Clean uses the deployed rule. Matched uses belief-aware own-three attackers for the maximin rows and belief-blind own-three for the others. The third panel is worst-of-22. Each axis is wide enough to include the error bars.
  • Test Rule vs. Bellman Target: Under the "worst-of-22" attacker suite on the tabular grid, switching from a greedy test rule to maximin wins on 89.6% of seeds for Pessimistic $Q$ (mean return jumping from $-975.80$ to $-744.33$) and 76.4% for PB-GT $Q$ ($-950.40$ to $-848.28$). Once maximin is active at test time, the pessimistic Bellman target adds a smaller secondary boost on the tabular grid (winning 65.4% of seeds under worst-of-22) and zero measurable gain on the continuous GridWorld.
  • Clean Return Penalty: On clean tabular episodes, vanilla Q-learning scores $+7.35$, whereas deployed pessimistic maximin plunges to $-687.34$ (hitting the 1,000-step cap 69.7% of the time), despite its underlying Q-values achieving a $+7.09$ median when read greedily.
  • Inference Overhead: Because PB-GT drops belief tracking at deployment, it matches vanilla inference speed (~0.008 ms tabular, ~0.034 ms CartPole). Pessimistic maximin slows decision-making by 6.8× on tabular GridWorld, 2.3× on continuous GridWorld, and 34× on CartPole (1.14 ms vs. 0.0337 ms).

Limitations and Future Work

The authors note that their deep RL experiments rely on an exact dynamics model to build the "sound box," rather than reproducing learned particle-filter networks on high-dimensional tasks like Atari. Furthermore, deep experiments used fewer seeds (5–10), CartPole robustness degrades rapidly when the perturbation budget exceeds $\varepsilon = 0.05$, and no empirical comparisons were run against regularized defenses like SA-DQN or WocaR-RL.

For future work, the authors suggest testing larger grids to verify their hypothesis about the clean-performance drop, and developing hybrid inference—agents that pay the compute and caution cost of maximin only when the belief set is wide or action margins are razor-thin, defaulting to fast greedy actions when the coast is clear.

Summary updated

BibTeX
@misc{venkatesh2026pessimistic,
  author = {Adithya Venkatesh and Xiaolin Sun and Zizhan Zheng},
  title = {{Pessimistic-Behavior / Greedy-Target Q-Learning against Adversarial State Perturbations}},
  year = {2026},
  eprint = {2611.35520},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.35520},
}
Figure