Safe Reinforcement Learning with Natural Language Constraints
Not on the map. Why?
Abstract (arXiv)
While safe reinforcement learning (RL) holds great promise for many practical applications like robotics or autonomous cars, current approaches require specifying constraints in mathematical form. Such specifications demand domain expertise, limiting the adoption of safe RL. In this paper, we propose learning to interpret natural language constraints for safe RL. To this end, we first introduce HazardWorld, a new multi-task benchmark that requires an agent to optimize reward while not violating constraints specified in free-form text. We then develop an agent with a modular architecture that can interpret and adhere to such textual constraints while learning new tasks. Our model consists of (1) a constraint interpreter that encodes textual constraints into spatial and temporal representations of forbidden states, and (2) a policy network that uses these representations to produce a policy achieving minimal constraint violations during training. Across different domains in HazardWorld, we show that our method achieves higher rewards (up to11x) and fewer constraint violations (by 1.8x) compared to existing approaches. However, in terms of absolute performance, HazardWorld still poses significant challenges for agents to learn efficiently, motivating the need for future work.
Key facts. Cited by 22 papers in the map (data through 7 Oct 2026). First posted on arXiv 11 Oct 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2022: 5; 2023: 7; 2024: 7; 2025: 1; 2026: 2.
22 papers.
Sort:
By area:
- 2023FLIRT: Feedback Loop In-context Red Teamingcited by 81
- 2024A Survey of Constraint Formulations in Safe Reinforcement Learningcited by 42
- 2023LLF-Bench: Benchmark for Interactive Learning from Language Feedbackcited by 30
- 2022Leveraging Language for Accelerated Learning of Tool Manipulationcited by 26
- 2022Controllable Text Generation with Language Constraintscited by 18
- 2023GLUECons: A Generic Benchmark for Learning Under Constraintscited by 9
- 2024Embedding-Aligned Language Modelscited by 9
- 2024Safe Multi-agent Reinforcement Learning with Natural Language Constraintscited by 7
- 2022SAFER: Data-Efficient and Safe Reinforcement Learning via Skill Acquisitioncited by 6
- 2022One-Shot Learning from a Demonstration with Hierarchical Latent Languagecited by 6
- 2023Architext: Language-Driven Generative Architecture Designcited by 5
- 2023Reinforcement Learning with Knowledge Representation and Reasoning: A Brief Surveycited by 5
10 more
- 2024Mutual Enhancement of Large Language and Reinforcement Learning Models through Bi-Directional Feedback Mechanisms: A Planning Case Studycited by 3
- 2023A Reminder of its Brittleness: Language Reward Shaping May Hinder Learning for Instruction Following Agentscited by 2
- 2024Offline-to-online Reinforcement Learning for Image-based Grasping with Scarce Demonstrationscited by 2
- 2025Learning Natural Language Constraints for Safe Reinforcement Learning of Language Agentscited by 2
- 2022A Computational Interface to Translate Strategic Intent from Unstructured Language in a Low-Data Settingcited by 1
- 2023Modeling Risk in Reinforcement Learning: A Literature Mappingcited by 1
- 2026SpecRLBench: A Benchmark for Generalization in Specification-Guided Reinforcement Learningcited by 1
- 2024Output-Constrained Decision Treescited by 0
- 2024From Text to Trajectory: Exploring Complex Constraint Representation and Decomposition in Safe Reinforcement Learningcited by 0
- 2026ShieldVLA: Feasibility-Aware Safety Alignment for Vision-Language-Action Modelscited by 0
- 2026ShieldVLA: Feasibility-Aware Safety Alignment for Vision-Language-Action Models2 Sep 2026
- 2026SpecRLBench: A Benchmark for Generalization in Specification-Guided Reinforcement Learning27 Apr 2026
- 2025Learning Natural Language Constraints for Safe Reinforcement Learning of Language Agents4 Apr 2025
- 2024From Text to Trajectory: Exploring Complex Constraint Representation and Decomposition in Safe Reinforcement Learning12 Dec 2024
- 2024Offline-to-online Reinforcement Learning for Image-based Grasping with Scarce Demonstrations19 Oct 2024
- 2024Safe Multi-agent Reinforcement Learning with Natural Language Constraints30 May 2024
- 2024Embedding-Aligned Language Models24 May 2024
- 2024Output-Constrained Decision Trees24 May 2024
- 2024A Survey of Constraint Formulations in Safe Reinforcement Learning3 Feb 2024
- 2024Mutual Enhancement of Large Language and Reinforcement Learning Models through Bi-Directional Feedback Mechanisms: A Planning Case Study12 Jan 2024
- 2023LLF-Bench: Benchmark for Interactive Learning from Language Feedback11 Dec 2023
- 2023Modeling Risk in Reinforcement Learning: A Literature Mapping8 Dec 2023
10 more
- 2023FLIRT: Feedback Loop In-context Red Teaming8 Aug 2023
- 2023A Reminder of its Brittleness: Language Reward Shaping May Hinder Learning for Instruction Following Agents26 May 2023
- 2023Reinforcement Learning with Knowledge Representation and Reasoning: A Brief Survey24 Apr 2023
- 2023Architext: Language-Driven Generative Architecture Design13 Mar 2023
- 2023GLUECons: A Generic Benchmark for Learning Under Constraints16 Feb 2023
- 2022Controllable Text Generation with Language Constraints20 Dec 2022
- 2022A Computational Interface to Translate Strategic Intent from Unstructured Language in a Low-Data Setting17 Aug 2022
- 2022Leveraging Language for Accelerated Learning of Tool Manipulation27 Jun 2022
- 2022One-Shot Learning from a Demonstration with Hierarchical Latent Language9 Mar 2022
- 2022SAFER: Data-Efficient and Safe Reinforcement Learning via Skill Acquisition10 Feb 2022
- 2024Embedding-Aligned Language Modelscited by 9
- 2024Embedding-Aligned Language Models24 May 2024
- 2023FLIRT: Feedback Loop In-context Red Teamingcited by 81
- 2023FLIRT: Feedback Loop In-context Red Teaming8 Aug 2023
- 2024A Survey of Constraint Formulations in Safe Reinforcement Learningcited by 42
- 2023LLF-Bench: Benchmark for Interactive Learning from Language Feedbackcited by 30
- 2022Leveraging Language for Accelerated Learning of Tool Manipulationcited by 26
- 2022Controllable Text Generation with Language Constraintscited by 18
- 2023GLUECons: A Generic Benchmark for Learning Under Constraintscited by 9
- 2022SAFER: Data-Efficient and Safe Reinforcement Learning via Skill Acquisitioncited by 6
- 2022One-Shot Learning from a Demonstration with Hierarchical Latent Languagecited by 6
- 2023Architext: Language-Driven Generative Architecture Designcited by 5
- 2023Reinforcement Learning with Knowledge Representation and Reasoning: A Brief Surveycited by 5
- 2023A Reminder of its Brittleness: Language Reward Shaping May Hinder Learning for Instruction Following Agentscited by 2
- 2022A Computational Interface to Translate Strategic Intent from Unstructured Language in a Low-Data Settingcited by 1
- 2023Modeling Risk in Reinforcement Learning: A Literature Mappingcited by 1
12 most cited of 15 All 15 (JSON)
- 2026SpecRLBench: A Benchmark for Generalization in Specification-Guided Reinforcement Learning27 Apr 2026
- 2024From Text to Trajectory: Exploring Complex Constraint Representation and Decomposition in Safe Reinforcement Learning12 Dec 2024
- 2024Output-Constrained Decision Trees24 May 2024
- 2024A Survey of Constraint Formulations in Safe Reinforcement Learning3 Feb 2024
- 2023LLF-Bench: Benchmark for Interactive Learning from Language Feedback11 Dec 2023
- 2023Modeling Risk in Reinforcement Learning: A Literature Mapping8 Dec 2023
- 2023A Reminder of its Brittleness: Language Reward Shaping May Hinder Learning for Instruction Following Agents26 May 2023
- 2023Reinforcement Learning with Knowledge Representation and Reasoning: A Brief Survey24 Apr 2023
- 2023Architext: Language-Driven Generative Architecture Design13 Mar 2023
- 2023GLUECons: A Generic Benchmark for Learning Under Constraints16 Feb 2023
- 2022Controllable Text Generation with Language Constraints20 Dec 2022
- 2022A Computational Interface to Translate Strategic Intent from Unstructured Language in a Low-Data Setting17 Aug 2022
12 newest of 15 All 15 (JSON)