Sparsity-based Safety Conservatism for Constrained Offline Reinforcement Learning
Minjae Cho, Chuangchuang Sun
TL;DR
The paper tackles safety in constrained offline reinforcement learning under distributional shift between fixed data and the learned policy, where interpolation and extrapolation errors can lead to unsafe decisions. It introduces SP-cdice, a sparsity-based safe conservatism method that uses K-means clustering to identify data-sparse regions and applies a nonuniform cost penalty, avoiding bi-level optimization. Empirical results on discrete Random CMDP and continuous CartPole tasks show SP-cdice achieving competitive or superior returns under cost constraints with reduced computational burden, indicating strong practical promise as a preprocessing step. Overall, SP-cdice provides an efficient, scalable approach to enforce conservatism in offline RL by leveraging data sparsity to balance safety and performance.
Abstract
Reinforcement Learning (RL) has made notable success in decision-making fields like autonomous driving and robotic manipulation. Yet, its reliance on real-time feedback poses challenges in costly or hazardous settings. Furthermore, RL's training approach, centered on "on-policy" sampling, doesn't fully capitalize on data. Hence, Offline RL has emerged as a compelling alternative, particularly in conducting additional experiments is impractical, and abundant datasets are available. However, the challenge of distributional shift (extrapolation), indicating the disparity between data distributions and learning policies, also poses a risk in offline RL, potentially leading to significant safety breaches due to estimation errors (interpolation). This concern is particularly pronounced in safety-critical domains, where real-world problems are prevalent. To address both extrapolation and interpolation errors, numerous studies have introduced additional constraints to confine policy behavior, steering it towards more cautious decision-making. While many studies have addressed extrapolation errors, fewer have focused on providing effective solutions for tackling interpolation errors. For example, some works tackle this issue by incorporating potential cost-maximizing optimization by perturbing the original dataset. However, this, involving a bi-level optimization structure, may introduce significant instability or complicate problem-solving in high-dimensional tasks. This motivates us to pinpoint areas where hazards may be more prevalent than initially estimated based on the sparsity of available data by providing significant insight into constrained offline RL. In this paper, we present conservative metrics based on data sparsity that demonstrate the high generalizability to any methods and efficacy compared to using bi-level cost-ub-maximization.
