Planning With Uncertain Specifications (PUnS)

Ankit Shah, Shen Li, Julie Shah

Abstract

Reward engineering is crucial to high performance in reinforcement learning systems. Prior research into reward design has largely focused on Markovian functions representing the reward. While there has been research into expressing non-Markov rewards as linear temporal logic (LTL) formulas, this has focused on task specifications directly defined by the user. However, in many real-world applications, task specifications are ambiguous, and can only be expressed as a belief over LTL formulas. In this letter, we introduce planning with uncertain specifications (PUnS), a novel formulation that addresses the challenge posed by non-Markovian specifications expressed as beliefs over LTL formulas. We present four criteria that capture the semantics of satisfying a belief over specifications for different applications, and analyze the qualitative implications of these criteria within a synthetic domain. We demonstrate the existence of an equivalent Markov decision process (MDP) for any instance of PUnS. Finally, we demonstrate our approach on the real-world task of setting a dinner table automatically with a robot that inferred task specifications from human demonstrations.

Introduction

In Reinforcement Learning (RL), defining an effective reward function—often called "reward engineering"—is a significant challenge. For complex tasks like setting a dinner table, a simple reward for the final state is insufficient; the robot must follow specific temporal rules, such as placing a plate before a bowl. While Linear Temporal Logic (LTL) allows for the formal specification of such non-Markovian tasks, most existing frameworks assume the existence of a single, perfectly defined LTL formula.

In reality, human intent is often ambiguous. When a robot learns from demonstrations, it may be unclear whether a specific sequence of actions was a requirement or a coincidence. Planning with Uncertain Specifications (PUnS) addresses this by representing task requirements as a probability distribution (a belief) over multiple possible LTL formulas, allowing robots to plan effectively despite ambiguity.

The PUnS Framework

The PUnS framework provides a mathematically rigorous way to transform a belief over LTL specifications into a standard Reinforcement Learning problem.

Evaluation Criteria

Since there is no single "correct" way to satisfy a distribution of potentially conflicting rules, the authors propose four distinct semantics for satisfaction:

  • Most Likely: Prioritize the single formula with the highest probability.
  • Maximum Coverage: Attempt to satisfy the largest possible subset of formulas.
  • Minimum Regret: Maximize the expected satisfaction across the entire belief distribution.
  • Chance Constrained: Satisfy the most probable formulas until a predefined risk threshold is met.
Venn diagram representations of the four satisfaction criteria showing how different subsets of specifications are prioritized.

MDP Compilation and Counterfactual Updates

A key contribution of PUnS is the proof that any such problem can be compiled into a standard Markov Decision Process (MDP). This is achieved by creating a "cross-product" of the environment's physical states and the "progression" states of the LTL formulas. This augmented state space allows the agent to track its progress relative to every potential specification simultaneously.

The compilation process: individual LTL automata are combined into a product automaton that tracks the progression of multiple specifications.

Furthermore, because LTL progression is deterministic, PUnS utilizes counterfactual updates. When an agent takes an action, it doesn't just learn about its current hypothesis; it updates its knowledge about what would have happened under every other possible specification in its belief set. This "what-if" reasoning significantly reduces sample complexity.

Experimental Evaluation

The authors evaluated PUnS in two domains:

  1. Synthetic Grid-World: A 5-state environment used to demonstrate how different criteria (e.g., Most Likely vs. Min Regret) lead to distinct qualitative behaviors.
  2. Robotic Table Setting: Using a dataset of 71 human demonstrations, a belief distribution was generated over 25 LTL formulas regarding the placement of eight items. The task was then executed by a UR-10 robotic arm.

Key Results

The experiments highlighted the risks of ignoring uncertainty. In the table-setting task, the Most Likely policy resulted in 8 constraint violations over 20 runs because the most probable single formula omitted a crucial stacking rule. In contrast, the Minimum Regret and Chance Constrained policies achieved zero violations, as they successfully accounted for the "tail" of the belief distribution.

Additionally, agents using counterfactual updates converged to optimal policies significantly faster and with lower variance than standard Q-learning baselines, proving the efficiency of parallel learning across multiple task interpretations.

Conclusion and Future Work

PUnS demonstrates that ambiguity in task specification should be treated as a feature rather than a bug. By hedging against uncertainty, robots can achieve higher reliability in human-centric environments. Future research will focus on extending this framework to continuous state and action spaces and exploring "active" PUnS, where robots can query humans to resolve ambiguities during the planning process.

Summary updated

BibTeX
@article{shah2020planning,
  author = {Ankit Shah and Shen Li and Julie Shah},
  title = {{Planning With Uncertain Specifications (PUnS)}},
  journal = {IEEE Robotics Autom. Lett.},
  year = {2020},
  url = {https://openreview.net/forum?id=5_uYuzJ2OcY},
}
Figure