ACuTE: Automatic Curriculum Transfer from Simple to Complex Environments

Yash Shukla, Christopher Thierauf, Ramtin Hosseini, Gyan Tatiya, Jivko SinapovarXiv 2022 · DOI

TL;DR

This paper introduces ACuTE, a novel framework for automatically transferring a curriculum learned in a simple, low-fidelity environment to a complex, high-fidelity one. This approach significantly speeds up learning in challenging real-world scenarios and even enables successful transfer to a physical robot, overcoming limitations of traditional domain adaptation methods.

What Problem Does This Paper Address?

Reinforcement Learning (RL) agents often struggle to learn complex tasks from scratch, especially in real-world applications where data collection is expensive and time-consuming. Curriculum Learning (CL) aims to alleviate this by sequencing tasks to guide the agent's learning. However, generating effective curricula, particularly for high-fidelity simulations or physical systems, is itself a computationally intensive and challenging problem. Existing methods often require extensive interaction with the complex environment to optimize a curriculum, negating some of the benefits. This paper addresses the gap of efficiently transferring a learned curriculum structure from a simple, easy-to-simulate environment to a complex, realistic one, enabling faster and more effective learning in the latter.

Methods

The core of ACuTE is curriculum transfer, where a curriculum optimized in a low-fidelity (LF) environment is mapped to a high-fidelity (HF) environment.

  • Low-Fidelity (LF) Environment: A simplified version of the target task environment, allowing for rapid curriculum generation and optimization.
  • High-Fidelity (HF) Environment: A more complex and realistic simulation or the actual physical environment.
  • Task Parameterization: Both LF and HF tasks are parameterized by attribute-value pairs. The paper defines an affine transformation ($P_{HF} = A P_{LF} + B$) to map parameters from the LF to the HF environment. This mapping is crucial as it doesn't require direct equivalency in state or action spaces.
  • Curriculum Generation: ACuTE offers two modes:
  • Handcrafted Curriculum Transfer (HC): A human expert defines the curriculum.
  • Automated Curriculum Transfer (AC): An automated process using beam search to find an optimal sequence of LF tasks. This involves initializing source tasks, learning them with an RL agent, and iteratively selecting the most promising tasks based on learning speed.
  • Curriculum Transfer: Once an LF curriculum is optimized, its task parameters are mapped to the HF environment. The agent then learns these HF tasks sequentially, using the policy from one task to initialize the next.
  • Sim2Real Transfer: The learned policy from the HF environment is directly transferred to a physical robot without further learning.

Datasets

The paper does not introduce new datasets. Instead, it uses simulated environments for evaluation:

  • Low-Fidelity (LF) Environment: A grid-world environment.
  • High-Fidelity (HF) Environment: A physics-based robotics simulation called "Crafter-TurtleBot," which is a more realistic simulation of the physical environment.
  • Physical Environment: A real TurtleBot robot for Sim2Real validation.

The environments are modified to include a "fire" hazard to test robustness to added complexity.

Key Insights and Ideas

  • Transferring the Curriculum Schema, Not Just the Policy: The key innovation is transferring the structure of the curriculum (the sequence and parameterization of tasks) rather than just a learned policy. This is particularly effective when direct policy transfer is difficult due to differences in state/action spaces.
  • LF to HF Efficiency: Optimizing a curriculum in a simple LF environment is significantly faster and cheaper than doing so in a complex HF environment, making CL practical for real-world problems.
  • Robustness to Imperfect Mappings: The framework demonstrates effectiveness even with noisy or inexact mappings between LF and HF task parameters, a common challenge in Sim2Real.
  • RL Algorithm Independence: The curriculum transfer approach is shown to work regardless of the specific RL algorithm used for learning in the HF environment, highlighting its generality.
  • Sim2Real Success: The framework successfully transfers learned policies to a physical robot, demonstrating its practical applicability.

Key Results

  • Faster Learning: ACuTE significantly reduces the time-to-threshold for learning the target task compared to learning from scratch and several baseline approaches (Domain Adaptation, Self-Play, Teacher-Student). For example, in the HF environment, ACuTE achieved a time-to-threshold of $5.4 \times 10^7$ timesteps compared to $1.02 \times 10^8$ for learning from scratch.
  • Improved Jumpstart: The "jumpstart" metric (performance increase after transfer) was consistently higher for ACuTE, indicating better initial performance in the target task.
  • Added Complexity Handling: Even when a "fire" hazard was introduced, making the HF task extremely difficult to learn from scratch, ACuTE still converged much faster than baselines.
  • Sim2Real Performance: The policy transferred to the physical TurtleBot achieved successful task completion, matching the performance of the HF agent.
  • Runtime Efficiency: ACuTE's curriculum generation phase in the LF environment is computationally much cheaper than baselines that require extensive interaction in the HF domain.

Limitations and Future Work

  • Heuristic Task Mapping: The current task mapping between LF and HF environments is generated heuristically. Automating this mapping process is a key area for future work.
  • LF Environment Generation: The LF environment is assumed to be given. Future work could explore autonomously creating LF versions of environments.
  • Theoretical Guarantees: Providing theoretical guarantees for the curriculum transfer approach is an open research question.
  • Combining with Domain Adaptation: Exploring how to combine curriculum transfer with domain adaptation techniques could further accelerate learning.
  • Leveraging HF Data for LF Curriculum: The current LF curriculum generation does not use data from the HF domain. Future work could incorporate HF interaction experience to refine the LF curriculum.
  • Multi-Agent Settings: Extending the framework to multi-agent scenarios with inter-agent curriculum transfer is suggested.

Summary updated

Abstract

Despite recent advances in Reinforcement Learning (RL), many problems, especially real-world tasks, remain prohibitively expensive to learn. To address this issue, several lines of research have explored how tasks, or data samples themselves, can be sequenced into a curriculum to learn a problem that may otherwise be too difficult to learn from scratch. However, generating and optimizing a curriculum in a realistic scenario still requires extensive interactions with the environment. To address this challenge, we formulate the curriculum transfer problem, in which the schema of a curriculum optimized in a simpler, easy-to-solve environment (e.g., a grid world) is transferred to a complex, realistic scenario (e.g., a physics-based robotics simulation or the real world). We present "ACuTE", Automatic Curriculum Transfer from Simple to Complex Environments, a novel framework to solve this problem, and evaluate our proposed method by comparing it to other baseline approaches (e.g., domain adaptation) designed to speed up learning. We observe that our approach produces improved jumpstart and time-to-threshold performance even when adding task elements that further increase the difficulty of the realistic scenario. Finally, we demonstrate that our approach is independent of the learning algorithm used for curriculum generation, and is Sim2Real transferable to a real world scenario using a physical robot.
BibTeX
@misc{shukla2022acute,
  author = {Yash Shukla and Christopher Thierauf and Ramtin Hosseini and Gyan Tatiya and Jivko Sinapov},
  title = {{ACuTE: Automatic Curriculum Transfer from Simple to Complex Environments}},
  year = {2022},
  eprint = {2204.04823},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2204.04823},
}
Figure