Joint Verification and Refinement of Language Models for Safety-Constrained Planning
Not on the map. Why?
Abstract (arXiv)
Large language models possess impressive capabilities in generating programs (e.g., Python) from natural language descriptions to execute robotic tasks. However, these generated programs often contain errors that violate externally given task specifications. Without an effective method to verify their correctness, the reliable deployment of language models in real-world systems is practically infeasible. We develop a method that converts generated robot programs into an automaton-based representation and verifies them against task-relevant safety specifications. We establish a theorem that any arbitrary combination of the verified programs will also satisfy the safety specifications. Hence, the method eliminates the need to verify complex programs composed of multiple simpler ones, reducing computation complexity. We then introduce an automated fine-tuning procedure that leverages verification outcomes for supervision. By applying the theorem, this procedure only requires training the model to generate safe sub-components, thereby improving training efficiency. Empirical results on robot applications show a 30 percent increase in the probability of generating specification-compliant programs, with training time reduced by half compared to fine-tuning on generating full programs.
Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Builds on 21 of its 37 references that are in the map. First posted on arXiv 18 Oct 2024.
Builds on
21 of 37 references.
References · 21
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2021Program Synthesis with Large Language Modelscited by 3,509
- 2022Competition-Level Code Generation with AlphaCodecited by 1,427
- 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,332
- 2021Measuring Coding Challenge Competence With APPScited by 879
- 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 876
- 2021GPT Understands, Toocited by 715
- 2022ProgPrompt: Generating Situated Robot Task Plans using Large Language Modelscited by 598
- 2022InCoder: A Generative Model for Code Infilling and Synthesiscited by 492
- 2020Fine-Tuning Pretrained Language Models: Weight Initializations, Data Orders, and Early Stoppingcited by 377
- 2021Unified Pre-training for Program Understanding and Generationcited by 361
- 2023CodeT5+: Open Code Large Language Models for Code Understanding and Generationcited by 327
9 more
- 2023LEVER: Learning to Verify Language-to-Code Generation with Executioncited by 228
- 2020IntelliCode Compose: Code Generation Using Transformercited by 225
- 2023Clover: Closed-Loop Verifiable Code Generationcited by 62
- 2023Grounding Complex Natural Language Commands for Temporal Tasks in Unseen Environmentscited by 52
- 2023Deploying and Evaluating LLMs to Program Service Mobile Robotscited by 36
- 2023Fine-Tuning Language Models Using Formal Methods Feedbackcited by 12
- 2023Multimodal Pretrained Models for Verifiable Sequential Decision-Making: Planning, Grounding, and Perceptioncited by 8
- 2024Robo-Instruct: Simulator-Augmented Instruction Alignment For Finetuning Code LLMscited by 6
- 2024ESBMC-Python: A Bounded Model Checker for Python Programscited by 4
Built on by
Citing papers per year: 2025: 4; 2026: 1.
5 papers.
- 2025Safety Guardrails for LLM-Enabled Robotscited by 30
- 2025VLN-Zero: Rapid Exploration and Cache-Enabled Neurosymbolic Vision-Language Planning for Zero-Shot Transfer in Robot Navigationcited by 8
- 2025A Survey of Foundation Models for IoT: Taxonomy and Criteria-Based Analysiscited by 5
- 2025RepV: Safety-Separable Latent Spaces for Scalable Neurosymbolic Plan Verificationcited by 1
- 2026CEDAR: Automata as Verifiable Interfaces for Language-Guided Embodied Actioncited by 0
- 2026CEDAR: Automata as Verifiable Interfaces for Language-Guided Embodied Action28 Aug 2026
- 2025RepV: Safety-Separable Latent Spaces for Scalable Neurosymbolic Plan Verification30 Oct 2025
- 2025VLN-Zero: Rapid Exploration and Cache-Enabled Neurosymbolic Vision-Language Planning for Zero-Shot Transfer in Robot Navigation23 Sep 2025
- 2025A Survey of Foundation Models for IoT: Taxonomy and Criteria-Based Analysis13 Jun 2025
- 2025Safety Guardrails for LLM-Enabled Robots10 Mar 2025