Skip to content

Predictive red teaming: breaking policies without damaging robotsPredictive Red Teaming: Breaking Policies Without Breaking Robots

arXiv· arXiv:2502.06575· Anirudha Majumdar, Mohit Sharma, Dmitry Kalashnikov, Sumeet Singh, Pierre Sermanet, Vikas SindhwaniGoogle DeepMind; Princeton UniversityIndexed by this site · 27 days ago· Originally publishedTools

Quick read

Evaluation and benchmarks

Based on the paper PDF (AI-generated); refer to the original

The authors propose RoboART: using generative image editing plus policy-embedding anomaly detection to predict the performance drops of visuomotor policies under 12 environmental factors without hardware evaluations, with mean prediction errors of 0.10 and 0.19 for the two policies.

Questions
Visuomotor policies trained by imitation learning are fragile to environmental factors such as lighting, distractors, and object positions, and exposing these fragilities with hardware evaluations is costly; the authors propose the "predictive red teaming" problem: predicting performance degradation without off-nominal hardware evaluations.
Methods
RoboART has two steps: first, Imagen 3 edits nominal observations according to language instructions to simulate changes in environmental factors (with Gemini Pro 1.5 as a critic for filtering), then anomaly detection is performed in the policy embedding space using k-nearest-neighbor cosine distance, with thresholds set by conformal prediction, and the anomaly rate is used to predict success rate.
Experiments and results
500+ hardware trials, 12 factors, two diffusion policies: Spearman ρ between predicted and true rankings is 0.8 (π_hyb) and 0.7 (π_dfn), with average prediction errors of 0.10 and 0.19 (Table 1); collecting data on the 3 conditions predicted to be most unfavorable and fine-tuning improved performance on these conditions by 2–7×, and conditions without collected data also improved by 2–5× (Fig. 6).
Limitations and future work
The authors note that editing differs from reality (lighting edits do not change shadows, multi-view geometry is inconsistent), that anomaly rates cannot predict visually invisible factors (such as object mass), and that currently only the first frame of each episode is observed; experiments cover only 2 policies, 12 visual factors and a single grasping task.
Experimental setup𝜋hyb (hybrid diffusion policy)、𝜋dfn (vanilla diffusion policy) et al. · 12 种环境因素下的 500+ 次硬件试验(双臂 Kuka IIWA 抓取任务) · Spearman rank correlation ρ、average prediction error et al.
Threat model
The red team is given a policy π (which can be queried arbitrarily, possibly with white-box access to internal representations), a nominal observation set S_nom and a held-out set S_val, as well as the nominal success rate R_nom; the goal is to find environmental factors f that degrade performance and predict their (relative or absolute) impact, without hardware evaluations of off-nominal scenarios.
Evaluated models
𝜋hyb (hybrid diffusion policy)𝜋dfn (vanilla diffusion policy)𝜋fthyb (fine-tuned hybrid policy)
Benchmarks
12 种环境因素下的 500+ 次硬件试验(双臂 Kuka IIWA 抓取任务)
Metrics
Spearman rank correlation ρaverage prediction errorsuccess rate
AI summaryThe researchers propose a predictive red teaming method and develop an automated red teaming pipeline, RoboART, which can predict performance degradation of visuomotor policies without hardware evaluation in anomalous scenarios. Addressing the problem that imitation learning policies are extremely fragile to environmental changes such as lighting, visual distractors, and object positions, and that their fragile points usually can only be exposed through time-consuming and costly hardware evaluation, the pipeline first uses generative image editing to alter environmental factors in normal observations, then uses a policy-specific anomaly detector to predict performance on the edited observations. Experiments on visuomotor diffusion policies across more than 500 hardware trials and 12 anomalous conditions show that the average difference between predicted success rate and actual success rate is less than 0.19; fine-tuning with data collected under the predicted adverse conditions can improve baseline performance by 2-7 times.

