Apply to my task
arXiv:2512.21066 ★ 94 Dec 24, 2025

Agentic XAI: Iteratively Improving Explanations Through Multi-Round Refinement

Key result

An LLM improves its explanation over several rounds, but quality grows only for the first 3-4 cycles, then declines (for crop scientists, by round 10 it fell below the first draft). In the study (rice farming advice), the Agentic XAI method raised explanation scores by 30-33% at the peak: the model finds its own gaps, requests extra calculations and updates the answer. The trick: the model reflects on its own answer, asking "what did I miss?", generates analysis code, gets new data and rewrites the explanation. But after 4-5 rounds degradation sets in: answers get watery, drift into abstractions and lose specifics.

01

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.

02

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.

03

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.

04

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"
05

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.

06

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.

07

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.

08

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".

09

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)

Research digest

Key result

An LLM improves its explanation over several rounds, but quality grows only for the first 3-4 cycles, then declines (for crop scientists, by round 10 it fell below the first draft). In the study (rice farming advice), the Agentic XAI method raised explanation scores by 30-33% at the peak: the model finds its own gaps, requests extra calculations and updates the answer. The trick: the model reflects on its own answer, asking "what did I miss?", generates analysis code, gets new data and rewrites the explanation. But after 4-5 rounds degradation sets in: answers get watery, drift into abstractions and lose specifics.

Principle

The loop works like this: (1) Gap analysis: the model looks at its explanation and says "we need correlations between X and Y". (2) Analysis generation: it writes Python code for calculations or charts. (3) Getting the data: you run the code and get the results. (4) Updating the explanation: the model synthesizes old + new into a deeper answer. Each round = a separate request within the same chat. The history is kept, and the model builds on its previous answers. After 3-4 cycles you need early stopping; going further does harm.

Why it works

An LLM's first answer is often shallow: the model doesn't know which additional calculations are needed for completeness. It only sees the data in front of it. But the model is excellent at finding its own gaps when asked: "what would improve the explanation?". It'll suggest calculating a correlation, plotting a trend, splitting into subgroups. Iterations turn a weakness into a strength: instead of demanding a full analysis at once, we let it reflect step by step. The first 3-4 rounds fill real holes. But then the gains run out (the authors compare it with reward overoptimization): the model tries to improve where there's nothing left to improve. It adds theory, generic statements, filler and ungrounded economic reasoning. Specifics evaporate. Tested with 12 crop scientists and 14 LLM judges: both saw the peak at rounds 3-4 and a decline after it, milder in the LLM scores.

When to apply

Data analysis → when you need to explain why a metric changed or what drives a result, especially with complex data (many variables, non-obvious relationships). Good for business analytics (why did conversion drop in segment X?), research questions (which factors determine yield?) and troubleshooting (what broke in the funnel?). NOT for quick answers: the method needs 3-4 requests plus intermediate calculations between them.

Mini recipe

1. Round 0 — baseline explanation: Give the model the data or a description of the situation, and ask it to explain the problem and give recommendations 2. Rounds 1-3 — refinement loop (repeat 2-3 times): Ask What additional data, calculations or charts would help improve this explanation? Suggest specific questions to ask of the data → run the suggested analysis (by hand or via code) → give the model the results and ask Rewrite the recommendations using this information. Keep it specific, avoid generic phrases 3. Stop after 3-4 rounds: In the study, quality dropped after that, as the model started adding filler and losing focus 4. Optional — exit condition (our adaptation): instead of a fixed number of rounds, have a different model (or yourself) compare the rounds on criteria (specificity, completeness, conciseness) and stop when a new round is no better. The paper found that LLM scores run high and the generating model judged its own peak worst, so don't rely on a fixed score threshold or on self-rating

Examples

[BAD]: `Here is a month of subscription conversion data. Explain why some segments do 3x better than others and give recommendations` — a single request gives a shallow answer without deep analysis [GOOD]: Round 0: `Here is the conversion data [table]. Explain the difference and give recommendations` → you get a first explanation. Round 1: `What additional calculations would help improve this explanation?` → the model suggests correlating traffic source with conversion → you run it → `Here are the results [data]. Rewrite the recommendations` → you get an explanation with cause-and-effect links. Rounds 2-3: repeat the loop 1-2 more times. Stop at round 3-4: by then you have specific numbers, prioritized actions and sharp insights with no filler

In plain words

In Plain Words: 2512.21066

In Plain Words

Agentic Explainable Artificial Intelligence (Agentic XAI) Approach To Explore Better Explanation

The idea behind Agentic XAI is that the model stops being a talking head and turns into a meticulous analyst. A regular LLM answers right away based on whatever is in front of it, and often that's just surface-level chatter. The agentic approach makes the model first put forward a hypothesis, then tell itself: "Okay, I'm missing numbers here, and over there I was basically shooting in the dark", and go fetch more details. It writes its own code, builds charts and re-checks its logic until the explanation is airtight.

It's like asking an intern why sales dropped, and instead of just handing over a report, they run to accounting three times, recalculate the taxes and come back with a breakdown by region. Technically they could have just guessed, but they did the iterative legwork instead. In the study the model was put through 11 rounds of self-review, where each step was an attempt to find a weak spot in its own explanation and patch it with facts.

In practice this runs on feedback loops. In the first pass the model sees, say, rice yield data and spits out the standard hand-waving about the weather. In the second it realizes it ignored fertilizer type, writes a script to analyze that correlation and works the result into the text. By round three or four you have a much more specific, better-argued report. But keep going and it gets worse: in the study, by round ten the advice was wordier, more abstract and padded with economic reasoning the data could not back, and crop scientists rated it below the very first draft.

It was tested only on rice farming advice; we think the idea is worth trying for any business that needs to understand "why", whether it's subscription conversion, breakdowns at a factory or weird user behavior in an app, but that is untested. Ordinary models often slip up because they don't dig deeper, and the agentic approach makes them do the extra analysis, but only up to a point.

Bottom line: the era of "just ask the chatbot" is ending, and the time of autonomous analytical loops is beginning. If you need not just a pretty sentence but the real reason behind a failure or a win, make the model critique itself and fetch more data. But stop after 3-4 rounds: in the study, more rounds made the advice worse, not deeper.

ArXiv ID: 2512.21066 | Generated: 2026-01-02 17:03 | Nova Research

AI lab assistant

Apply this study to your task

Describe what you're working on. AI takes the method and the measured results from this paper and adapts them to your case, or writes a ready prompt built on them.

Based on Agentic XAI: Iteratively Improving Explanations Through Multi-Round Refinement arXiv:2512.21066

Sign in to apply this study New accounts get 50 free credits.