TL;DR
This paper introduces Positive-Unlabeled Offline Reinforcement Learning (PUORL), a realistic setting where a large offline dataset contains samples from multiple environments (domains) but only a tiny fraction is labeled for the target domain. The authors propose a "plug-and-play" framework that uses Positive-Unlabeled (PU) learning to train a domain classifier, filters the unlabeled data for target-domain transitions, and achieves near-optimal performance even when only 1% of the data is labeled.
What Problem Does This Paper Address?
Offline Reinforcement Learning (RL) is essential for high-stakes fields like robotics and healthcare, where collecting live data is dangerous or expensive. However, real-world datasets are often "messy." They might be aggregated from various robots with slightly different hardware or patients with varying underlying conditions. These differences constitute dynamics shifts—the same action in the same state leads to different outcomes depending on the "domain."
Standard offline RL assumes you have a clean dataset for your target domain. While some "cross-domain" methods exist to leverage data from other environments, they typically assume every transition is clearly labeled (e.g., "Robot A" vs. "Robot B"). In practice, labeling is labor-intensive. We often end up with a small set of verified target data and a massive pile of unlabeled data from a mixture of sources.
The authors formalize this as the PUORL problem: How do we effectively train a policy for a specific target domain using a small amount of labeled "positive" data and a large volume of unlabeled data?
Methods
The researchers propose a two-stage, plug-and-play approach that separates domain identification from policy training:
-
Stage 1: Domain Classification via PU Learning. Instead of standard supervised learning (which requires both positive and negative labels), they use Positive-Unlabeled (PU) learning. The input to the classifier is the transition tuple $(s, a, s')$. Because different domains have different dynamics, the relationship between $(s, a)$ and the resulting $s'$ serves as a strong signal. They use a method called $TED^n$ to estimate the mixture proportion of the target domain in the unlabeled set and train a binary classifier $f$ to distinguish "target" from "non-target."
-
Stage 2: Data Filtering and Offline RL. The trained classifier is applied to the large unlabeled dataset. Transitions predicted as "positive" are extracted and combined with the original small labeled set. This augmented, "cleaned" dataset is then fed into standard, off-the-shelf offline RL algorithms like TD3+BC or IQL.
Datasets
The authors evaluated their method using a modified version of the D4RL benchmark, focusing on three MuJoCo control tasks: Hopper, HalfCheetah, and Walker2d. To simulate the PUORL setting, they introduced three types of dynamics shifts:
- Body Mass Shift: Changing the mass of specific body parts.
- Mixture Shift: A complex scenario involving both mass changes and joint noise across multiple negative domains.
- Entire Body Shift: A radical shift where the positive and negative domains have entirely different structures (e.g., HalfCheetah vs. Walker2d) but share the same state-action dimensions.
They tested scenarios where only 1% or 3% of the total 1 million samples were labeled as target-domain data.
Key Insights and Ideas
- Transitions are Identity Cards: The core "aha" moment is that the tuple $(s, a, s')$ is an incredibly effective fingerprint for environment dynamics. Even subtle changes in mass or friction are captured in how a state evolves, allowing the PU classifier to reach over 98% accuracy.
- Robustness to "Poisonous" Data: Naively using all available data (Sharing-All) often leads to performance collapse because the RL agent tries to learn a single policy for conflicting physics. The PU filtering acts as a high-quality gatekeeper.
- Failure of Traditional Domain Adaptation: Existing cross-domain RL methods (like DARA or IGDF) actually performed worse than naive sharing in this specific setting. This is because they rely on encoders or discriminators that struggle to converge when the labeled target data is extremely scarce (1%).
Key Results
The results demonstrate that the PU-based filtering is remarkably effective:
- High Precision: The PU classifier consistently achieved >98% accuracy in identifying target-domain samples across various tasks and shift types.
- Near-Oracle Performance: In most experiments, the proposed method achieved normalized scores very close to the "Oracle"—a theoretical baseline that has access to all domain labels.
- Efficiency at Scale: Even with only 1% labeled data (10k samples), the method successfully leveraged the other 990k unlabeled samples to outperform baselines that only used the labeled data.
Limitations and Future Work
- Shared State/Action Spaces: The method currently assumes that all domains share the same state and action dimensions. If the state representations differ significantly, the classifier might fail.
- Transition-Based vs. Trajectory-Based: The approach works on individual transitions. While this makes it flexible (it doesn't need full episodes), it doesn't exploit temporal information that could potentially make domain identification even more robust.
- Future Directions: The authors suggest that this "weakly supervised" approach could be extended to other RL challenges, such as filtering data based on reward quality or behavioral policy style, rather than just environment dynamics.
Summary updated