TL;DR
This paper introduces a hybrid pipeline that combines the creative generalization of Large Language Models (LLMs) with the grounded precision of a knowledge network called FOON. By generating multiple candidate task trees from an LLM and refining them through a structured knowledge graph, the system produces robotic cooking plans that are significantly more accurate and cost-effective than using either method alone.
What Problem Does This Paper Address?
Robotic cooking is a "long-horizon" task, meaning it requires a complex sequence of actions where each step depends on the specific state of ingredients (e.g., you can't "dice" a "whole" onion if it hasn't been "peeled" first).
Current approaches face a trade-off:
- Knowledge Networks (like FOON): These are manually curated graphs of cooking actions. They are highly accurate but "brittle"—if a recipe isn't in the database, the robot is stuck.
- LLMs (like GPT-3): These have vast general knowledge and can generate recipes for almost anything. However, they are prone to "hallucinations," generating physically impossible steps or inefficient plans that don't account for a robot's specific hardware limitations.
The authors aim to bridge this gap, creating a system that can handle any recipe request while ensuring the resulting "task tree" (the robot's step-by-step instruction manual) is executable and optimized.
Methods
The authors propose a multi-step pipeline:
- Recipe Generation: ChatGPT takes a user's meal preference (e.g., "vegan noodles") and generates a natural language recipe.
- Structured Translation: A fine-tuned GPT-3 model converts these text instructions into Functional Units. Each unit specifies input objects, their states, the motion required, and the resulting output objects.
- The "Mini-FOON": To mitigate LLM errors, the system generates five different task trees for the same recipe and merges them into a small graph. This allows the system to cross-reference steps and filter out syntax errors or invalid state transitions.
- The "Super-FOON": This mini-graph is then integrated with the original FOON knowledge base. This "Super-FOON" acts as a massive search space containing both established human-curated knowledge and new LLM-generated paths.
- Weighted Retrieval: Finally, the system searches the Super-FOON for the most efficient path. It assigns "costs" to actions based on robot capabilities (e.g., a one-handed robot might find "pouring" cheaper/easier than "scooping").
Datasets
- FOON (Functional Object-Oriented Network): A knowledge graph containing 140 manually annotated recipes used as the foundational "truth" for valid actions.
- Fine-tuning Dataset: The authors created a custom dataset of 180 recipe examples to train GPT-3 to output the specific task tree structure.
- Evaluation Set: 60 randomly selected recipes from the Recipe1M+ dataset, categorized into Salads, Drinks, and Muffins to test generalization.
Key Insights and Ideas
- LLMs as a Generalization Bridge: The LLM acts as a "creative" layer that fills in the gaps of the knowledge network, while the network acts as a "sanity check" for the LLM.
- Redundancy as Error Correction: By generating five versions of a task tree and merging them, the system can bypass a "hallucinated" step in one tree by finding a valid alternative in another.
- Robot-Centric Optimization: Efficiency isn't just about the number of steps; it's about the cost of those steps to a specific robot. The "Super-FOON" allows the robot to choose a path that plays to its mechanical strengths (e.g., choosing a pouring-heavy recipe over a scooping-heavy one).
Key Results
- Accuracy Boost: The hybrid approach outperformed previous search-based methods across the board. The most dramatic improvement was in the "Muffin" category, where accuracy jumped by 45% because the LLM could handle recipes that were entirely missing from the original FOON database.
- Cost Efficiency: By searching the Super-FOON, the system found more efficient execution plans in 40% of cases compared to the initial LLM output.
- Model Learning: The fine-tuned GPT-3 reached a baseline accuracy of 67% in generating valid task tree syntax after being trained on 180 recipes, showing that LLMs can be effectively taught to speak in specialized robotic data structures.
Limitations and Future Work
- Latency: The pipeline is currently slow, requiring five separate API calls to the LLM, each taking about 5 seconds. The authors suggest exploring locally hosted LLMs to speed this up.
- Label Mapping: Sometimes the LLM uses a synonym (e.g., "garnish") that isn't in the FOON vocabulary, making it hard to verify the action against the knowledge graph.
- Context Window: GPT-3’s token limit makes it difficult to process very long, complex recipes in a single go.
- Vision Integration: The authors plan to incorporate GPT-4 to allow the system to process visual inputs, such as a user uploading a photo of their ingredients to get a custom plan.
Summary updated