Abstract
Robotics foundation models have demonstrated strong capabilities in executing natural language instructions across diverse tasks and environments. However, they remain largely data-driven and lack formal guarantees on safety and satisfaction of time-dependent specifications during deployment. In practice, robots often need to comply with operational constraints involving rich spatio-temporal requirements such as time-bounded goal visits, sequential objectives, and persistent safety conditions. In this work, we propose a specification-aware action distribution optimization framework that enforces a broad class of Signal Temporal Logic (STL) constraints during execution of a pretrained robotics foundation model without modifying its parameters. At each decision step, the method computes a minimally modified action distribution that satisfies a hard STL feasibility constraint by reasoning over the remaining horizon using forward dynamics propagation. We validate the proposed framework in simulation using a state-of-the-art robotics foundation model across multiple environments and complex specifications.
Introduction: The Safety Gap in Foundation Models
Robotics foundation models (FMs) like SPOC or OpenVLA excel at interpreting high-level semantic instructions, such as "find a bowl in the kitchen." However, these models are fundamentally probabilistic and lack formal guarantees. In real-world deployments, "mostly safe" is insufficient. A robot might successfully find an object but fail to visit a charging station in time or inadvertently enter a hazardous area.
This research bridges the gap between high-level FM reasoning and low-level hard constraints by layering formal specifications—expressed via Signal Temporal Logic (STL)—onto existing, frozen foundation models. By "nudging" the model's action distribution at runtime, the framework ensures constraint satisfaction while maintaining the model's ability to follow complex natural language instructions.
Methodology: Distribution Shaping with STL
The proposed framework, Specification-Aware Action Distribution Optimization, operates through four key components:
- Signal Temporal Logic (STL): STL is used to define complex constraints, including time-bounded requirements (e.g., "reach the charger within 60 seconds") and persistent safety conditions.
- Secondary STL Policy: A lightweight reinforcement learning policy is trained using "funnel-based reward shaping" to act as a guide for satisfying logic constraints.
- Distribution Shaping: At each step, the robot queries the FM for its preferred action distribution. The framework then solves a constrained optimization problem to find a new distribution that minimizes Kullback–Leibler (KL) divergence from the original while ensuring the chosen action leads to a "satisfying continuation" of the STL rules.
- Forward Dynamics: The system uses a coarse 2D occupancy map and a dynamics model to project future paths, ensuring the robot does not enter a "point of no return" regarding safety violations.
Experimental Results
The framework was evaluated in the AI2-THOR simulator using the SPOC foundation model. Two primary case studies were conducted: time-windowed reachability and sequential goal visits with safety constraints.
Quantitative Performance
- Safety/STL Satisfaction: The proposed method achieved 100% satisfaction across 200 independent runs. In contrast, the unmodified SPOC model failed the STL constraints in every single run.
- Task Success: For time-windowed reachability, the main task success rate remained high, dropping only slightly from 93.5% to 92.5%. In the more complex sequential visit task, success dropped from 99% to 82.5%, illustrating the inherent trade-off between strict logical adherence and open-ended exploration.
Conclusion
By shaping the action distributions of frozen foundation models, this framework provides a "plug-and-play" solution for enforcing formal safety and timing guarantees without retraining. While it currently relies on known dynamics and coarse maps, it represents a significant step toward deploying powerful but unpredictable foundation models in safety-critical robotics applications.
Summary updated