Compositional Conservatism: A Transductive Approach in Offline Reinforcement Learning

Yeda Song, Dongwook Lee, Gunhee Kim

Compositional Conservatism: A Transductive Approach in Offline Reinforcement Learning

Introduction

Offline Reinforcement Learning (RL) presents a unique challenge: learning an optimal policy from a static dataset without environment interaction. The primary obstacle in this setting is distributional shift. When an agent encounters states outside the training distribution, its value function (Q-function) often produces over-optimistic estimates for unfamiliar actions. This "hallucination" leads the agent to take sub-optimal or even dangerous actions.

Traditional approaches mitigate this through behavioral conservatism, constraining the agent to stay close to the data-generating policy. However, these methods often struggle to generalize effectively to novel but reachable states. This paper introduces COCOA (COmpositional COnservatism with Anchor-seeking), a framework that shifts the focus from action-level constraints to state-level representation, enabling more robust generalization through compositional reasoning.

The COCOA Framework

COCOA is designed as a "plug-and-play" architectural enhancement for existing offline RL algorithms. Instead of treating an unfamiliar state $s$ as a monolithic input, COCOA decomposes it into a familiar component and a manageable deviation.

1. Bilinear Transduction and State Decomposition

The core idea is to represent a state $s$ as $s = \tilde{s} + \Delta s$, where $\tilde{s}$ is an anchor state (a state well-represented in the training data) and $\Delta s$ is the delta representing the difference.

By re-parameterizing the policy and Q-function to process these components separately via a bilinear operation, the model learns to "transduce" knowledge from known regions of the state space to unknown ones. This decomposition simplifies the learning task: the model only needs to understand how small changes ($\Delta s$) from a known baseline ($\tilde{s}$) affect the outcome, rather than learning the dynamics of the entire state space from scratch.

The COCOA framework: (a) anchor-seeking rollout to find familiar states, (b) state decomposition into anchor and delta, and (c) the transductive predictor architecture.

2. Anchor-seeking Policy

Finding a suitable anchor is non-trivial. COCOA utilizes a reverse dynamics model to determine which training states are likely predecessors or "neighbors" in the transition manifold. An anchor-seeking policy then performs "mental rollouts"—simulated trajectories—to find a path from the current out-of-distribution state back to a known "anchor" within the training distribution. This approach is more robust than simple nearest-neighbor searches, as it respects the underlying dynamics of the environment.

Experimental Evaluation

The effectiveness of COCOA was evaluated using the D4RL benchmark, covering a wide range of tasks:

  • Gym-MuJoCo: Locomotion tasks (HalfCheetah, Hopper, Walker2d) with varying data quality.
  • Adroit: High-dimensional robotic manipulation tasks.
  • NeoRL: Benchmarks reflecting real-world data constraints.

Key Results

COCOA demonstrated significant performance gains when integrated with state-of-the-art algorithms like Conservative Q-Learning (CQL), Implicit Q-Learning (IQL), and model-based methods like MOBILE.

  • Performance Boost: COCOA improved CQL's performance in 10 out of 12 D4RL tasks and MOBILE's in 9 out of 12.
  • Sample Efficiency and Stability: As shown in the training curves, COCOA-enhanced agents often reach higher asymptotic performance faster and with less variance than their baseline counterparts.
  • Robustness: The anchor-seeking mechanism proved superior to heuristic anchor selection, confirming that leveraging learned dynamics is crucial for effective state decomposition.
Performance comparison on the halfcheetah-medium-expert-v2 task, showing CQL with COCOA achieving higher normalized average returns compared to standard CQL.

Conclusion and Future Work

COCOA introduces a powerful paradigm shift in offline RL by emphasizing compositional conservatism. By decomposing unfamiliar states into familiar anchors and deltas, agents can navigate out-of-distribution scenarios with greater reliability.

While highly effective in continuous control tasks, future research is needed to explore COCOA's applicability to discrete action spaces and high-dimensional image observations. Additionally, further theoretical analysis could provide deeper insights into how this specific architectural decomposition shapes the optimization landscape of the Q-function.

Summary updated

BibTeX
@inproceedings{song2024compositional,
  author = {Yeda Song and Dongwook Lee and Gunhee Kim},
  title = {{Compositional Conservatism: A Transductive Approach in Offline Reinforcement Learning}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=HRkyLbBRHI},
}
Figure