One email each morning — yesterday's AI, sortedGet it in your inbox

METAL LAB

SafeBranch: Branch-Pair Safety Alignment for Embodied Agents

arXiv:2608.197292026-08-21

Teaching a robot AI to know exactly which past decision was unsafe, by rewinding the sim to that moment and showing both choices side by side

Robot-body AI agents driven by vision-language models often finish household tasks while breaking safety rules along the way, like leaving a stove on or touching a wet outlet. The researchers built SafeBranch, which rewinds the agent's own failed attempt back to the exact moment it went wrong and trains it by comparing the unsafe choice against a safe one it generates itself at that same moment. This roughly tripled to tenfold improved safe task completion rates, including about ten times more safe successes than the untrained baseline when facing unfamiliar objects.

What they did

  1. The problem: just imitating safe trajectories teaches the agent safe-looking behavior without explaining when it applies, causing it to repeat safety actions out of context; contrasting whole safe vs. unsafe trajectories spreads the signal across many unrelated steps, causing the agent to avoid finishing tasks just to seem safe.
  2. The method: an unsafe rollout is rolled back in the simulator to the exact safety-critical step that caused the violation; an external critic (GPT-4o) points out what went wrong, the agent itself generates a safer alternative action at that same step, then the critic's hint is removed and only the original unsafe action and the agent's own safe alternative are kept as a matched training pair, called a branch pair.
  3. Training: applying an objective called BranchPO to these branch pairs lets the trained agent act safely at deployment time with no external critic or safety checker running alongside it.
  4. Results: on IS-Bench, the safe-success rate rose from 0.031 (untrained) to 0.281; on an unseen-object variant it rose from 0.048 to 0.469 (about tenfold); on the separate SafetyALFRED simulator, hazard-detection accuracy rose from 0.274 to 0.438.
  5. Efficiency: the data-construction pipeline produced about 5.2 times more usable training pairs than a natural sampling approach within the same time budget, with human review confirming quality improved at each filtering stage.
