TL;DR
Voyager is an agent that plays Minecraft by writing JavaScript-style control programs instead of pressing keys. A GPT-4 model proposes the next goal, writes code for it, runs the code, reads the game's feedback and any error messages, and rewrites the code until a second GPT-4 "critic" confirms the goal is done. Working programs are stored in a growing skill library and reused later. The paper reports 3.3 times more unique items, 2.3 times more distance travelled, and tech-tree milestones up to 15.3 times faster than earlier LLM agents, and it needs no gradient training.
Builds on: Program Synthesis, Chain-of-Thought Prompting, Curriculum Learning, Exploration–Exploitation Tradeoff · Leads to: LLM agents that accumulate reusable code or tools across tasks.
Why it mattered
The classical approaches, as the paper frames them, were reinforcement learning and imitation learning on primitive actions, which the paper argues is hard for systematic exploration and long, open-ended tasks like those in Minecraft. Voyager showed that a frozen, prompted large language model can run a lifelong learning loop in an open game: it picks its own goals, learns new skills, keeps them, and reuses them in a new world. The paper shows the agent solving unseen tasks in a fresh world by calling skills it learned earlier, which most baselines did not manage within 50 iterations.
The design rests on three choices: code is the action space, a library of verified programs is the memory, and a model-written self-check replaces a hand-coded success test. The paper's ablations test each one.
The problem
Minecraft has no fixed ending and a deep tech tree. The paper's argument is that a useful lifelong learner needs three abilities a human player also has: to propose tasks that match its current skill and surroundings, to refine skills from feedback and keep the ones that work, and to keep exploring.
Earlier LLM agents did not meet these needs. ReAct (ReAct) and Reflexion made little progress in the paper's open-ended setting, and AutoGPT lacks a skill library, self-verification and an automatic curriculum, so it cannot accumulate skills or choose its own next goal. Reinforcement learning agents could explore, but in the paper's framing they operate on primitive actions, which makes long, compositional behaviour hard to learn and hard to interpret.
Voyager's bet is that GPT-4 already contains enough world knowledge to propose sensible goals and to write programs for them, if the loop around it supplies feedback, memory and a check on success.
How it works
Here is one pass of the loop on a single goal. Numbers in the text are the paper's; the tiny example is illustrative.
flowchart TD
A[Automatic curriculum proposes a task] --> B[Retrieve top-5 skills from library]
B --> C[GPT-4 writes a program]
C --> D[Run program in Minecraft]
D --> E[Environment feedback and execution errors]
E --> F[Self-verification: did the task succeed?]
F -->|no, under 4 rounds| C
F -->|no, stuck after 4 rounds| A
F -->|yes| G[Add program to skill library]
G --> A
-
The curriculum proposes a task. GPT-4 receives the agent's state (inventory, nearby blocks and creatures, biome, health, hunger, position), a list of tasks already done and failed, and the overarching goal "discover as many diverse things as possible". It answers with the next task. Toy version: the agent has wood and a crafting table, so the curriculum suggests "craft a wooden pickaxe", not "craft a diamond pickaxe", which would need resources the agent does not have.
-
Retrieve relevant skills. A GPT-3.5 model first writes a short suggestion for solving the task. That suggestion, plus the environment feedback, is embedded and used to query a vector database of skills. The top five matches are added to the prompt. Toy version: "craft a wooden pickaxe" retrieves a stored program for "craft a wooden axe", because the two share steps.
-
GPT-4 writes a program. The prompt holds control primitive APIs (functions such as moving, mining and crafting), the retrieved skills, the agent state, and an instruction to reason before coding, which is chain-of-thought prompting. The output is executable code. Toy version: the program is a short function that checks for a crafting table, crafts planks and sticks, and then crafts the pickaxe.
-
Run the program and collect feedback. The code runs in the game through the Mineflayer API. Two kinds of feedback come back. Environment feedback reports progress, for example "I cannot make an iron chestplate because I need 7 more iron ingots". Execution errors come from the interpreter when the code is invalid or calls a function that does not exist. Toy version: the run stops with "I need 2 more planks", and the feedback is written into the next prompt.
-
Self-verify. A second GPT-4 instance acts as a critic. It sees the agent's state and the task, and says whether the task is complete. If not, it suggests how to finish it. The paper calls this more comprehensive than reflection alone, because it checks success and critiques mistakes. Toy version: the critic sees the pickaxe is in the inventory and says yes.
-
Commit or retry. If verification passes, the program is saved to the skill library under the embedding of its description, and the curriculum is asked for the next task. If the agent is still stuck after four rounds of code generation, the curriculum moves on to another task. Toy version: the pickaxe passes on the third round, so it is stored, and the next task is "mine stone".
-
Reuse. Later tasks retrieve the stored programs, so each new skill can call earlier ones. This is where the compounding comes from: "craft a stone pickaxe" can reuse the wooden pickaxe program and add the stone steps.
The math
The paper states most of its method in prose and prompts rather than equations, so the formal content here is light. The clearest formal pieces are the loop and the retrieval rule.
The refinement loop. Let be the program on round , the feedback from running it (environment feedback and any execution error), and the critic's verdict. The loop can be written as
The critic is a separate call that produces from the state and the task. The four-round limit is the paper's rule for when to give up on a task and ask the curriculum for another one.
Retrieval. Each stored skill has a key , the embedding of its description. The query is the embedding of the suggested plan plus feedback. The agent retrieves the five skills with the highest cosine similarity:
Toy check: if the query vector and a stored key point the same way, the cosine is 1; if they are at a right angle, it is 0. Retrieval returns the five keys with the largest values.
The reported speed-ups. The tech-tree speed-ups are ratios of prompting iterations. For the wooden tool, Voyager needs 6 iterations on average and AutoGPT needs 92, so . For the stone tool, . For the iron tool, . These are averages over three trials, so they are rough.
Results
Exploration. Within 160 prompting iterations Voyager discovers 63 unique items, which the paper reports as 3.3 times as many novel items as its counterparts. AutoGPT lags considerably on new items, and ReAct and Reflexion make little progress.
Tech tree. Table 1 gives prompting iterations to unlock each tier, averaged over three runs.
| Method | Wooden | Stone | Iron | Diamond |
|---|---|---|---|---|
| AutoGPT | 92 ± 72 | 94 ± 72 | 135 ± 103 | not reached |
| Voyager without skill library | 7 ± 2 | 9 ± 4 | 29 ± 11 | not reached |
| Voyager | 6 ± 2 | 11 ± 2 | 21 ± 7 | 102 (1 of 3 runs) |
ReAct and Reflexion unlock no tier. Voyager is the only method to reach the diamond tier, and it did so in one of three runs.
Zero-shot generalization. In a fresh world with an empty inventory, Voyager solves all four unseen tasks in every run: diamond pickaxe in 19 ± 3 iterations, golden sword in 18 ± 7, lava bucket in 21 ± 5, compass in 18 ± 2. The ablated Voyager without the skill library also solves all four, but it reaches the diamond pickaxe in only two of three runs. AutoGPT with the skill library solves three of the four in one or two of three runs, and the other baselines fail within 50 iterations.
Ablations. Removing the automatic curriculum and using a random one cuts the item count by 93%. Removing self-verification cuts it by 73%. GPT-4 for code generation yields 5.7 times more unique items than GPT-3.5. Each component helps, and the paper singles out self-verification as the most important feedback type.
Limits. The paper lists three. Cost: GPT-4 is about 15 times more expensive than GPT-3.5, and the paper argues the code quality is worth it. Inaccuracies: the agent sometimes gets stuck, and the critic sometimes misjudges success. Hallucinations: the curriculum sometimes proposes items that do not exist in the game, such as a copper sword, and the code sometimes uses cobblestone as fuel, which the game does not allow. The paper also notes that a human critic helps with spatial details of 3D builds that Voyager cannot perceive directly.
Reading guide
- Section 1, Introduction: needs Reinforcement Learning for the contrast the paper draws. The three abilities of a lifelong learner, in the introduction's second paragraph, are the paper's thesis.
- Section 2.1, Automatic curriculum: needs Curriculum Learning and Exploration–Exploitation Tradeoff. The curriculum is prompted to favour novelty, which is the exploration side of that trade-off.
- Section 2.2, Skill library: needs In-Context Learning (the retrieved skills are examples in the prompt) and Cosine Similarity for the retrieval step.
- Section 2.3, Iterative prompting: needs Program Synthesis and Chain-of-Thought Prompting. Figures 5 and 6 show the feedback and critic prompts; read them before the text.
- Section 3, Experiments: the setup in 3.1 names the GPT-4 and GPT-3.5 versions and the temperatures. Figure 1 and Tables 1 and 2 are the main results.
- Section 3.4, Ablations: the four bullet findings are the paper's main claims about which parts matter.
- Section 4, Limitations: short; read it in full.
Check yourself
QuestionWhat are the three components of Voyager, and which of them stores knowledge between tasks?Show answer
The three components are the automatic curriculum (which proposes the next task), the skill library (which stores verified programs and retrieves them later), and the iterative prompting mechanism (which refines a program using feedback, errors and a critic). The skill library is the component that stores knowledge across tasks.
QuestionIn Table 1, AutoGPT needs 92 prompting iterations for the wooden tool and Voyager needs 6. Roughly what ratio does this give, and does it match the paper's headline?Show answer
92 / 6 is about 15.3, which matches the paper's claim that Voyager unlocks the wooden level 15.3 times faster. The averages are over three runs, and AutoGPT's standard deviation is 72, so the ratio is a rough summary.
QuestionWhy does the iterative prompting mechanism include a separate self-verification step instead of relying only on the environment feedback?Show answer
Environment feedback reports progress but does not say whether the task was finished in the sense the agent intended, and the paper avoids hand-coding a success checker for each new task. A second GPT-4 instance, acting as a critic, judges success from the state and the task and gives a critique if it fails. The paper also finds this is the most important feedback type, since removing it cuts the item count by 73%.
QuestionA task is still failing after four rounds of code generation. What does the paper's loop do next, and why?Show answer
The agent asks the automatic curriculum for another task rather than rewriting the same program again. The failed task can be reattempted later, once the agent has learned enough skills to make progress on it. This keeps the agent from spending its budget on a task that is out of reach for its current skills.
QuestionThe paper reports the diamond tier was unlocked in only one of three runs. How should a reader weigh the 102 iterations in Table 1?Show answer
The 102 figure is from one successful run out of three, so it is a single observation rather than an average over runs. It shows the diamond tier is reachable, but the paper's own table marks it as 1 of 3, and a reader should not treat 102 as a stable estimate.
Sources
- Wang et al., Voyager: An Open-Ended Embodied Agent with Large Language Models — arXiv:2305.16291
- OpenAI, GPT-4 Technical Report — arXiv:2303.08774