The researchers propose a predictive red teaming method and develop an automated red teaming pipeline, RoboART, which can predict performance degradation of visuomotor policies without hardware evaluation in anomalous scenarios. Addressing the problem that imitation learning policies are extremely fragile to environmental changes such as lighting, visual distractors, and object positions, and that their fragile points usually can only be exposed through time-consuming and costly hardware evaluation, the pipeline first uses generative image editing to alter environmental factors in normal observations, then uses a policy-specific anomaly detector to predict performance on the edited observations. Experiments on visuomotor diffusion policies across more than 500 hardware trials and 12 anomalous conditions show that the average difference between predicted success rate and actual success rate is less than 0.19; fine-tuning with data collected under the predicted adverse conditions can improve baseline performance by 2-7 times.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    How to discover and quantify the fragility of visuomotor policies to environmental factors without conducting off-nominal hardware evaluations.

    Core question: Can the fragility of visuomotor policies to environmental factors (lighting, visual distractors, object positions) be discovered, and the corresponding performance drops predicted, without conducting hardware evaluations in off-nominal scenarios?

    • Scenario and motivation: The authors state that visuomotor policies trained with imitation learning can complete complex manipulation tasks but are often fragile to lighting, visual distractors, and object positions, and that these fragilities depend on training details in hard-to-predict ways; exposing them with hardware evaluations is costly and time-consuming.
    • A counterexample-style observation: The paper gives an example in which a policy trained on 3K+ demonstrations drops from about 65% to about 10% success rate when the table height changes by a few centimeters, whereas a person standing beside the table has almost no effect—the authors use this to illustrate that predicting relative and absolute effects by intuition is difficult.
    • Shortcomings of existing methods: The authors state that hardware evaluations are costly to set up and run; evaluating the generalization of RGB policies in simulation (e.g., THE COLOSSEUM) may require months of human effort to build accurate simulators for new environments.
    • The paper's proposal: Formalizes the problem of "predictive red teaming" and proposes RoboART—an automated red-teaming pipeline based on generative image editing and anomaly detection; the authors state that it can support targeted deployment, policy comparison, and targeted data collection.
    • Red-teaming setup (Sec. 3):
      • Goal: Rank the environmental factors f ∈ F selected by the red team by performance drop, and predict the absolute performance R_f under each f.
      • Knowledge and capabilities: Given a policy π, a nominal observation set S_nom, and a held-out set S_val, with arbitrary query access to π and possibly white-box access to its internal representations.
      • Victim system: Imitation-learning visuomotor policies that primarily take RGB observations (in the experiments, two diffusion policies).
  2. What related research exists?

    Related work covers LLM red teaming, robot red teaming, anomaly detection and failure prediction, generative image editing, and offline policy evaluation.

    Red teaming (LLM and robotics)

    • LLM red teaming: evolved from human evaluation to using LLMs themselves to automatically discover vulnerabilities (e.g., automated work such as Perez et al. 2022, Ganguli et al. 2022, Zou et al. 2023); there is also red-teaming work on vision-language models and text-to-image models.
    • Karnik et al. (2024)'s embodied red teaming audits the instruction generalization of robot foundation models, but the paper notes that its evaluation is entirely in simulation; Robey et al. (2024) studies jailbreaking LLM-controlled robots. The paper notes that its difference from these two is that it focuses on environmental factors that degrade performance and does not conduct off-nominal hardware evaluations.
    • Pumacay et al. (2024)'s THE COLOSSEUM uses simulation to evaluate policy generalization to environmental factors; the paper notes that building accurate simulators for new environments may require months of human effort, whereas this paper's pipeline is data-driven and automated.

    Anomaly detection and failure prediction

    • Failure prediction methods include reachability analysis, control barrier functions, formal methods, and learned predictors; anomaly detection aims to find conditions that deviate from nominal. This paper adopts anomaly detection based on conformal prediction, which can provide statistical guarantees on the false-positive rate.
    • The paper notes that the above work detects failures at runtime and takes remedial action, whereas this paper applies anomaly detection to edited observations to predict performance under different environmental conditions.

    Generative image editing and offline policy evaluation

    • In robotics, generative image editing has previously been used for data augmentation, generating subgoals for image-conditioned policies, and runtime observation editing; this paper uses Imagen 3 to edit real robot observations according to language instructions.
    • Offline policy evaluation (off-policy evaluation) uses data collected by another policy to estimate the performance of a target policy; the paper notes that it is similar to predictive red teaming (neither evaluates on the robot) but different: predictive red teaming executes the same policy under nominal conditions to predict performance under off-nominal conditions.

    Positioning: The authors state that robot red teaming is still in its early stages, and this paper extends the object of red teaming from instructions/prompts to environmental factors, replacing hardware evaluations or accurate simulation with a data-driven automated pipeline.

  3. How does the paper address this problem?

    RoboART is divided into two steps, "editing" and "prediction": generative editing simulates environmental changes, and the anomaly rate in the policy embedding space predicts performance.

    Overall approach: RoboART (Robotics Auto-Red-Teaming) first uses generative image editing to modify nominal observations into synthetic observations reflecting changes in each environmental factor, then uses an anomaly detector in the policy embedding space to compute the anomaly rate, thereby predicting the performance drop caused by each factor.

    Problem Formalization (Sec. 3)

    • The nominal scene distribution D_nom is unknown; only an observation set S_nom collected from it and a held-out set S_val are available; the method in this paper requires only first-frame observations of episodes.
    • The red team selects a factor set F, D_f is the scene distribution after factor f is changed; the nominal expected reward R_nom is known (rewards are assumed to be in [0,1]), and the requirements are: (1) rank f by performance drop; (2) predict the absolute performance R_f.

    Generative Image Editing (Sec. 4.1)

    • The Imagen 3 diffusion model edits observations in S_val according to language instructions, supporting adding objects, changing background colors, adding people, changing lighting, etc.; for multi-camera robots, each view is edited independently with the same instruction.
    • VLM critic: For each input, 4 candidate edited images are generated, and Gemini Pro 1.5 judges whether any candidate accurately reflects the target change and selects the best one; otherwise the observation is discarded; Appendix B gives the full prompts (including chain-of-thought reasoning).

    Performance Prediction Based on Anomaly Detection (Sec. 4.2)

    • Core assumption: Rf ≈ 1 − αf, i.e., the expected reward under factor f is approximately 1 minus the anomaly rate of the edited observations; the threshold is chosen so that the same holds for nominal observations.
    • The anomaly score uses the nearest-neighbor cosine distance in the policy embedding: sπ(o, Snom) := mini {1 − (ϕπ(o)·ϕπ(oi))/(|ϕπ(o)||ϕπ(oi)|)}, and the experiments use the mean of the k-nearest-neighbor distances; the embedding is the context vector from the diffusion policy's denoising process.
    • The threshold τ is taken as the empirical quantile of the validation-set anomaly scores using conformal prediction, so that the probability that an unseen nominal observation is labeled anomalous is upper-bounded by 1 − R_nom.

    Pipeline and Key Parameters (Alg. 1, Sec. 5.1)

    • 100 edited observations are generated per factor (taken from the first frames of the held-out portion of training episodes), and S_nom is a subset of the first frames of training episodes.
    • Main-result parameters: π_hyb uses k=5, |S_nom|=3000; π_dfn uses k=10, |S_nom|=500 (ablations in Appendix D).
  4. What experiments did the paper conduct?

    500+ hardware trials, 12 factors, 2 policies: ranking ρ 0.8/0.7, average prediction error 0.10/0.19; targeted data collection yields 2–7× improvement.

    Experimental Setup

    • Policies under test: π_hyb (hybrid architecture: trajectory optimization waypoint head + diffusion trajectory head + mode selection head, with embeddings as ℝ^512 vectors) and π_dfn (vanilla diffusion policy, with embeddings as ℝ^(515×513)); both have nominal success rates of about 65% (each measured over 30 trials).
    • Hardware and task: dual-arm Kuka IIWA (left arm only) + Weiss gripper, top-down + wrist dual cameras, grasping task; training data consists of 3K+ automatically collected demonstrations under nominal conditions.
    • Environmental factors: 12 kinds—red/green/blue lighting, red/green/blue tabletop backgrounds, 4 occluding distractors (black/white trash can, laptop, candle), a person beside the table, and table height variation (Fig. 2).
    • Evaluation scale: 20+ hardware episodes per factor per policy to estimate the true success rate, totaling 500+ trials.
    • Metrics: Spearman rank correlation ρ ∈ [−1,1] (ranking accuracy); mean prediction error (the absolute difference between predicted and true success rates, averaged over the 12 factors).
    • Prediction setup: 100 edited observations per factor; the anomaly score is the mean k-nearest-neighbor cosine distance in the policy embedding space.

    Main Results

    According to Table 1 (RoboART predictions vs. true success rates):

    Metricπ_hybπ_dfn
    Spearman ρ (↑)0.80.7
    Mean prediction error (↓)0.100.19
    • The authors state that both the predicted rankings and the absolute performance are strongly correlated with the true values; for example, it correctly identifies that π_hyb is relatively robust to object/person distractors, moderately sensitive to background and lighting, and sensitive to table height variation, and that π_dfn is more fragile than π_hyb under blue lighting and table height variation (Fig. 5).
    • The authors note that a mean error within 0.19 is roughly within the noise range of estimating success rates with about 20 trials.

    Targeted Data Collection (Sec. 5.2)

    • What was measured: For the 3 factors where RoboART predicted the largest drops (blue lighting, table height variation, blue background), about 1 hour (≈100 trajectories) of data was collected for each, and π_hyb was jointly fine-tuned for 20K steps with a batch ratio of 80% original data + 20% new data and a learning rate of 5e−6.
    • Results: The authors report that after fine-tuning, nominal-condition performance improved, the 3 off-nominal conditions for which data was collected improved 2–7×, and other background and lighting conditions for which no data was collected also improved 2–5× (Fig. 6; the paper does not give per-condition success rate values).
    • Authors' interpretation: The authors state that this demonstrates the value of predictive red teaming in guiding targeted data collection and brings cross-domain generalization.

    Separate Evaluation of Anomaly Detection (Sec. 5.3)

    • What was measured: The anomaly detector was run directly on about 20 real robot first-frame observations per factor (without image editing), and the anomaly rate was used to predict success rate.
    • Results (Table 2): For π_hyb, ρ is 0.6 and mean error is 0.20; for π_dfn, ρ is 0.8 and mean error is 0.21.
    • Authors' interpretation: The authors note that these predictions use 5× fewer observations than the full RoboART pipeline (about 20 real observations vs. 100 edited observations), so they are more susceptible to noise; Appendix E explains that the threshold for π_dfn was calibrated to a nominal success rate of 0.8 (rather than 0.65), because the threshold obtained at 0.65 was too conservative.

    Other Ablations and Analyses

    • k and |S_nom| ablation (Appendix D): π_hyb remains accurate under small k as |S_nom| varies (e.g., |S_nom|=3000, k=5 gives ρ=0.78, error 0.1); π_dfn has higher embedding dimensionality and benefits from smaller |S_nom| or larger k (e.g., |S_nom|=200, k=10 gives ρ=0.75, error 0.19; |S_nom|=2000, k=250 gives ρ dropping to 0.17, error 0.25).
  5. What are some points that can be further explored?

    The authors list limitations in four directions: the edit-reality gap, the anomaly-failure gap, visually invisible factors, and multi-round red teaming.

    Limitations and Future Directions Noted by the Authors

    • Edit-reality gap (Sec. 6.1): Image editing still falls short of realism for some factors; for example, lighting edits do not change object shadows the way real lighting does; multi-view consistency is harder to guarantee, and the geometry of newly added objects is inconsistent between the edited top-down and wrist images. The authors propose using Gaussian Splatting-based 3D scene editing tools and possibly extending to depth channels.
    • Anomaly-failure gap (Sec. 6.1): The anomaly rate is not a fully accurate predictor of performance drop; the authors propose future work on editing observations at multiple timesteps within an episode and computing the anomaly rate over sequences (currently only the first frame is used), and on exploring other anomaly detection methods.
    • Hidden environmental factors (Sec. 6.1): RoboART requires factor changes to be reflected in visual observations and cannot discover completely invisible changes (e.g., changing object mass without changing appearance); the authors state that simulation-based predictive red teaming is one direction in this case, but the sim-to-real gap must be bridged.
    • Multi-round predictive red teaming (Sec. 6.1): Currently a set of factors F is selected only at the start; the authors propose iteratively expanding the factor set to include new factors similar to those with poor predicted performance.

    Scope of Experimental Coverage

    • The policies under test are 2 visuomotor diffusion policies (π_hyb, π_dfn), both evaluated on a grasping task on the same dual-arm Kuka IIWA platform (Sec. 5).
    • There are 12 environmental factors in total, all visual changes (lighting, background color, distractors, person, table height); 20+ hardware episodes per factor per policy, totaling 500+ trials (Sec. 5).
    • The targeted data collection experiment is done only for π_hyb, covering the 3 conditions with the worst predictions, with about 100 trajectories per condition (Sec. 5.2).
    • Image editing uses Imagen 3, and edit filtering uses Gemini Pro 1.5; the paper does not report the VLM filtering acceptance rate or human agreement.
    • The paper does not report repeated-trial variance or confidence intervals for the hardware trials; true success rates are estimated from about 20 trials.
  6. Summarize the main content of the paper

    Proposes the predictive red teaming problem and the RoboART pipeline, which uses image editing plus anomaly detection to predict policy fragility, validated with 500+ hardware trials.

    A robot safety evaluation paper: the authors formally propose the "predictive red teaming" problem—discovering the fragility points of visuomotor policies with respect to environmental factors and predicting performance degradation without off-nominal hardware evaluations, and propose the RoboART pipeline.

    • Problem: imitation learning policies are fragile to lighting, distractors, object positions, etc., and hardware evaluation is costly; the paper gives the example that a change of a few centimeters in table height drops the success rate from about 65% to about 10%, which is hard to anticipate by intuition.
    • Method: RoboART uses Imagen 3 to edit nominal observations according to language instructions to simulate factor changes (with Gemini Pro 1.5 as critic for filtering), then performs anomaly detection in the policy embedding space using k-nearest-neighbor cosine distance, sets the threshold via conformal prediction, and predicts the success rate as 1 − anomaly rate.
    • Main results: on 500+ hardware trials, 12 factors, and 2 diffusion policies, the Spearman ρ between predicted and true rankings is 0.8 (π_hyb) and 0.7 (π_dfn), with average prediction errors of 0.10 and 0.19 (Table 1).
    • Application: collecting about 100 trajectories on the 3 conditions predicted to be most unfavorable and fine-tuning π_hyb improved performance on these conditions by 2–7×, and conditions without collected data also improved by 2–5× (Fig. 6).
    • Ablation: when anomaly detection is applied directly to real observations, ρ is 0.6/0.8 and error is 0.20/0.21 (Table 2); the authors note that it has 5× fewer observations and is more susceptible to noise.
    • Authors' conclusion: the authors claim RoboART can identify environmental factors affecting performance, predict relative and absolute impact, and guide targeted data collection; limitations include the edit-real gap and inability to handle visually invisible factors, and the authors hope this problem and baseline can advance research in this direction.
Read originalarxiv.org