Policy Agnostic RL: Offline RL and Online RL Fine-Tuning of Any Class and Backbone

Max Sobol Mark, Tian Gao, Georgia Gabriela Sampaio, Mohan Kumar Srirama, Archit Sharma, Chelsea Finn, Aviral Kumar

TL;DR

PA-RL (Policy-Agnostic Reinforcement Learning) is a novel framework that decouples reinforcement learning objectives from specific model architectures, allowing for the stable fine-tuning of any policy class—from Diffusion Policies to 7B-parameter Transformers. By optimizing action samples directly and then "distilling" them back into the model via supervised learning, PA-RL achieves state-of-the-art performance in both offline and online settings, including a real-world jump from 40% to 70% success for a generalist robot policy in just 40 minutes.

What Problem Does This Paper Address?

In recent years, the "secret sauce" for high-performing robots and language agents has been expressive models (like Diffusion models and Transformers) trained on massive imitation learning datasets. However, imitation learning only learns from what it sees; it can't improve beyond the expert or adapt to new environments autonomously.

Reinforcement Learning (RL) is the natural solution for adaptation, but there’s a catch: most deep RL machinery is "entangled" with specific policy architectures. For example, the popular Soft Actor-Critic (SAC) algorithm relies on a reparameterization trick that works beautifully for Gaussian distributions but becomes unstable for Diffusion policies and is mathematically intractable for the autoregressive categorical outputs used by large Transformers.

Currently, researchers have to reinvent the RL wheel every time they want to use a new, more powerful model backbone. The authors of this paper ask: Can we create a single RL algorithm that works for any policy class and backbone?

Methods

The core idea of PA-RL is to decouple policy improvement from the specific parameters of the model. Instead of trying to pass gradients directly through a complex denoising chain or a discrete token generator, PA-RL treats the model as a black box that suggests actions.

The process happens in two distinct stages:

  1. Stage I: Action Optimization:
    • Global Optimization: The agent samples multiple action candidates from its current policy. It then uses a learned Q-function (the "critic") to re-rank these samples, keeping only the best ones.
  2. Local Optimization: It takes those top-ranked actions and performs a few steps of gradient ascent directly on the action values to maximize the Q-value. This fine-tunes the actions to be even better than what the policy originally suggested.
  3. Stage II: Policy Distillation:
    • The agent now has a set of "optimized actions." It uses a standard supervised learning loss (like the noise-prediction loss in Diffusion or cross-entropy in Transformers) to train the policy to produce these optimized actions.
Figure 2: An overview of PA-RL. Instead of directly passing critic gradients through the policy parameters, PA-RL first “optimizes” actions via critic re-ranking and gradient ascent. Then, it trains the policy to mimic the most optimized action.

By using supervised learning as the bridge, PA-RL can leverage the stability and scaling properties that make these large models successful in the first place.

Datasets

The authors evaluated PA-RL across a diverse range of simulated and real-world benchmarks:

  • D4RL AntMaze: Navigation tasks requiring a quadruped to reach goals in complex mazes.
  • FrankaKitchen: A 9-DoF robot arm performing sequences of manipulation tasks (e.g., opening a microwave, turning on a light).
  • CALVIN: A challenging vision-based benchmark where a robot must chain multiple manipulation tasks together from raw pixels.
  • Real-World Robotics: Tasks using a WidowX-250 arm, including "cup to rack" and "pot to sink" (with distractor objects).
  • OpenVLA: A 7-billion parameter vision-language-action foundation model used for generalist robot control.

Key Insights and Ideas

  • Decoupling is Power: By optimizing actions instead of parameters, the RL algorithm doesn't care if the policy is a simple MLP or a massive Transformer. This "policy-agnostic" nature is what allows it to scale.
  • The Best of Both Worlds: Combining global re-ranking with local gradient steps prevents the agent from getting stuck in local minima (a common failure of local-only methods) while ensuring the actions are fine-grained (a failure of global-only methods).
  • Staying Close to Home: Because the optimization starts with samples from the current policy, the agent stays relatively close to the data manifold it knows. This prevents the "over-optimism" problem where the critic might assign high values to impossible, out-of-distribution actions.
  • Efficiency via Caching: For massive models like OpenVLA, sampling is slow. The authors found they could cache actions from previous rounds to speed up training without sacrificing much performance.

Key Results

PA-RL sets a new state-of-the-art across several benchmarks:

  • Aggregate Performance: Outperformed the next-best approaches by 13% across all simulated domains.
  • Hard Tasks: In the vision-based CALVIN benchmark, PA-RL achieved a 69% improvement over the previous best method.
  • Sample Efficiency: It improved performance and sample efficiency by up to 2x compared to existing offline-to-online fine-tuning methods.
  • Real-World Scaling: The most impressive result was fine-tuning OpenVLA (7B parameters). In just 40 minutes of real-world interaction, the robot's success rate on a new task jumped from 40% to 70%.
Success rates across real-world and simulated benchmarks, highlighting the gains of PA-RL over standard baselines.

Limitations and Future Work

While PA-RL is highly effective, the authors note a few areas for improvement:

  • Computational Cost: Sampling multiple actions from a 7B-parameter model is still computationally expensive. While caching helps, more efficient "policy extraction" techniques are needed.
  • Generalist Critics: While the policy used in the OpenVLA experiments was a generalist foundation model, the critic (Q-function) was still a task-specific model. A major future direction is developing generalist critics that can provide feedback across many different tasks and environments.
  • Optimization Knobs: The interplay between the number of samples (global) and the number of gradient steps (local) requires some tuning depending on how "narrow" or "diverse" the initial dataset is.

Summary updated

BibTeX
@inproceedings{mark2025policy,
  author = {Max Sobol Mark and Tian Gao and Georgia Gabriela Sampaio and Mohan Kumar Srirama and Archit Sharma and Chelsea Finn and Aviral Kumar},
  title = {{Policy Agnostic RL: Offline RL and Online RL Fine-Tuning of Any Class and Backbone}},
  booktitle = {WRL @ ICLR},
  year = {2025},
  url = {https://openreview.net/forum?id=VGOFxdc6AD},
}
Figure