# A Generalizable Approach to Safety-Aware Robotic Behavior Planning with an Explicit Constraint Space

Robotics.world

> When a robot is told to move a liquid or a sharp object in a tabletop scene, the safety requirements depend on what else is nearby — and those requirements are usually not stated in the instruction.

**arXiv**: 2611.18026 · Preprint · not peer-reviewed

**Published**: 2026-11-13

**Authors**: Xianxu Wu, Shang-Ching Liu, Zhaocong Liang, Hengxiang Chen, Yujian Ma, Shenwen Deng, Qiang Li, Jianwei Zhang

## In plain words

When a robot is told to move a liquid or a sharp object in a tabletop scene, the safety requirements depend on what else is nearby — and those requirements are usually not stated in the instruction.

## AI summary

## Overview

**Research area:** Robotics — safety-aware robotic manipulation, LLM/VLM-based behavior planning, and test-time adaptation.

**Technical level:** Advanced. The paper assumes familiarity with vision-language models, embedding-based retrieval, LoRA fine-tuning, and test-time adaptation.

**Scope:** A framework that keeps safety rules in an explicit, reusable textual "Constraint Space," learns which rules apply to a given task and scene, and uses a multimodal Safety Inspector plus validated test-time feedback to correct plans and grow the rule library.

## What This Paper Is About

When a robot is told to move a liquid or a sharp object in a tabletop scene, the safety requirements depend on what else is nearby — and those requirements are usually not stated in the instruction. This paper asks how a robot can explicitly store safety knowledge as text, decide which stored rules actually apply to the current task and visual scene, and verify that a generated action plan respects them before execution. The goal is a planner that keeps the original task objective but inserts scene-dependent safety operations, and that improves its safety knowledge and inspection behavior during deployment.

## Key Contributions

1. **Query-conditioned constraint applicability learning.** Constraint selection is reformulated from "retrieve by semantic similarity" to task- and environment-conditioned applicability learning, implemented as a lightweight dual-tower model in which each contextual query induces its own separating hyperplane over learned constraint representations.
2. **Multimodal Safety Inspection with constraint reconstruction.** A Safety Inspector goes beyond binary safe/unsafe checking: on failure it jointly produces a corrected primitive-plan proposal and reconstructs the *complete* applicable constraint set for the current task and environment.
3. **Inspector-guided test-time adaptation and knowledge expansion.** Validated Inspector feedback updates the lightweight applicability model, adapts the Inspector via LoRA while the VLM backbone stays frozen, and non-parametrically expands the Constraint Space with newly identified rules.

## Main Findings

- **Applicability model beats semantic retrieval under distribution shift.** On 150 held-out task-scene queries drawn from 50 newly constructed scenes (unified Constraint Space of 93 candidate rules), the learned model reached **37.48% Recall, 40.23% Precision, 0.3881 F1, 2.67% EMR**, versus **24.32% Recall, 26.11% Precision, 0.2519 F1, 0.00% EMR** for BGE-M3 top-$n_t$ retrieval at the same selection budget. The authors note absolute recall remains limited under distribution shift.
- **Inspection decisions are strong; exact corrective output is the bottleneck.** On 30 unseen scenes with 390 inspection samples, LoRA-adapted Inspectors scored **90.0% / 96.7% / 97.7% IDA** (Qwen3-VL-30B-A3B, Qwen2.5-VL-32B, Qwen2.5-VL-72B) but only **35.3% / 49.3% / 67.1% CEM**. Generating complete corrective output is harder than making the initial PASS/FAIL call, and CEM is the metric most sensitive to backbone capacity.
- **Missing-rule reconstruction is stable across backbones.** Rule Expansion Coverage was **97.8%, 97.8%, and 98.1%** for the three backbones respectively — consistently high relative to CEM.
- **Sequential test-time adaptation moves the system off cold start, but not monotonically.** Over 50 original scenes in five stages of 10, Recall went **0.00% → 20.51% → 46.15% → 43.59% → 23.08%** and Precision **0.00% → 53.33% → 40.00% → 48.57% → 60.00%**; Human-Verified Pass Rate went **30.00% → 40.00% → 20.00% → 20.00% → 50.00%**. The authors attribute non-monotonicity to varying incoming-scene difficulty.
- **Real-world plans insert safety operations using the same primitives.** In a ball-placement task, the safety-aware plan inserts `Grasp(bottle)` and `Put(bottle, away from ball)` before the original grasp-and-place; in a tape-placement task it inserts `Grasp(scissors)` and `Put(scissors, brush pot)` first. Quantitative success rates for these real-world trials are not reported.
- **Attribution caveat.** Inspector-specific metrics were not recorded at each adaptation stage, so the sequential results characterize the full framework rather than isolating Inspector adaptation's contribution.

## Methodology in Plain English

**The rule library.** Safety knowledge lives outside the planner as a set of textual rules called the Constraint Space. Because most rules are irrelevant to any given moment, the system must pick a small applicable subset.

**Picking rules.** A vision-language model converts the scene image into a text description, which is concatenated with the task instruction to form a query. A frozen BGE-M3 encoder embeds both the query and every rule into 1024-dimensional vectors. Two small trainable MLPs then do the work: one maps each rule into a learned 512-dimensional representation, and the other maps the query into the weights and bias of a 513-dimensional hyperplane. A rule counts as applicable if it falls on the positive side of that query-specific boundary — measured as a normalized signed distance. Training uses manually annotated applicable constraints with a positive weight (ratio of non-applicable to applicable rules) to counter class imbalance; only the two small towers are trained, and only the sign of the distance matters at inference.