Figure 1: Branch-pair supervision for interactive safety. At a safety-critical step, structuring supervision as two branches that share the same context but differ in the actor’s action makes the safety-determining choice explicit. This branch-pair form isolates the step-level safety signal, allowing the actor to learn where and how to take the safe branch.
Figure 1: Branch-pair supervision for interactive safety. At a safety-critical step, structuring supervision as two branches that share the same context but differ in the actor’s action makes the safety-determining choice explicit. This branch-pair form isolates the step-level safety signal, allowing the actor to learn where and how to take the safe branch.
Table 1: Qualitative comparison of supervision signals on a hygiene task. Task: put a peach from the fridge onto a soiled plate. Safety requirement: wipe the plate before placing the peach and close the fridge after retrieval. SafeBranch trains with BranchPO on branch pairs, contrasting safe and unsafe actions at the same decision point. Orange marks stalled continuations; red marks unsafe continuations; green marks safety-relevant actions.
Training signalTrajectoryResult
Imitation Supervisionopen fridge → wipe plate → place peach on plate → close fridge → place peach on plate → place peach on plate → … (no Done)! STALL Performs safe actions, but collapses into an action loop.
Trajectory-level Preferenceopen fridge → place peach on soiled plate → Done× UNSAFE Reaches the goal through an unsafe shortcut.
Branch-pair Preferenceopen fridge → wipe plate → place peach on plate → close fridge → Done√ SAFE Chooses the local safe action and completes the task.
Figure 2: Overview of SafeBranch. SafeBranch constructs same-state branch pairs by rolling unsafe rollouts back to the safety-critical anchor step and eliciting a repaired output with critic feedback. The feedback is removed before training, and BranchPO aligns the actor on these branch pairs for critic-free deployment.
Figure 2: Overview of SafeBranch. SafeBranch constructs same-state branch pairs by rolling unsafe rollouts back to the safety-critical anchor step and eliciting a repaired output with critic feedback. The feedback is removed before training, and BranchPO aligns the actor on these branch pairs for critic-free deployment.
Table 2: Main results on IS-Bench and the two OOD benchmarks constructed from it (ObjectShift injects distractors; TaskShift substitutes target objects). The first block runs the untrained actor with optional inference-time safety machinery; the second block trains the actor and deploys it critic-free. For each column, bold marks the best and underline the second-best.
In-DistributionOOD-ObjectShiftOOD-TaskShift
MethodSRSSRSRecSRSSRSRecSRSSRSRec
Inference-time / untrained actor
Baseline0.6560.0310.2730.8990.0510.2430.8030.0480.295
Self-Verification0.6070.0710.3330.6930.0530.2440.6510.0820.295
Lookahead0.2190.0000.0940.2440.0610.0540.1330.0440.067
Actor-trained / critic-free deployment
SFT-only0.5940.2190.4220.7140.3470.3900.7550.4340.689
Trajectory DPO0.6560.0000.2560.6130.1180.2450.7480.0750.253
+ success-matched0.5940.0000.3330.7960.0970.3090.7740.0630.237
BranchPO (ours)0.5940.2810.4670.8190.3550.5890.6940.4690.795
Figure 3: Analysis of branch pair construction. (a) Data generation efficiency. Under the same DFS rollout budget, natural best-of-N sampling and critic-guided rollback are evaluated with a fixed GPT-4o judge for usable same-anchor branch pairs; SafeBranch produces such pairs 5.2× faster. (b) Pair quality through filtering. Starting from 753 raw pairs, the SafeBranch pipeline applies judge filtering and cross-temperature deduplication to retain reliable final branch pairs, with human verification showing higher usable-pair rates across stages. (c) Downstream effect of filtering. Training BranchPO on each filtering stage shows that SR, SSR, and SRec improve most after the final filtering stage, indicating that pair quality rather than raw pair count carries the downstream safety signal.
Figure 3: Analysis of branch pair construction. (a) Data generation efficiency. Under the same DFS rollout budget, natural best-of-N sampling and critic-guided rollback are evaluated with a fixed GPT-4o judge for usable same-anchor branch pairs; SafeBranch produces such pairs 5.2× faster. (b) Pair quality through filtering. Starting from 753 raw pairs, the SafeBranch pipeline applies judge filtering and cross-temperature deduplication to retain reliable final branch pairs, with human verification showing higher usable-pair rates across stages. (c) Downstream effect of filtering. Training BranchPO on each filtering stage shows that SR, SSR, and SRec improve most after the final filtering stage, indicating that pair quality rather than raw pair count carries the downstream safety signal.
Table 3: Cross-simulator transfer on SafetyALFRED under its native five-category taxonomy. Unsanitary† is pre-solved by the base VLM (∼35%); Fall/Trip Hazard yields no training pairs under the SafeBranch recipe. For each column, bold marks the best.
MethodAppliance MisuseProperty DamageUnsanitary†SpoilageFall/Trip HazardAll
Baseline0.0480.0340.6300.0790.0000.274
Self-Verification0.0890.1590.6630.0530.0000.323
Lookahead0.0240.0280.6830.0530.0000.287
BranchPO (ours)0.2020.4280.7110.0790.0780.438
Box 17: Per-risk-type cumulative bar plot, showing for each hazard category how many safety conditions SafeBranch satisfies vs. violates. Three panels stacked horizontally (ID, OOD, All).
Box 17: Per-risk-type cumulative bar plot, showing for each hazard category how many safety conditions SafeBranch satisfies vs. violates. Three panels stacked horizontally (ID, OOD, All).
Table 4: Pair construction across preference-learning variants. Shared h: y+ and y− share the same anchor. Task success: both branches complete the task.
MethodPair typeShared hTask success
SFTImitation
Trajectory DPOContrast××
+ success-matchedContrast×
BranchPO (ours)Contrast
Table 12: SafeBranch data-construction funnel from the 753 extracted preference pairs (608 rollout episodes, 4 temperatures; BeforeBDDL + TermSafety triggers). “Kept” is the fraction kept from the previous stage.
StageCountKept
Extracted preference pairs753
→ Judge-kept (quality)67589.6%
→ Final (after dedup, train pool)47570.4%
Table 13: Removing critic feedback (Ours) vs. retaining it (+FB) in the training prompt, evaluated critic-free on the ID split. The two data variants are byte-identical apart from the critic guidance block. SafeBranch denotes the staged SFT→BranchPO pipeline used in the body (Sec. 4); BranchPO-only drops the SFT warm-up.
MethodVariantSRSSRSRec
SFT-onlyOurs0.5940.2190.422
+FB0.7140.0000.270
BranchPO-onlyOurs0.6560.2500.488
+FB0.6000.1330.409
SafeBranchOurs0.5940.2810.467
+FB0.6900.1380.425
Table 14: Runtime full-critic (GPT-4o, one critic call per decision step) vs. SafeBranch / BranchPO (critic-free) across IS-Bench and our controlled OOD extensions. The cost column reports the upper-bound number of additional GPT-4o critic calls under a 30-step budget: (32+147+138)×30=9,510. SafeBranch adds no test-time critic calls.
IDOOD-ObjectShiftOOD-TaskShiftTest-time cost
MethodSRSSRSRecSRSSRSRecSRSSRSRecExtra GPT-4o calls
Full-critic (GPT-4o)0.6560.4060.6800.7620.5240.7420.7230.6160.793≤9,510
SafeBranch (ours)0.5940.2810.4670.8190.3550.5890.6940.4690.7950
Table 15: Per-checkpoint training dynamics on the development split (32 tasks, actor-only). Best checkpoint per method (by SSR) in bold; these are the checkpoints used in the main results.
MethodStepSRSSR
SFT-only100.6560.031
200.6880.125
300.5940.219
600.0940.094
900.2810.156
BranchPO-only300.6880.031
500.6560.188
700.5940.156
900.6560.250
1400.5940.188
2100.5940.188
SafeBranch300.5940.281
(SFT→BranchPO)500.5810.161
700.5520.138
900.6330.100
1100.5170.138
1300.4330.100
1500.3100.034
Table 16: SafeBranch per-risk-type safety recall on ID and OOD splits. Safe is the number of satisfied safety conditions, and Total is the number of required safety conditions. SRec is computed as Safe / Total. The All columns aggregate ID and OOD. SafeBranch checkpoint = SFT→BranchPO at step 30 (see Table 15).
IDOODAll
Risk typeSRecSafeTotalSRecSafeTotalSRecSafeTotal
Collision/Tripping Hazard0.4299210.5601903390.552199360
Fire Hazard0.167160.2337300.222836
Food Contamination0.143170.34114410.3121548
Chemical Hazard0.750680.610861410.61792149
Water Spill Damage1.000110.0000120.077113
Falling Object Hazard0.400250.78429370.7383142
Electrical Shock0.000020.36711300.3441132
All0.40020500.5353376300.525357680

