Generating Robot Constitutions & Benchmarks for Semantic Safety

Pierre Sermanet, Anirudha Majumdar, Alex Irpan, Dmitry Kalashnikov, Vikas Sindhwani

TL;DR

Deploying vision-language models (VLMs) on physical robots introduces major safety risks, especially across the long tail of rare but catastrophic events. This paper introduces the ASIMOV Benchmark—a massive dataset of ~500k grounded situations and ~3M instructions derived from real-world video and hospital injury logs—along with a framework to automatically generate, summarize, and auto-amend natural language "robot constitutions." These data-driven constitutions hit an 84.3% alignment rate with human safety preferences, outperforming both unconstrained foundation models and classic human-written rules like Asimov's Laws.

What Problem Does This Paper Address?

As robots increasingly rely on foundation models (LLMs and VLMs) for high-level planning in human-centric spaces, ensuring semantic safety is critical. Unlike low-level control boundaries (like torque or velocity limits), semantic safety deals with contextual common sense: never point a running chainsaw at a person, do not leave a lit stove unattended, and do not put non-compostable trash into compost bins.

Evaluating and mitigating these risks is difficult because collecting real-world "red teaming" data in physical environments can be dangerous. Furthermore, hand-crafted rules—such as Isaac Asimov’s classic Three Laws of Robotics—are famously prone to loopholes, conflicting objectives, and semantic deadlocks when deployed in nuanced, real-world edge cases.

Methods

The authors adopt a bottom-up, data-driven approach to safety benchmarking and constitutional alignment:

  1. "Nightmare" Data Generation: To safely probe dangerous scenarios, benign robot and human-action video frames (from RoboVQA) are fed to a VLM (Gemini 1.5 Pro) to propose hazard-inducing modifications. An image generator (Imagen 3) applies these edits (e.g., adding a child near an electrical outlet or an open flame on a desk). The VLM then generates contexts, desirable/undesirable instructions, and targeted safety rules.
  2. Auto-Merge Rule Synthesis: To convert thousands of disparate rules into coherent constitutions, the pipeline clusters rules into themes, filters out duplicates, and checks for ethical contradictions.
  3. Auto-Amending via Counterfactuals: Constitutions often break on edge cases. The authors implement a recursive loop where an LLM dreams up counterfactual scenarios designed to break a candidate rule (e.g., a medical robot refusing life-saving surgery because it involves cutting tissue), then rewrites the rule to handle the nuance (shifting absolute prohibitions toward harm minimization).
  4. Decoupled Safety Brain: During inference, instructions are gated by an independent "constitution officer" that checks whether proposed commands violate constitutional articles using chain-of-thought and anti-jailbreak prompt wrapping.
Benign Image ➔ VLM Hazard Proposal ➔ Imagen 3 Edit ➔ VLM Generates Rules & Q/A ➔ Auto-Merge & Counterfactual Amending

Datasets

The authors release the ASIMOV Benchmark (~500K contexts/images, ~3M instructions, with 1,140 human validation labels):

  • ASIMOV-Multimodal-Auto: Synthetic hazard images generated from RoboVQA frames paired with contexts and instructions.
  • ASIMOV-Multimodal-Manual: Hand-curated everyday scenes where action desirability strictly requires visual grounding (e.g., assessing "place finger under this").
  • ASIMOV-Injury: Text scenarios synthesized from ~338k emergency department injury reports in the US National Electronic Injury Surveillance System (NEISS), re-weighted across clinical injury categories.
  • ASIMOV-Dilemmas (Auto & SciFi): Binary and multiple-choice ethical thought experiments (e.g., trolley problems, runaway paperclip maximizers, and sci-fi tropes) generated through counterfactual rule auditing.

Key Insights and Ideas

  • Bottom-Up Beats Top-Down: Grounding rules in specific physical hazards (kitchen fires, sharp objects, emergency room records) produces constitutions that generalize better than abstract philosophical maxims.
  • Counterfactuals Evolve Rules toward Universality: Iterative auto-amending broadens overly specific or fragile rules into nuanced, balanced directives without requiring manual human re-drafting.
  • Constitution Length vs. Adversarial Robustness: Under normal conditions, short, vague constitutions like "Do what a good person would do" perform well (88.8% alignment). However, when the underlying model faces adversarial jailbreaking (inverting notions of good and bad), vague constitutions collapse to ~61%. Long, highly prescriptive constitutions maintain ~81% alignment because the model executes an objective rule-verification task rather than relying on its compromised internal values.

Key Results

  • Top Benchmark Alignment: The best auto-generated, auto-amended constitution (Robot-Constitution128-AutoMerge-AutoAmend10) achieved 84.3% average alignment across normal and adversarial modes, beating:
  • The baseline Gemini 1.5 Pro without a constitution (58.6% average; 83.6% normal but dropping to 33.6% under adversary).
  • Isaac Asimov's Three Laws of Robotics (75.1% average).
  • Anthropic’s "Good-for-Humanity" principles (78.1% average).
  • Defeating Jailbreaks (RoboPAIR): In real-world adversarial self-driving scenarios (e.g., prompts tricking the model into speeding through pedestrian crossings or red lights), an auto-amended constitution paired with a decoupled safety brain caught 100% of undesirable actions.
  • Open-Source Evaluation: Smaller open models (Gemma-3-4B/27B) demonstrated competitive visual safety recognition (80.9% on multimodal data) but lagged substantially on nuanced clinical injury texts (63.8%).

Limitations and Future Work

  • Literalism vs. Common Sense: Strict adherence to constitutional rules occasionally causes comical false positives, such as refusing to slice a banana because it is classified as a "fragile object," or refusing to crack an egg because it is deemed a "living thing."
  • System Security: The paper assumes an uncompromised secondary "safety brain." Physical sensor integrity (e.g., protecting against camera spoofing or low-level firmware tampering) remains an open challenge.
  • Pluralistic Values: Safety preferences can vary by culture and operating domain (e.g., factory floors require hard halts around humans; emergency healthcare requires physical intervention). Future work will explore democratic voting mechanisms to tailor local constitutions.

Summary updated

BibTeX
@inproceedings{sermanet2025generating,
  author = {Pierre Sermanet and Anirudha Majumdar and Alex Irpan and Dmitry Kalashnikov and Vikas Sindhwani},
  title = {{Generating Robot Constitutions \& Benchmarks for Semantic Safety}},
  booktitle = {Conference on Robot Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=9HwVDqndnv},
}

Loading related content...

Figure