GUARD: Anomaly-Informed Q-Steering for Generative Robot Policies in Dexterous Manipulation

Aryaman Gupta, Xiaoyue Wu, Rana Soltani Zarrin, Mark Van der MerwearXiv 2026 · arXiv

Generative policies, like those based on diffusion or flow matching, have revolutionized robot learning by capturing complex, multi-modal behaviors. However, these models often struggle with covariate shift—the "drifting" of a robot into unfamiliar states during execution. In a new paper, researchers from Stanford and Honda Research Institute USA introduce GUARD (Guidance Using Anomaly-infoRmed Dense Values), a framework that uses anomaly detection to steer these policies back to safety in real-time.

TL;DR

GUARD improves the robustness of generative robot policies by using anomaly scores from training data as a dense reward signal for a learned Q-function. This Q-function then provides "steering" gradients during inference to nudge the robot toward successful, in-distribution actions, significantly boosting performance in complex dexterous manipulation.

What Problem Does This Paper Address?

While generative policies are powerful, they are notoriously brittle. Small errors in execution can push a robot into states it never saw during training. In contact-rich tasks like dexterous manipulation (e.g., spinning a pen or using a screwdriver), these small deviations quickly lead to catastrophic failure.

Existing solutions usually involve collecting more human data, fine-tuning the policy, or engineering complex reward functions—all of which are expensive and difficult to scale. GUARD addresses this by asking: Can we use the training data we already have to "nudge" the robot back to regions where it knows what it's doing?

Methods

GUARD operates by "steering" the action-generation process (denoising) at test time without changing the underlying pretrained policy.

  1. Anomaly-Informed Dense Rewards: The authors fit an anomaly detector (using the logpZO metric) to the original training demonstrations. This detector assigns a high "anomaly score" to states that are far from the training distribution.
  2. Anticipatory Q-Steering: They train an ensemble of Q-functions to predict future returns. Crucially, the reward function is a combination of the sparse task success signal and the dense anomaly penalty. This allows the Q-function to anticipate risk, identifying actions that might lead to "weird" (and likely failing) states several steps into the future.
  3. Inference-Time Guidance: During action generation, GUARD uses the gradients of this Q-function to bias the denoising process. It's a "nudge" that pushes the sampled action toward higher predicted success and lower anomaly risk.
  4. Offline-to-Online Adaptation: The Q-function is first trained on offline data and then refined through online interaction to ensure it accurately evaluates the steered policy's performance.
Fig. 1: We propose GUARD, a method for steering pretrained generative policies away from failures. GUARD learns a Q- function from sparse task rewards and dense anomaly signals, thus anticipating the risk of entering anomalous regions and the likelihood of task success. The Q-function gradients provide rich guidance to the policy’s denoising process toward successful, well-supported actions.

Datasets

The authors evaluated GUARD on two main fronts:

  • Adroit Simulation Benchmark: Four challenging 24-DoF dexterous manipulation tasks: Relocate, Pen, Hammer, and Door.
  • Real-World Robot: A 16-DoF Allegro V5 Plus hand performing screwdriver rotation and reorientation tasks.

Key Insights and Ideas

  • Anomaly Scores as Supervision: Typically, anomaly detection is used just for monitoring (e.g., "stop the robot, it's confused"). GUARD repurposes this signal as a dense reward to actively guide the robot.
  • Preserving the Prior: By steering the denoising process rather than fine-tuning the policy weights, GUARD keeps the rich, multi-modal "knowledge" of the original model while adding a layer of robustness.
  • Anticipation is Key: Simply minimizing the current anomaly score is greedy. By propagating the score through a Q-function, the robot learns to avoid trajectories that eventually lead to out-of-distribution states.
Fig. 2: A qualitative visualization of steering with GUARD in the Adroit Pen task. (Left) unsteered BC policy forms a loose grasp of the pen and fails to properly reorient it, as indicated by low Q-values L(s, a; Q) and high state-anomaly scores U(s). (Right) At the moment some fingers lose contact, steering provides a larger action correction ∥∆a∥folding the fingers back in to maintain a firm grasp and reorient the pen to the target orientation.

Key Results

  • Massive Success Gains: In the Adroit simulation, GUARD achieved an average success rate of 96%, outperforming the base behavior cloning (BC) policy by 36 percentage points (pp) and the strongest baseline by 21 pp.
  • Robustness to Noise: When dynamics were perturbed with action noise, GUARD maintained an 80% success rate, while other methods' performance plummeted.
  • Sim-to-Real Transfer: GUARD demonstrated impressive zero-shot transfer to a real robot. On a screwdriver rotation task, it improved the success rate from 20% to 60% and reduced the "drop rate" from 80% to 25%.
Fig. 4: A qualitative visualization of steering with GUARD in the screwdriver in-hand-rotation task. (Left) unsteered BC policy drops the screwdriver, indicated by a large, sudden drop in the Q-value L(s, a; Q) and a jump in state-anomaly score U(s). (Right) Whenever the fingers lose hold of the screwdriver, steering provides a larger action correction ∥∆a∥, successfully correcting the grasp twice in the episode, and prevents the screwdriver from falling.

Limitations and Future Work

The primary limitation is the "sim-to-real gap" in contact modeling. In one specific real-world task (palm-up reorientation), GUARD actually performed worse than the baseline. The authors attribute this to the simulation failing to capture certain failure modes (like the screwdriver rotating mid-execution). Because the Q-function never saw these failures in sim, it couldn't learn to steer away from them.

Future work aims to resolve this by training on "mixed buffers" that incorporate real-world interaction data and using wider domain randomization to make the Q-function more aware of hardware-specific quirks.

Summary updated

Abstract

Generative robot policies based on diffusion and flow matching can model complex, multimodal behaviors, but remain susceptible to covariate shift during closed-loop execution. Existing approaches mitigate such failures through additional demonstrations, policy fine-tuning, or test-time guidance, but often require human intervention, engineered rewards, or other task-specific signals. We introduce GUARD, an anomaly-informed Q-steering framework that leverages the policy's training distribution to construct a dense, failure-anticipatory steering signal. GUARD pairs sparse task rewards with dense anomaly scores learned from policy training data and propagates both through a learned Q-function. Its gradients then steer the denoising process toward actions that improve task return while preventing trajectories from entering poorly supported regions, without directly modifying the pretrained policy. Across four Adroit dexterous manipulation tasks, GUARD achieves average success rates of $96.0\%$ and $80.0\%$ under nominal and perturbed dynamics, outperforming the strongest baseline by $21.0$ and $20.0$ percentage points while maintaining the lowest anomaly score. GUARD further demonstrates direct sim-to-real transfer on in-hand screwdriver rotation and reorientation tasks, achieving $40$ and $25$ percentage-point gains in success rate. These results demonstrate that anomaly signals can serve not only for failure monitoring but also to complement sparse task rewards as effective supervision for robust policy steering.
BibTeX
@misc{gupta2026guard,
  author = {Aryaman Gupta and Xiaoyue Wu and Rana Soltani Zarrin and Mark Van der Merwe},
  title = {{GUARD: Anomaly-Informed Q-Steering for Generative Robot Policies in Dexterous Manipulation}},
  year = {2026},
  eprint = {2611.10343},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.10343},
}
Figure