[Paper Review] Rotation, Translation, and Cropping for Zero-Shot Generalization
This paper proposes that rotating, translating, and cropping visual observations significantly improves zero-shot generalization in deep reinforcement learning agents trained on 2D arcade games. By adopting an agent-centric, forward-facing perspective through these transformations, agents achieve up to 90% success on unseen procedurally generated levels with minimal training data, outperforming standard fixed-view approaches.
Deep Reinforcement Learning (DRL) has shown impressive performance on domains with visual inputs, in particular various games. However, the agent is usually trained on a fixed environment, e.g. a fixed number of levels. A growing mass of evidence suggests that these trained models fail to generalize to even slight variations of the environments they were trained on. This paper advances the hypothesis that the lack of generalization is partly due to the input representation, and explores how rotation, cropping and translation could increase generality. We show that a cropped, translated and rotated observation can get better generalization on unseen levels of two-dimensional arcade games from the GVGAI framework. The generality of the agents is evaluated on both human-designed and procedurally generated levels.
Motivation & Objective
- To investigate whether perceptual transformations like rotation, translation, and cropping improve zero-shot generalization in deep reinforcement learning agents.
- To challenge the assumption that fixed, static third-person views hinder generalization in DRL for video games.
- To evaluate the effectiveness of these transformations on both human-designed and procedurally generated game levels.
- To demonstrate that input representation plays a critical role in enabling robust, generalizable policies.
- To formalize practical, data-augmentation-inspired design principles for observation space engineering in RL.
Proposed method
- The authors apply data augmentation techniques—rotation, translation, and cropping—to the visual input of DRL agents during training.
- The observation space is transformed to simulate a first-person, agent-centric view, where the agent always faces forward.
- The agents are trained using the A2C algorithm on a small set of five levels from the GVGAI framework.
- Performance is evaluated on both human-designed and procedurally generated test levels to assess zero-shot generalization.
- The method avoids architectural changes, focusing solely on input transformation to isolate its effect on generalization.
- The approach is evaluated across multiple games, including Zelda, SolarFox, and Boulderdash, to assess transferability.
Experimental results
Research questions
- RQ1Does transforming the input observation via rotation, translation, and cropping improve zero-shot generalization in DRL agents?
- RQ2Can a simple perceptual transformation lead to significantly better generalization than standard fixed third-person views?
- RQ3How does the performance of these transformations vary across games with different levels of global state dependency?
- RQ4To what extent do these techniques reduce the brittleness of policies trained on limited training data?
- RQ5Can these input-level modifications serve as a practical, low-cost alternative to architectural or algorithmic innovations for improving generalization?
Key findings
- Agents trained with rotation, translation, and cropping achieved up to 90% success rate on unseen procedurally generated levels, despite training on only five levels.
- The method significantly outperformed standard fixed third-person observation settings, especially in highly stochastic environments.
- The improvements were most pronounced in games like Zelda and SolarFox, where local object interactions dominate gameplay.
- Cropping reduced performance in games requiring global awareness, such as those where enemies grow stronger over time, due to loss of contextual information.
- Rotation was ineffective in games lacking a defined facing direction, highlighting its dependency on agent orientation semantics.
- The neural network often focused on irrelevant details (e.g., scoreboards), suggesting a need for attention mechanisms or selective filtering to improve focus on salient features.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.