TL;DR
Offline reinforcement learning (RL) typically relies on policy constraints to prevent the model from deviating dangerously from the training dataset. However, balancing the RL objective with these constraints usually requires tedious, dataset-specific hyperparameter tuning. This paper introduces Adaptive Scaling of Policy Constraints (ASPC), a second-order differentiable framework that automatically and dynamically tunes this trade-off during training, outperforming state-of-the-art methods across diverse tasks using a single hyperparameter configuration.
What Problem Does This Paper Address?
Offline RL allows agents to learn effective policies entirely from pre-collected, static datasets without real-world interaction. This is vital for safety-critical applications like autonomous driving or healthcare. However, offline RL suffers heavily from distribution shift: if the agent selects an action outside the dataset, the critic network often wildly overestimates its value, leading to catastrophic policy collapse.
To mitigate this, standard algorithms like TD3+BC add a behavior cloning (BC) penalty to keep the learned policy close to the behavior policy. The core issue is the scale factor ($\alpha$) governing this trade-off. If $\alpha$ is too large, the policy becomes unreliable and collapses; if it is too small, the policy becomes overly conservative and suboptimal. Because dataset quality (expert vs. random data) and task dynamics vary drastically, practitioners must meticulously tune $\alpha$ for every single dataset via expensive grid searches. Existing fixed or locally adaptive methods fail to solve this global trade-off, as shown in Figure 1.
Methods
The authors propose ASPC, a bilevel optimization framework that treats the constraint scale $\alpha$ as a meta-learnable parameter updated via second-order derivatives:
- Inner Update: The policy parameters ($\theta$) are optimized using the current $\alpha$ to minimize a standard combined offline RL objective (maximizing Q-values while minimizing BC loss).
- Outer Update: The framework evaluates the updated policy and adjusts $\alpha$ using an outer loss function composed of three coordinated terms:
- $L_1$: Steers $\alpha$ toward a better global balance between RL and BC.
- $L_2$: Penalizes abrupt, noisy changes in expected Q-values.
- $L_3$: Constrains large shifts in the BC loss across iterations.
To prevent the high computational cost typically associated with second-order gradients, ASPC updates $\alpha$ at a much longer interval ($k_\alpha$) than the policy updates. Additionally, the authors introduce a Robust Critic (RC) architecture—extending the baseline critic to three hidden layers with LayerNorm—to stabilize Q-value estimation during the adaptive scaling process.
Datasets
The framework was rigorously evaluated across two major benchmarks:
- D4RL: 39 datasets spanning four distinct domains: MuJoCo (HalfCheetah, Hopper, Walker2d), Maze2d, AntMaze, and Adroit (Pen, Door, Hammer, Relocate). These datasets range in quality from random and medium-replay to expert trajectories.
- OGBench: 10 datasets representing a newer benchmark for offline goal-conditioned RL.
Key Insights and Ideas
- Dynamic over Static Schedules: The authors show that simply finding a good fixed $\alpha$ is not enough. Dynamically adjusting $\alpha$ during training outperforms baseline variants fixed to the final converged value from the start.
- Task and Quality Awareness: ASPC automatically discovers intuitive schedules based on data characteristics. For high-quality expert data, it keeps $\alpha$ small to favor imitation. For highly suboptimal or diverse data, it drives $\alpha$ higher to prioritize RL exploration (see Figures 3 and 4).

- Mutual Regularization: Theoretical analysis reveals that changes in BC loss and squared changes in Q-values mutually bound one another. This mathematically justifies why enforcing both $L_2$ and $L_3$ penalties in the outer loss is essential for stable convergence.
Key Results
- SOTA Performance with Zero Tuning: Using a single hyperparameter configuration across all 39 D4RL datasets, ASPC achieved an average normalized score of 77.9, outperforming methods like ReBRAC (74.8) and IQL (62.6) which rely on meticulous per-dataset tuning (see Figure 6).
- Massive Gains in Complex Domains: On the Maze2d domain, ASPC achieved a domain average of 147.2, substantially outperforming the next best adaptive baseline, A2PR (123.53).
- Broad Generality: The authors successfully integrated ASPC's adaptive mechanism into other prominent offline RL baselines—including IQL, CQL, Diffusion-QL, and FQL—consistently yielding performance gains.
- Minimal Computational Overhead: By optimizing the update interval ($k_\alpha = 10$ or $30$), ASPC introduces negligible runtime overhead compared to standard TD3+BC, running significantly faster than algorithms like CQL.
Limitations and Future Work
Despite its strengths, ASPC exhibits limitations in sparse-reward environments (such as AntMaze and Adroit). Because the base BC loss treats all actions in the dataset equally, ASPC blindly imitates suboptimal trajectories in sparse-reward settings. Although the authors demonstrated that augmenting the framework with advantage-weighted behavior cloning (ASPC+AW) mitigates this issue, fully integrating selective imitation remains an open direction. Furthermore, while the bilevel framework is general, simple integrations into other baselines yielded smaller gains than with TD3+BC, indicating that future work should focus on tailoring adaptive mechanisms to the specific training dynamics of individual algorithms.
Summary updated