[Paper Review] Improving Knowledge Extraction from LLMs for Task Learning through Agent Analysis
This paper proposes STARS, a cognitive-agent framework that enhances knowledge extraction from large language models (LLMs) for embodied task learning by enabling the agent to search, analyze, repair, and select LLM responses. By proactively evaluating and refining responses for viability—ensuring they are interpretable, situated, embodiment-aware, and preference-aligned—STARS achieves 77–94% task completion in one-shot learning without human oversight, rising to 100% with minimal user confirmation of high-quality responses.
Large language models (LLMs) offer significant promise as a knowledge source for task learning. Prompt engineering has been shown to be effective for eliciting knowledge from an LLM, but alone it is insufficient for acquiring relevant, situationally grounded knowledge for an embodied agent learning novel tasks. We describe a cognitive-agent approach, STARS, that extends and complements prompt engineering, mitigating its limitations and thus enabling an agent to acquire new task knowledge matched to its native language capabilities, embodiment, environment, and user preferences. The STARS approach is to increase the response space of LLMs and deploy general strategies, embedded within the autonomous agent, to evaluate, repair, and select among candidate responses produced by the LLM. We describe the approach and experiments that show how an agent, by retrieving and evaluating a breadth of responses from the LLM, can achieve 77-94% task completion in one-shot learning without user oversight. The approach achieves 100% task completion when human oversight (such as an indication of preference) is provided. Further, the type of oversight largely shifts from explicit, natural language instruction to simple confirmation/discomfirmation of high-quality responses that have been vetted by the agent before presentation to a user.
Motivation & Objective
- Address the limitations of prompt engineering in extracting viable, situationally grounded task knowledge from LLMs for embodied agents.
- Overcome issues where LLM responses fail to align with agent embodiment, environment perception, or user preferences.
- Reduce reliance on extensive human feedback by enabling the agent to autonomously evaluate and refine LLM responses.
- Enable one-shot task learning where agents achieve full task completion after a single interaction with the LLM, without further human input.
- Minimize user oversight to simple preference confirmation rather than detailed instruction or correction.
Proposed method
- Deploy a multi-step agent-based framework, STARS, that extends prompt engineering by generating a diverse response space from the LLM using temperature variation.
- Implement a response analysis module that checks for viability issues: non-interpretability, ungrounded references, embodiment mismatches, and preference misalignment.
- Apply targeted re-prompting to repair problematic responses, such as rephrasing for grammar or grounding object references in the agent’s perceptual context.
- Use the LLM to select a preferred response from the refined candidates, ensuring alignment with user preferences.
- Integrate the selected response into the agent’s task learning pipeline, enabling one-shot learning via interactive task learning (ITL).
- Evaluate STARS in a simulated robotic environment across three tasks, comparing performance and oversight requirements against template-based prompting (TBP).
Experimental results
Research questions
- RQ1Can an autonomous agent improve task completion rates by analyzing and refining LLM responses beyond standard prompt engineering?
- RQ2To what extent can agent-based response evaluation and repair reduce the need for human oversight in LLM-driven task learning?
- RQ3How does the STARS framework perform in one-shot learning scenarios without additional human input after initial instruction?
- RQ4What is the impact of agent-internal evaluation on the quality and viability of LLM-generated task knowledge?
- RQ5How does the nature of user oversight shift when the agent pre-vetoes responses, compared to traditional prompting?
Key findings
- STARS achieves 77–94% task completion in one-shot learning without any human oversight, significantly outperforming template-based prompting (TBP), which achieves only 35–66% under the same conditions.
- With human oversight, STARS reduces the total number of user words required by 52–68% compared to TBP, shifting oversight from detailed instruction to simple confirmation or disconfirmation of vetted responses.
- The agent successfully identifies and selects viable, embodiment-aware, and preference-aligned responses in 100% of cases when provided with user feedback, achieving 100% task completion.
- Task completion variation across runs is minimal (e.g., 75–80% for 'tidy kitchen'), indicating high consistency due to fixed LLM probabilities and deterministic prompt templates.
- The primary source of variation in task completion is contextual ambiguity (e.g., whether a mug is dirty), not response quality, highlighting the importance of environmental context in grounding LLM outputs.
- The STARS framework enables full one-shot task learning: once a task is learned, the agent can reproduce it perfectly in future without re-accessing the LLM or requiring further human input.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.