Abstract
We study the problem of representational transfer in offline Reinforcement Learning (RL), where a learner has access to episodic data from a number of source tasks collected a priori, and aims to learn a shared representation to be used in finding a good policy for a target task. Unlike in online RL where the agent interacts with the environment while learning a policy, in the offline setting there cannot be such interactions in either the source tasks or the target task; thus multi-task offline RL can suffer from incomplete coverage.
We propose an algorithm to compute pointwise uncertainty measures for the learnt representation in low-rank MDPs, and establish a data-dependent upper bound for the suboptimality of the learnt policy for the target task. Our algorithm leverages the collective exploration done by source tasks to mitigate poor coverage at some points by a few tasks, thus overcoming the limitation of needing uniformly good coverage for a meaningful transfer by existing offline algorithms. Our findings illustrate the benefits of penalizing and quantifying the uncertainty in the learnt representation.
Introduction
Reinforcement Learning (RL) typically requires extensive trial-and-error interaction with an environment. Offline RL attempts to mitigate this by learning from static, pre-collected datasets. However, a major hurdle in offline RL is distribution shift: if the dataset does not adequately cover certain states or actions, the agent may make catastrophic errors when encountering them.
In a multi-task setting, we aim to learn a shared representation from several source tasks to accelerate learning in a new target task. Existing theories often assume "uniform coverage," requiring every task to have explored every possibility. This is rarely feasible in real-world offline datasets. This paper addresses this gap by proposing a method that works under minimal coverage assumptions by leveraging collective exploration across tasks.
The PessimisticRepTransfer (PRT) Framework
The environment is modeled as a Low-rank MDP, where complex transition dynamics are factored into a shared representation ($\phi$) and task-specific layers ($\mu$). The proposed algorithm, PessimisticRepTransfer (PRT), operates in three distinct stages:
- Representation Learning: The algorithm employs Maximum Likelihood Estimation (MLE) on the aggregated data from all source tasks to derive a shared representation.
- Pointwise Uncertainty Quantification: The core innovation is the introduction of "Effective Occupancy Density." This metric measures how well a specific state-action pair is covered across the entire collection of source tasks. If one task misses a state but another explores it thoroughly, the representation for that state is deemed reliable.
- Pessimistic Planning: During target task learning, the algorithm uses these uncertainty measures to penalize value estimates. By treating uncertain representations with skepticism (pessimism), the agent avoids overconfident, sub-optimal decisions.
Empirical Evaluation
The researchers evaluated PRT using the Combination Lock (Comblock) benchmark, a high-dimensional "rich-observation" environment. Comblock is notoriously difficult because most action sequences lead to zero reward, making it a "needle-in-a-haystack" problem for data collection.
Key Results
- Few-Shot Capability: PRT consistently reached an optimal reward of 1.0 with as few as 50–100 target samples. Once a good representation is learned from source tasks, the learner requires minimal target data.
- Collective Exploration: The algorithm successfully leverages the union of exploration across tasks. Failure to explore a state in one task is balanced by exploration in another, proving that uniform coverage per task is unnecessary.
- Baseline Comparison: Standard baselines (such as RT-L or RT-LU) failed to converge or required tens of thousands of additional samples because they could not account for the uncertainty inherent in the transferred representation.
- Efficiency: While the initial MLE phase is computationally intensive, calculating the uncertainty quantifiers adds negligible overhead, ensuring the method remains practical.
Conclusion and Future Work
This work demonstrates that penalizing uncertainty in learned representations allows for efficient offline transfer even with poor individual task coverage. However, the setting remains purely offline; if a state-action pair was never observed in any source or target data, the learner faces irreducible suboptimality.
Future research directions include developing automated methods for selecting relevant source tasks from large libraries and exploring hybrid settings where agents can use uncertainty measures to actively decide which data points to collect online to refine their representations.
Summary updated