Skip to main content
QUICK REVIEW

[Paper Review] Using Unity to Help Solve Intelligence

Tom Ward, Andrew Bolt|arXiv (Cornell University)|Nov 18, 2020
Reinforcement Learning in RoboticsComputer Science30 references6 citations
TL;DR

This paper presents a framework for building diverse, complex reinforcement learning environments using Unity, a general-purpose game engine, to overcome limitations of existing platforms. By developing a standardized communication protocol and reproducible packaging method, the authors enable efficient, reusable, and scalable simulation environments that support a wide range of AI research tasks, as demonstrated by their use in multiple published papers.

ABSTRACT

In the pursuit of artificial general intelligence, our most significant measurement of progress is an agent's ability to achieve goals in a wide range of environments. Existing platforms for constructing such environments are typically constrained by the technologies they are founded on, and are therefore only able to provide a subset of scenarios necessary to evaluate progress. To overcome these shortcomings, we present our use of Unity, a widely recognized and comprehensive game engine, to create more diverse, complex, virtual simulations. We describe the concepts and components developed to simplify the authoring of these environments, intended for use predominantly in the field of reinforcement learning. We also introduce a practical approach to packaging and re-distributing environments in a way that attempts to improve the robustness and reproducibility of experiment results. To illustrate the versatility of our use of Unity compared to other solutions, we highlight environments already created using our approach from published papers. We hope that others can draw inspiration from how we adapted Unity to our needs, and anticipate increasingly varied and complex environments to emerge from our approach as familiarity grows.

Motivation & Objective

  • To address the limitations of existing reinforcement learning platforms, which are constrained by their underlying game engines and lack diversity in environment design.
  • To enable the creation of complex, visually rich, and computationally efficient virtual environments for evaluating general intelligence in agents.
  • To improve reproducibility in RL research by introducing a standardized method for packaging and distributing environments with all dependencies.
  • To demonstrate the versatility and scalability of Unity as a foundation for building heterogeneous, first-person, 3D, and procedural environments for RL.
  • To provide a reusable, open-protocol communication system that allows seamless integration between external agents and Unity-based environments.

Proposed method

  • Adapting Unity’s game engine as a flexible platform for authoring diverse reinforcement learning environments with high visual and simulation fidelity.
  • Designing a custom, open-sourced communication protocol to interface external agents with Unity environments, enabling real-time observation and action exchange.
  • Implementing a standardized packaging approach that bundles pre-built environments with all required dependencies, ensuring reproducibility across different systems.
  • Leveraging Unity’s programmer-friendly tools and active community to streamline environment development and reduce engineering overhead.
  • Using procedural generation techniques to create dynamic, variable initial conditions across environments, enhancing generalization testing.
  • Validating the framework through integration with multiple published RL studies, demonstrating its compatibility and performance at scale.

Experimental results

Research questions

  • RQ1Can Unity be effectively repurposed as a scalable and flexible platform for creating diverse reinforcement learning environments beyond the constraints of existing game-based platforms?
  • RQ2How can environment reproducibility and distribution be improved in RL research through standardized packaging and dependency management?
  • RQ3To what extent can Unity-based environments support complex, physics-informed, and memory-intensive RL tasks required for general intelligence evaluation?
  • RQ4How does the use of a unified communication protocol enhance interoperability between agents and diverse Unity environments?
  • RQ5What is the computational efficiency of running multiple concurrent Unity instances for large-scale RL training and evaluation?

Key findings

  • The framework successfully enabled the creation of 13 diverse, first-person, 3D environments used in published RL research, including tasks involving memory, navigation, and physical construction.
  • Eight of the 13 environments in the Fortunato et al. (2019) study were built using the proposed Unity-based approach, demonstrating its applicability to complex, memory-intensive tasks.
  • The Random City and Voxel Environment in Gregor et al. (2019) were procedurally generated 3D worlds that supported belief state modeling and block manipulation tasks.
  • The Paine et al. (2019) suite of eight hard exploration tasks, built with the framework, featured highly variable initial conditions and required long-horizon planning.
  • The Bapst et al. (2019) 2D construction environment used continuous, physics-based simulation to test agents’ ability to build structures from blocks, with episode termination based on task success or collision.
  • The framework achieved sufficient computational efficiency to support multiple concurrent Unity instances on CPU or GPU, enabling scalable training and evaluation.

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.