Curated summary
Learning to play Minecraft with Video PreTraining
Learning to Play Minecraft with Video PreTraining
OpenAI trained a neural network to play Minecraft using Video PreTraining (VPT), a semi-supervised imitation learning method that combines a massive unlabeled video dataset with a small amount of labeled contractor data. The approach lets the model learn complex behaviors from internet videos, including crafting diamond tools, a task that takes proficient humans over 20 minutes. Because the model uses the native keyboard and mouse interface, the authors see it as a step toward general computer-using agents.
Why Internet Video Lacks Action Labels
- Internet videos show what happened but not the exact keypresses and mouse movements that produced it.
- In language, the "action label" is simply the next word, but video offers no equivalent, which blocks building large-scale foundation models from video the way GPT was built from text.
How VPT Works
- Contractors play Minecraft while the team records both video and the actions they take.
- An inverse dynamics model (IDM) is trained on this small labeled set to predict the action at each step. Because it can look at both past and future frames, this task is much easier and needs far less data than predicting actions from past frames alone.
- The trained IDM labels a much larger set of online videos, and a behavioral cloning (BC) model learns to act from those pseudo-labeled videos.
Zero-Shot Behavior from the Foundation Model
- The team chose Minecraft because it is widely played, so it has abundant free video, and it is open-ended, which resembles real-world computer use.
- The agent works at 20Hz using the native mouse and keyboard, unlike prior work that simplified the action space.
- Trained on 70,000 hours of IDM-labeled video, the model chops trees, crafts planks and a crafting table (about 1,000 actions for a proficient human), swims, hunts and eats animals, and performs "pillar jumping."
Fine-Tuning with Behavioral Cloning
- Contractors built houses in new Minecraft worlds over 10 minutes, and the model was fine-tuned on this dataset.
- Fine-tuning markedly improved reliability on early-game skills and pushed the agent further up the tech tree, to wooden and stone tools.
- Occasionally the agent built rudimentary shelters and searched villages, including raiding chests.
Data Scaling Results
- The authors trained foundation models on 1 to 70,000 hours of data. Models under 2,000 hours used ground-truth contractor labels, while larger ones used IDM-labeled internet data.
- Crafting ability generally improved with more data, and stone tool crafting emerged only at the largest scale.
- The central hypothesis is that using contractor data to train an IDM is far more effective than training a BC model directly on the small contractor dataset.
Fine-Tuning with Reinforcement Learning
- Random exploration is inefficient for hard tasks, and a human-like VPT model should be a better prior than random actions.
- The agent was rewarded for each subtask on the way to a diamond pickaxe.
- An RL policy trained from scratch barely earned any reward, never learning to collect logs and rarely collecting sticks.
- The VPT-initialized policy crafted diamond pickaxes in 2.5% of 10-minute episodes and matched human-level success on the intermediate items. The authors describe this as the first demonstration of a computer agent crafting diamond tools in Minecraft.
Conclusion
VPT offers a path to learning behavioral priors from the vast number of internet videos, which goes beyond the representational priors that generative video or contrastive methods provide. The authors believe the approach can extend to other domains with generic interfaces, such as computer use. They are open-sourcing the contractor data, environment, model code, and weights, and partnered with the MineRL NeurIPS competition, which lets contestants fine-tune the models.
Related reading
Continue with another curated summary.