Introduction
Modern intelligent personal agents like Siri or Alexa are often limited by their pre-programmed capabilities. When a user issues a command outside of these predefined parameters, the agent typically fails. In contrast, human assistants learn through instruction, acquiring new skills by following step-by-step explanations. Researchers at Carnegie Mellon University and the Allen Institute for AI have developed the Learning by Instruction Agent (LIA) to bridge this gap. LIA is a personal assistant that users can teach new tasks using natural language, allowing it to acquire both declarative knowledge and procedural action sequences through fluid dialogue.
Architecture and Methods
LIA’s ability to learn from instruction rests on two primary components: a semantic parser and a novel lexicon induction algorithm.
CCG Semantic Parser
LIA utilizes a Combinatory Categorial Grammar (CCG) to map natural language inputs into Lisp-like logical forms. These forms are executed by a backend consisting of 45 primitive functions, such as sendEmail or createInstance. This mapping allows the agent to translate human intent into executable code.
Lexicon Induction
The core innovation of LIA is its lexicon induction algorithm. When a user teaches a new command (e.g., "forward to Charlie"), LIA records the sequence of steps and generates a complex logical form. The induction algorithm then "aligns" specific words in the user's command to sub-expressions in the resulting code. For instance, if the code references the contact "Charlie," LIA identifies "Charlie" as a variable. This enables the agent to generalize from a single example, automatically understanding variations like "forward to Alice."
Experimental Setup
The system was evaluated through a user study involving 123 subjects recruited via Amazon Mechanical Turk. Participants interacted with LIA in a custom-built email environment.
The study consisted of a training phase with 13 tasks to familiarize users with LIA’s basic functions, followed by a main task phase involving 12 complex email-related requests. The evaluation focused on the users' ability to successfully teach LIA new commands and reuse them to complete tasks efficiently.
Results and Discussion
The evaluation revealed several key insights into how users interact with instructable agents:
- Efficiency Gains: The use of taught commands resulted in a 39.4% reduction in time required to complete the main tasks. On average, users taught the agent 2.3 new commands.
- Generalization and Recursion: LIA successfully generalized from single instructions. Furthermore, users demonstrated recursive learning, building new commands upon previously taught ones (e.g., using a taught "forward" command to create a "forward to Charlie" shortcut).
- Democratized Automation: There was only a weak correlation between a user's programming experience and the number of commands they taught. This suggests that the natural language interface effectively lowers the barrier to entry for task automation.
- User Perception: Participants generally perceived the agent as "smart," giving it a mean score of 5/7 on a Likert scale, and felt the agent understood their instructions well (5.5/7).
Despite these successes, the parser faced a failure rate of approximately 15.4%, primarily due to linguistic ambiguities in natural language instructions.
Conclusion and Future Work
LIA represents a significant step toward personal agents that can grow and adapt to individual user needs. While currently limited to an email domain and linear action sequences, future work aims to expand LIA’s capabilities to include more complex logic (like loops and conditionals) and broader application domains such as calendars and social networks. Additionally, the potential for collaborative learning—where a community of users contributes to a global agent's knowledge—presents an intriguing path for future research.
Summary updated