Abstract
Offline reinforcement learning (RL) often struggles when training data comes from multiple sources, as standard algorithms typically assume a single, unimodal behavior policy. This paper introduces a latent variable model that infers a discrete set of behavior policies from multi-source data, enabling fine-grained trajectory matching. By integrating this into a new algorithm, LBRAC-v, the authors significantly improve offline RL performance on heterogeneous datasets while avoiding the pitfalls of out-of-distribution actions.
The Challenge of Multi-Source Data
Offline RL relies on pre-collected datasets to train agents without environment interaction. To ensure safety and stability, algorithms must estimate the "behavior policy" ($\pi_\beta$) that originally generated the data. This estimate acts as a regularizer, preventing the agent from taking out-of-distribution (OOD) actions that could lead to failure.
Traditionally, behavior estimation assumes a unimodal distribution (e.g., a single Gaussian). However, real-world data is often multi-modal, collected from various human demonstrators or different AI agents with distinct strategies.
As illustrated in Figure 1, fitting a single distribution to multi-modal data results in probability mass being placed in the "empty" regions between modes. Consequently, the RL agent is encouraged to take actions that no demonstrator ever performed, severely degrading the learning process.
Latent Behavior Estimation (LBRAC-v)
To handle this heterogeneity, the authors propose a latent variable model that assumes the dataset is generated by a discrete set of $K$ distinct behavior policies.
- Vector Quantization: The model learns an embedding space for both trajectories and policies. Using a vector-quantized variational inference approach, it assigns each trajectory to the most appropriate discrete behavior policy.
- Parameter Sharing: To maintain efficiency, all $K$ policies share base neural network layers for feature extraction, branching only at the final output stage.
- LBRAC-v Algorithm: This estimator is integrated into the BRAC-v framework. Instead of regularizing against a global average, LBRAC-v regularizes the agent's policy against the specific inferred behavior policy for the current trajectory. This fine-grained penalty strictly tethers the agent to actual demonstrated behaviors.
Experimental Results
The authors evaluated LBRAC-v on standard D4RL benchmarks and new "Heterogeneous-$k$" datasets, where $k$ represents the number of distinct behavior policies used to generate the data.
As shown in Figure 6, standard algorithms like BRAC-v and CQL degrade significantly as the number of data sources ($k$) increases. In contrast, LBRAC-v maintains consistent performance across all values of $k$. For example, in the Walker2d environment, BRAC-v loses roughly 80% of its performance when moving from 1 to 5 data sources, while LBRAC-v remains stable.
On standard D4RL tasks, LBRAC-v outperformed BRAC-v on 8 out of 12 datasets. While VAE-based methods (like BCQ and PLAS) remain competitive on very large, high-quality datasets, LBRAC-v's discrete latent model proves more sample-efficient and robust on moderate-quality data.
Conclusion
By explicitly modeling the multi-modal nature of real-world datasets, LBRAC-v overcomes a major hurdle in offline RL. The ability to infer and regularize against specific behavior policies prevents the selection of OOD actions that arise from unimodal assumptions. This modular approach to behavior estimation provides a foundation for more reliable RL applications in complex, multi-source environments.
Summary updated