Offline Reinforcement Learning with Behavioral Supervisor Tuning

Padmanaba Srinivasan, William J. Knottenbelt

Offline Reinforcement Learning (RL) presents a unique challenge: learning optimal behaviors from static datasets without the luxury of environment interaction. A primary failure mode in this setting is the overestimation of "out-of-distribution" (OOD) actions. When an agent explores actions not present in the training data, the critic often assigns them erroneously high values, leading to catastrophic performance drops upon deployment. To mitigate this, standard approaches like TD3-BC impose policy constraints to keep the agent close to the behavioral data. However, these constraints often require per-dataset hyperparameter tuning—a "tuning tax" that limits practical scalability.

The Behavioral Supervisor Approach

TD3 with Behavioral Supervisor Tuning (TD3-BST) addresses these limitations by introducing a dynamic, distance-aware constraint mechanism. At its core is a Morse Neural Network, which acts as a supervisor by estimating the unnormalized density of the dataset's action support.

Unlike traditional classifiers, the Morse network produces values between 0 and 1, where 1 represents a mode in the data distribution and values near 0 indicate OOD regions. By employing a Rational Quadratic (RQ) kernel, the model maintains a useful learning signal even for actions far from the data support, avoiding the vanishing gradient issues common with standard RBF kernels.

Learned density map from the Morse Neural Network showing the support of the behavior policy.

Dynamic Regularization and "Stitching"

The key innovation in TD3-BST is the shift from batch-level to sample-level constraints. Standard methods often penalize an agent for deviating from the specific action found in a training mini-batch. In contrast, TD3-BST's supervisor evaluates the global support. If an agent selects an action that is close to any supported action in the entire dataset, the constraint is relaxed.

Comparison of rigid batch-level constraints (left) vs. the proposed distance-aware, per-sample constraints (right). The latter allows for more flexible action selection by recognizing global data support.

This flexibility is crucial for "stitching" — the ability to combine segments of different suboptimal trajectories to form a high-performing path. In complex environments like Antmaze, where no single trajectory may reach the goal, TD3-BST identifies high-value regions across the dataset and connects them effectively.

Experimental Results

Evaluations on the D4RL benchmark demonstrate the robustness of TD3-BST. Most notably, in the Antmaze tasks, the algorithm significantly outperforms baselines. On antmaze-large-diverse, TD3-BST achieved a score of 76.1, while the standard TD3-BC failed to solve the task (0.0).

In standard Gym locomotion tasks, TD3-BST remains competitive with state-of-the-art methods while eliminating the need for per-dataset hyperparameter tuning. By setting the kernel scale based on the action space dimensionality, the authors provide a "plug-and-play" solution that generalizes across diverse environments.

Conclusion

TD3-BST represents a significant step toward making offline RL more practical and robust. By replacing rigid, manually-tuned constraints with a learned behavioral supervisor, the method enables effective trajectory stitching and superior performance on complex navigation tasks. While the two-phase training adds some computational overhead, the gains in performance and ease of use make it a compelling framework for real-world offline RL applications.

Summary updated

BibTeX
@inproceedings{srinivasan2024offline,
  author = {Padmanaba Srinivasan and William J. Knottenbelt},
  title = {{Offline Reinforcement Learning with Behavioral Supervisor Tuning}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2024},
}
Figure