NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

SELP: Generating Safe and Efficient Task Plans for Robot Agents with Large Language Models

Yi Wu, Zikang Xiong, Yiran Hu, Shreyash S. Iyengar, Nan Jiang, Aniket Bera, Lin Tan, Suresh Jagannathan

TL;DR

This paper introduces SELP, a novel framework that significantly improves the ability of Large Language Models (LLMs) to generate safe and efficient task plans for robots, especially for complex, long-horizon tasks with multiple constraints. SELP combines three key innovations: equivalence voting for robustly translating natural language commands into formal logic, LTL-enforced constrained decoding to guarantee plan safety, and domain-specific fine-tuning to optimize for plan efficiency.

What Problem Does This Paper Address?

Large Language Models (LLMs) have shown remarkable progress in understanding and executing natural language (NL) commands for robots. However, a critical challenge remains: ensuring that the generated plans strictly adhere to user-specified constraints, particularly when commands are complex or involve long sequences of actions. Existing LLM planners often struggle with intricate logical dependencies and multi-step tasks, leading to unsafe or inefficient execution. Furthermore, balancing the often-conflicting objectives of safety (avoiding errors) and efficiency (minimizing time) during LLM training is difficult. This paper aims to bridge this gap by developing a robust system that can reliably generate plans that are both safe and efficient.

Methods

SELP introduces a three-pronged approach to enhance LLM-based robot planning:

  • Equivalence Voting for LTL Translation: To overcome the noise and complexity in translating NL commands into formal Linear Temporal Logic (LTL) specifications, SELP generates multiple LTL formulas for each command. These formulas are then grouped based on their logical equivalence, and the most frequent group is selected as the final specification. This "equivalence voting" mechanism increases confidence in the correctness of the LTL representation.
  • LTL-Enforced Constrained Decoding: This technique uses the generated LTL specification to guide the LLM's plan generation process. The LTL formula is converted into a Büchi automaton, which acts as a real-time monitor. During autoregressive inference, the automaton checks each generated action. If an action would lead to a state violating the LTL constraints, its probability is masked, forcing the LLM to resample until a safe action is chosen. This effectively prunes unsafe actions before they are added to the plan.
  • Domain-Specific Fine-Tuning: After ensuring safety through constrained decoding, SELP further fine-tunes the LLM planner using pre-computed safe and efficient plans. This phase helps the LLM learn to prioritize generating plans that not only satisfy constraints but also minimize execution time, thereby improving overall efficiency.

Datasets

The paper introduces two new datasets for training and evaluation:

  • DroneNav: This dataset focuses on drone navigation tasks, involving complex, long-horizon planning with multiple constraints.
  • TabletopManip: This dataset covers tabletop manipulation tasks, also featuring complex constraints and requiring precise action sequences.

These datasets are designed to be more challenging than existing benchmarks, featuring LTL specifications with greater average depth and width, and corresponding automatons with more nodes and edges, making them suitable for evaluating advanced planning capabilities.

Key Insights and Ideas

  • Equivalence Voting for Robustness: The insight here is that even if an LLM isn't perfect at generating a single correct LTL formula, by generating multiple options and using majority voting on equivalent forms, we can significantly boost the confidence in the final LTL specification. This is crucial for complex commands where subtle nuances can be easily missed.
  • Constrained Decoding as a Safety Net: The core idea is to proactively prevent unsafe actions by integrating LTL specifications directly into the LLM's generation process. Instead of just checking a completed plan, this method actively guides the LLM away from invalid paths, ensuring safety from the ground up.
  • Fine-tuning for Efficiency: Recognizing that safety alone isn't enough, the paper highlights the importance of fine-tuning with already safe and efficient plans. This teaches the LLM not just what to do, but how to do it quickly and effectively within the safe boundaries.
  • Generalizability of Constraints: The paper demonstrates that the learned reasoning for handling temporal constraints is transferable across different robot domains (e.g., training on drone navigation and testing on manipulation), suggesting that the core mechanisms are broadly applicable.

Key Results

SELP significantly outperforms state-of-the-art LLM planners and baseline methods across both drone navigation and tabletop manipulation tasks.

  • Drone Navigation: SELP achieved a safety rate of 95.2% and a completion rate of 100%, with an average execution time of 581.89 time-steps. This represents a 10.8% improvement in safety and 19.8% in efficiency compared to other methods.
  • Tabletop Manipulation: SELP achieved a safety rate of 93.6% and a completion rate of 99.4%, with an average execution time of 805.2 time-steps. This shows a 20.4% improvement in safety rate.
  • LTL Translation Accuracy: SELP's LTL translation module, with equivalence voting, achieved accuracies of 98.0% on DroneNav and 95.2% on TabletopManip, outperforming other approaches.
  • Complexity Impact: SELP's performance advantage over other methods increases with task complexity (more constraints).

Limitations and Future Work

The authors acknowledge a few limitations:

  • Finite-Step Planning: SELP currently focuses on generating task plans with a finite number of steps, whereas LTL can express infinite sequences.
  • No Explicit Feedback Mechanism: While SELP can re-generate plans if they fail, it doesn't have an explicit feedback loop to learn from execution failures in real-time.

Future work directions include:

  • Incorporating More Objectives: Extending SELP to consider additional objectives like energy consumption.
  • Multi-modality: Integrating vision and other sensory inputs to enhance the LLM's understanding and planning capabilities.
  • Handling Infinite Steps and Feedback: Developing mechanisms to address the limitations in infinite-step planning and explicit feedback loops.

Summary updated

BibTeX
@inproceedings{wu2025selp,
  author = {Yi Wu and Zikang Xiong and Yiran Hu and Shreyash S. Iyengar and Nan Jiang and Aniket Bera and Lin Tan and Suresh Jagannathan},
  title = {{SELP: Generating Safe and Efficient Task Plans for Robot Agents with Large Language Models}},
  booktitle = {IEEE International Conference on Robotics and Automation},
  year = {2025},
  doi = {10.1109/icra55743.2025.11128420},
}
Figure