SafeMIL: Learning Offline Safe Imitation Policy from Non-Preferred Trajectories

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Burnwal, Returaj, Bhatt, Nirav Pravinbhai, Ravindran, Balaraman
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866909901682376704
author Burnwal, Returaj
Bhatt, Nirav Pravinbhai
Ravindran, Balaraman
author_facet Burnwal, Returaj
Bhatt, Nirav Pravinbhai
Ravindran, Balaraman
contents In this work, we study the problem of offline safe imitation learning (IL). In many real-world settings, online interactions can be risky, and accurately specifying the reward and the safety cost information at each timestep can be difficult. However, it is often feasible to collect trajectories reflecting undesirable or risky behavior, implicitly conveying the behavior the agent should avoid. We refer to these trajectories as non-preferred trajectories. Unlike standard IL, which aims to mimic demonstrations, our agent must also learn to avoid risky behavior using non-preferred trajectories. In this paper, we propose a novel approach, SafeMIL, to learn a parameterized cost that predicts if the state-action pair is risky via Multiple Instance Learning. The learned cost is then used to avoid non-preferred behaviors, resulting in a policy that prioritizes safety. We empirically demonstrate that our approach can learn a safer policy that satisfies cost constraints without degrading the reward performance, thereby outperforming several baselines.
format Preprint
id arxiv_https___arxiv_org_abs_2511_08136
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle SafeMIL: Learning Offline Safe Imitation Policy from Non-Preferred Trajectories
Burnwal, Returaj
Bhatt, Nirav Pravinbhai
Ravindran, Balaraman
Machine Learning
Artificial Intelligence
In this work, we study the problem of offline safe imitation learning (IL). In many real-world settings, online interactions can be risky, and accurately specifying the reward and the safety cost information at each timestep can be difficult. However, it is often feasible to collect trajectories reflecting undesirable or risky behavior, implicitly conveying the behavior the agent should avoid. We refer to these trajectories as non-preferred trajectories. Unlike standard IL, which aims to mimic demonstrations, our agent must also learn to avoid risky behavior using non-preferred trajectories. In this paper, we propose a novel approach, SafeMIL, to learn a parameterized cost that predicts if the state-action pair is risky via Multiple Instance Learning. The learned cost is then used to avoid non-preferred behaviors, resulting in a policy that prioritizes safety. We empirically demonstrate that our approach can learn a safer policy that satisfies cost constraints without degrading the reward performance, thereby outperforming several baselines.
title SafeMIL: Learning Offline Safe Imitation Policy from Non-Preferred Trajectories
topic Machine Learning
Artificial Intelligence
url https://arxiv.org/abs/2511.08136