TL;DR
This paper reveals that the discount factor ($\gamma$), a standard hyperparameter in reinforcement learning, serves two critical roles in the offline setting: it acts as a regularizer to improve sample efficiency in data-scarce regimes and provides a natural form of pessimism equivalent to model-based conservative methods. By tuning $\gamma$ to be lower than the evaluation standard, researchers can significantly boost the performance and robustness of existing offline RL algorithms without adding complex auxiliary objectives.
What Problem Does This Paper Address?
Offline Reinforcement Learning (RL) is the art of learning optimal policies from static, pre-collected datasets without any further environment interaction. The primary hurdle here is distributional shift: the learning agent might overestimate the value of actions not present in the dataset, leading to catastrophic failure when the policy is actually deployed.
To combat this, the field has developed various "conservative" methods—like policy regularization or uncertainty-based penalties—to keep the agent "pessimistic" about unfamiliar states. While the discount factor $\gamma$ is known to affect sample efficiency and planning horizons in online RL, its specific role in the offline context has remained largely unexplored. The authors ask: Can we use $\gamma$ itself as a tool for conservatism, and how does it interact with existing offline RL techniques?
Methods
The authors provide a rigorous theoretical analysis using the framework of Linear Markov Decision Processes (MDPs). They characterize two distinct mechanisms:
- The Regularization Effect: They prove that a lower $\gamma$ reduces the complexity of the potentially optimal policy class. This acts as a trade-off: while a lower $\gamma$ introduces a bias (it cares less about long-term rewards), it drastically reduces the variance of value estimation, which is vital when data is limited or poorly covers the state-action space.
- The Pessimism Effect: Perhaps more surprisingly, the authors prove an equivalence between learning with a lower discount factor and model-based pessimism. Specifically, they show that optimizing a policy with a reduced $\gamma$ is mathematically similar to optimizing for the "worst-case" model within a specific confidence set.
They validate these theories by applying lower guidance discount factors (e.g., $\gamma=0.95$ instead of the standard $0.99$) to popular offline algorithms like BCQ, TD3+BC, COMBO, and SAC-N.
Datasets
The study utilizes a mix of synthetic and standard benchmarks:
- Tabular MDPs: Randomly generated environments used to precisely control noise ratios and data coverage for initial verification.
- D4RL Benchmark: The standard suite for offline RL, specifically the MuJoCo tasks (Walker2d, Hopper, HalfCheetah).
- Noised D4RL: To simulate real-world challenges, the authors created "limited data" versions of D4RL tasks by combining a small number of medium-quality trajectories with varying amounts of random, noisy data.
- Antmaze & Adroit: Used to test the effects in sparse-reward and high-dimensional manipulation tasks.
Key Insights and Ideas
- The Optimal $\gamma$ is Data-Dependent: The "best" discount factor $\gamma^*$ isn't fixed. As the dataset size increases or coverage improves, the optimal $\gamma^*$ shifts closer to the evaluation discount factor. Conversely, for small or noisy datasets, a much lower $\gamma$ is preferred to prevent overfitting to erroneous value estimates.
- Natural Pessimism: A lower $\gamma$ provides a "coarse" but effective form of pessimism. Unlike ensemble methods that require training multiple networks, adjusting $\gamma$ is computationally free.
- Interaction with Other Regularizers: There is a clear trade-off between $\gamma$ and other conservative hyperparameters (like the behavior cloning weight $\alpha$ in TD3+BC). As shown in Figure 2 (below), if you have strong behavior cloning ($\alpha$), you can afford a higher $\gamma$. If you want more flexibility, you can lower $\gamma$ and reduce $\alpha$.
Key Results
- Error Reduction: In tabular experiments, lowering $\gamma$ significantly reduced the $L_\infty$ estimation error of value functions, especially as the "Noise Ratio" in the generative model increased.
- Performance Boost in Low-Data Regimes: On D4RL tasks with limited data (50 medium trajectories), lowering $\gamma$ from 0.99 to 0.95 transformed failing algorithms into successful ones. For example, in the
walker2dtask with 100 noised trajectories, TD3+BC jumped from a score of 2.1 to 46.6 just by changing $\gamma$. - Enabling Non-Conservative Algorithms: Standard off-policy algorithms like SAC-N, which usually struggle in offline settings without explicit pessimism, achieved competitive results on D4RL and Adroit tasks simply by using a lower guidance discount factor (see Tables 3 and 4 in the paper).
Limitations and Future Work
- Coarse Control: The authors note that $\gamma$ is a "coarse" parameter because it affects all state-action pairs equally. More sophisticated offline methods apply penalties selectively based on local uncertainty.
- Bias-Variance Trade-off: While a lower $\gamma$ helps with variance, it inherently biases the agent toward short-term rewards. In tasks requiring extremely long-term planning, this could be a significant drawback.
- Future Directions: The authors suggest exploring fine-grained discount factor control, where $\gamma$ could vary at each transition or state to provide more surgical regularization where the data is most uncertain.
Summary updated