TL;DR
Transitioning an agent from offline pretraining to online reinforcement learning (RL) often triggers a catastrophic performance drop due to out-of-distribution value errors. PROTO resolves this dilemma by replacing rigid, fixed policy constraints with an iteratively updated trust-region penalty relative to the policy from the previous iteration. This simple, plug-and-play formulation prevents distributional collapse at the start of finetuning while allowing the agent to break free and discover optimal policies, matching or outperforming state-of-the-art baselines at a fraction of their computational cost.
What Problem Does This Paper Address?
Offline-to-online RL aims to give an agent a warm start using pre-collected datasets before letting it interact with the live environment. In practice, directly finetuning a pretrained policy $\pi_0$ with standard off-policy algorithms often leads to severe, sometimes irreversible performance collapse. This occurs because the critic severely overestimates values in out-of-distribution (OOD) regions, misguiding early online updates.
Existing remedies generally fall into two camps, both with clear drawbacks:
- Fixed Policy Constraints: Methods like AWAC, IQL, and SPOT constrain the finetuning policy to stay close to the dataset distribution, the replay buffer, or $\pi_0$. While stable, this conservative anchor introduces a permanent suboptimality gap that limits asymptotic performance.
- Pessimistic Value Initialization: Methods like Off2On and Cal-QL avoid policy constraints by training pessimistic critics via Conservative Q-Learning (CQL). However, they rely on large Q-ensembles, heavy numerical integration, and hyperparameter tuning, making them computationally burdensome and brittle on complex tasks.
Methods
PROTO (iterative Policy Regularized Offline-To-Online RL) incorporates an iterative trust-region regularizer directly into standard actor-critic updates. Instead of anchoring the online policy to a static prior, PROTO penalizes divergence relative to the policy at the previous iteration ($\pi_k$):
$$\pi_{k+1} \leftarrow \arg\max_\pi \mathbb{E}\left[\sum_{t=0}^\infty \gamma^t \left( r(s_t, a_t) - \alpha \log \frac{\pi(a_t|s_t)}{\pi_k(a_t|s_t)} \right)\right]$$
Key algorithmic details include:
- Polyak Averaging for Stability: To prevent rapid, erratic policy drift, PROTO anchors updates against an exponentially moving target policy $\bar{\pi}_k \leftarrow \tau \pi_k + (1 - \tau)\bar{\pi}_{k-1}$.
- Decoupled Annealing: The regularization strength $\alpha$ is linearly decayed over training, weaning the agent off conservatism once exploration stabilizes.
- Deterministic Extension (TD3): When applied to deterministic policies where log-likelihoods cannot be computed, PROTO swaps the KL divergence for a normalized Mean Squared Error (MSE) distance between action outputs, scaled by the average Q-value magnitude.
- Minimal Code Footprint: PROTO requires modifying only a few lines within standard off-policy critic evaluation and actor update loops, avoiding ensembles or complex data-sampling pipelines.
Standard RL: Critic updates on Q; Actor maximizes Q
Fixed Constraint: Actor maximizes Q subject to D_KL(π || π_0)
PROTO (Iterative): Actor maximizes Q subject to D_KL(π || π_k) <-- Anchored, yet freely moving!
Datasets
Evaluations are conducted on standard continuous control benchmarks from D4RL (16 tasks total; no new benchmarks introduced):
- MuJoCo Locomotion: HalfCheetah, Hopper, and Walker2d across
random-v2,medium-v2, andmedium-replay-v2splits. - AntMaze Navigation:
medium-play-v2,medium-diverse-v2,large-play-v2, andlarge-diverse-v2(sparse reward navigation). - Adroit Manipulation:
pen-human-v0,door-human-v0, andhammer-human-v0(high-dimensional manipulation from sparse, non-Markovian human demonstrations).
Key Insights and Ideas
- Eliminating the Suboptimality Gap: Under fixed policy constraints, the suboptimality bound depends permanently on the best policy inside the initial constraint set $\Pi$. In contrast, theoretical analysis of PROTO’s iterative log-barrier shows that the suboptimality bound converges toward zero as iterations $k \to \infty$ due to an error-averaging effect ($\frac{1}{k+1}\sum_{j=0}^k \epsilon_j \to 0$).
- Dynamic Anchoring vs. Static Bounds: PROTO keeps the policy close to $\pi_0$ during early iterations (preventing catastrophic collapse) but allows it to travel arbitrarily far in policy space over time without needing an artificially large constraint radius that risks OOD exploitation.
- Replay Buffer Agnosticism: Unlike algorithms that depend heavily on balanced sampling ratios between offline and online buffers, PROTO achieves consistent results whether the buffer starts full, sparse, or balanced.
Key Results
- SOTA Asymptotic Performance: On difficult benchmarks with suboptimal priors (Adroit and AntMaze), PROTO consistently avoids initial drops and achieves top-tier scores, whereas policy-constraint baselines (AWAC, IQL, PEX) plateau early.
- Pretraining Versatility: PROTO successfully stabilized online finetuning across diverse pretraining backbones (EQL, SQL, IQL, and simple Behavioral Cloning). Notably, pairing Behavior Cloning with PROTO + SAC significantly outperformed specialized methods like PEX+BC.
- Sample Efficiency (High UTD): When tested with an update-to-data (UTD) ratio of 20 over 0.1M online samples, a single-network PROTO matched or exceeded the 10-network ensemble baseline RLPD and outscored non-open-sourced baselines (APL and SUNG) on 8 of 13 tasks.
- Computational Efficiency: 1 million online samples and gradient updates complete in approximately 20 minutes on a single NVIDIA RTX 3080Ti GPU, bypassing the prohibitive compute of CQL ensembles or Decision Transformers.
Limitations and Future Work
- Theoretical Domain: The formal convergence analysis is provided in the tabular setting; deep function approximation settings rely on empirical heuristics (e.g., Polyak averaging and linear decay).
- Off-Policy Scope: PROTO focuses strictly on off-policy actor-critic frameworks (SAC, TD3). While sample-efficient, off-policy updates do not guarantee monotonic policy improvement.
- Future Directions: Adapting iterative trust-region regularizers directly to on-policy online RL finetuning, or combining on-policy monotonic improvement guarantees with off-policy sample efficiency.
Summary updated