TL;DR
This paper introduces a novel framework that combines the broad, albeit noisy, knowledge of Large Language Models (LLMs) with the interpretability and structured learning of cognitive architectures. By bootstrapping a cognitive agent with LLM-generated knowledge, they demonstrate more efficient learning and better generalization for embodied tasks in a simulated kitchen environment.
What Problem Does This Paper Address?
The paper tackles a fundamental challenge in artificial intelligence: creating intelligent agents that can understand and interact with the real world. Traditional cognitive architectures, while interpretable and capable of structured learning, require extensive manual effort to define their knowledge bases and behaviors. On the other hand, LLMs possess vast amounts of general world knowledge but are often opaque, difficult to fine-tune for specific tasks, and prone to errors like hallucination. The authors aim to bridge this gap by leveraging LLMs as a source of knowledge to bootstrap cognitive architectures, thereby reducing manual effort while retaining interpretability and enabling more robust learning.
Methods
The core of the proposed method is a bootstrapping process that combines LLM-driven knowledge generation with a cognitive architecture. The framework consists of:
- Declarative Memory: Comprising "World Knowledge" (general facts) and "Environment Knowledge" (agent's current observations).
- Procedural Memory: Represented by production rules, which dictate agent behavior based on conditions.
- Task Stack: Manages the agent's goals and subtasks.
When the agent encounters a situation where it lacks a suitable production rule, it queries an LLM. This query includes the current task, state, and available actions. The LLM then suggests an action and, crucially, a corresponding production rule. This rule is then generated in two steps: first, an English description is created, and then it's translated into executable Python code. This modular approach allows for easier debugging and updates. The system also incorporates a "critic" LLM to refine generated rules, addressing issues like over-constraining or over-generalization. Production rules are reinforced through a utility update mechanism, rewarding actions that lead to task completion.
Datasets
The experiments were conducted in the AI2THOR simulator, using kitchen environments. The tasks evaluated were:
find a/an <object>slice a/an <object>clear the countertops
The paper does not introduce new datasets but rather uses existing simulated environments for evaluation.
Key Insights and Ideas
- LLMs as Knowledge Seeds for Cognitive Architectures: LLMs can serve as a powerful, albeit noisy, source of common-sense knowledge to kickstart the learning process of interpretable cognitive agents, significantly reducing manual engineering.
- Modularity for Robustness and Interpretability: Separating knowledge generation (LLM) from knowledge application (cognitive architecture) and breaking down production rule generation into English description and code translation enhances modularity, interpretability, and debuggability.
- Bootstrapping for Efficiency and Generalization: The proposed bootstrapping approach allows agents to learn complex tasks with significantly fewer LLM queries during testing compared to direct LLM-based action selection, and the learned knowledge generalizes to new environments.
- Critic LLM for Rule Refinement: Employing a critic LLM to summarize task end conditions and suggest modifications to production rules is effective in addressing over-generalization and over-constraining issues.
- Production Rule Utility for Learning: Reinforcing production rules based on their contribution to task completion (utility) provides a mechanism for the agent to learn and prioritize effective behaviors.
Key Results
- Efficiency: The bootstrapped agent required significantly fewer tokens (around $40) for training compared to the action-only baseline, which incurred costs around $120 for testing alone.
- Success Rate: The bootstrapped agent achieved a 15/15 success rate on all tested tasks, while the action-only baseline had one failure (confusing "mug" with "cup").
- Generalization: The bootstrapped agent demonstrated the ability to transfer learned knowledge to new objects and environments with minimal additional LLM queries.
- Task Completion: The agent successfully completed tasks like "slice a/an <object>" and "clear the countertops," showcasing its ability to handle multi-step processes and repetitive subtasks.
- Qualitative Differences: The bootstrapped agent exhibited more structured behavior, such as consistently moving objects to countertops before slicing, compared to the action-only agent.
Limitations and Future Work
- Sim-to-Real Gap: The current work is limited to a simulated environment. Applying this to physical robots will require addressing the sim-to-real gap.
- Expressiveness of Skills: The English description generation step relies on skills being articulable. This approach may be challenging for skills that are difficult to express in language (e.g., sculpting).
- Human Values and Personalization: Future work could explore how the interpretable nature of production rules can facilitate personalization and incorporate human values and preferences into agent behavior.
- Production Rule Updates: Further research can investigate more sophisticated mechanisms for updating production rule preconditions and resolving conflicts between rules.
- Human-AI Collaboration: The framework's interpretability could be leveraged to enhance human-AI collaboration tasks.
Summary updated