Mind the Prompt: Self-adaptive Generation of Task Plan Explanations via LLMs
This paper introduces COMPASS, a self-adaptive framework that models user cognitive states and interaction cues as a POMDP to automatically synthesize and refine prompts for generating high-quality, human-understandable explanations of AI task planning in complex cyber-physical systems.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
The Big Idea: The "Chameleon" Explainer
Imagine you have a brilliant, super-smart robot (an AI) that builds complex schedules for a construction site or a farm. It knows exactly which robot should move a beam, when a human should fix a pipe, and how to do it all safely. But here's the problem: The robot is a genius, but it speaks "Robot."
If you ask it, "What's the plan?" it might give you a wall of code or a math equation that looks like alien hieroglyphs.
- To a construction expert, this is boring but necessary.
- To a finance manager, they only care about the cost.
- To a new intern, they are completely lost and overwhelmed.
The paper introduces a system called COMPASS. Think of COMPASS as a super-smart translator or a chameleon. It doesn't just translate words; it changes its entire personality, tone, and style depending on who is listening and how tired they are.
How It Works: The Three-Step Dance
The system works in three main stages, like a well-rehearsed dance:
1. The Architect (Turning Words into Plans)
First, a human says something like, "We need to build a roof using three robots and one person."
- The Problem: The AI planner needs very specific, strict instructions (like a recipe) to work. Humans are messy; they don't write perfect recipes.
- The Solution: COMPASS uses a Large Language Model (like a super-advanced version of ChatGPT) to act as a translator. It takes the messy human request and turns it into a perfect, strict "recipe" (a JSON file) that the robot planner can actually read and solve.
2. The Detective (Reading the Room)
Once the plan is made, someone asks for an explanation. This is where COMPASS gets clever. It doesn't just guess; it acts like a detective trying to figure out the user's "mental state."
- Who are you? Are you an expert who wants details, or a beginner who needs a summary?
- How are you feeling? Are you fresh and alert, or are you tired after a long shift? (The system can guess this based on the time of day or how you interact with it).
- What do you like? If you rejected a long explanation yesterday, the system remembers that.
The system uses a mathematical tool called a POMDP (Partially Observable Markov Decision Process).
- The Analogy: Imagine you are playing a game of "Guess the Card," but you can't see the card (the user's true brain state). You only see clues (did they click "yes" or "no"? did they pause?). The POMDP is like a probability calculator that says, "Based on the clues, there's a 70% chance the user is tired and wants a short answer, and a 30% chance they are an expert who wants a long one."
3. The Chameleon (Adapting the Message)
Based on the detective work, COMPASS changes the "prompt" (the instructions) it sends to the AI to generate the explanation.
- Scenario A: The user is a Finance Expert who is tired.
- COMPASS says to the AI: "Give me a short, bullet-point list focusing only on the costs. No technical jargon. Keep it simple."
- Scenario B: The user is a Robotics Engineer who is fresh.
- COMPASS says to the AI: "Give me a detailed, technical paragraph explaining the probability of success and the Pareto front. Use formal language."
If the user rejects the explanation, the system learns: "Oh, they didn't like that. Next time, I'll try a different style." It's a self-improving loop.
Why This Matters: The "One-Size-Fits-All" Trap
Most AI systems today are like a one-size-fits-all t-shirt. They give everyone the same explanation.
- If the shirt is too big, the expert gets bored.
- If the shirt is too small, the beginner gets confused.
- If the shirt is made of wool and you're hot, you get annoyed.
COMPASS is a custom-tailored suit. It measures you, checks your mood, and stitches the explanation specifically for you.
The Results: Did It Work?
The researchers tested this in two real-world scenarios:
- Construction: Robots and humans building an office.
- Agriculture: Robots managing a farm.
They asked 32 people to try it out.
- The Good News: The system successfully turned human requests into robot plans.
- The Better News: When the system adapted the explanation to the user (e.g., making it shorter for a tired person), the users felt they understood the plan much better.
- The Surprise: Even though the system tried to hide the "expert" jargon from non-experts, sometimes the non-experts still felt overwhelmed. This tells the researchers they need to get even better at simplifying things!
The Takeaway
This paper is about empathy in automation. It argues that for AI to be truly helpful, it shouldn't just be smart; it should be socially aware. It needs to know when to talk like a professor, when to talk like a friend, and when to keep it brief because the listener is exhausted.
COMPASS is the first step toward AI that doesn't just answer your question, but answers it in the right way for you.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.