Pretraining a Shared Q-Network for Data-Efficient Offline Reinforcement Learning

Jongchan Park, Mingyu Park, Donghwan Lee

Offline reinforcement learning (RL) holds the promise of training agents on fixed, pre-collected datasets without requiring risky or expensive real-world interactions. However, a major hurdle remains: offline RL is incredibly data-hungry. To combat this, researchers have introduced a simple, "plug-and-play" pretraining strategy that drastically improves data efficiency. By first training a Q-network’s backbone to predict environment transitions, agents can build a robust understanding of the world, allowing them to outperform standard baselines using just 10% of the available data.

The Data Hunger Problem in Offline RL

Offline RL is essential for high-stakes fields like healthcare or autonomous driving, where trial-and-error learning is dangerous. However, learning from a fixed "log" of data introduces significant challenges:

  • Epistemic Uncertainty: The agent struggles to evaluate states and actions it hasn't seen (the "I don't know what I don't know" factor).
  • Distributional Shift: When the agent attempts actions outside the training dataset, standard algorithms often overestimate the resulting rewards, leading to catastrophic failures.

To handle these issues, most algorithms require massive, diverse datasets. The authors argue that current methods focus too heavily on regularizing the policy to stay close to the dataset, while neglecting the importance of building a robust internal representation of the environment. They define a new metric, data efficiency, as the ability to learn an optimal policy from as little offline data as possible.

A Two-Stage Shared Architecture

To solve the representation problem, the authors propose a two-stage learning strategy using a shared neural network architecture.

Two-stage pretraining framework
  1. Stage 1: Transition Pretraining: The standard Q-network is decomposed into a backbone feature extractor ($h_\phi$) and a shallow transition prediction head ($g_\psi$). This pair is trained to predict the next state ($s'$) given a state-action pair ($s, a$) using a simple mean-squared error loss. This forces the backbone to learn features that capture the underlying dynamics of the environment.
  2. Stage 2: RL Training: The transition head is swapped out for a standard Q-value head ($f_\theta$). The backbone is initialized with the weights learned in Stage 1 and then fine-tuned (or frozen) using any standard offline RL algorithm (such as CQL, IQL, or TD3+BC).

Because this framework only changes how the neural network is initialized, it is entirely "plug-and-play" and does not require modifying the underlying RL algorithm's objective function.

Key Insights: Why Does Pretraining Work?

  • The Rank Matters: Theoretical analysis reveals that transition pretraining increases the rank of the feature matrix. In the context of the projected Bellman equation, a higher-rank feature space provides a richer basis that tightens the upper bound on Q-value estimation error. The network starts the RL phase already "understanding" the geometry of the state space.
  • Representation vs. Modeling: Unlike model-based RL—which uses a transition model to generate synthetic data and risks compounding errors—this method uses the transition task solely to "shape" the feature extractor. It is a representation learning trick that avoids the pitfalls of planning with an inaccurate model.
  • Dynamics as a Universal Prior: Learning "what happens next" serves as a powerful inductive bias for "how much reward will I get," establishing a strong foundation before the agent even processes a single reward signal.

Key Results and Benchmarks

The researchers evaluated their method across a diverse set of benchmarks, including D4RL (locomotion), Robomimic (tabletop manipulation), V-D4RL (vision-based tasks), and ExoRL.

  • The 10% Miracle: On the D4RL benchmark, models pretrained with this method using only 10% of the data consistently outperformed vanilla baselines trained on 100% of the data.
  • Robustness to Data Quality: The method proved effective across "Random," "Medium," and "Expert" datasets. In some cases, training on just 1% of a random dataset surpassed the 100% baseline.
  • Algorithm Agnostic: The approach provided significant performance boosts to several major offline RL algorithms (AWAC, CQL, IQL, BCQ, and TD3+BC), proving its versatility.
Success rates across different algorithms with and without pretraining
  • Vision-Ready: In V-D4RL, the method integrated seamlessly with image encoders, demonstrating that the representation benefits scale to high-dimensional, pixel-based inputs.

Limitations and Future Directions

While highly effective, the current design is tailored for model-free RL settings that rely heavily on Q-function learning. Its effectiveness on purely policy-based or Transformer-based sequence modeling architectures (like Decision Transformers) remains an open question. Additionally, the theoretical guarantees rely on linear function approximation, meaning the jump to deep non-linear networks is currently justified more empirically than theoretically.

Looking forward, the authors suggest extending this framework to offline-to-online RL—where an agent is pretrained offline and fine-tuned in the real world—and goal-conditioned RL, where understanding environment transitions could be even more vital for success.

Summary updated

BibTeX
@inproceedings{park2025pretraining,
  author = {Jongchan Park and Mingyu Park and Donghwan Lee},
  title = {{Pretraining a Shared Q-Network for Data-Efficient Offline Reinforcement Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=82r0lqYIWg},
}
Figure