Introduction
As autonomous agents become more integrated into complex, sequential environments like robotics and gaming, the need for Explainable AI (XAI) grows. Traditional XAI often focuses on "episodic" tasks, such as image classification, where a single output is justified by a single input. However, in sequential tasks, current actions are often driven by a history of events and future objectives. This paper introduces automated rationale generation, a technique where an AI agent learns to justify its actions in natural language by mimicking human "think-aloud" reasoning. This approach prioritizes communicative effectiveness and human-like "plausibility" over mathematical transparency, helping non-experts build better mental models of AI behavior.
Methods and Pipeline
The researchers developed an end-to-end pipeline to bridge the gap between an agent's internal state and human-understandable language. This process involves three distinct phases:
- Data Collection: Using a modified version of the game Frogger, the authors employed a "remote think-aloud" protocol. Human players verbalized their reasoning after every move, which was then transcribed into a corpus of state-action-rationale triplets.
- Neural Translation: An encoder-decoder network (using GRU cells and an attention mechanism) was trained to "translate" game states and actions into natural language justifications.
- Model Configurations: Two versions were tested: a Focused-view model (limited to a $7 \times 7$ grid around the agent) and a Complete-view model (observing the entire board) to evaluate the impact of holistic context on rationale quality.
The Frogger Corpus
To support this research, the authors created the Frogger Corpus, a first-of-its-kind dataset for sequential task rationalization. Collected from 60 participants, it contains over 2,000 samples of human actions paired with natural language explanations. This dataset served as the ground truth for training the neural translation models and as a benchmark for evaluating the "human-likeness" of AI-generated rationales.
Key Insights: Rationalization vs. Transparency
A core finding of this work is that a rationale does not need to be a literal 1:1 mapping of an agent's code to be effective. Much like humans "rationalize" subconscious decisions after the fact, AI rationales are successful if they provide a relatable motivation.
Furthermore, the study revealed a strong preference for Strategic Detail. Users favored the Complete-view rationales because they reflected long-term planning and awareness of distant threats, even if the agent's underlying logic was simple. Interestingly, minor linguistic imperfections or "affective" language (e.g., expressing doubt) sometimes increased perceived human-likeness, suggesting that perfect technical accuracy is not always the primary goal for user rapport.
Experimental Results
The generated rationales were evaluated by human participants across four dimensions: confidence, human-likeness, adequate justification, and understandability.
As shown in the results, both generated rationale types significantly outperformed random baselines. In direct comparisons, the Complete-view rationales were overwhelmingly preferred, particularly in building user confidence. When agents failed or behaved unexpectedly, the demand for these detailed, holistic rationales increased, as users relied on them to diagnose the cause of failure.
Limitations and Future Directions
While promising, several hurdles remain for automated rationale generation:
- Interactivity: Current systems provide one-way explanations; future work should allow users to query or contest rationales.
- Continuous Environments: Scaling from discrete games like Frogger to continuous domains like autonomous driving presents significant challenges in identifying natural "break points" for explanation.
- Longitudinal Effects: It remains to be seen if the positive effects on trust and rapport persist over long-term interaction or if users become more critical of AI "rationalizations" over time.
Summary updated