TL;DR
Agentic XAI is a technique where an LLM improves its own explanation over several rounds of self-review. The model gets data or an analysis result, produces an explanation, then asks itself "what could be better?", generates extra charts or calculations, and rewrites the explanation with the new information. The researchers ran 11 rounds of refinement (0-10) on the task of explaining rice yield predictions.
The headline finding: explanation quality improves only for the first 3-4 rounds, then declines. At the peak, the recommendations scored 30-33% higher than at the start. But after that degradation kicks in: explanations get wordier, drift into abstractions and lose practical focus. The authors frame it as an analog of the bias-variance trade-off: early rounds are too simple (they miss details), late rounds are too wordy and partly ungrounded. Both crop scientists (n=12) and 14 LLM judges rated the outputs, and both groups showed the same rise-then-fall pattern (the LLM judges scored everything higher and their decline was milder).
The method runs as a loop: the LLM reviews its previous answer → spots gaps → writes code for additional analysis → gets new data → rewrites the explanation. In this study, after 3-4 cycles early stopping was needed, because further iterations hurt. The study covers one case (rice advice in Japan, one generating model); the authors say the early-stopping principle may generalize, but applying it to other explanations or analyses is an extrapolation.
Want this for your own case? Apply this study to your task: AI adapts its method to what you are working on and writes the prompt.
Method Blueprint
ROUND 0: Baseline explanation
The LLM gets data/a chart → produces a first explanation
ROUNDS 1-10: Refinement loop (each round = a separate request)
STEP 1: Gap analysis
→ "What additional data would improve this explanation?"
→ Generate Python code for calculations/charts
STEP 2: Get the data
→ Run the code, get new charts/statistics
STEP 3: Update the explanation
→ "Rewrite the explanation using the new information"
→ The LLM synthesizes old + new
RULE: Stop after 3-4 rounds (the quality peak in the study)
In a chat context: It works within a single conversation: the history is kept, and each round builds on the previous ones.
Example
Our illustration; the paper's own case was rice cultivation advice.
Task: You're launching a product feature in a subscription service. You look at a month of conversion data: some user segments convert 3x better than others. You need to understand why and what to do about it.
Round 0 — Baseline explanation:
Here is a month of subscription conversion data:
[paste a table or a description of the segments]
Explain why conversion differs and give recommendations.
Round 1 — First improvement:
What additional data or calculations would help improve this explanation?
Suggest what to calculate or which charts to build.
Round 2 — Running the analysis:
[Take the suggested calculations and do them by hand, or ask the LLM for code]
Here are the results:
[paste the new data]
Rewrite the recommendations using this information.
Rounds 3-4 — Repeat the loop:
Repeat steps 1-2 one or two more times.
Stop at round 4: in the study, quality went downhill after that.
Result:
By round 3-4 you'll have an explanation with specific numbers, cause-and-effect links (not just "segment A is better" but "segment A converts better because it comes through channel X, where motivation is higher"), and prioritized actions ("focus on channel X, because ROI there is 2.5x higher"). The answer will be more detailed and sharper than the first version, but it won't drown in filler the way it does after 7-8 rounds.
Why It Works
The LLM's weakness: In its first answer the model relies only on the data in front of it. It doesn't know which additional calculations are needed for the full picture: correlations, subgroups, time patterns. The first answer is often shallow because the model is working with limited context.
The LLM's strength: The model is great at analyzing its own gaps and generating hypotheses when asked. It can suggest "calculate the correlation between X and Y" or "plot the weekly trend" if you prompt it with "what would improve the explanation?". And it's good at synthesizing heterogeneous data into one explanation when it receives it gradually.
How the method uses this: The iterative loop turns a weakness into a strength. Instead of demanding a full analysis up front (the model doesn't know what's needed), we let it reflect: "what did you miss?". The model proposes calculations → gets the data → deepens the explanation. The first 3-4 rounds fill real gaps. But after that the gains run out: the authors link the decline to the finite information available to the agent, and compare it with reward overoptimization seen in other iterative AI systems. The model keeps "improving" where there's nothing left to improve, adds abstractions, filler and ungrounded reasoning, and loses specifics.
Control levers:
- Number of rounds: the study peaked at rounds 3-4 on one complex task; our suggestion is 2-3 for simpler tasks. The paper did not test other tasks
- A "no fluff" instruction: in later rounds add "keep it specific, no generic statements" to reduce verbosity
- Type of additional analysis: steer the model explicitly: "suggest only quantitative metrics" or "only qualitative insights"
- Exit condition: replace the fixed number of rounds with a criterion: "stop when a new round adds no new facts"
Prompt Template
Basic version (3-4 rounds)
Round 0:
Here is the data/analysis result:
{data_or_description}
Explain {what_to_explain} and give recommendations.
Rounds 1-3 (repeat 2-3 times):
What additional data, calculations or charts would help improve this explanation?
Suggest specific questions to ask of the data.
↓ Run the suggested analysis ↓
Here are the results:
{new_data}
Rewrite the recommendations using this information.
Keep it specific, avoid generic phrases.
Placeholders:
- {data_or_description} — a table, a chart, a text description of the situation
- {what_to_explain} — "why the metric went up", "what drives the result", "which factors matter"
- {new_data} — the results of the calculations/charts from the previous step
Important: Stop after 3-4 rounds. Quality drops after that.
Extended version (with an explicit quality metric)
For complex tasks where you need to keep degradation in check:
ROUND {N}:
Current explanation:
{current_explanation}
Rate it on these criteria:
1. Specificity (numbers, examples, no generic statements)
2. Completeness (the important factors are covered)
3. Conciseness (no filler)
Then:
- If completeness < 7/10: suggest additional analysis
- If specificity or conciseness < 6/10: rewrite without additions, tighten it
- If everything is > 7/10: the explanation is done, stop
This adds an exit condition instead of a fixed number of rounds. This is our adaptation, and the paper gives a reason for caution: LLM judges overscored every criterion by 1.4-2.3 points (on a 7-point scale), so fixed score thresholds are unreliable, and the model that wrote the recommendations was the worst at spotting its own quality peak. Better to have a different model, or a person, compare the rounds.
🚀 Quick start — paste this into the chat:
Help me adapt the iterative explanation-refinement technique to my task.
My task: [describe what needs explaining: the data, the situation, the problem]
Use this template:
[paste the basic version of the template above]
Ask clarifying questions so you can fill in the placeholders correctly.
The LLM will ask what exactly to explain, what data is available and what output format you need, because the technique requires a clear definition of "what we're improving". It will take the "analysis → additional data → update" pattern and adapt it to your task.
Limitations
⚠️ Degradation after the peak: In the crop scientists' ratings, the average score fell from 4.91 (round 3) to 2.64 out of 7 by round 10, below the starting 3.68 (about 46% below the peak). LLM judges saw a milder fall (6.21 at round 4 to 5.18). The model starts adding filler, abstractions and economic reasoning not backed by any data, and loses specifics. Don't try to improve forever.
⚠️ Not for quick answers: The method needs 3-4 LLM requests plus running intermediate analysis. If you need a fast answer, use a regular prompt, not iterations.
⚠️ Risk of drifting off the point: In later rounds the model may wander into theory instead of practical recommendations. Explicitly add "stay focused on {specific_task}" to your prompts after round 3.
⚠️ You need access to data between rounds: If the model suggests calculations you can't run (no data, no tools), the loop breaks. It works best when you have access to the raw data or can request additional information.
How They Studied It
The researchers took real farm field data from Japan: 28 fields of one farm, 3 years (66 field-year records), rice yields plus 37 variables covering soil, weather, varieties and farming practices. They trained a Random Forest to predict yield, then SHAP (a technique for explaining ML predictions) produced a chart of "which factors matter". That chart and the list of variables were fed to Claude Sonnet 4 with a request for recommendations for farmers.
Then came the iterative loop: the model looked at its previous answer, suggested "which chart or calculation would improve the explanation", generated Python code for the analysis, got new data and rewrote the recommendations. They repeated this for 11 rounds (0-10). Each round kept the history, so the model remembered all previous data and conclusions.
Then they rated all 11 versions of the recommendations blind. The order was randomized so nobody knew "this is round 0" or "this is round 10". The raters were 12 crop scientists (PhDs in agricultural sciences, current or former members of the Crop Science Society of Japan) and 14 LLMs from 5 companies (ChatGPT 4o and 5.1, Claude Sonnet 4/4.5 and Opus 4.1, Grok 3 and 4.1, DeepSeek, Gemini 2.5 and 3.0). Each scored the outputs from 1 to 7 on 7 criteria: specificity, clarity, conciseness, practicality, contextual relevance, cost consideration and crop science credibility.
The results were striking: both groups of raters drew an inverted U-curve. Quality rose until round 3-4 (+30-33% over the start), then fell; for the crop scientists it ended below the starting point. Why? Early rounds added specifics and depth: round 0 advised "varieties of appropriate maturity" and "shallow flooding during hot periods", while round 3 gave thresholds such as a daily maximum above 25 °C in the first 40 days and a water depth of 3-5 cm. But from round 5 on the model began bloating the explanations: conciseness fell steadily, the advice drifted into abstraction and generalization, and it added economic reasoning even though the dataset had no economic data. The authors compare this with reward overoptimization and distribution shift reported for other iterative AI systems.
The researchers found support for a bias-variance trade-off for explanations: simplicity = missed details (bias), complexity = focus lost in filler (variance). The sweet spot is in the middle.
Adaptations and Extrapolations
🔧 Technique: Explicit quality metric → degradation control
Add a self-assessment to each round so the model can tell when the improvements have run out:
After each update of the explanation:
Rate it on a 1-10 scale:
- Specificity (facts, numbers, no generic statements)
- Completeness (the important factors are covered)
- Conciseness (no filler or repetition)
If specificity or conciseness dropped since the last round → STOP, return the previous version.
If completeness didn't improve → STOP, you've hit the limit.
This turns a fixed early stop (4 rounds) into an adaptive one. Our adaptation, with a caveat from the paper: the generating model was the worst judge of its own quality peak, so let a different model (or several) do this check, or check it yourself.
🔧 Technique: Splitting roles → less verbosity
Use two agents: one improves, the other trims:
ANALYST AGENT:
Suggest additional analysis and rewrite the explanation.
EDITOR AGENT:
Review the updated explanation:
- Remove repetition
- Replace generic phrases with specific facts
- If the new round added no facts → return the previous version
Final output = the editor's version
This fights reward overoptimization: the editor blocks text bloat that brings no new information.
🔧 Combining with Chain-of-Thought: iteratively deepening reasoning
Apply the principle not to explanations but to solving a hard problem:
ROUND 0:
Here is the problem: {description}
Propose a solution with a rationale.
ROUNDS 1-3:
Look at your solution critically.
Which aspects of the problem did you miss?
What data/calculations would help verify the solution?
[You get the additional analysis]
Update the solution. Keep it specific, no filler.
STOP after round 3-4.
Example: Choosing between two career options. Round 0 = a gut-feel choice. Rounds 1-3 = the model asks for data (finances, schedule, growth, risks), runs the numbers and deepens the rationale. By round 3 you get a decision backed by numbers and scenarios, not just "option A is better".
Resources
Agentic Explainable Artificial Intelligence (Agentic XAI) to Explore Better Explanations: A Case Study in Decision Support for Rice Cultivation in Japan — Tomoaki Yamaguchi, Yutong Zhou, Masahiro Ryo, Keisuke Katsura (Gifu University, ZALF, Brandenburg University of Technology, Kyoto University)
Reproducibility materials: https://doi.org/10.5281/zenodo.17876329
Related concepts: ReAct (Yao et al., 2023), Self-Refine (Madaan et al., 2023), LLM-as-judge (Zheng et al., 2023)