Abstract
Offline reinforcement learning (RL) aims to learn an optimal policy from pre-collected and labeled datasets, which eliminates the time-consuming data collection in online RL. However, offline RL still bears a large burden of specifying/handcrafting extrinsic rewards for each transition in the offline data. As a remedy for the labor-intensive labeling, we propose to endow offline RL tasks with a few expert data and utilize the limited expert data to drive intrinsic rewards, thus eliminating the need for extrinsic rewards. To achieve that, we introduce Calibrated Latent gUidancE (CLUE), which utilizes a conditional variational auto-encoder to learn a latent space such that intrinsic rewards can be directly qualified over the latent space. CLUE’s key idea is to align the intrinsic rewards consistent with the expert intention via enforcing the embeddings of expert data to a calibrated contextual representation. We instantiate the expert-driven intrinsic rewards in sparse-reward offline RL tasks, offline imitation learning (IL) tasks, and unsupervised offline RL tasks. Empirically, we find that CLUE can effectively improve the sparse-reward offline RL performance, outperform the state-of-the-art offline IL baselines, and discover diverse skills from static reward-free offline data.
Introduction
Reinforcement Learning (RL) typically relies on a reward function to guide agent behavior. In the offline setting, where agents learn from static, pre-collected datasets, providing these rewards is a significant bottleneck. Manually labeling every transition in a massive dataset is both labor-intensive and error-prone. While intrinsic rewards (e.g., curiosity or exploration bonuses) have been used in online RL, they often rely on temporal dependencies that do not translate well to static "piles" of offline data.
CLUE (Calibrated Latent gUidancE) addresses this by using a tiny amount of expert data to "anchor" a latent space, generating high-quality intrinsic rewards without manual labeling. This framework is versatile, applying to sparse-reward tasks, offline imitation learning (IL), and unsupervised skill discovery.
The CLUE Framework
CLUE utilizes a Conditional Variational Auto-Encoder (CVAE) to map state-action pairs $(s, a)$ into a latent space. Unlike traditional methods that require full trajectories, CLUE operates on individual transitions, making it temporally independent and highly efficient for offline processing.
As shown in Figure 1, the framework adapts to three primary scenarios:
- Sparse-Reward RL: Successful trajectories within the dataset are selected as "experts" to relabel the remaining data.
- Offline Imitation Learning: A small set of external expert demonstrations is used to label a larger, reward-free dataset.
- Unsupervised Offline RL: K-means clustering groups similar behaviors, treating each cluster as a distinct "expert" to discover latent skills.
Calibration and Latent Guidance
The core innovation of CLUE is Calibration Regularization. In a standard CVAE, expert data might be scattered across the latent space. CLUE introduces a loss term that forces all expert embeddings to "collapse" into a single, tight point—a calibrated contextual representation.
By creating this "North Star" in the latent space, intrinsic rewards can be calculated simply as the distance between an unlabeled transition's embedding and the expert anchor. The closer an action is to the expert's latent representation, the higher the reward. This reward signal can then be plugged into any standard offline RL algorithm, such as Implicit Q-Learning (IQL).
Experimental Evaluation
CLUE was evaluated using the D4RL benchmark across various environments, including AntMaze, Adroit robotic manipulation, and MuJoCo locomotion tasks.
- Performance: In sparse-reward AntMaze tasks, CLUE achieved 106.2% of the performance of IQL trained with full ground-truth rewards. It consistently outperformed state-of-the-art imitation learning baselines like IQ-Learn and SMODICE.
- Data Efficiency: One of the most striking findings is that CLUE can effectively replace ground-truth rewards using as few as one single expert trajectory. It also remains robust even when the unlabeled dataset is reduced to 5% of its original size.
- Skill Discovery: In unsupervised settings, CLUE successfully discovered distinct behaviors—such as an Ant robot learning to move in eight different directions—from completely reward-free, static data.
Conclusion
CLUE provides a powerful, plug-and-play solution for the reward-labeling bottleneck in offline RL. By leveraging calibration in a latent space, it transforms limited expert data into a dense, high-quality reward signal. While currently optimized for unimodal expert behavior and requiring action data, future work may extend CLUE to multimodal strategies and state-only demonstrations.
Summary updated