Pessimism and In-Sample Learning for Offline Reinforcement Learning

This direction is merged into another direction: distribution shift. Its last version stays readable and citable here.

Version 1 of 1124 papers125 conceptsfrozen 2026-10-04

In standard reinforcement learning (RL), an agent learns by trial and error. If it wonders whether a specific action is good, it simply tries it and observes the reward. However, in Offline RL, the agent is "blindfolded." It must learn an optimal policy from a fixed, static dataset without any further environment interaction.

The fundamental challenge in this setting is distribution shift. When an agent evaluates an action not present in the training data—an out-of-distribution (OOD) action—the value function (Q-function) has no ground truth to rely on. Because neural networks are prone to erratic extrapolation, they often assign these OOD actions erroneously high values. This leads to a catastrophic feedback loop: the policy seeks out these "hallucinated" rewards, resulting in failure when the agent is finally deployed.

To solve this, researchers have converged on two primary strategies: enforcing pessimism on unknown actions and restricting learning to in-sample data.

The Overestimation Trap

In online RL, overestimation is corrected by experience. In offline RL, as noted by Aviral Kumar, Sergey Levine, and colleagues in the D4RL benchmark paper, overestimation is a "demon" that leads to delusional behavior. If the agent's critic predicts a high reward for an action the dataset never explored, the policy will pivot toward that action. Since the agent cannot interact with the environment to realize the reward is fake, the error compounds during Bellman updates.

Strategy A: Explicit Conservatism

One way to fight overestimation is to bake "pessimism" directly into the learning objective. Instead of just minimizing Bellman error, algorithms like Conservative Q-Learning (CQL) or ACL-QL by Kun Wu and others add a penalty term.

This penalty pushes down the Q-values of OOD actions while pushing up the Q-values of actions found in the dataset. The goal is to ensure that the learned value function is a lower bound of the true value. If the agent is uncertain, it assumes the worst, preventing it from chasing "hallucinated" high-reward paths. Haoran Xu and Xianyuan Zhan extended this to safety-critical domains with CPQ, where the agent must be pessimistic not just about rewards, but about safety costs.

Strategy B: In-Sample Learning

A more recent and often more stable approach is to avoid querying OOD actions entirely. This is known as In-Sample Learning.

Standard Q-learning uses a $max$ operator over all possible actions: $Q(s, a) \approx r + \gamma \max_{a'} Q(s', a')$. This $max$ is dangerous because it explicitly searches for the highest (and thus most likely to be overestimated) value.

Algorithms like EMaQ, proposed by Seyed Kamyar Seyed Ghasemipour and Dale Schuurmans, replace the $max$ with an "Expected-Max" over actions sampled from the behavior policy. Similarly, Implicit Q-Learning (IQL), discussed by Haoran Xu and Zhuoran Yang in Offline RL with No OOD Actions, uses expectile regression to estimate the maximum value achievable within the support of the dataset. By never asking "what is the value of this unseen action?", these methods bypass the distribution shift problem entirely.

Strategy C: Expressive Generative Policies

Even if the value function is well-behaved, the policy itself must be able to represent the complex behaviors found in human-collected data. Traditional RL often uses simple Gaussian distributions for policies, which fail when the data is multi-modal (e.g., a driver who sometimes goes left and sometimes goes right at a fork).

To capture this, researchers have integrated generative models into the RL loop. Zhendong Wang and Jonathan J. Hunt introduced Diffusion-QL, which uses conditional diffusion models as the policy class. This allows the agent to model highly complex action distributions while staying "anchored" to the training data. Philippe Hansen-Estruch and Ilya Kostrikov further refined this with IDQL, combining the stability of in-sample IQL with the expressivity of diffusion.

Bridging the Gap: Offline-to-Online

The ultimate goal of offline RL is often to provide a "warm start" for online learning. However, the transition is jarring. As the agent begins to explore, it immediately encounters distribution shift.

Xiaoyu Wen and Chenjia Bai argue in RO2O that this transition requires careful uncertainty management to prevent the agent from unlearning its offline knowledge. Recent work like LAROO by Ruibo Guo suggests that the estimation bias during this phase is "heavy-tailed," requiring robust modeling (like Laplace distributions) to keep the agent stable as it moves from the safety of the dataset into the uncertainty of the real world.

Papers in this version

Showing 60 of 124 papers.

History & citationVersion 1 · 2026-10-04

Merged into another direction · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_pessimism_and_in_sample_learning_for_off_67f0b311,
  title = {Pessimism and In-Sample Learning for Offline Reinforcement Learning},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/pessimism-and-in-sample-learning-for-offline-reinforcement-learning/rdr_67f0b311eee4427ea020e1781089944f},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-25},
}

This exact version (version 1, frozen text):

@misc{lacuna_pessimism_and_in_sample_learning_for_off_67f0b311_v1,
  title = {Pessimism and In-Sample Learning for Offline Reinforcement Learning},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/pessimism-and-in-sample-learning-for-offline-reinforcement-learning/rdr_67f0b311eee4427ea020e1781089944f/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-25},
}