Skip to main content
QUICK REVIEW

[Paper Review] Learning Constraints from Demonstrations

Glen Chou, Dmitry Berenson|arXiv (Cornell University)|Dec 17, 2018
Fault Detection and Control SystemsEngineering30 references17 citations
TL;DR

This paper proposes a method to learn shared, unknown constraints across robotic tasks using safe demonstrations, system dynamics, and cost functions. By sampling lower-cost (unsafe) trajectories from demonstrations and solving an inverse integer program, it recovers a guaranteed underapproximation of the unsafe set, generalizing across linear and nonlinear dynamics and extending to feature spaces.

ABSTRACT

We extend the learning from demonstration paradigm by providing a method for learning unknown constraints shared across tasks, using demonstrations of the tasks, their cost functions, and knowledge of the system dynamics and control constraints. Given safe demonstrations, our method uses hit-and-run sampling to obtain lower cost, and thus unsafe, trajectories. Both safe and unsafe trajectories are used to obtain a consistent representation of the unsafe set via solving an integer program. Our method generalizes across system dynamics and learns a guaranteed subset of the constraint. We also provide theoretical analysis on what subset of the constraint can be learnable from safe demonstrations. We demonstrate our method on linear and nonlinear system dynamics, show that it can be modified to work with suboptimal demonstrations, and that it can also be used to learn constraints in a feature space.

Motivation & Objective

  • To address the challenge of learning shared, latent constraints across multiple robotic tasks without explicit programming.
  • To enable robots to generalize safety constraints across different tasks using only demonstrations and known system dynamics.
  • To provide a theoretically grounded method that guarantees a subset of the true unsafe set is recovered from safe demonstrations.
  • To extend constraint learning beyond state and trajectory spaces to abstract feature spaces, such as terrain slope in mobile robot navigation.
  • To handle suboptimal demonstrations by incorporating probabilistic safety labeling, improving robustness to real-world human behavior.

Proposed method

  • Use safe, optimal demonstrations to generate lower-cost trajectories via hit-and-run sampling, assuming they violate an unknown constraint.
  • Ensure sampled trajectories satisfy known constraints (dynamics, control limits, start/goal conditions) to maintain feasibility.
  • Formulate an inverse integer program that uses both safe and unsafe trajectories to infer a consistent representation of the unsafe set.
  • Represent the unsafe set as a union of hyper-rectangles in a discretized constraint space (e.g., state, feature, or trajectory space).
  • Apply theoretical analysis to determine the limits of learnability based on trajectory discretization, dynamics, and demonstration coverage.
  • Adapt the method for suboptimal demonstrations by assigning probabilistic safety labels to trajectories based on cost relative to the demonstration.

Experimental results

Research questions

  • RQ1What subset of an unsafe constraint can be reliably learned from safe, optimal demonstrations, given system dynamics and cost functions?
  • RQ2How can constraints be learned in a feature space (e.g., terrain slope) rather than just in state or trajectory space?
  • RQ3Can the method generalize across different system dynamics, including linear and nonlinear systems like Dubins’ car?
  • RQ4How does the method handle suboptimal human demonstrations, and what is the impact on learned constraint accuracy?
  • RQ5What are the theoretical guarantees on the underapproximation of the true unsafe set, and how do they depend on trajectory discretization and demonstration diversity?

Key findings

  • The method successfully recovers a guaranteed underapproximation of the true unsafe set, even with only a few demonstrations, across single and double integrator dynamics.
  • For the Dubins’ car model, the method recovers a significant portion of the unsafe set, with performance improving as demonstration diversity increases.
  • In suboptimal demonstration experiments, the method maintains theoretical guarantees, with the learned unsafe set remaining a subset of the true unsafe region despite probabilistic labeling.
  • The method achieves exact recovery of a terrain slope constraint in a feature space, learning the threshold $φ(x) < 0.05$ from a single RRT*-generated demonstration.
  • Learning performance is limited by trajectory discretization and demonstration coverage; regions with no short-cut paths through high-cost areas remain unlearned.
  • MSE increases in suboptimal settings due to labeling uncertainty, but the method still produces a valid, conservative underapproximation of the unsafe set.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.