Scaling Behavior Cloning Improves Causal Reasoning: An Open Model for Real-Time Video Game Playing
Yuguang Yue, Irakli Salia, Samuel Hunt, Chris Green, Wenzhe Shi, Jonathan J Hunt
TL;DR
This work presents an open, end-to-end pipeline for scaling behavior cloning to real-time cross-game play, including a large annotated dataset (8,300+ hours) and unlabeled data, a novel text-conditioned, autoregressive policy (Pixels2Play) designed for 20 Hz inference on consumer GPUs, and a three-stage pretraining approach using an inverse dynamics model. Through extensive experiments across programmatic and real games, the authors demonstrate that larger models trained on more diverse data achieve lower test loss and stronger causal signal in reasoning, approaching human-level play in several 3D titles. They also show that scaling improves causality and reduces reliance on non-causal cues, providing a practical route to mitigate causal confusion in behavior cloning. The findings have practical impact for deploying generalist, real-time agents on consumer hardware and offer a framework for studying scaling laws and causality in BC across diverse environments.
Abstract
Behavior cloning is enjoying a resurgence in popularity as scaling both model and data sizes proves to provide a strong starting point for many tasks of interest. In this work, we introduce an open recipe for training a video game playing foundation model designed for inference in realtime on a consumer GPU. We release all data (8300+ hours of high quality human gameplay), training and inference code, and pretrained checkpoints under an open license. We show that our best model is capable of playing a variety of 3D video games at a level competitive with human play. We use this recipe to systematically examine the scaling laws of behavior cloning to understand how the model's performance and causal reasoning varies with model and data scale. We first show in a simple toy problem that, for some types of causal reasoning, increasing both the amount of training data and the depth of the network results in the model learning a more causal policy. We then systematically study how causality varies with the number of parameters (and depth) and training steps in scaled models of up to 1.2 billion parameters, and we find similar scaling results to what we observe in the toy problem.
