[Paper Review] Instabilities of Offline RL with Pre-Trained Neural Representation
This paper investigates the stability of offline reinforcement learning (RL) using pre-trained neural representations, showing that even with powerful features, significant error amplification occurs under moderate distribution shift. Despite strong representations, Fitted-Q Iteration (FQI) fails to generalize beyond minimal distribution shift, indicating that sample-efficient offline RL requires stronger representational conditions than those sufficient for supervised learning.
In offline reinforcement learning (RL), we seek to utilize offline data to evaluate (or learn) policies in scenarios where the data are collected from a distribution that substantially differs from that of the target policy to be evaluated. Recent theoretical advances have shown that such sample-efficient offline RL is indeed possible provided certain strong representational conditions hold, else there are lower bounds exhibiting exponential error amplification (in the problem horizon) unless the data collection distribution has only a mild distribution shift relative to the target policy. This work studies these issues from an empirical perspective to gauge how stable offline RL methods are. In particular, our methodology explores these ideas when using features from pre-trained neural networks, in the hope that these representations are powerful enough to permit sample efficient offline RL. Through extensive experiments on a range of tasks, we see that substantial error amplification does occur even when using such pre-trained representations (trained on the same task itself); we find offline RL is stable only under extremely mild distribution shift. The implications of these results, both from a theoretical and an empirical perspective, are that successful offline RL (where we seek to go beyond the low distribution shift regime) requires substantially stronger conditions beyond those which suffice for successful supervised learning.
Motivation & Objective
- To empirically evaluate the stability of offline RL methods when using pre-trained neural representations.
- To investigate whether powerful representations from pre-training can mitigate error amplification under distribution shift.
- To assess the practical limits of offline RL when data distributions differ significantly from the target policy.
- To compare performance across different data collection policies (random, lower-performance) using the same pre-trained features.
- To determine whether regularization and data mixture strategies improve stability in offline RL.
Proposed method
- The authors use Fitted-Q Iteration (FQI) with function approximation using features from pre-trained neural networks on six OpenAI Gym environments.
- Offline datasets are constructed by combining trajectories from the target policy with those from random or lower-performance policies to simulate distribution shift.
- The method employs regularized least-squares regression to estimate Q-values via the FQI update: $\hat{\theta} = (\Phi^T \Phi + \lambda I)^{-1} \Phi^T r$.
- Performance is evaluated using mean squared error (MSE) of value function estimation, averaged over five random seeds.
- Experiments vary the ratio of random policy trajectories and regularization hyperparameter $\lambda$ to study their impact on stability.
- Additional ablation uses random Fourier features as a baseline to compare generalization behavior.
Experimental results
Research questions
- RQ1Can pre-trained neural representations stabilize offline RL under moderate distribution shift?
- RQ2How does the performance of FQI degrade as the data distribution diverges from the target policy?
- RQ3Does increasing the proportion of random policy trajectories improve or worsen generalization in offline RL?
- RQ4To what extent does regularization mitigate error amplification in offline RL with pre-trained features?
- RQ5How do pre-trained features compare to random Fourier features in terms of stability under distribution shift?
Key findings
- Even with pre-trained neural representations, FQI exhibits significant error amplification when the data distribution deviates from the target policy, indicating instability under moderate distribution shift.
- Performance on Ant-v2 improved from 44.03 ± 8.98 (baseline) to 72.80 ± 16.87 MSE when adding 2x random trajectories, but remained highly unstable.
- On Hopper-v2, MSE increased from 2.18 ± 1.14 to 16.86 ± 2.84 with 2x random trajectories, showing strong error growth under distribution shift.
- The addition of random trajectories consistently worsened generalization, suggesting that data diversity alone does not stabilize offline RL.
- Regularization with $\lambda$ had limited effect in stabilizing the method, especially in high-dimensional environments like Ant-v2 and Walker2d-v2.
- LSTD with pre-trained features showed similar instability patterns, with MSE increasing from 44.03 ± 8.98 to 72.80 ± 16.87 on Ant-v2, confirming the trend across methods.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.