Improving TD3-BC: Relaxed Policy Constraint for Offline Learning and Stable Online Fine-Tuning

Alex Beeson, Giovanni Montana · DOI

Introduction

Offline Reinforcement Learning (RL) aims to derive optimal policies from fixed datasets without environment interaction. A primary challenge in this domain is overestimation bias, where the critic erroneously assigns high values to out-of-distribution actions. To mitigate this, algorithms like TD3-BC employ Behavioral Cloning (BC) constraints to keep the policy near the data distribution. However, strict BC constraints can limit performance when the training data is sub-optimal. This paper proposes two enhancements: Offline Policy Refinement (PR) and Stable Online Fine-Tuning (FT), allowing the policy to "walk before it runs" by strategically relaxing constraints.

Methodology

Offline Policy Refinement (PR)

The authors propose a two-stage offline training process. Initially, the agent is trained with a standard BC constraint to establish a stable and reliable critic. In the second stage, the BC influence is reduced by scaling the coefficient $\alpha$ by a factor $\lambda$. Crucially, the critic is frozen during this refinement phase. This prevents the policy from drifting into regions where the critic might hallucinate high rewards, while allowing it to explore better actions within the critic's established knowledge base.

Conceptual overview of the two-stage training process: initial training close to data followed by policy refinement further from data.

Stable Online Fine-Tuning (FT)

To ensure a smooth transition from offline training to online deployment, the method introduces an exponential decay for the BC constraint. As the agent collects new online data, the influence of the original offline data is phased out. This approach avoids the common "performance dip" associated with switching to online interaction, facilitating stable policy improvement.

Experimental Results

The proposed methods were evaluated on the D4RL benchmark using MuJoCo locomotion tasks across various data quality levels (Expert, Medium, Medium-Expert, and Medium-Replay).

Performance Analysis

The refined minimalist approach (TD3-BC-PR) demonstrated significant gains, particularly on sub-optimal datasets. For instance, on the "Hopper-Medium-Replay" task, TD3-BC-PR achieved a score of 100.5, nearly doubling the baseline TD3-BC score of 55.2. Across the benchmark, the method matched or exceeded the performance of more complex state-of-the-art algorithms such as CQL and IQL.

Performance comparison of TD3-BC-PR and TD3-BC-FT against baseline methods on D4RL locomotion tasks.

Stability in Fine-Tuning

The online fine-tuning component successfully maintained stability, showing consistent improvement across tasks without the typical initial performance degradation. This suggests that the exponential decay of the BC constraint effectively bridges the gap between offline and online regimes.

Conclusion

By introducing simple modifications to the minimalist TD3-BC algorithm—freezing the critic during policy refinement and employing exponential decay for online adaptation—this work demonstrates that complex constraints are not always necessary for high-performance offline RL. The results highlight the importance of critic stability and the potential of "relaxed" policy constraints to surpass the quality of the initial training data. Future work may explore these techniques in sparse-reward settings and provide further theoretical insights into critic generalization.

Summary updated

BibTeX
@inproceedings{beeson2022improving,
  author = {Alex Beeson and Giovanni Montana},
  title = {{Improving TD3-BC: Relaxed Policy Constraint for Offline Learning and Stable Online Fine-Tuning}},
  booktitle = {Offline RL @ NeurIPS},
  year = {2022},
  url = {https://openreview.net/forum?id=roLMh1mcp6},
}
Figure