S2P: State-conditioned Image Synthesis for Data Augmentation in Offline Reinforcement Learning

Daesol Cho, Dongseok Shim, H. Jin Kim

Introduction

Offline Reinforcement Learning (RL) aims to learn effective policies from pre-recorded datasets without environment interaction. A significant challenge in this domain is distributional shift: when an agent encounters states or takes actions not represented in the training data, it lacks the ability to predict outcomes, often leading to overestimation of rewards and policy failure. While state-based RL can leverage dynamics models for data augmentation, image-based RL faces the daunting task of generating high-fidelity, dynamics-consistent images for unseen scenarios.

S2P enables virtual exploration by generating images for states outside the original dataset distribution.

The S2P Framework

To address this, we present S2P (State2Pixel), a generative model that synthesizes realistic images from robot states and previous observations. S2P facilitates "virtual exploration" by rendering predicted future states into the pixel domain, thereby extending the training distribution and mitigating the effects of distributional shift.

Architecture and Multimodal Affine Transformation

The S2P generator takes the current state $s_t$ and the previous image $I_{t-1}$ as inputs. The inclusion of $I_{t-1}$ is vital for maintaining temporal and background consistency, such as fixed environment elements (e.g., floor patterns) that are not captured in a low-dimensional state vector.

The S2P architecture uses image and state encoders followed by hierarchical generator blocks containing MAT modules.

The core innovation is the Multimodal Affine Transformation (MAT) module. Inspired by style-transfer techniques, MAT fuses state information with image features to modulate the generation process. This ensures the output $\hat{I}_t$ is physically grounded in the agent's state while remaining visually consistent with the sequence history.

Key Insights

  • Dynamics in State Space: Learning dynamics is more robust in low-dimensional state spaces than in high-dimensional pixel spaces. S2P leverages this by performing exploration in state space and rendering the results back into pixels.
  • Positional Encoding: Incorporating positional encoding into the state vector allows the model to capture high-frequency details, significantly improving the sharpness and posture accuracy of the synthesized images.
  • MAT vs. SAT: Experimental ablations demonstrate that MAT, which utilizes both state and image history, significantly outperforms State Affine Transformation (SAT) in preserving background details over long-horizon trajectories.

Experimental Results

Evaluated on the DeepMind Control (DMControl) suite across environments like Cheetah-run and Walker-walk, S2P demonstrates substantial improvements:

  • Performance Gains: Integrating S2P-augmented data into offline RL algorithms like CQL or IQL yielded performance increases of 1.0x to 3.0x compared to training on original 50k-step datasets.
  • Visual Fidelity: S2P outperforms baselines like Dreamer in image quality metrics (FID, SSIM) and provides the dynamics-consistency necessary for effective policy training, whereas blurry reconstructions from other models often degrade performance.
  • Zero-shot Generalization: S2P enables agents to learn new behaviors, such as "cheetah-jump," by synthesizing images for high-jump states that were sparse or absent in the original training data.

Conclusion

S2P effectively bridges the gap between state-based dynamics and pixel-based observations. By enabling high-fidelity data augmentation through state-to-image synthesis, it provides a robust solution to distributional shift in offline image-based RL. Future work will focus on removing the requirement for paired state-image datasets to broaden its applicability to real-world video data.

Summary updated

BibTeX
@inproceedings{cho2022s,
  author = {Daesol Cho and Dongseok Shim and H. Jin Kim},
  title = {{S2P: State-conditioned Image Synthesis for Data Augmentation in Offline Reinforcement Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=QZDmftWNAMJ},
}
Figure