Why it matters

As embodied AI agents move into real homes and workplaces, completing a task safely matters as much as completing it at all, and this work offers a concrete recipe for training that safety directly into the agent rather than bolting on an external checker. Because the trained agent needs no critic running at deployment, it points toward a more practical, lower-cost path to safer robots in real-world use.

Terms in this paper

  • vision-language-model (VLM) agent · an AI system that combines visual perception with language understanding to decide actions
  • safety-critical step · a moment in a task where the agent's choice determines whether the outcome ends up safe or unsafe
  • branch pair · a matched pair of a safe action and an unsafe action recorded at the exact same decision moment
  • environment rollback · resetting a simulation back to an earlier point in time
  • BranchPO · a training method designed specifically to learn from branch pairs by preferring the safe action
  • critic-free deployment · running the trained agent without any external safety-checking module active during use

Original abstract (English)

Vision-language-model-based embodied agents can complete instructed tasks but often violate safety constraints in the process, a problem recently framed as interactive safety. Training such agents to act safely is difficult, since safety and task success are distinct objectives, and safety arises only at a small number of safety-critical steps within a trajectory. Standard supervision is insufficient: imitating safe trajectories teaches behavior without explaining why it is safe, and contrasting arbitrary safe and unsafe trajectories mixes the safety signal with unrelated differences. We propose SafeBranch, a framework that aligns an embodied actor on safety through branch pairs constructed from the actor's own unsafe rollouts via environment rollback. SafeBranch rolls each unsafe rollout back to the safety-critical step that caused the violation, queries the actor for a safe alternative, and pairs the original action with the alternative so that the two branches differ only at that step. The trained actor acts safely at deployment with no critic in the loop. On IS-Bench, SafetyALFRED, and out-of-distribution variants with unseen tasks and objects, it handles safety reliably without sacrificing task success, achieving roughly ten times more safe successes than the untrained baseline on the unseen-object variant.

Authors · Hyunse Lee, Jiwoo Jeong, Haneul Lee, Kyochul Jang, Youngjae Yu, Woojin Lee

Read on arXiv

Latest papers

All papers →

Latest from METAL LAB

Figures: Hyunse Lee et al., arXiv:2608.19729, CC BY 4.0