Skip to main content
QUICK REVIEW

[Paper Review] SuperSuit: Simple Microwrappers for Reinforcement Learning Environments

Justin K. Terry, Benjamin Black|arXiv (Cornell University)|Aug 17, 2020
Evolutionary Algorithms and ApplicationsComputer Science8 references8 citations
TL;DR

SuperSuit is a Python library that provides efficient, reusable 'microwrappers' for preprocessing observations, actions, and rewards in reinforcement learning environments. It supports both Gym and PettingZoo environments, offering standardized, high-performance implementations of common wrappers—such as frame stacking, reward clipping, and observation normalization—while enabling custom transformations via lambda functions, reducing bugs and development overhead.

ABSTRACT

In reinforcement learning, wrappers are universally used to transform the information that passes between a model and an environment. Despite their ubiquity, no library exists with reasonable implementations of all popular preprocessing methods. This leads to unnecessary bugs, code inefficiencies, and wasted developer time. Accordingly we introduce SuperSuit, a Python library that includes all popular wrappers, and wrappers that can easily apply lambda functions to the observations/actions/reward. It's compatible with the standard Gym environment specification, as well as the PettingZoo specification for multi-agent environments. The library is available at https://github.com/PettingZoo-Team/SuperSuit,and can be installed via pip.

Motivation & Objective

  • To address the lack of a centralized, well-maintained library for reinforcement learning wrappers across both Gym and PettingZoo environments.
  • To reduce code duplication, bugs, and performance inefficiencies caused by custom, one-off wrapper implementations in research projects.
  • To standardize and optimize common preprocessing techniques such as frame stacking, reward clipping, and observation normalization for better reproducibility and efficiency.
  • To support both single-agent and multi-agent RL environments with wrappers tailored to each, including agent-specific features like agent indication and action space padding.
  • To enable researchers to easily apply custom transformations via lambda wrappers for observations, actions, and rewards, enhancing flexibility without sacrificing performance.

Proposed method

  • The library implements each wrapper as a standalone, stateless function that takes an environment and returns a wrapped environment, ensuring modularity and clarity.
  • It supports all major preprocessing techniques used in RL, including frame skipping, frame stacking, observation resizing, and reward clipping, with optimized implementations.
  • Specialized wrappers are provided for multi-agent environments, such as agent indication, observation padding, and action space padding, to handle asymmetric or variable-sized observations.
  • Lambda wrappers allow users to inject custom functions directly to observations, actions, or rewards, enabling extensibility without modifying core logic.
  • The library is built to be compatible with the standard Gym and PettingZoo environment APIs, ensuring seamless integration with existing RL frameworks.
  • All wrappers are designed for performance, with default outputs shaped for efficient use with convolutional neural networks (CNNs).

Experimental results

Research questions

  • RQ1How can the reliability and performance of RL preprocessing wrappers be improved across diverse environments?
  • RQ2What is the impact of standardized, reusable wrappers on reducing bugs and development time in reinforcement learning research?
  • RQ3Can a unified library effectively support both single-agent (Gym) and multi-agent (PettingZoo) environments with consistent, high-performance wrappers?
  • RQ4How does the inclusion of lambda-based wrappers improve extensibility and customization in RL experimentation?
  • RQ5To what extent can standardized preprocessing wrappers enhance reproducibility and computational efficiency in RL experiments?

Key findings

  • SuperSuit provides a centralized, production-ready library for all widely used RL preprocessing wrappers, reducing reliance on custom, error-prone implementations.
  • The library supports both Gym and PettingZoo environments, ensuring broad compatibility across single-agent and multi-agent RL research.
  • By offering optimized, reusable wrappers such as frame stacking and reward clipping, SuperSuit improves computational efficiency and reduces training overhead.
  • The inclusion of lambda wrappers enables researchers to easily apply custom transformations to observations, actions, or rewards without writing boilerplate code.
  • The library’s design promotes modularity and debugging ease, with each wrapper performing a single, well-defined function.
  • SuperSuit is available via pip and hosted on GitHub, ensuring accessibility and maintainability for the broader RL research community.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.