How Voyager Learns to Explore Minecraft One Skill at a Time
Terminator Minecraft By What The Future Newsroom · June 2, 2023 · 3 min read

How Voyager Learns to Explore Minecraft One Skill at a Time

Voyager is an experimental Minecraft agent that uses GPT-4 to turn observations into goals and write code for actions. It saves learned abilities in a skill library, then uses GPT-3.5 to select relevant skills as it explores.

A Minecraft agent called Voyager learns by acting, making plans and keeping useful abilities for later. The experiment offers researchers a way to study how AI might learn from experience in an environment where it must do things, not just answer questions.

“Voyager explores autonomous goal-setting and action, with possible future real-world applications, though the story describes a controlled research experiment.”Why it scores Terminator

Why test an AI in Minecraft?

Voyager is an embodied agent: a system designed to move and act toward goals in a simulated or real environment. That makes its challenge different from a chatbot’s. A future household robot, for example, would need to navigate its surroundings and carry out tasks.

Minecraft offers a useful test setting because its world is open-ended, but its rules and physics are relatively simple. There are many possible things to try, while the environment remains easier to reason about than the real world. Purpose-built simulators can also help researchers, though they bring their own limitations.

The MineDojo framework helps make Minecraft usable for AI experiments. It brings together material such as gameplay videos, transcripts, wiki articles and Reddit posts from r/minecraft. Models can be created or fine-tuned using that material, then assessed on tasks such as building a fence around a llama or finding and mining a diamond.

From a problem to a plan

Voyager does not begin as an expert player. As it encounters situations, it consults GPT-4 about what a capable player might do. The system then turns that broad advice into a sequence of concrete actions it can attempt in the game.

When night brings skeletons, for instance, the agent reasons that it should make a sword, equip it and fight while avoiding damage. That goal becomes smaller steps: gather stone and wood, craft the sword, put it to use and confront the enemy.

This process lets Voyager connect a general idea with actions available in the game. Instead of receiving a fixed script for every challenge, it can use GPT-4 to generate code as it goes, learning through trial and error.

Skills carry over to later tasks

After Voyager completes a task, it adds the resulting ability to a skill library. The library gives it a way to reuse what it has learned. If it later needs to go deep into a cave to find iron ore, it can draw on a previously learned fighting skill instead of starting that lesson over.

Voyager still uses a GPT model when it acts on a new task, but GPT-3.5 selects which stored skills are relevant to the situation. That matching step helps the agent apply the right experience. It should fight a skeleton, for example, rather than try to mine it as if it were ore.

The system was reported to outperform Auto-GPT, the other model in the comparison that came close. Voyager found more items, learned more skills and explored more of the world. Its specialization for Minecraft appears to help it handle a deeper environment than a more general agent.

What the experiment suggests

A comparison between GPT-4 and GPT-3.5 also showed a difference in their ability to generate useful code. When GPT-3.5 replaced GPT-4 in a test, Voyager reached a limit early and did not improve. Conversational fluency alone does not tell the whole story: writing code for actions is a harder test of a model’s capabilities.

The research is not aimed at replacing Minecraft players. Its broader question is whether relatively simple AI systems can improve by using their past experiences to guide future actions. A robot working in a home, hospital or office would need to learn from what happens and apply those lessons to later tasks.

Voyager’s Minecraft world is a controlled place to explore that idea. Its loop of observing a challenge, asking for guidance, carrying out steps and saving skills shows one approach to building agents that can keep learning as they act.

Artificial intelligenceMinecraftRobotics
← Back to the wire

Read next