**Checking plans.** The planner receives the task, the original image, and the selected rules, and emits a sequence of predefined manipulation primitives. Before execution, a multimodal Safety Inspector sees the task, image, selected rules, and plan, and returns either PASS or a failure tuple containing a reconstructed complete constraint set and a corrected plan proposal. Critically, the *reconstructed constraints* — not the Inspector's proposed plan — go back to the planner for re-planning. The loop repeats until PASS; after three failed attempts the system calls `call_human_help()`.

**Learning at deployment.** Inspector corrections are first screened by a prompt-constrained post-reviewer; only PASS corrections feed adaptation. Approved reconstructions supply positive labels (rules in the reconstruction) and negative labels (rules originally selected but removed) to update the applicability towers with unweighted binary cross-entropy. For the Inspector, the authors deliberately re-label earlier failure states with corrections discovered in later rounds, so the model learns to produce a complete correction in one step rather than spreading it across rounds; LoRA updates the Inspector while the VLM backbone stays frozen. Newly identified rules are appended to the Constraint Space.

**Grounding and implementation.** Grounding DINO localizes task-relevant objects or parts, SAM2 produces masks, and CoPa formulates the spatial constraints for each primitive. GPT-5.5 is used for environment description, multimodal planning, and post-review; the Inspector backbone varies by experiment.

## Why This Matters

**Research impact.** The paper reframes safety-constraint selection as a learned applicability problem rather than a similarity-search problem, and it shows how a closed-loop inspector can supply a supervision signal that is validated before being trusted. That combination — explicit symbolic safety knowledge, learned context-conditioned selection, and gated self-improvement — is a reusable template for work on safe embodied agents.

**Real-world applications:**

- Tabletop assistive or service robots in homes and kitchens, where hazards like liquids near electronics or sharp tools near people are scene-dependent.
- Laboratory automation, where the same instruction carries different constraints depending on nearby equipment.
- Office and logistics manipulation, where clutter (bottles, scissors) creates task-specific obstructions.
- Any deployment where a robot must acquire site-specific safety rules over time rather than having every rule enumerated in advance.

**Industry relevance.** The rule library is editable text, so operators can audit, add, or remove safety rules without retraining the planner — attractive for regulated settings. The framework runs at the behavior-planning layer only and explicitly does not replace low-level collision avoidance, motion-level safety control, or formal verification, so it complements rather than substitutes for existing safety engineering.

## Future Directions

- **Longer-term adaptation stability.** The paper states that the stability of continual Inspector adaptation over longer deployment sequences has not been systematically evaluated; the 50-scene, five-stage study is the current evidence.
- **Isolating component contributions.** Because Inspector metrics were not logged per stage, future work could measure the separate effects of applicability adaptation, LoRA Inspector adaptation, and Constraint Space expansion.
- **Improving corrective exactness.** CEM (35.3%–67.1%) lags far behind IDA (90.0%–97.7%), pointing to corrective generation and model capacity as open problems.
- **Beyond tabletop text constraints.** The authors list temporal constraints, richer physical interactions, and longer-horizon manipulation tasks as next steps.

## Target Audience

Robotics and embodied-AI researchers working on LLM/VLM-based task planning and safety; practitioners building manipulation systems that need auditable, editable safety knowledge; and engineers interested in test-time adaptation with validated, closed-loop feedback rather than unsupervised self-training. Readers need a working grasp of vision-language models and embedding-based selection to follow the method details.

## Authors’ abstract

Large language and vision-language models have substantially advanced robotic behavior planning from natural-language instructions and visual observations. However, safe manipulation in tabletop environments remains challenging because the safety constraints required for a task depend on the surrounding scene and may not be explicitly specified in the instruction. We propose a safety-aware behavior planning framework based on an explicit Constraint Space that stores reusable…

[The full abstract on arXiv](https://arxiv.org/abs/2611.18026)

[Read the original paper](https://arxiv.org/abs/2611.18026)

## Related papers

- [Low-Cost Mobile Bimanual Manipulation for Long-Horizon Toilet Cleaning](https://robotics.world/paper/low-cost-mobile-bimanual-manipulation-for-long-horizon-toilet-cleaning-2611.15381) 2026-11-11 · cs.RO · Also by Jianwei Zhang, Shang-Ching Liu
- [Humanoid robots for safety-critical electrical switching: A perception-informed runtime constraint filter](https://robotics.world/paper/humanoid-robots-for-safety-critical-electrical-switching-a-perception-2611.27845) 2026-11-20 · cs.RO · Key terms of the title in common
- [Coordinating Humanoid Loco-Manipulation through Action-Conditioned Latent Foresight](https://robotics.world/paper/coordinating-humanoid-loco-manipulation-through-action-conditioned-2611.04839) 2026-11-03 · cs.RO · Also by Jianwei Zhang
- [HygieneRoboBench: Benchmarking Hygiene-Aware Planning for Household Robots](https://robotics.world/paper/hygienerobobench-benchmarking-hygiene-aware-planning-for-household-2610.08642) 2026-10-06 · cs.RO · Key terms of the title in common
- [Physics Residual Dynamics and Reduced Order Whole-Body Planning for Obstacle Aware Human Robot Cloth CoTransportation](https://robotics.world/paper/physics-residual-dynamics-and-reduced-order-whole-body-planning-for-2610.06641) 2026-10-05 · cs.RO · Key terms of the title in common

---

Canonical: https://robotics.world/paper/a-generalizable-approach-to-safety-aware-robotic-behavior-planning-with-2611.18026
