Stasis: Reinforcement Learning Simulators for Human-Centric Real-World Environments

Georgios Efstathiadis, Patrick Emedom-Nnamdi, Arinbjörn Kolbeinsson, Jukka-Pekka Onnela, Junwei LuTML4H @ ICLR 2023

TL;DR

This paper introduces Stasis, a new suite of reinforcement learning (RL) simulators designed to mimic real-world human-centric environments. By incorporating realistic factors like partial observability, data heterogeneity, and missing data, Stasis aims to enable the development of more robust RL agents that can perform comparably to those trained online, but without the associated risks and costs.

What Problem Does This Paper Address?

Reinforcement learning (RL) has shown immense promise across various domains, from robotics to autonomous driving. However, a significant bottleneck for deploying RL agents in real-world applications, especially in sensitive areas like healthcare, is the lack of realistic simulators. Existing simulators often fall short in capturing crucial aspects of real-world environments:

  • Partial Observability: Real-world agents rarely have complete information about their surroundings.
  • Heterogeneity: Environments can have varying reward structures or characteristics that affect different agents or individuals differently.
  • Missing Data: Real-world data is often incomplete, either due to irregular sampling or inherent limitations in data collection.
  • Lack of Generative Models: Simulators should ideally act as generative models, producing data that closely resembles real-world observations.

These limitations make it difficult to train RL agents that are robust and reliable enough for high-stakes applications. The cost and risk of errors during online training are prohibitive, necessitating better simulation tools.

Methods

Stasis is built upon the structure of the Gymnasium API, providing a standardized interface for users. The core innovation lies in its focus on realism for human-centric environments. Key methodological considerations include:

  • Representation Learning: Utilizing offline data to learn more accurate state representations for agents.
  • Alignment with Real-World Offline Data: Incorporating existing datasets to improve the fidelity of the simulator's dynamics and to enable pre-training phases for RL agents.
  • Tunable Environment Characteristics: Stasis environments allow for adjustable levels of:
  • Observability: Simulating scenarios where agents have incomplete information.
  • Heterogeneity: Modeling variations in reward functions or environmental responses.
  • Missing Data: Introducing missing state or reward information, including data that is missing not at random.
  • Generative Capabilities: The aim is for Stasis environments to act as generative models, producing realistic data.

The simulator's structure is designed to be flexible, allowing for the specification of problem complexity and the incorporation of healthcare-specific parameters that are problematic in real-world data collection.

Datasets

The paper mentions the use of real-world offline data for training and alignment. Specifically:

  • GPS Trajectories: Used in the "Healthy Traveling Salesman" environment to inform route optimization and personalize environments based on user patterns.
  • Real-world Offline Data: Generally leveraged for representation learning, model dynamics, and pre-training RL policies.

The paper introduces two example environments that will be part of Stasis:

  • Healthy Traveling Salesman: This environment simulates a weighted traveling salesman problem where the goal is to optimize routes based on health-related exposures (e.g., greenspace). It utilizes data from the OpenRouteService API and Overpass API (which in turn use OpenStreetMap data) to gather information on routes and exposures.
  • Resource Allocation in Clinical Settings: This environment models the complex problem of dynamic resource allocation in healthcare, considering patient conditions, resource availability, costs, and durations.

Key Insights and Ideas

  • Bridging the Simulation-Real World Gap: The primary insight is that to train truly effective RL agents for human-centric tasks, simulators must move beyond simplified models and embrace the messiness of reality – partial information, varied conditions, and missing data.
  • Offline Data as a Foundation: Leveraging existing offline data is crucial not just for evaluation but for building more realistic simulators and for pre-training agents, significantly reducing the need for risky online exploration.
  • Human-Centricity is Key: The focus on "human-centric" environments highlights the need for simulators that understand how agents interact with or influence humans, a critical aspect for applications in healthcare, education, and social sciences.
  • Tunable Realism: The ability to adjust parameters like observability and missing data allows researchers to systematically study the impact of these factors on RL agent performance and robustness.

Key Results

As this paper presents ongoing work and introduces a framework, specific quantitative results are not the primary focus. However, the paper outlines the intended outcomes:

  • Development of Robust RL Agents: Stasis aims to enable the training of RL agents that achieve performance and robustness comparable to agents trained in real-world online environments.
  • Reduced Risk and Cost: By providing a realistic offline training environment, Stasis mitigates the high costs and risks associated with mistakes during online learning.
  • Enabling Deployment in Sensitive Areas: The framework is designed to facilitate the deployment of RL-based systems in sensitive and high-risk applications, such as healthcare, by ensuring agents are well-trained and reliable.

The paper includes visualizations of the two example environments, illustrating their rendering and the types of data they incorporate.

Limitations and Future Work

Limitations:

  • Ongoing Work: The paper explicitly states that Stasis is "on-going work," and the code and environments are planned for release later. This implies that the suite is not yet complete or fully validated.
  • Complexity of Real-World Data: While aiming for realism, perfectly capturing the infinite nuances of real-world human-centric environments remains a significant challenge.

Future Work:

  • Community Building: The authors plan to foster a community around Stasis through leaderboards, workshops, and the addition of more standalone environments.
  • Leveraging More Data: Further utilizing existing offline data to build even more realistic environments and to refine pre-training and initialization strategies.
  • Medical/Clinical Relevance: Actively collaborating with medical professionals to ensure the simulators are grounded in real-world observations and are accurate, making Stasis a valuable tool for medical professionals.
  • Active Goal for Relevance: Continuously striving to make the environments relevant and useful in practical contexts, particularly in medicine.

Summary updated

BibTeX
@inproceedings{efstathiadis2023stasis,
  author = {Georgios Efstathiadis and Patrick Emedom-Nnamdi and Arinbjörn Kolbeinsson and Jukka-Pekka Onnela and Junwei Lu},
  title = {{Stasis: Reinforcement Learning Simulators for Human-Centric Real-World Environments}},
  booktitle = {TML4H @ ICLR},
  year = {2023},
  url = {https://openreview.net/forum?id=LsEd-S3ofyW},
}
Figure