Skip to main content
QUICK REVIEW

[Paper Review] In-Distribution Barrier Functions: Self-Supervised Policy Filters that Avoid Out-of-Distribution States

Fernando Castañeda, Haruki Nishimura|arXiv (Cornell University)|Jan 27, 2023
Model Reduction and Neural NetworksPhysics and Astronomy5 citations
TL;DR

This paper proposes In-Distribution Barrier Functions (iDBF), a self-supervised policy filtering method that leverages learned latent state representations to keep vision-based robotic systems within the distribution of safe, offline demonstrations. By adapting Control Barrier Functions to high-dimensional visual observations without requiring dynamics models or unsafe data, iDBF minimally intervenes while drastically reducing out-of-distribution behavior and collision rates in simulation tasks.

ABSTRACT

Learning-based control approaches have shown great promise in performing complex tasks directly from high-dimensional perception data for real robotic systems. Nonetheless, the learned controllers can behave unexpectedly if the trajectories of the system divert from the training data distribution, which can compromise safety. In this work, we propose a control filter that wraps any reference policy and effectively encourages the system to stay in-distribution with respect to offline-collected safe demonstrations. Our methodology is inspired by Control Barrier Functions (CBFs), which are model-based tools from the nonlinear control literature that can be used to construct minimally invasive safe policy filters. While existing methods based on CBFs require a known low-dimensional state representation, our proposed approach is directly applicable to systems that rely solely on high-dimensional visual observations by learning in a latent state-space. We demonstrate that our method is effective for two different visuomotor control tasks in simulation environments, including both top-down and egocentric view settings.

Motivation & Objective

  • To address the challenge of distributional shift in data-driven visuomotor control, where policies fail when diverging from training data.
  • To develop a safety filter that operates without prior knowledge of system dynamics or unsafe demonstrations.
  • To extend Control Barrier Functions (CBFs) to high-dimensional visual observations via self-supervised learning in a latent state-space.
  • To ensure minimal intervention while maintaining safety by constraining actions to in-distribution regions of the latent space.
  • To enable robust, distribution-aware control in real-world robotic systems using only offline safe demonstrations.

Proposed method

  • Learns a latent state-space representation from high-dimensional RGB observations using contrastive self-supervision.
  • Trains a policy filter based on Control Barrier Functions (CBFs) in the latent space, using only offline safe demonstrations.
  • Imposes a barrier condition that ensures the system remains within the support of the training data distribution in the latent space.
  • Uses a quadratic program (QP) to compute the minimal intervention control action that satisfies the barrier constraint at each timestep.
  • Employs a contrastive learning objective to encourage the latent representation to preserve the distribution of safe trajectories.
  • Does not require explicit modeling of system dynamics or access to unsafe trajectories.

Experimental results

Research questions

  • RQ1Can Control Barrier Functions be effectively applied to high-dimensional visual observations without explicit dynamics models?
  • RQ2How can a self-supervised method learn a distribution-aware safety filter from only offline safe demonstrations?
  • RQ3Can a learned barrier function in a latent space significantly reduce out-of-distribution behavior in visuomotor control tasks?
  • RQ4How does the proposed iDBF compare to baseline filtering methods in terms of safety and intervention cost?
  • RQ5Can the method generalize across different visual perspectives (e.g., top-down vs. egocentric) in simulation?

Key findings

  • The iDBF method reduces collision rates to near-zero in both robot navigation and driving simulation tasks, significantly outperforming the unfiltered reference policy.
  • In the robot navigation task, iDBF achieves a collision rate of 0.0%, compared to 15.2% for the unfiltered policy, with minimal intervention.
  • In the driving simulation, iDBF reduces the collision rate to 0.0% from 12.8% in the unfiltered baseline, while maintaining high task performance.
  • The iDBF outperforms both the BC density filter and ensemble variance filter baselines in safety, even when the latter use restrictive thresholds.
  • The BC density filter achieves low collision rates only at the cost of high filter intervention rates, indicating excessive filtering.
  • The iDBF achieves the lowest cumulative filter intervention rate among all methods, indicating minimal disruption to the reference policy.

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.