Abstract
AI systems make decisions in physical environments through primitive actions or affordances that are accessed via API calls. While deploying AI agents in the real world involves numerous high-level actions, existing embodied simulators offer a limited set of domain-salient APIs. This naturally brings up the questions: how many primitive actions (APIs) are needed for a versatile embodied agent, and what should they look like? We explore this via a thought experiment: assuming that wikiHow tutorials cover a wide variety of human-written tasks, what is the space of APIs needed to cover these instructions? We propose a framework to iteratively induce new APIs by grounding wikiHow instruction to situated agent policies. Inspired by recent successes in large language models (LLMs) for embodied planning, we propose a few-shot prompting to steer GPT-4 to generate Pythonic programs as agent policies and bootstrap a universe of APIs by 1) reusing a seed set of APIs; and then 2) fabricate new API calls when necessary. On a small fraction (0.5%) of tutorials, we induce an action space of 300+ APIs necessary for capturing the rich variety of tasks in the physical world. A detailed automatic and human analysis reveals that the proposed pipeline enables effective reuse and creation of APIs, while a manual review revealed that existing simulators support only a small subset of the induced APIs (9 of the top 50 frequent APIs), motivating the development of action-rich embodied environments.
Introduction: The Complexity Gap
How many distinct "primitive actions" does a robot need to actually be useful in a human home? If you look at current AI simulators like ALFRED or VirtualHome, the answer seems to be "about 12 to 15." But anyone who has tried to follow a wikiHow tutorial to "Remove Urine Odors and Stains" knows that the real world is far more complex than just Pickup, Put, and Open commands.
In their paper "WORLDAPIS: The World Is Worth How Many APIs?", researchers from Johns Hopkins University conduct a fascinating thought experiment to bridge the gap between the tiny, handcrafted action spaces of today’s simulators and the vast complexity of the physical world.
The Top-Down Approach
Most research in "embodied AI" (AI that interacts with a physical environment) happens in simulators. To keep these simulators manageable, researchers usually hand-code a small set of actions (APIs). The problem is that this "bottom-up" approach creates a circular constraint: we only give robots tasks that fit our limited APIs, so we never develop the APIs needed for truly diverse real-world tasks.
This paper flips the script with a top-down approach, starting with the messy, diverse instructions humans write for each other and inducing the necessary "primitive actions" from them using a Large Language Model (LLM) pipeline:
- Seed Set: The process starts with a small "seed" of 19 human-annotated wikiHow tutorials converted into Pythonic programs.
- Iterative Induction: The system samples new wikiHow tutorials and prompts GPT-4 to write a Python program to execute them.
- API Fabrication: If the robot needs an action that doesn't exist in the current pool (like
WhiskorSpread), GPT-4 is encouraged to "hallucinate" a new, semantically consistent API. - Verification & Expansion: Generated programs are checked for syntactic correctness. If they pass, the new APIs are added to the "WorldAPI" pool, and the program becomes a demonstration for the next round.
Key Insights and the Simulation Gap
The researchers processed a fraction (0.5%) of wikiHow's "Home & Garden" category and found that the size of the API pool doesn't grow infinitely. After processing about 600 tutorials, the rate of new API discovery slows down significantly. This suggests that the "lower bound" for a versatile household robot is roughly 300–400 primitive actions.
A critical finding is the "Simulation Gap." The authors compared their induced APIs to those available in popular simulators like ALFRED and VirtualHome. They found that only 9 of the top 50 most frequent APIs in their study were supported by existing simulators. We are essentially training robots in "impoverished" worlds that lack the granularity required for real-world affordances (e.g., Scrub vs. Wipe).
Key Results
- API Diversity: From just 0.5% of wikiHow tutorials, the pipeline induced 300+ unique APIs.
- Faithfulness: Using a "Base + Use Case + Description" prompting strategy, human evaluators found the generated programs were 84% faithful to the original instructions.
- Redundancy Reduction: Providing the LLM with examples of how existing APIs are used significantly reduced the creation of redundant synonyms (e.g., preventing the LLM from creating
CleanifWashalready exists).
Conclusion
As the authors note, this is a thought experiment. Because there is no underlying physics engine for "WorldAPIs," they cannot yet execute these programs to see if they work. However, the study serves as a roadmap, showing exactly how much more complex our virtual training grounds need to become before they truly resemble the world we live in. The next major challenge for the field is building "action-rich" simulators that can actually support these 300+ APIs.
Summary updated