agent-readings / Planning and Skill Acquisition
Voyager
A standard library for embodied agents
---
The one sentence
Voyager makes agent competence compound by saving successful behaviors as executable code skills and retrieving them for harder tasks.
The paper is the clearest example of agent skill acquisition as standard-library construction: the agent writes executable functions, tests them in the environment, stores successful ones, and later composes them.
---
Core idea
Let GPT-4 propose a reachable exploration task, generate JavaScript control code, execute it in Minecraft, refine the code from environment and interpreter...
Let GPT-4 propose a reachable exploration task, generate JavaScript control code, execute it in Minecraft, refine the code from environment and interpreter feedback, verify success, then commit the resulting function to a reusable skill library.
Modelreason
Runtimeact
Worldobserve
01
Start with no handcrafted task sequence beyond the high-level objective of discovering diverse things.
02
Use the automatic curriculum to select tasks that are challenging but reachable from the current state.
03
Retrieve related skills and generate executable code over control primitive APIs.
04
Execute the code and collect Minecraft observations plus interpreter errors.
---
Executable shape
The mechanism should fit on one screen.
```python
while budget_remaining:
task = curriculum.propose(state, completed_tasks, failed_tasks)
query = gpt35.summarize_task_and_feedback(task, state)
skills = skill_library.top_k(query, k=5)
code = None
for round in range(4):
code = gpt4.generate_code(task, state, skills, code, feedback, errors)
feedback, errors = minecraft.execute(code)
verdict = gpt4.self_verify(task, state, feedback)
if verdict.success:
description = gpt35.describe_skill(code)
skill_library.add(description, code)
completed_tasks.append(task)
break
else:
failed_tasks.append(task)
```
---