Offline reinforcement learning (RL) is often heralded as the "holy grail" of decision-making, promising the ability to learn or evaluate policies using massive, fixed datasets without requiring further, potentially costly environment interaction. However, this paper reveals a surprising fragility in offline RL systems. The authors demonstrate that even when utilizing high-quality, pre-trained neural network features, offline RL algorithms suffer from massive, exponential error amplification unless the data distribution is nearly identical to the target policy.
The Challenge of Distribution Shift
A major hurdle in offline RL is distribution shift: the offline data is typically collected by a "behavior policy" that differs significantly from the "target policy" we actually want to evaluate.
Theoretical work has long warned that without very strict conditions—specifically "policy completeness," where the feature space is closed under Bellman updates—offline RL can suffer from exponential error growth relative to the problem's time horizon. Many researchers hoped that the powerful, expressive representations learned by deep neural networks would be "good enough" to bypass these theoretical hurdles. This paper investigates whether that hope is justified, or if the instability predicted by theory is a real-world practical concern.
Isolating the Problem: Methodology
To isolate the effects of distribution shift from the general challenges of learning features from scratch, the authors focus on two foundational offline RL algorithms: Fitted Q-Iteration (FQI) and Least-Squares Temporal Difference (LSTD). They employ a decoupled approach:
- Pre-training: A standard online RL agent (using DQN or TD3) is trained until it achieves high performance.
- Feature Extraction: The network is frozen, and the output of the last hidden layer is used as a fixed feature mapping. Because these features were learned on the task itself, they are theoretically "optimal" for representing the value function.
- Offline Evaluation: FQI and LSTD are run using these fixed features on datasets with varying degrees of distribution shift.
The study utilizes the OpenAI Gym benchmark suite (including CartPole, Ant, HalfCheetah, Hopper, and Walker2d). To test robustness, the authors construct offline datasets by mixing 1 million samples from the "target" policy with varying amounts (0.5M to 2M samples) of "distractor" data, which consists of either completely random trajectories or suboptimal policies saved during early online training.
Key Insights and Instabilities
The experiments reveal several critical vulnerabilities in standard offline RL approaches, contradicting common deep learning intuitions.
More Data Can Be Worse
Counter-intuitively, adding more data to the offline set often degrades performance if that data comes from a different distribution.
As shown in the FQI evaluation above, introducing random trajectories to the optimal dataset ($D^*$) causes the Root Mean Squared Error (RMSE) of the value prediction to explode as more FQI rounds are performed. This directly challenges the standard supervised learning paradigm where "more data is always better."
Realizability vs. Completeness
In supervised learning, a "good" representation only needs to be able to represent the target function (realizability). In offline RL, however, the representation must also be "complete." This means that when a Bellman update is applied to a function in the feature space, the result must remain within that same feature space. The authors show that pre-trained features, despite being highly expressive, often fail this stricter completeness requirement, leading to instability.
LSTD Instability
This instability is not limited to iterative methods like FQI. Even LSTD, which relies on a closed-form solution, showed massive sensitivity to distribution shift.
For example, on the Walker2d-v2 environment, the estimation error jumped from a baseline of 13.88 (using pure target data) to 67.78 simply by adding 2 million random samples. This occurred even though the original, high-quality data was still present in the dataset.
Furthermore, the authors empirically validated their theoretical models, showing that the growth trend of the estimation error closely matches the growth of the Frobenius norm of the "error amplification matrix" derived in their theoretical analysis. The theoretical "worst-case" scenario is, in fact, happening in practice.
Looking Forward
While this paper primarily focuses on Policy Evaluation (estimating how good a policy is) rather than full Policy Improvement, evaluation is a core engine of most RL algorithms. The dynamics of full offline RL likely introduce even more complexities.
The authors conclude that the path forward is not necessarily engineering "better" offline algorithms, but rather developing better representation learning. The field needs methods that learn features specifically designed to satisfy "completeness" or other stability conditions, rather than simply porting over representations that worked well for supervised learning or online RL.
Summary updated