OpenAI‘s Minecraft AI Reveals the Power of Video Pre-Training
In June 2022, OpenAI published a landmark paper demonstrating how AI can learn to play Minecraft at a high skill level simply by watching YouTube videos. By leveraging a novel approach called Video Pre-Training (VPT), they trained an AI agent to perform complex tasks in Minecraft without any manual labeling of what actions to take. This research marks a major step toward AI that can acquire open-ended skills from the vast amount of video data on the internet.
How Video Pre-Training Works
The key idea behind VPT is to break the training process into three steps:
- Train an inverse dynamics model (IDM) on a small labeled dataset to predict actions from video frames
- Use the trained IDM to automatically label actions in a large unlabeled video dataset
- Train a behavioral cloning policy (the VPT foundation model) to imitate the labeled actions in the video dataset
Here is an overview of the VPT training process:

Source: OpenAI
The IDM consists of a ResNet encoder which processes pairs of video frames, followed by a Transformer which predicts the action taken between the frames. Importantly, the IDM can be trained on a relatively small labeled dataset, since it only needs to predict short-horizon actions rather than full expert behavior.
After training the IDM, it is applied to a much larger dataset of online videos to predict the actions taken at each timestep, without any extra labeling. Finally, this automatically-labeled dataset is used to train a behavioral cloning model (the VPT foundation model) to imitate the actions via supervised learning.
Compared to standard imitation learning which requires each frame to be manually labeled with actions, VPT is far more scalable since it can automatically label a virtually unlimited dataset of online videos. And compared to reinforcement learning (RL) from scratch, VPT provides the agent with valuable priors that enable more purposeful and human-like behavior.
Evaluating VPT on Minecraft
OpenAI chose Minecraft as the test domain for VPT due to its open-ended nature and the large amount of publicly available gameplay footage. After filtering for "clean" footage (no artifacts, mods, etc.), they collected a dataset of over 2000 hours of Minecraft videos.
To evaluate the VPT foundation model, OpenAI first measured its zero-shot performance on various Minecraft tasks without any further fine-tuning. Incredibly, they found that the foundation model can already perform complex skills at a high level:

Source: OpenAI
As shown in the graph, VPT enables the AI to chop down trees to collect logs, craft items, hunt animals, and more, without ever explicitly being trained to do so. This suggests that simply by watching videos, the AI has learned an extensive knowledge of Minecraft mechanics and how to perform useful behaviors.
However, the zero-shot VPT agent still makes frequent mistakes and lacks the ability to perform some of the hardest skills in Minecraft. To improve performance further, OpenAI experimented with fine-tuning the foundation model on more focused datasets using behavioral cloning (BC) and reinforcement learning (RL).
With BC fine-tuning on an "early game" dataset, the AI learns to consistently gather logs, craft a crafting table, and craft wooden tools in the correct sequence. Here are the results before and after BC fine-tuning:

Source: OpenAI
The fine-tuned agent performs the early game steps nearly perfectly, showing the value of the VPT foundation model in adapting quickly to more specific tasks.
Finally, OpenAI used RL to train the agent to acquire a diamond pickaxe, one of the most difficult items to obtain in Minecraft. This requires a complex sequence of dozens of steps including mining deep underground, acquiring several intermediate resources, and crafting items in the correct order.
To prevent the RL fine-tuning from overriding the foundation model‘s knowledge, they added an auxiliary loss to keep the policy close to the VPT prior. The final agent is able to craft a diamond pickaxe in 2.5% of episodes, a remarkable feat that takes proficient humans over 20 minutes (24,000 actions).
Scaling Properties and Limitations of VPT
A key question is how the performance of VPT scales with the amount and quality of video data used for training. On this front, OpenAI found highly encouraging results:

Source: OpenAI
As the graph shows, training on more video data consistently improves VPT‘s performance, even up to 70,000 hours of footage. Additionally, fine-tuning the foundation model becomes far more effective when it has been pre-trained on a larger video dataset (right graph).
These results suggest that VPT could be an extremely scalable approach for training open-ended AI systems, since it can take advantage of the essentially unlimited amount of video data on the internet. As online video datasets continue to grow exponentially, the potential of VPT will grow as well.
That said, there are still many limitations and obstacles to overcome with VPT. Some key challenges include:
- Curating high-quality datasets of videos for a given task, without artifacts or irrelevant data
- Handling tasks where the mapping between actions and video frames is less clear than in video games
- Ensuring safe and controlled behavior when training on unfiltered internet data
- Achieving strong performance on novel tasks that are unlike the pre-training data
OpenAI has taken some initial steps to mitigate these issues, such as using a classifier to filter out low-quality Minecraft footage and experimenting with techniques to make the VPT agent more controllable. But significant work still remains to make VPT a reliable and practical approach for real-world applications.
Future Potential and Risks
Despite the challenges, I believe VPT is a highly promising direction for AI research with massive potential for impact. The ability to learn general knowledge and skills from internet-scale video datasets could be transformative for many applications:
- Robotics: Training robot policies to manipulate objects and interact with the world by watching human videos
- Autonomous driving: Learning driving behaviors and road navigation from dashcam datasets or traffic camera footage
- Virtual assistants: Teaching AI assistants to complete tasks and answer questions by observing online how-to videos
- Healthcare: Training medical AI systems to assist in diagnosis and treatment planning by watching videos of expert clinicians
- Education: Personalizing educational content and providing interactive tutoring based on videos of effective teaching
In the longer term, VPT could be a key building block for artificial general intelligence (AGI) systems that can learn and adapt to a wide range of tasks and environments. By leveraging the vast knowledge available in online video, VPT takes a significant step toward AI that can acquire open-ended skills in the way that humans do.
However, realizing the full potential of VPT will also require carefully addressing the risks and challenges. If not properly controlled, AI systems trained on internet data could perpetuate biases, learn unsafe behaviors, or be misused for harmful purposes like surveillance or manipulation.
Additionally, the ability to train highly capable AI systems from publicly available data could accelerate the development of advanced AI without sufficient oversight or safety constraints. As with any powerful technology, we will need robust safeguards and responsible development practices to ensure VPT and its descendants are deployed in a beneficial manner.
Closing Thoughts
OpenAI‘s Minecraft VPT research is a groundbreaking demonstration of the power of learning from internet-scale video datasets. By showing how an AI agent can learn to perform complex tasks in an open-world environment without any explicit supervision, this work opens up exciting new possibilities for AI to acquire general knowledge and skills.
Of course, VPT is still a relatively nascent technique and there is much work ahead to refine it and apply it to real-world problems beyond video games. We will need to develop better methods for curating video datasets, adapting to different domains, and ensuring safe and reliable behavior. But I‘m optimistic that further research will continue to expand the capabilities and applications of this approach.
As we look to the future, I believe VPT will be remembered as an important stepping stone on the path to artificial general intelligence. By taking advantage of the vast amount of knowledge in online video, we may be able to build AI systems that learn as flexibly and open-endedly as humans. While there are certainly risks and challenges ahead, the potential benefits are immense. I‘m excited to see where researchers take this technology in the years to come.