Mind the Prompt: Self-adaptive Generation of Task Plan Explanations via LLMs
Gricel V\'azquez, Alexandros Evangelidis, Sepeedeh Shahbeigi, Radu Calinescu, Simos Gerasimou

TL;DR
This paper presents COMPASS, a self-adaptive system that models user cognition as a POMDP to automate and improve prompt engineering for LLM-generated explanations in complex systems.
Contribution
It introduces a novel probabilistic decision-making framework that models user cognitive states to automate prompt refinement in LLM explanations.
Findings
COMPASS effectively models user cognition and refines prompts adaptively.
The approach improves explanation quality in cyber-physical system case studies.
Quantitative and qualitative evaluations confirm the feasibility of the method.
Abstract
Integrating Large Language Models (LLMs) into complex software systems enables the generation of human-understandable explanations of opaque AI processes, such as automated task planning. However, the quality and reliability of these explanations heavily depend on effective prompt engineering. The lack of a systematic understanding of how diverse stakeholder groups formulate and refine prompts hinders the development of tools that can automate this process. We introduce COMPASS (COgnitive Modelling for Prompt Automated SynthesiS), a proof-of-concept self-adaptive approach that formalises prompt engineering as a cognitive and probabilistic decision-making process. COMPASS models unobservable users' latent cognitive states, such as attention and comprehension, uncertainty, and observable interaction cues as a POMDP, whose synthesised policy enables adaptive generation of explanations and…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
