Manuscript Offprint
arXiv:2610.02480MEA: A Reward-Driven Multi-Agent System for Faithful Model Explanations
Abstract
Recent years have seen the employment of a plethora of machine learning (ML) models in high-stakes domains, but they remain largely opaque to the practitioners who act on their predictions. While post-hoc explanation methods offer a lens into this model behavior, wielding them effectively demands expertise most domain experts lack: navigating high-dimensional outputs, selecting the best explanations, and synthesizing evidence across disparate tools. To this end, we present MEA, a multi-agent framework that removes the explanation knowledge barrier entirely: a Proposer agent selects and configures explanation tools based on the question and modality, while an Actor agent is optimized end-to-end against faithfulness, transforming the outputs into natural language explanations grounded in model behavior across tabular, text, and vision modalities. Further, we introduce diverse question types spanning feature attribution, counterfactual reasoning, and spurious feature detection, each paired with a perturbation-based faithfulness metric. We find that frontier LLMs systematically produce unfaithful explanations. By optimizing against faithfulness rewards augmented with a modality-adaptive penalty, MEA consistently outperforms post hoc explainers, agentic, and closed-source baselines across six datasets, with reward-driven optimization yielding faithfulness gains of +28% (tabular), +21% (text), and +34% (vision) over the untrained backbone. More broadly, our findings suggest that AI agents themselves can serve as a scalable, adaptable interface to ML explainability, opening a path toward natural-language explainability that generalizes beyond the fixed, single-purpose tools that have long defined the field.
1 Introduction
While machine learning (ML) models are increasingly deployed in high-stakes domains, such as healthcare, finance, and legal decision-making , their opacity has become a critical concern for practitioners, regulators, and end users, hindering their trustworthiness. This gap between predictive performance and human interpretability is a central challenge that explainability research seeks to address. More broadly, foundation models can generate hallucinated or unsupported outputs, making reliability a particularly important concern in high-stakes applications .
Prior works have introduced a plethora of post-hoc explanation methods [7–13] that probe trained models to generate explanations. However, each method implements a fixed procedure yielding a single output type, i.e., an attribution vector, a heatmap, or a set of super-pixels, independent of what the user actually wants to know. Further, deploying them correctly requires selecting among competing methods, interpreting high-dimensional outputs, and synthesizing results across tools, imposing a prohibitive knowledge barrier for domain practitioners without ML expertise.
Conversational explanation frameworks (CEF) address this barrier by allowing users to interrogate models in natural language [15–18], mapping free-form queries to structured explanation operations
Corresponding author: Yuyang Cheng

Figure 1: Overview of MEA. Given a user question about model behavior, the Proposer agent reasons over the model prediction and input modality to select an explanation strategy, choosing from a multimodal (tabular, text, and vision) toolkit and agent reasoning tasks (grounding, reasoning, and comparison), the Actor agent then executes the strategy, processes raw explanation outputs, and produces a structured natural-language explanation. The explanation is evaluated via input perturbation against faithfulness metrics. In training, both agents are jointly optimized end-to-end via GRPO [14], using a reward combining faithfulness and tool penalties.
without requiring users to select or configure individual methods. However, these systems share three limitations that remain unaddressed. First, CEF are largely training-free: they rely on hand-crafted parsing rules or prompt engineering to route user queries to explanation tools, without any learned component that adapts to explanation quality or user intent, resulting in unfaithful explanations. Second, CEF have not been evaluated across large-scale datasets across different modalities. Kroeger et al. [19] found that LLM-generated explanations fall behind post-hoc explainers and are susceptible to alphabetical bias, questioning whether LLMs can genuinely outperform existing explainers. Third, existing CEF lack a principled, quantitative evaluation framework: they either assess quality through single explanation types [20, 21] or focus on simple linear models, where generated explanations are treated as final outputs with no verification step against model behavior.
Present work. We address the above gaps by introducing MEA, a novel multi-agent framework (see Fig. 1) for prediction-level explainability across diverse modalities. MEA comprises of a Proposer agent that selects and configures an appropriate combination of tools given a question and data modality, and an Actor agent that executes the tools and synthesizes a natural-language explanation. To scale across diverse explanation difficulty and data modalities, MEA optimizes a multi-modal agent backbone end-to-end via reinforcement learning, with faithfulness scores to directly incentivize explanations that are verifiably grounded in model behavior rather than merely plausible. Since explanation complexity and scale differ fundamentally across modalities, we further introduce a modality-adaptive reward that pairs a universal tool-count penalty with modality-specific constraints, preventing reward hacking while encouraging concise, targeted explanations uniformly across all modalities. Further, we introduce the first comprehensive, model- and modality-agnostic question taxonomy, comprising diverse question types that spans feature attribution, counterfactual reasoning, and spurious feature detection with their respective faithfulness metrics to quantify alignment between the agent's explanation and the model's actual behavior via perturbation-based testing. To enable large-scale training and evaluation, we construct MEA-BENCH, a dataset covering three data modalities (tabular, text, and vision), six model architectures, and six datasets, comprising 13K training and 3.5K test instances.
Our main contributions are as follows: 1) we present MEA, a multi-agent framework that selects, executes, and synthesizes explanation tools into faithful natural-language explanations across tabular, text, and vision modalities; 2) we introduce MEA-BENCH, comprising diverse faithfulness-verified question types, 12 dataset-model combinations, and 13k training and 3.5k test instances across three modalities; 3) we demonstrate that frontier agents systematically hallucinate on explainability tasks and address this by optimizing MEA end-to-end via reinforcement learning, using faithfulness as the reward augmented by a modality-adaptive penalty that prevents reward hacking across modalities; and 4) our trained MEA outperforms post-hoc explainers, closed-source frontier models, and advanced agentic frameworks, yielding average faithfulness gains of +28% (tabular), +21% (text), and +34% (vision) over the untrained backbone.
Research Gap. Existing faithfulness evaluation [20, 22] is conducted offline as a post-hoc assessment; no prior work adapts it into an online training signal to optimize an agentic framework across a comprehensive, multi-question, multi-modal setup.
Conversational and Agentic XAI. Early interactive works framed explanations as dialogues: TalkToModel [15] enables natural-language exploration of model behavior, and ECHO [16] grounds answers in computed attributions rather than parametric knowledge. FAX [23] integrates agentic tool use with faithfulness evaluation, though it targets open-ended questions and relies on an LLM-as-a-judge pipeline. Beyond explainability, recent multimodal agentic systems have explored actor-critic architectures with tool grounding and iterative feedback for complex multi-step tasks [24, 25]. A parallel line applies multimodal agents to mechanistic interpretability of internal model representations, including MAIA [26], OPENMAIA [27], and NEURONSCOPE [28]; however, these are not designed for the prediction-level questions domain practitioners ask.
Research Gap. No existing work jointly optimizes a multi-agent pipeline end-to-end with RL across diverse modalities and question types. Our framework addresses this via a Proposer–Actor structure trained with GRPO, using faithfulness as the reward signal.
3 Our Framework: MEA
Problem Formulation. We study natural-language explanation generation for black-box classifiers. Given a trained classifier , a question from a predefined taxonomy , and input instance(s) , MEA generates a structured explanation that answers while remaining faithful to 's decision process. MEA supports three modalities (vision, text, and tabular data), where is an image, token sequence, or feature vector respectively, and localizes evidence accordingly: a bounding box, token spans, or feature keys, identifying the subset of that accounts for 's behavior with respect to .
XAI Question Taxonomy. Drawing on prior work [16, 20], we define ten question types in three semantic categories (Appendix Table 3): 1) Feature Attribution asks which input parts drove or suppressed a prediction; 2) Counterfactual probes prediction sensitivity to hypothetical modifications; and 3) Spurious Feature examines whether the model relies on irrelevant cues. We exclude Q8 and Q9 from training and use them as out-of-distribution (OOD) evaluation questions, since these are only defined over misclassified instances ( ), which limits eligible training samples and destabilizes gradient estimation; we treat them as a held-out probe of generalization to unseen question types without task-specific supervision.
3.1 MEA Overview
MEA operates as a two-stage framework on a shared multimodal LLM backbone . First, the Proposer Agent receives question , input , and prediction , and produces a structured strategy specifying which XAI tools and autonomous reasoning tasks to invoke (Appendix A.2). Then, the Actor Agent executes S, processes the raw tool outputs, and synthesizes an explanation e:
where is the tool set for modality , is the Proposer's selected subset, and is tool 's summarized output.
3.2 Proposer Agent: Intent-Aware Strategy Formation
Prior conversational systems rely on fixed pipelines or hand-crafted routing rules with no learned component adapting to question semantics. To address this limitation, we introduce the trainable Proposer Agent , which performs strategy formation before any tool is executed. Given question type , modality , and prediction , it generates :
where selects the reasoning mode, specifies which tools to invoke, and enumerates grounding/reasoning subtasks for the Actor. An ablation on the Proposer's strategy modes (Appendix A.10) confirms both tool use and autonomous reasoning are independently load-bearing, and that MEA learns to combine them more effectively than the base agent.
3.3 Actor Agent: Tool-Grounded Explanation Synthesis
Even when a well-formed strategy is available, raw tool outputs are not directly consumable as explanations. Kroeger et al. [19] show that LLMs systematically bypass tool evidence in favor of parametric knowledge, producing plausible but unfaithful conclusions. To address this, the Actor Agent operates in two steps enforcing a structural dependency on attribution evidence.
Step 1: Tool Execution and Summarization. For each tool , the Actor invokes against and , obtaining heatmaps, per-token, or feature importance scores, which are converted into structured text summaries (execution status, natural-language description, key statistics) rather than passed as raw tensors. To standardize granularity, the Actor returns the top 25% of features/tokens for tabular/text inputs, and aggregates top-1% attribution coordinates into a bounding box for vision.
Step 2: Evidence-Grounded Explanation Generation. The per-tool summaries are assembled into a structured prompt over which the Actor reasons to identify the most relevant features:
where is the modality-appropriate output space: a bounding box, token span, or feature list.
3.4 Perturbation-based Faithfulness Evaluation
Evaluating explanation correctness without ground-truth labels is difficult. Prior work relies on LLM-as-a-judge pipelines susceptible to the same hallucinations they assess [19, 21], or evaluates a single explanation type in isolation [20, 23]; none adapts faithfulness evaluation into an online training signal across a multi-question, multi-modal setup. We address this with a unified perturbation-based protocol: explanation e identifying region r is faithful iff masking r produces the model behavior change q predicts. For each , metric is computed by masking r in x and re-querying f, where is the masked input (zero-filled for tabular, grey-filled for vision, span-deleted for text) and the predicted class probability.
Feature Attribution (Q1-Q4). Q1-Q2 form a complementary pair: masking the most responsible region should drop confidence; masking the least responsible should not:
Q3 checks whether masking the distinctive region collapses the top-1/top-2 margin; Q4 measures cross-instance contrastiveness via , requiring different attributions for differently-predicted instances.
Counterfactual (Q5–Q7). Q5 verifies the predicted direction of change agrees with the observed probability shift; Q6-Q7 measure whether the proposed modification raises the target-class probability and whether the predicted new class becomes likely:
where is the agent-proposed modification and the predicted class.
Spurious Features. Q8 measures the normalized gain in correct-class probability after masking:
(7)
normalized by remaining headroom for fair cross-instance comparison. Q9 averages over N misclassified instances; Q10 mirrors Q4's contrastive intuition on misclassified instances. Full definitions are in Appendix A.3.
3.5 End-to-End Training
Reward-based optimization for trustworthy generation has increasingly relied on carefully designed task-specific objectives [29]. However relying exclusively on raw faithfulness scores frequently precipitates reward hacking, typically via two degenerate strategies: trivial probability-drop maximization (e.g., masking an entire image) and indiscriminate tool invocation, which inflates faithfulness without isolating informative features [14]. Since naive objectives converge on these unfaithful traces, we employ GRPO [30] to jointly optimize both agents end-to-end, building on recent applications of GRPO for reasoning optimization [31]. Each episode captures two transitions: strategy generation by the Proposer and explanation synthesis by the Actor. We formalize this as an MDP with deterministic tool-execution transitions and a terminal reward in Appendix A.4. The faithfulness reward is evaluated strictly after the Actor's final output, and the trajectory-level group-normalized advantage
is applied uniformly to both transitions, treating the Proposer-Actor as jointly responsible for the outcome: a misaligned Proposer strategy cannot be recovered by the Actor, so the optimization signal must flow to both agents equally.
Size Penalty (Vision). To foreclose the large-mask shortcut, we penalize large bounding boxes:
where is the bounding-box-to-image area ratio and . For tabular/text, the fixed top-25% output constraint (Section 3.3) already governs scope, making an explicit size penalty unnecessary.
Tool Penalty. We apply an tool-count penalty across all modalities: , where is the number of invoked tools/tasks, , -kept small to avoid suppressing gradients on question types with low pre-training scores (e.g., tabular Q1/Q8: 0.01/0.04 at initialization). These penalties let the Proposer learn informative tool selection while the Actor learns faithful grounding, each reinforcing the other via shared gradients.
Multi-modal Explanation Agent (MEA): Qualitative results

Figure 2: Case study of MEA across three modalities. Each column shows a complete pipeline execution for MEA: the input, Proposer's strategy and tool, Actor's execution output, and final explanation with faithfulness evaluation.
4 Experiments
We address the following key research questions: RQ1) Does MEA generates faithful explanation across all three modalities? RQ2) Does MEA outperform widely used post hoc explainers? RQ3) Is the prompting style and agentic architecture necessary for MEA's performance? and RQ4) Does MEA generalize to OOD explanation questions, unseen datasets, and novel model architectures?
4.1 Datasets and Experimental Setup
We first describe datasets designed to study the faithfulness of explanations generated by MEA and then outline experimental setup. Figure 2 illustrates MEA's end-to-end pipeline on representative samples from each modality, showing how the Proposer selects appropriate tools and the Actor synthesizes faithful explanations across diverse question types.
Dataset. We construct a multi-modal benchmark for analyzing agent behavior across tabular, text, and vision modalities (Appendix A.5), generated using predictions from ML models trained on standard supervised learning tasks. For each dataset-model pair, we generate structured questions (Table 3) covering feature attribution, counterfactual analysis, and spurious feature identification. Tabular: Adult Census Income [32] and Breast Cancer [33], evaluated with a two-layer network and TabNet. Text: SNLI [34] and IMDb [35], evaluated with a lightweight neural network and a CNN. Vision: CUB-200-2011 [36] and STL-10 [37], evaluated with ResNet-50 [38] and DenseNet-201 [39]. Each instance contains the original input, ground-truth label, model prediction, and a natural-language analytical prompt.
Training Setup. We fine-tune Qwen3.6-35B-A3B [40] using LoRA (r=32) [41] for 3 epochs, following Shao et al. [14] for GRPO hyperparameters (learning rate , batch size 32, KL coefficient 0). We generate K=4 rollouts per question at T=1.0 (K=8 for harder types), with advantages group-normalized over each question's K rollouts; evaluation uses T=0.0. For training across modalities, we compare Sequential (tabular→text→vision, each stage initialized from the previous checkpoint) against Hybrid (all modalities interleaved per batch). Sequential training suffers from catastrophic forgetting. Performance on earlier modalities degrades and behavioral diversity collapses on the final modality (Appendix A.6), so we adopt Hybrid training for all main results. We also ablate on a 4B-parameter backbone (Appendix A.11), confirming faithfulness gains transfer to smaller models; computational cost details are in Appendix A.14.

Figure 3: MEA’s performance. Faithfulness scores of MEA vs. baselines across three modalities: (A) tabular, (B) text, and (C) vision. Higher mean faithfulness scores indicate more faithful explanations. Results show that MEA outperform all baselines, including closed-source models and techniques like CoT, ToT, and ReACT.
Baselines. To isolate the impact of collaborative, iterative refinement, we benchmark MEA against four prompting paradigms sharing identical model infrastructure, execution environments, and XAI toolsets: Zero-Shot (control), Chain-of-Thought (CoT) [42], ReAct [43], and Tree of Thoughts (ToT) [44]. We further compare against standard post-hoc explainers [7–13], and against specialized counterfactual generators, DiCE [45] and Growing Spheres [46].
Evaluation. Following Agarwal et al. [47], we evaluate explanation quality through faithfulness: whether the agent's claimed explanation is verified by the target model's behavior under perturbation. All metrics (Sec. 3.4) follow a common perturb-and-measure protocol: given an explanation identifying a region (feature keys for tabular, text spans for text, a bounding box for vision), we perturb to obtain , re-run the prediction, and score it against the corresponding metric. Perturbations are modality-specific: vision regions are gray-filled (or inpainted with Stable Diffusion [48] for counterfactuals), text spans are deleted or replaced with agent-provided counterfactual text, and tabular features are mean-filled or set to agent-specified values.
5 Results
Here, we discuss experimental results that answer key questions (RQ1-RQ4) highlighted before.
RQ1) MEA improves explanation faithfulness across all modalities. A key challenge in XAI is that different explanation needs (feature attribution, counterfactual reasoning, and spurious feature detection) traditionally require separate tools. MEA addresses this by serving as a unified framework handling diverse question types across all three modalities without modality-specific engineering. Fig. 3 shows MEA achieves the highest faithfulness scores across all three modalities. On tabular data, MEA scores 0.855 on counterfactual questions, outperforming the best baseline (Base Agent, 0.670) by 28%, and 0.997 on spurious features vs. Gemini-3.1's 0.879. On text, MEA scores 0.708 on counterfactual questions vs. Gemini-3.1's 0.574 (+23%). The gap is largest on vision counterfactual questions, where MEA achieves 0.598 vs. GPT-5.4's 0.328 (+82%). Across all three modalities, MEA attains a perfect or near-perfect spurious feature detection score (0.997/1.000/1.000). To verify these similarities reflect genuine statistical equivalence rather than noise, we ran two-sided Welch's t-tests [49] on all targeted comparisons: on spurious-feature questions (Q10), MEA achieves ceiling performance (1.000) on text and vision, and the strongest baselines (Gemini-3.1: 0.996 text, Base Agent: 0.981 vision) differ by at most 0.02–significant only due to MEA's zero variance at ceiling (Appendix A.13). Appendix A.12 further shows this faithfulness tracks the target model's decision logic, not the LLM's own priors.
These results confirm that MEA acts as a one-stop-shop delivering strong, reliable faithfulness across all ten question types and all three modalities. MEA also outperforms all closed-source models and alternative agentic frameworks (CoT, ToT, ReAct) on all question types across all modalities, confirming its role as a unified solution for diverse explainability needs.
RQ2) MEA outperforms post-hoc explainers. Standard post-hoc explainers (LIME, SHAP, GradCAM, etc.) are architecturally single-purpose, so a like-for-like comparison is well-defined only for Q1: Which parts of the instance are most responsible for the model's prediction? This restriction

SHAP
LIME
IG
Guided BP
SmoothGrad
GradCAM
Sensitivity
MEA
Figure 4: MEA vs. Explainers. Mean faithfulness scores of identifying most salient input features across (A) tabular, (B) text, and (C) vision modalities. MEA outperforms all baselines on tabular and text inputs, and matches the best-performing method on vision inputs.
Table 1: MEA vs. specialized counterfactual explainers on Q6 (flip prediction), aggregated across model architectures per dataset (n = 63 for Adult Census, n = 44 for Breast Cancer). Best per row group in bold.
| Dataset | Method | Flip Success | Avg. Faithfulness |
|---|---|---|---|
| Adult Census | MEA | 100.0% | 0.894 |
| DiCE | 100.0% | 0.631 | |
| Growing Spheres | 98.4% | 0.499 | |
| Breast Cancer | MEA | 95.5% | 0.886 |
| DiCE | 97.7% | 0.580 | |
| Growing Spheres | 81.8% | 0.412 |
itself illustrates one of MEA's motivations: no single tool can address the diverse explanation needs spanned by MEA's ten-question taxonomy. We therefore compare MEA against two disjoint families of specialized baselines, each matched to the question type it targets: general-purpose attribution explainers on Q1, and specialized counterfactual generators on Q6.
Q1 (Feature Attribution). Following the same output standardization used in MEA (top-25% of features for tabular/text, top-1% pixels as a bounding box for vision), Fig. 4 shows MEA outperforms the best post-hoc explainer on tabular (0.195 vs. 0.150; +30%) and text (0.265 vs. 0.237; +12%), and matches the best single-tool baseline on vision (0.499 vs. 0.497; p = 0.944, Appendix A.13).
Q6 (Flip Prediction). We further compare MEA against two specialized counterfactual generators, DiCE [45] and Growing Spheres [46]. Neither has a meaningful notion of searching over text spans or image regions, so this comparison is restricted to tabular data, using the same test instances, preprocessor, and metrics as MEA's evaluation (Table 1). MEA achieves comparable flip-success rates while achieving substantially higher faithfulness throughout (avg. target-class probability 0.886–0.894 vs. 0.499–0.631).
Together, these results show that MEA, despite operating as a single general-purpose agent across all ten question types, is competitive with or superior to specialized single-purpose explainers on both feature attribution and counterfactual generation.
RQ3) MEA is robust to different prompt styles and outperforms critic-augmented agents. Here, we first test sensitivity to question phrasing by evaluating three paraphrased variants of the question taxonomy (see A.8) and compare mean faithfulness against the original. Next, we investigate whether augmenting a base agent with a Critic [50], which receives the original strategy and explanation, critiques them, and regenerates improved outputs, can close the gap with MEA. Results in Appendix
Table 2: OOD faithfulness on datasets/architectures unseen during training, averaged across question types per group. Base: Proposer–Actor without GRPO fine-tuning; MEA: full GRPO-tuned system. Best per row in bold.
| Modality | Group | Base | MEA |
|---|---|---|---|
| Tabular | Feat. Attr. | 0.447 | 0.783 |
| Counterfactual | 0.422 | 0.499 | |
| Spurious Feat. | 0.264 | 0.349 | |
| Overall | 0.379 | 0.581 | |
| Text | Feat. Attr. | 0.428 | 0.563 |
| Counterfactual | 0.860 | 0.770 | |
| Spurious Feat. | 0.639 | 0.778 | |
| Overall | 0.625 | 0.689 | |
| Vision | Feat. Attr. | 0.621 | 0.583 |
| Counterfactual | 0.246 | 0.521 | |
| Spurious Feat. | 0.416 | 0.624 | |
| Overall | 0.448 | 0.576 |
A.8 Fig. 7 show that paraphrase variants score within of the original across all modalities and question groups (e.g., tabular counterfactual: paraphrase 0.934 vs. MEA 0.939; vision feature attribution: 0.686 vs. 0.692), confirming that MEA is robust to prompt rephrasing. MEA also consistently outperforms a base agent augmented with an inference-time Critic (Agent+Reflection) across all three modalities, with the largest gains on counterfactual questions: on text (0.876 vs. 0.644) and on vision (0.569 vs. 0.439), and Agent+Reflection even degrading performance relative to the untrained base agent on tabular spurious features (Appendix A.9, Fig. 8). Appendix A.13 shows paraphrase robustness tests results, which demonstrate no significant performance degradation across 8 of 9 question-type modality conditions ( in all but vision counterfactual). These results demonstrate that RL-based end-to-end training provides substantially stronger and more reliable gains than inference-time critique.
RQ4) MEA generalizes to OOD datasets and model architectures. We evaluate MEA on unseen datasets and model architectures across all modalities (Yelp Review Polarity dataset [51] with a BERT-based classifier [52] for text; German Credit dataset [53] with a three-layer neural network for tabular; CIFAR-10 [54] with ResNet-18 [38] for vision). Results in Table 2 show that MEA achieves the highest overall faithfulness on all three modalities (0.581 vs. 0.379 on tabular, 0.689 vs. 0.625 on text, 0.576 vs. 0.448 on vision). The largest gains appear on tabular inputs (+53%), with feature attribution alone rising from 0.447 to 0.783 (+75%). On vision, counterfactual faithfulness improves from 0.246 to 0.521 (+112%). MEA only underperforms the base agent on text counterfactual questions (0.770 vs. 0.860) and vision feature attribution (0.583 vs. 0.621), which we attribute to further hyperparameter tuning needed for better modality-specific trade-offs. MEA also generalizes to concept-level explanation, a question type outside the trained taxonomy evaluated via representation-space CAV ablation, outperforming the base agent by ~18% in mean faithfulness. Overall, these results confirm that MEA generalizes to unseen datasets and model architectures, and to explanation mechanisms beyond input perturbation (see Appendix Table 6 for detailed results, Table 7 for concept-level results, and Appendix A.7 for an ablation study of OOD question types).
6 Conclusion
We presented MEA, a multi-agent framework for faithful, prediction-level explanation across tabular, text, and vision modalities, and MEA-BENCH, a model- and modality-agnostic benchmark of 16k instances each paired with a faithfulness metric. Optimizing MEA end-to-end via RL with a modality-adaptive reward yields an agent that consistently outperforms post-hoc explainers, frontier models, and advanced agentic frameworks by (tabular), (text), and (vision) faithfulness, showing learning to explain is more principled than prompting to explain. MEA is currently scoped to classification tasks and a fixed tool library, with a perturbation-based protocol sensitive to distributional shift like others in its class; extending to other tasks, tool libraries, and faithfulness signals is promising future work.
Acknowledgements
We would like to thank all members of Aikyam Lab for their valuable feedback. C.A. is supported, in part, by grants from Capital One, LaCross Institute for Ethical AI in Business, the UVA Environmental Institute, OpenAI Researcher Program, Thinking Machine's Tinker Research Grant, and Cohere. The views expressed are those of the authors and do not reflect the official policy or the position of the funding agencies.
References
[1] Pranav Rajpurkar, Emma Chen, Oishi Banerjee, and Eric J Topol. Ai in health and medicine. Nature medicine, 28(1):31–38, 2022. 1
[2] Michael P Cary Jr, Anna Zink, Sijia Wei, Andrew Olson, Mengying Yan, Rashaud Senior, Sophia Bessias, Kais Gadhoumi, Genevieve Jean-Pierre, Demy Wang, et al. Mitigating racial and ethnic bias and advancing health equity in clinical algorithms: a scoping review: scoping review examines racial and ethnic bias in clinical algorithms. Health Affairs, 42(10):1359–1368, 2023.
[3] Kai Cao and Haifeng You. Fundamental analysis via machine learning. Financial Analysts Journal, 80(2):74–98, 2024.
[4] Anthony W Flores, Kristin Bechtel, and Christopher T Lowenkamp. False positives, false negatives, and false analyses: A rejoinder to machine bias: There’s software used across the country to predict future criminals. and it’s biased against blacks. Fed. Probation, 80:38, 2016. 1
[5] Pranab Sahoo, Prabhash Meharia, Akash Ghosh, Sriparna Saha, Vinija Jain, and Aman Chadha. A comprehensive survey of hallucination in large language, image, video and audio foundation models. Findings of the association for computational linguistics: EMNLP 2024, pages 11709–11724, 2024. 1
[6] Akash Ghosh, Srivarshinee Sridhar, Raghav Kaushik Ravi, Muhsin Muhsin, Sriparna Saha, and Chirag Agarwal. Clinic: Evaluating multilingual trustworthiness in language models for healthcare. arXiv preprint arXiv:2512.11437, 2025. 1
[7] Marco Tulio Ribeiro, Sameer Singh, and Carlos Guestrin. "why should i trust you?": Explaining the predictions of any classifier, 2016. URL https://arxiv.org/abs/1602.04938. 1, 3, 7, 14
[8] Mukund Sundararajan, Ankur Taly, and Qiqi Yan. Axiomatic attribution for deep networks, 2017. URL https://arxiv.org/abs/1703.01365. 3, 14
[9] Ramprasaath R. Selvaraju, Michael Cogswell, Abhishek Das, Ramakrishna Vedantam, Devi Parikh, and Dhruv Batra. Grad-cam: Visual explanations from deep networks via gradient-based localization. International Journal of Computer Vision, 128(2):336–359, October 2019. ISSN 1573-1405. doi: 10.1007/s11263-019-01228-7. URL http://dx.doi.org/10.1007/s11263-019-01228-7. 3, 14
[10] Scott Lundberg and Su-In Lee. A unified approach to interpreting model predictions, 2017. URL https://arxiv.org/abs/1705.07874. 3, 14
[11] C. Pichery. Sensitivity analysis. Encyclopedia of Toxicology, 12 2014. doi: 10.1016/B978-0-12-386454-3.00431-0. 14
[12] Daniel Smilkov, Nikhil Thorat, Been Kim, Fernanda Viégas, and Martin Wattenberg. Smoothgrad: removing noise by adding noise, 2017. URL https://arxiv.org/abs/1706.03825. 3, 14
[13] Jost Tobias Springenberg, Alexey Dosovitskiy, Thomas Brox, and Martin Riedmiller. Striving for simplicity: The all convolutional net, 2015. URL https://arxiv.org/abs/1412.6806. 1, 7, 14
[14] Zhihong Shao, Peiyi Wang, Qihao Zhu, Runxin Xu, Junxiao Song, Xiao Bi, Haowei Zhang, Mingchuan Zhang, Y. K. Li, Y. Wu, and Daya Guo. Deepseekmath: Pushing the limits of mathematical reasoning in open language models, 2024. URL https://arxiv.org/abs/2402.03300. 2, 5, 6
[15] Dylan Slack, Satyapriya Krishna, Himabindu Lakkaraju, and Sameer Singh. Talktomodel: Explaining machine learning models with interactive natural language conversations, 2023. URL https://arxiv.org/abs/2207.04154. 1, 3
[16] Sebe Vanbrabant, Gilles Eerlings, Gustavo Alberto Rovelo Ruiz, and Davy Vanacken. Echo: Enhancing conversational explainable ai through tool-augmented language models. Proc. ACM Hum.-Comput. Interact., 9(4), June 2025. doi: 10.1145/3734191. URL https://doi.org/10.1145/3734191.3
[17] Haechang Kim, Hao Chen, Can Li, and Jong Min Lee. Talktoagent: A human-centric explanation of reinforcement learning agents with large language models, 2025. URL https://arxiv.org/abs/2509.04809.
[18] Yifan He and David Martens. An agentic approach to generating xai-narratives, 2026. URL https://arxiv.org/abs/2603.20003.1
[19] Nicholas Kroeger, Dan Ley, Satyapriya Krishna, Chirag Agarwal, and Himabindu Lakkaraju. In-context explainers: Harnessing llms for explaining black box models, 2024. URL https://arxiv.org/abs/2310.05797. 2, 4
[20] Xuhong Li, Mengnan Du, Jiamin Chen, Yekun Chai, Himabindu Lakkaraju, and Haoyi Xiong. mathcal{M}^4$: A unified XAI benchmark for faithfulness evaluation of feature attribution methods across metrics, modalities and models. In Thirty-seventh Conference on Neural Information Processing Systems Datasets and Benchmarks Track, 2023. URL https://openreview.net/forum?id=6zcfrSz98y. 2, 3, 4
[21] Kaivalya Rawal, Zihao Fu, Eoin Delaney, and Chris Russell. Evaluating model explanations without ground truth. In Proceedings of the 2025 ACM Conference on Fairness, Accountability, and Transparency, FAccT '25, page 3400–3411. ACM, 2025. doi: 10.1145/3715275.3732219. URL http://dx.doi.org/10.1145/3715275.3732219. 2, 4
[22] Shichang Zhang, Tessa Han, Usha Bhalla, and Himabindu Lakkaraju. Towards unified attribution in explainable ai, data-centric ai, and mechanistic interpretability, 2025. URL https://arxiv.org/abs/2501.18887. 3
[23] Jaechang Kim, Sunung Mun, Seungjoon Lee, Jaewoong Cho, and Jungseul Ok. Towards faithful agentic XAI, 2025. URL https://openreview.net/forum?id=uGPbHJOMSe. 3, 4
[24] Akash Ghosh, Tajamul Ashraf, Rishu Kumar Singh, Numan Saeed, Sriparna Saha, Xiuying Chen, and Salman Khan. Carepilot: A multi-agent framework for long-horizon computer task automation in healthcare. arXiv preprint arXiv:2603.24157, 2026. 3
[25] Tanmoy Kanti Halder, Akash Ghosh, Subhadip Baidya, Arijit Roy, and Sriparna Saha. Arogyasutra: A multi-agent framework for multimodal medical reasoning in indic languages. arXiv preprint arXiv:2606.13572, 2026. 3
[26] Tamar Rott Shaham, Sarah Schwettmann, Franklin Wang, Achyuta Rajaram, Evan Hernandez, Jacob Andreas, and Antonio Torralba. A multimodal automated interpretability agent, 2025. URL https://arxiv.org/abs/2404.14394. 3
[27] Josep Lopez Camuñas, Christy Li, Tamar Rott Shaham, Antonio Torralba, and Agata Lapedriza. OpenMAIA: a multimodal automated interpretability agent based on open-source models. In Mechanistic Interpretability Workshop at NeurIPS 2025, 2025. URL https://openreview.net/forum?id=KitDRi76It. 3
[28] Weiqi Liu, Yongliang Miao, Haiyan Zhao, Yanguang Liu, and Mengnan Du. Neuronscope: A multi-agent framework for explaining polysemantic neurons in language models, 2026. URL https://arxiv.org/abs/2601.03671. 3
[29] Akash Ghosh, Nishant Kumar, Nitesh Patnaik, Adity Prakash, Rishi Raj, and Sriparna Saha. Rado: Trustworthy radiology impression generation using safety and faithfulness-based preference optimization. ACM Transactions on Computing for Healthcare, 7(3):1–18, 2026. 5
[30] Daya Guo, Dejian Yang, Haowei Zhang, Junxiao Song, Peiyi Wang, Qihao Zhu, Runxin Xu, Ruoyu Zhang, Shirong Ma, Xiao Bi, et al. Deepseek-r1: Incentivizing reasoning capability in llms via reinforcement learning. arXiv preprint arXiv:2501.12948, 2025. 5
[31] Eric Onyame, Akash Ghosh, Subhadip Baidya, Sriparna Saha, Xiuying Chen, and Chirag Agarwal. Cure-med: Curriculum-informed reinforcement learning for multilingual medical reasoning. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 30682–30703, 2026. 5
[32] Barry Becker and Ronny Kohavi. Adult. UCI Machine Learning Repository, 1996. DOI: https://doi.org/10.24432/C5XW20.6
[33] Matjaz Zwitter and Milan Soklic. Breast Cancer. UCI Machine Learning Repository, 1988. DOI: https://doi.org/10.24432/C51P4M.6
[34] Samuel R. Bowman, Gabor Angeli, Christopher Potts, and Christopher D. Manning. A large annotated corpus for learning natural language inference, 2015. URL https://arxiv.org/abs/1508.05326.6
[35] Andrew L. Maas, Raymond E. Daly, Peter T. Pham, Dan Huang, Andrew Y. Ng, and Christopher Potts. Learning word vectors for sentiment analysis. In Proceedings of the 49th Annual Meeting of the Association for Computational Linguistics: Human Language Technologies, pages 142–150, Portland, Oregon, USA, June 2011. Association for Computational Linguistics. URL http://www.aclweb.org/anthology/P11-1015.6
[36] Peter Welinder, Steve Branson, Takeshi Mita, Catherine Wah, Florian Schroff, Serge Belongie, and Pietro Perona. Caltech-UCSD birds 200. Technical Report CNS-TR-2010-001, California Institute of Technology, 2010. 6
[37] Adam Coates, Andrew Ng, and Honglak Lee. An analysis of single-layer networks in unsupervised feature learning. In Geoffrey Gordon, David Dunson, and Miroslav Dudík, editors, Proceedings of the Fourteenth International Conference on Artificial Intelligence and Statistics, volume 15 of Proceedings of Machine Learning Research, pages 215–223, Fort Lauderdale, FL, USA, 11–13 Apr 2011. PMLR. URL https://proceedings.mlr.press/v15/coates11a.html. 6
[38] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition, 2015. URL https://arxiv.org/abs/1512.03385. 6, 9
[39] Gao Huang, Zhuang Liu, Laurens van der Maaten, and Kilian Q. Weinberger. Densely connected convolutional networks, 2018. URL https://arxiv.org/abs/1608.06993.6
[40] Qwen Team. Qwen3.6-35B-A3B: Agentic coding power, now open to all, April 2026. URL https://qwen.ai/blog?id=qwen3.6-35b-a3b. 6, 24
[41] Edward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. Lora: Low-rank adaptation of large language models, 2021. URL https://arxiv.org/abs/2106.09685.6
[42] Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Brian Ichter, Fei Xia, Ed Chi, Quoc Le, and Denny Zhou. Chain-of-thought prompting elicits reasoning in large language models, 2023. URL https://arxiv.org/abs/2201.11903.7
[43] Shunyu Yao, Jeffrey Zhao, Dian Yu, Nan Du, Izhak Shafran, Karthik Narasimhan, and Yuan Cao. React: Synergizing reasoning and acting in language models, 2023. URL https://arxiv.org/abs/2210.03629.7
[44] Shunyu Yao, Dian Yu, Jeffrey Zhao, Izhak Shafran, Thomas L. Griffiths, Yuan Cao, and Karthik Narasimhan. Tree of thoughts: Deliberate problem solving with large language models, 2023. URL https://arxiv.org/abs/2305.10601.7
[45] Ramaravind K Mothilal, Amit Sharma, and Chenhao Tan. Explaining machine learning classifiers through diverse counterfactual explanations. In Proceedings of the 2020 Conference on Fairness, Accountability, and Transparency, pages 607–617, 2020. 7, 8
[46] Thibault Laugel, Marie-Jeanne Lesot, Christophe Marsala, Xavier Renard, and Marcin Detryniecki. Inverse classification for comparison-based interpretability in machine learning. arXiv preprint arXiv:1712.08443, 2017. 7, 8
[47] Chirag Agarwal, Satyapriya Krishna, Eshika Saxena, Martin Pawelczyk, Nari Johnson, Isha Puri, Marinka Zitnik, and Himabindu Lakkaraju. Openxai: Towards a transparent evaluation of model explanations. Advances in neural information processing systems, 35:15784–15799, 2022. 7
[48] Robin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser, and Björn Ommer. High-resolution image synthesis with latent diffusion models, 2022. URL https://arxiv.org/abs/2112.10752.7
[49] B. L. WELCH. The generalization of ‘student’s’ problem when several different population variances are involved. Biometrika, 34(1-2):28–35, 01 1947. ISSN 0006-3444. doi: 10.1093/biomet/34.1-2.28. URL https://doi.org/10.1093/biomet/34.1-2.28. 7, 23
[50] Noah Shinn, Federico Cassano, Edward Berman, Ashwin Gopinath, Karthik Narasimhan, and Shunyu Yao. Reflexion: Language agents with verbal reinforcement learning, 2023. URL https://arxiv.org/abs/2303.11366.8
[51] Xiang Zhang, Junbo Zhao, and Yann LeCun. Character-level convolutional networks for text classification, 2016. URL https://arxiv.org/abs/1509.01626.9
[52] Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding, 2019. URL https://arxiv.org/abs/1810.04805.9
[53] Dheeru Dua and Casey Graff. Uci machine learning repository. http://archive.ics.uci.edu/ml, 2019. 9
[54] Alex Krizhevsky, Geoffrey Hinton, et al. Learning multiple layers of features from tiny images.(2009), 2009. 9
[55] Jinze Bai, Shuai Bai, Shusheng Yang, Shijie Wang, Sinan Tan, Peng Wang, Junyang Lin, Chang Zhou, and Jingren Zhou. Qwen-vl: A versatile vision-language model for understanding, localization, text reading, and beyond. arXiv preprint arXiv:2308.12966, 2023. 16
[56] Been Kim, Martin Wattenberg, Justin Gilmer, Carrie Cai, James Wexler, Fernanda Viegas, and Rory Sayres. Interpretability beyond feature attribution: Quantitative testing with concept activation vectors (tcav). In International Conference on Machine Learning, pages 2668–2677. PMLR, 2018. 18
[57] Qwen Team. Qwen3.5: Towards native multimodal agents, February 2026. URL https://qwen.ai/blog?id=qwen3.5.21
[58] Thinking Machines Lab. Tinker, 2025. URL https://thinkingmachines.ai/tinker/. 24
Table 3: Overview of the ten explanation questions organised by category.
| ID | Category | Question |
|---|---|---|
| Feature Attribution - which parts of the input drove or suppressed the prediction? | ||
| Q1 | Most Responsible | Which parts of the instance are most responsible for the model’s prediction? |
| Q2 | Least Responsible | Which parts of the instance are least responsible for the model’s prediction? |
| Q3 | Distinctive | Which specific parts of the instance distinguish its prediction from the next-best alternative? |
| Q4 | Contrastive | Why are instances and given different predictions? |
| Counterfactual - how sensitive is the prediction to hypothetical modifications? | ||
| Q5 | Mask Prediction | If we mask a certain part of this instance, would the prediction change? |
| Q6 | Flip Prediction | How should the instance change to flip the model into a different prediction? |
| Q7 | Change Prediction | If we remove or change one important part of the instance, how would the prediction change? |
| Spurious Feature - does the model rely on irrelevant cues? | ||
| Q8 | Irrelevant Parts | Is there any irrelevant part in this instance that causes the model’s wrong prediction? |
| Q9 | Shared Feature | What shared feature makes misclassified instances difficult for the model? |
| Q10 | Similar-Different | Why are instances and assigned different predictions despite apparent similarity? |
A Appendix
The Appendix provides supplementary material supporting the main paper, including the complete question taxonomy (A.1), details of the XAI tools employed (A.2), faithfulness evaluation metrics (A.3), a formal RL problem definition (A.4), dataset statistics (A.5), descriptions of the sequential and hybrid training procedures (A.6), ablation studies on out-of-distribution (OOD) question types, unseen datasets/architectures, and concept-level explanation generalization (A.7), prompt robustness (A.8), the critic agent (A.9), the Proposer’s strategy modes (A.10), backbone scale transfer (A.11), a sanity check on a classifier with a synthetic shortcut (A.12), statistical significance analyses (A.13), computational cost details (A.14) and prompt templates for Actor and Proposer Agents (A.15).
A.1 Question Taxonomy
The detailed question definition and category is showed in Table 3.
A.2 XAI Tools
To support explanation generation, our framework provides a library of established attribution methods spanning all three modalities:
Gradient-based. GradCAM [9] (layer-wise gradient attribution, vision only), Integrated Gradients [8], Guided Backpropagation [13], SmoothGrad [12] (noise-averaged gradient estimation), and Sensitivity Analysis [11] (input-gradient saliency, text and tabular only).
Perturbation-based. LIME [7] (Local Interpretable Model-agnostic Explanations with superpixel or token-level segmentation for vision, and token-level perturbation for text) and SHAP [10] (Shapley Additive exPlanations via marginal contribution estimation).
A.3 Faithfulness Metrics
Here , are the original gap between top-1 and top-2 predicted classes and the gap after perturbation; is the ground-truth class; is the predicted class after perturbation; is the prediction probability drop after perturbation; and , are attribution maps for the correctly and incorrectly classified instances respectively.
Table 4: Summary of evaluation metrics corresponding to different explanation faithfulness questions.
| Question | Metric | Intuition |
|---|---|---|
| Q1 | Masking the most responsible region should drop predicted-class confidence | |
| Q2 | Masking the least responsible region should leave confidence unchanged | |
| Q3 | The top-1/top-2 margin should collapse after masking the distinctive region | |
| Q4 | The agent should attribute different features to each instance | |
| Q5 | Probability change should agree in direction with the agent’s yes/no answer | |
| Q6 | Applying the proposed change should raise the probability of the target class | |
| Q7 | The agent’s predicted new class should have high probability after masking | |
| Q8 | Masking the spurious region should improve correct-class probability | |
| Q9 | Improvement should hold across all misclassified instances | |
| Q10 | Features attributed to the correct vs. wrong instance should differ |
A higher metric score indicates a more faithful explanation. For binary metrics (Q3, Q5, Q6, Q7), the score is 1 if the condition holds and 0 otherwise. For Q6, tabular and text inputs are evaluated against a specific target class , whereas vision inputs are evaluated by whether the prediction changes to any alternative class, reflecting the substantially larger label space in vision tasks.
The detailed metric calculation method and intuition is showed in Table 4.
A.4 Formal RL Problem Definition
We formalize MEA’s training as a two-step Markov Decision Process (MDP) over a single episode, with the Proposer and Actor as two sequential decision points sharing backbone .
State (Proposer step). : the question, input instance, frozen-classifier prediction, and the modality-compatible tool set (Sec. 3.3, Eq. 3).
Action (Proposer). The structured strategy (Sec. 3.3). and are combinatorial subsets rather than a single discrete choice, so this is regarded as a structured action space.
Transition. Deterministic: each selected tool is executed against the frozen classifier and input , producing summarized outputs (Sec. 3.3, Step 1). No stochasticity is introduced by the environment; the only randomness in the episode comes from the two agents’ own sampling.
State (Actor step). : the Proposer’s emitted strategy together with the summarized tool outputs produced by the transition above.
Action (Actor). The explanation (Eq. 4).
Reward. Terminal only: , the faithfulness metric for question type (Sec. 3.4), augmented by the modality-adaptive size/tool penalties (Eq. 9 and the tool penalty in Sec. 3.3), evaluated strictly after the Actor’s final output. No intermediate reward is given at the Proposer’s transition.
Shared parameterization. Both and route through the same LoRA-adapted backbone ; the two roles are differentiated entirely by distinct system prompts (Appendix A.15, Figs. 12, 11) rather than separate adapters or a mode flag. Because is terminal and both transitions belong to the same episode, the group-normalized advantage (Eq. 8) is applied identically to every token in both the Proposer's and the Actor's transitions, implementing the joint credit assignment described in Sec. 3.3.
A.5 Dataset Statistics

Figure 5: Dstribution of data across modalities.
Due to the heterogeneous prediction behavior exhibited across models and datasets, the number of generated instances varies across categories (Q1-Q10). Different question types require specific prediction configurations, such as correct predictions, informative misclassifications, contrastive prediction pairs, or shared behavioral patterns across models. Consequently, the final instance count for each category is determined by the availability of meaningful and semantically valid examples satisfying these construction criteria. This naturally results in varying sample counts across question types, while ensuring that each generated instance reflects authentic model behavior and preserves the fidelity of the underlying prediction distributions.
A.6 Sequential and Hybrid Training
We compare two multi-modal GRPO training schedules, both using Qwen3-VL-30B-A3B-Instruct[55]. Sequential training fine-tunes one modality at a time, carrying each checkpoint forward to the next phase. Hybrid training interleaves all three modalities within every batch, grouped by question type via Q-type stratification.
Sequential Training
Phase 1 - Tabular. Fine-tuning on tabular data across 3 epochs drives the mean batch reward from 0.3 to 0.6. The resulting checkpoint achieves a tabular faithfulness score of 0.632.
Phase 2 - Text. Continuing from the tabular checkpoint drives the batch reward from 0.4 to 0.6 on text examples. However, re-evaluating the new checkpoint on the tabular test set reveals measurable catastrophic forgetting. The degradation happens across question types: Q3 drops from 0.326 to 0.264 (-0.06) and Q6 from 0.780 to 0.728 (-0.05). Both Q-types demand accurate numerical reasoning over feature rankings or feature value intervals – skills reinforced during tabular training and partially overwritten as the gradient signal shifts to text-span operations.
Phase 3 - Vision. Vision training for 200 steps shows a markedly weaker learning signal: the batch reward rises only from 0.512 to 0.578, compared to the steep trajectories in Phases 1 and 2 (Figure 6, left). We attribute the limited learning to two compounding effects. First, by Phase 3 the model's policy is already tightly peaked around tabular/text output formats, leaving insufficient entropy to explore the vision-specific bounding-box. Second, the flat reward curve indicates that rollout diversity has collapsed: all sampled trajectories produce similar rewards, so the group-normalized advantage for most rollouts, suppressing the gradient signal.
Hybrid Training
Hybrid training on all three modalities simultaneously runs for 902 steps across 3 epochs, with the batch reward rising from 0.313 to 0.594 (Figure 6, right). The slower convergence relative to any single-modality phase reflects the wider diversity of the joint training distribution: the model must maintain a flexible policy across tabular, text, and vision inputs simultaneously.

Figure 6: Training reward curves. (Left) Sequential training: Vertical dashed lines mark phase boundaries (Tab → Text → Vision); the vision reward barely rises, indicating collapsed rollout diversity. (Right) Hybrid training (all modalities interleaved): The recurring spikes are an artifact of the sampling seed, which concentrates relatively easy questions towards the end of each epoch.
A.7 Ablation Study: OOD Generalization
We evaluate MEA's out-of-distribution generalization along three axes: held-out question types within the proposed taxonomy, unseen datasets and model architectures, and a held-out question type entirely outside the taxonomy (concept-level explanation).
Held-out question types. We use spurious feature questions as OOD question types, as MEA is never trained on them (see Sec. 3). Results in Table 5 show that MEA achieves higher overall faithfulness on tabular and text modalities, with particularly notable gains on Q8 for text. On vision inputs, the base agent slightly outperforms MEA, suggesting that generalization to spurious feature reasoning remains challenging for vision modality without explicit training signal.
Table 5: OOD faithfulness scores on held-out question types Q8 and Q9. Best per row in bold.
| Modality | Question Type | Base Agent | MEA |
|---|---|---|---|
| Tabular | Q8 | 0.132 | 0.184 |
| Q9 | 0.024 | 0.019 | |
| Overall | 0.081 | 0.106 | |
| Text | Q8 | 0.186 | 0.353 |
| Q9 | 0.066 | 0.075 | |
| Overall | 0.116 | 0.186 | |
| Vision | Q8 | 0.068 | 0.050 |
| Q9 | 0.070 | 0.023 | |
| Overall | 0.069 | 0.034 |
Unseen datasets and model architectures.. Table 6 reports faithfulness on entirely unseen dataset-model combinations for each modality. MEA achieves the highest overall faithfulness across all three modalities, though it underperforms the base agent on text counterfactual and vision feature attribution, which we attribute to further hyperparameter tuning needed for better modality-specific trade-offs.
Concept-level explanation generalization. MEA's faithfulness protocol (Sec. 3.4) is fundamentally tied to local input-region perturbation: masking a feature subset, token span, or bounding box. To test generalization beyond input-perturbation and beyond the trained question taxonomy entirely, we introduce a held-out question type, Q11 (“Which concept was most responsible for the model’s prediction?”), on CUB-200-2011, which asks the agent to name a semantic concept (e.g., “bill shape: hooked seabird”) rather than a region.
Table 6: OOD faithfulness scores on different datasets and model architectures. Best performance is bolded.
| Modality | Question Group | Base Agent | MEA |
|---|---|---|---|
| Tabular | Feature Attribution | 0.447 | 0.783 |
| Counterfactual | 0.422 | 0.499 | |
| Spurious Features | 0.264 | 0.349 | |
| Overall | 0.379 | 0.581 | |
| Text | Feature Attribution | 0.428 | 0.563 |
| Counterfactual | 0.860 | 0.770 | |
| Spurious Features | 0.639 | 0.778 | |
| Overall | 0.625 | 0.689 | |
| Vision | Feature Attribution | 0.621 | 0.583 |
| Counterfactual | 0.246 | 0.521 | |
| Spurious Features | 0.416 | 0.624 | |
| Overall | 0.448 | 0.576 |
Faithfulness is scored by training a Concept Activation Vector (CAV) [56], which is a linear probe on the model's penultimate-layer representation for each concept, and orthogonally projecting that direction out of the activation () before re-running only the classifier head; the probability drop is the faithfulness score, and the entire measurement happens in representation space. The Proposer/Actor pipeline still uses MEA's existing tool library to decide which concept to name (Appendix A.2); only the evaluation mechanism differs from Q1–Q10.
Table 7 shows that, across 120 questions (cub_resnet + cub_densenet), MEA scores ~18% higher mean concept faithfulness than the base agent despite never being trained on this question type. Together, these results indicate MEA's thought-action-observation loop generalizes across ablation targets (input region or representation direction).
Table 7: Base agent vs. MEA on Q11 (concept attribution), 120 questions.
| Metric | Base Agent | MEA |
|---|---|---|
| Mean faithfulness | 0.0316 | 0.0373 |
| Median faithfulness | 0.0150 | 0.0218 |
| Max faithfulness | 0.2398 | 0.2650 |
| Class-flip rate (ablation changes prediction) | 5/120 | 4/120 |
A.8 Ablation Study: Prompt Robustness
To assess prompt robustness, we generate three semantically-equivalent paraphrases of every question in the taxonomy. Dynamic values (feature names, row IDs, class labels, masked tokens) are extracted from the original question via regular expressions and re-injected verbatim into each paraphrase template, preserving semantic equivalence. Q1-Q4 receive three lexically distinct variants; Q5-Q7 and Q10 share a single uniform paraphrase across all three runs (variant-independent templates). Table 8 lists the question-field phrasings for each type, illustrated with tabular-modality examples. Due to computational constraints, paraphrase evaluation is conducted on one dataset per modality.
A.9 Ablation Study: Critic Agent
The Critic Agent augments the base agent pipeline with an inference-time reflection step. After the Actor Agent produces a strategy and explanation and receives a faithfulness score, the Critic receives a structured prompt and returns two critiques: a Proposer Reflection (feedback on tool selection) and an Actor Reflection (feedback on explanation quality). The actor agent then regenerates its strategy and explanation conditioned on this feedback. Fig. 8 shows that MEA consistently outperforms Agent+Reflection despite the added inference-time step: on text counterfactual questions,
A.

B.
C.
Paraphrase (mean±SE) MEA
Figure 7: Ablation on prompt robustness. Mean faithfulness scores of MEA evaluated on three paraphrased variants of the question taxonomy across (A) tabular, (B) text, and (C) vision modalities. Minimum variance indicates that MEA is robust to changes in question phrasing.
A.

B.
C.
Figure 8: Ablation on critic agent. Mean faithfulness scores across three que1on categories for the base agent, base agent augmented with a critic agent, and MEA, evaluated on (A) tabular, (B) text, and (C) vision modalities. MEA consistently outperforms both baselines, demonstrating that RL-based training yields stronger improvements than inference-time critique.
Agent+Reflection scores 0.644 while MEA reaches 0.876 (+36%); on vision counterfactual questions, 0.439 vs. 0.569 (+30%). Strikingly, on tabular spurious features the critic step even degrades performance (0.514) relative to the base agent (0.677), while MEA achieves 0.997. These results demonstrate that RL-based end-to-end training provides substantially stronger and more reliable gains than inference-time critique.
Prompt. Figure 10 shows the complete prompt structure passed to the Critic Agent. Each section is populated with runtime values extracted from the pipeline outputs.
Output Schema. The Critic returns two feedbacks, separated by the markers PROPOSER_REFLECTION and ACTOR_REFLECTION. Table 9 describes each field. The Proposer Reflection is consumed by the
Table 8: Three paraphrase variants of each question type (Q-field only; tabular modality shown). Dynamic values such as feature names, row IDs, and class labels (denoted {placeholder}) are extracted from the original question via regex and re-injected verbatim at generation time.
| Q-Type | Variant 1 | Variant 2 | Variant 3 |
|---|---|---|---|
| Q1 | What was the most influential feature driving the model’s prediction? | Which feature played the biggest role in this prediction? | What did the model rely on most heavily to reach this conclusion? |
| Q2 | Which input feature had the least effect on the model’s decision? | Which feature mattered least to the model’s prediction? | Which feature is least relevant to the model’s conclusion? |
| Q3 | What features were most critical in setting this prediction apart from the runner-up class? | Which features tipped the balance toward this prediction over the runner-up? | What distinguishes this prediction from the second most likely alternative? |
| Q4 | What differences in the inputs account for the model giving instances A and B different predictions? | Why does the model give different predictions to these two instances? | What input differences lead to contrasting predictions for these two instances? |
| Q5 | Would the model’s output change if a specific feature were removed from this input? | If a particular feature were excluded, would the model’s prediction remain the same? | How sensitive is the model’s output to the presence of a specific feature? |
| Q6 | What modifications to this instance would cause the model to output a different class? | How should this input be changed to flip the model’s prediction to a different class? | What changes to this instance would lead the model to predict a different outcome? |
| Q7 | How would the model’s output be affected if {feature} were altered or removed? | What would happen to the model’s prediction if {feature} were modified or excluded? | In what way would the model’s output change if {feature} were no longer present? |
| Q10 | What explains the model’s success on {correct instances} but its failure on {wrong instance}? | Why does the model correctly classify {correct instances} but fail on {wrong instance}? | What distinguishes {wrong instance} from {correct instances} such that the model predicts it incorrectly? |
Proposer Agent to revise its tool selection; the Actor Reflection is consumed by the Actor Agent to revise its explanation.
A.10 Ablation Study: Proposer Strategy Mode
The Proposer's strategy schema (Sec. 3.3) allows , but the main results always let the Proposer choose freely among the three. To isolate how much autonomous reasoning contributes beyond tool use alone, we force the Proposer into each single-mechanism regime – tool_only (external XAI tools alone, autonomous reasoning disabled) and autonomous_only (self-reasoning alone, zero tool calls) – for both the base agent and MEA, over a fixed 500-question sample stratified by (dataset × question type) and allocated across modalities in proportion to test-set size (tabular 150 / text 195 / vision 155; Q1–Q7, Q10). Isolation is enforced at two levels: the disallowed branch's schema field is omitted from the Proposer prompt entirely, and a post-hoc check strips any leaked fields and fails the sample if the required branch is empty – verified directly against execution logs (zero leaked autonomous tasks in tool_only runs, zero tool invocations in autonomous_only runs).
Tool use is the stronger single mechanism for both models, but autonomous reasoning with zero external tool calls already recovers 87.3% (base) / 91.3% (MEA) of tool-only faithfulness. Training improves the autonomous-only arm more than the tool-only arm (+0.153 vs. +0.141 mean faithfulness), narrowing the tool/autonomous gap after training. Most notably, for MEA letting the Proposer choose freely (0.748) outperforms both forced single-mechanism arms in every one of the
Table 9: Output JSON schema of the critic agent.
| Object | Field | Description |
|---|---|---|
| PROPOSER | analysistool_analysistools_to_keeptools_to_removetools_to_addstrategy Suggestions | Overall assessment of tool selectionPer-tool rating (high/medium/low) and recommendation (keep/remove/replace)Tools to retain in the revised strategyTools to dropNew tools to includeFree-text suggestions to improve tool selection |
| ACTOR | analysisidentified_issuesregion_feedbackexplanation_feedbackimprovement Suggestions | Overall assessment of explanation qualitySpecific errors or weaknesses in the explanationFeedback on the accuracy of the identified region or featureFeedback on clarity and correctnessFree-text suggestions to improve the explanation |
Table 10: Mean faithfulness by model and Proposer strategy mode.
| Model | Strategy Mode | n | Mean Faith. | Pass Rate |
|---|---|---|---|---|
| Base Agent | Autonomous only | 493 | 0.515 | 48.5% |
| Tools only | 475 | 0.589 | 54.9% | |
| Free choice (hybrid) | 2622 | 0.516 | 49.4% | |
| MEA | Autonomous only | 498 | 0.668 | 66.7% |
| Tools only | 498 | 0.731 | 74.7% | |
| Free choice (hybrid) | 2654 | 0.748 | 76.5% |
three modalities (tabular +0.006, text +0.018, vision +0.026 over the better single mode), whereas for the base agent, free choice (0.516) is statistically indistinguishable from autonomous-only and clearly below tools-only (0.589) – i.e., productively combining the two mechanisms is a capability training creates, not a free byproduct of offering both options. On Q6 (flip prediction) specifically, MEA’s free-choice arm (0.822) exceeds both tool_only (0.766) and autonomous_only (0.782) taken individually on the identical instances, a direct in-model demonstration that the two mechanisms are complementary rather than redundant.
A.11 Ablation Study: Backbone Scale Transfer
To test whether MEA’s training benefit transfers to a substantially smaller policy backbone, we repeat the Base-Agent-vs-MEA comparison on Qwen3.5-4B [57] (roughly an order of magnitude smaller in active parameters), in addition to training-reward curves on a second backbone Qwen3-VL-30B-A3B-Instruct in Appendix A.6. We train Qwen3.5-4B for a single epoch (300 LoRA steps, rank 32) with the identical reward pipeline, under the same evaluation protocol used throughout the paper.
Table 11 shows that, on this smaller 4B backbone, MEA shows similar improvement as reported for the 30B & 35B backbones, suggesting that training improves faithfulness in every modality overall (tabular 0.419 → 0.671 (+60%), text 0.403 → 0.575 (+43%), vision 0.142 → 0.508 (+258%)), demonstrating that faithfulness gain comes from the training procedure rather than being an artifact specific to a single, large backbone.
A.12 Sanity Check: Synthetic Shortcut on a Biased Classifier
A concern with any LLM-based explanation agent is that it may be faithful to the target model only when the model’s decisions already align with the LLM’s own semantic priors, rather than to the target model’s actual (possibly idiosyncratic) decision process. To test this directly, we trained a TwoLayerNN on Adult Census with an injected synthetic shortcut column, verification_flag, ~90% correlated with the true label (noise rate 0.10, seed 42) – a feature whose dominance a domain expert or LLM prior would not anticipate for an income-prediction task. We independently verified the injected bias before any agent evaluation: overall test accuracy 0.939; accuracy on rows where
CoT Actor Preamble
Reasoning Mode: Chain-of-Thought
Before generating your explanation, reason through the evidence step-by-step:
-
Understand the question: What exactly is being asked?
-
Analyze the XAI tool results: What do the attribution maps, importance scores, and statistics tell us?
-
Identify the key features/regions: Based on the tool outputs, which specific parts of the input are most relevant?
-
Synthesize your answer: Combine the evidence into a clear, specific, and well-supported explanation. Think step by step, then provide your final answer as valid JSON.
ReAct Actor Preamble
Reasoning Mode: ReAct (Reasoning + Acting)
Interleave your reasoning with the evidence to build your explanation:
For each piece of evidence from the XAI tools:
Thought: What does this result tell us about the model's decision?
Observation: Note the key values, features, or regions highlighted.
Reflection: How does this connect to answering the question?
After processing all evidence:
Final Thought: Synthesize all observations into a coherent answer.
Then provide your final answer as valid JSON.
ToT Actor Preamble
Reasoning Mode: Tree of Thought
Consider multiple possible interpretations of the evidence before settling on your answer:
Interpretation 1: What does the evidence suggest if you weight the highest-attribution features most heavily?
Interpretation 2: What alternative explanation could account for the same tool results?
Interpretation 3: Which interpretation is most consistent with ALL the evidence, not just the strongest signal?
Evaluate each interpretation against the evidence quality, specificity, and completeness. Select the strongest interpretation and provide your final answer as valid JSON.
Figure 9: Generic actor preambles prepended to the actor prompt for each reasoning baseline across all question types.
the flag agrees with the true label (89.7% of rows) is 0.981, dropping to 0.575 on the 10.3% of rows where they disagree, and on those disagreement rows the model follows the flag (not the truth) 42.5% of the time; an ablation flip-rate test confirms verification_flag is more influential on the model's output than a comparable real feature (education-num flip rate 0.8% vs. 16.1%).
MEA wins or ties on every one of the 8 question types tested (Q1–Q7, Q10), with 5 of 8 significant at p < 0.05 (Table 12). Beyond the aggregate score, we checked whether each agent actually names the shortcut when it matters: on the 13/20 Q1 rows where verification_flag is verifiably the top driver by occlusion importance, MEA names it correctly in 12/13 vs. 9/13 for the base agent; on Q2 (“least responsible feature”), the base agent incorrectly calls verification_flag least responsible on 10/20 rows where it is actually dominant – a genuine faithfulness failure – while MEA does this 0/20 times. On a classifier whose decision logic is engineered to deviate from human/LLM-intuitive reasoning, MEA’s explanations remain grounded in the model’s actual (biased) decision process rather than reverting to prior-knowledge-consistent reasoning. We scope this finding to the single bias-injection design and tabular modality tested here, and note it does not directly test vision-specific shortcuts (e.g., watermarks) or amplified real sensitive attributes.
Table 11: Faithfulness by question category, 4B backbone. Best per row in bold.
| Modality | Category | Baseline | Trained |
|---|---|---|---|
| Tabular | Feature Attribution | 0.446 | 0.578 |
| Counterfactual | 0.398 | 0.763 | |
| Spurious Features | 0.356 | 0.933 | |
| Overall | 0.419 | 0.671 | |
| Text | Feature Attribution | 0.325 | 0.534 |
| Counterfactual | 0.413 | 0.480 | |
| Spurious Features | 0.660 | 0.960 | |
| Overall | 0.403 | 0.575 | |
| Vision | Feature Attribution | 0.297 | 0.522 |
| Counterfactual | 0.028 | 0.488 | |
| Spurious Features | 1.000 | 0.955 | |
| Overall | 0.142 | 0.508 |
Table 12: Faithfulness score by question category on the biased classifier, paired t-test by (q_type, row_no).
| Category | Base | MEA | Δ | p |
|---|---|---|---|---|
| Feature Attribution (Q1–4) | 0.407 | +0.219 | 1.0e-6 | |
| Counterfactual (Q5–7) | 0.653 | +0.288 | 1.2e-5 | |
| Spurious Features (Q10) | 0.725 | +0.275 | 0.0022 |
A.13 Statistical Significance Tests
We report two-sided Welch's t-tests (unequal variance, unpaired) [49] for comparisons against independent baselines, and paired t-tests for the paraphrase ablation (where scores are matched by sample ID across conditions). The significance level is α = 0.05; “n.s.” denotes p > 0.05. All values are mean ± standard error of the mean (SEM).
Vision Feature-Attribution Tool-Only Baselines.
Table 13 compares MEA (Q1, vision; n = 96, mean = 0.499 ± 0.029) against six tool-only XAI baselines evaluated on the same vision feature-attribution task (Sensitivity had no evaluation data and is excluded). MEA is statistically equivalent to three gradient-based methods (IG, Guided Backprop, SmoothGrad) and significantly outperforms three others (SHAP, LIME, GradCAM).
Table 13: Welch's t-test: MEA vs. tool-only XAI baselines (vision, feature attribution Q1). MEA mean = 0.499 ± 0.029 (n = 96).
| Baseline | n | Mean ± SEM | Δ (MEA – BL) | t | p | Sig. |
|---|---|---|---|---|---|---|
| SHAP | 59 | 0.018 ± 0.007 | +0.481 | 16.26 | < 0.001 | * |
| LIME | 96 | 0.259 ± 0.027 | +0.240 | 6.09 | < 0.001 | * |
| Integrated Gradients | 96 | 0.481 ± 0.029 | +0.018 | 0.44 | 0.661 | n.s. |
| Guided Backprop | 96 | 0.497 ± 0.027 | +0.003 | 0.07 | 0.944 | n.s. |
| SmoothGrad | 96 | 0.496 ± 0.030 | +0.003 | 0.08 | 0.935 | n.s. |
| GradCAM | 96 | 0.131 ± 0.017 | +0.368 | 10.95 | < 0.001 | * |
Spurious-Feature Faithfulness (Q10). Table 14 reports Welch's t-test results for the spurious-feature question type (Q10) across text and vision modalities. MEA achieves ceiling performance (1.000 ± 0.000, n = 160) on both modalities–every sample is scored correctly. All Welch's t-tests return p < 0.05; however, this should be interpreted in light of the ceiling effect: when one group has zero variance, any non-zero difference in means will be flagged as significant regardless of its practical magnitude. For the strongest baselines the actual performance gap is negligible–Gemini-3.1 reaches 0.996 on text (gap: +0.004) and Base Agent reaches 0.981 on vision (gap: +0.019)–indicating that top-performing models already saturate Q10 and MEA's advantage is marginal. The significant p-values for weaker baselines (e.g. Claude-Haiku-4.5: 0.665 text, 0.855 vision) do reflect a meaningful improvement. CoT, ToT, and ReAct baselines had no Q10 evaluation data available.
Table 14: Welch's -test: MEA vs. baselines on spurious-feature questions (Q10).
| Modality | Baseline | Mean SEM | (MEA – BL) | Sig. | |||
|---|---|---|---|---|---|---|---|
| Text | Base Agent | 156 | * | ||||
| GPT-5.4 | 157 | * | |||||
| Claude-Haiku-4.5 | 158 | * | |||||
| Gemini-3.1 | 160 | * | |||||
| Vision | Base Agent | 148 | * | ||||
| GPT-5.4 | 156 | * | |||||
| Claude-Haiku-4.5 | 160 | * | |||||
| Gemini-3.1 | 159 | * |
Paraphrase Robustness Ablation. Table 15 presents paired -tests comparing Paraphrase (mean of three paraphrase runs, matched on common sample IDs) against MEA. In 8 of 9 question-type×modality conditions, there is no statistically significant difference, confirming that MEA's performance is robust to prompt paraphrasing. The single significant difference (vision counterfactual, ) shows Paraphrase outperforming MEA by 0.075, suggesting that this question type may benefit from additional training diversity.
Table 15: Paired -test: Paraphrase vs. MEA (matched common samples). .
| Modality | Question Group | Paraphrase () | MEA () | Sig. | ||||
|---|---|---|---|---|---|---|---|---|
| Tabular | Feature Attribution | 106 | n.s. | |||||
| Counterfactual | 32 | n.s. | ||||||
| Spurious Features | 17 | - | - | n.s. | ||||
| Text | Feature Attribution | 126 | n.s. | |||||
| Counterfactual | 85 | n.s. | ||||||
| Spurious Features | 37 | - | - | n.s. | ||||
| Vision | Feature Attribution | 96 | n.s. | |||||
| Counterfactual | 72 | * | ||||||
| Spurious Features | 40 | - | - | n.s. |
Note: “-” denotes that both conditions achieve identical ceiling performance (all scores = 1.0), making -test inapplicable.
A.14 Computational Cost
Model architecture and parameters. MEA uses Qwen3.6-35B-A3B [40] as its backbone, a Mixture-of-Experts multi-modal language model with 35 billion total parameters and approximately 3.5 billion parameters activated per forward pass (A3B). During inference for evaluation, we serve the model via LoRA adapters with rank 32, adding additional parameters relative to the frozen base. Baseline comparisons using the un-finetuned backbone employed Qwen3.6-35B-A3B, while closed-source frontier baselines (Gemini-3.1-flash, GPT-5.4, Claude-Haiku-4.5) were accessed via their respective public APIs.
GRPO training. All reinforcement learning training was conducted through Tinker [58], a cloud-based training service that manages GPU allocation and distributed rollout execution internally; per-GPU-hour accounting is therefore not directly available from our training logs. The main hybrid training run ran for GRPO steps with a group size of 128-256 rollouts per step processed per step, covering all three modalities jointly. Each step produced a mean episode length of turns and action tokens.
Post-hoc explainers. All post-hoc explainers and faithfulness metric computation, and ablations were run on a NVIDIA A100 GPUs (1 GPU per job, 16 CPU cores, 30 GB system RAM). Jobs were parallelized across datasets and question types (up to 4 concurrent jobs per modality). The full test-set evaluation for a single modality (3.5K instances across 4 dataset-model combinations and 10 question types) required approximately 8-12 A100 GPU-hours depending on modality complexity, with vision
Critic Agent Prompt Template
System Role:
You are a critical analyst evaluating an XAI agent's strategy and explanation.
User Input:
Original Question
<question text / example context>
Question Context
Question Type: Q<1-10>
Modality: <tabular | text | vision>
Strategy Used
Strategy Type: <tool-based>
Selected Tools: <list of tool names>
Strategy Reasoning: <Proposer's reasoning for tool selection>
Generated Explanation
Output: <Actor's structured output dict>
Explanation: <natural language explanation>
Confidence: <Actor's self-reported confidence>
Faithfulness Evaluation
Score: <faithfulness score>
Metric: <metric name and formula>
:
Task Instruction:
Analyze the strategy and results, then provide two separate JSON outputs:
-
PROPOSER_REFLECTION: feedback on tool selection strategy.
-
ACTOR_REFLECTION: feedback on explanation generation.
Consider what went wrong, which tools were most or least helpful, and how both the strategy and explanation could be improved.
Figure 10: Complete prompt structure of the Critic Agent.
being the most expensive due to image preprocessing and SmoothGrad/GradCAM computation. Summing across the three modalities, primary test evaluations consumed an estimated 30-40 A100 GPU-hours. Ablation runs (prompt robustness, critic agent, OOD datasets) added approximately an additional 20-30 A100 GPU-hours. Total estimated evaluation compute is therefore on the order of 50-70 A100 GPU-hours.
A.15 Prompt Templates for Proposer and Actor Agent
Refer to Fig.11 for the Actor Agent's prompt template and Fig.12 for the Proposer Agent's prompt template.
Actor Agent Prompt Template
System Role:
You are an XAI expert. Based on the provided analysis, execute task-specific directive for Q1-Q10 .
User Input:
Context & Prediction
Question ( ): specific question text
Model Prediction: Class: predicted class
Conf: score
Input Data
<raw input text / tabular row / image data>
XAI Analysis
Tool Results Summary:
<status and most influential features per tool>Detailed Statistics:
• Integrated Gradients: top positive/negative attributions
• SHAP: top positive/negative shap values
• Sensitivity: most sensitive prob drops
Autonomous Reasoning Results:
GROUNDING: extracted features matching query
REASONING: semantic explanation for features
COMPARISON: alignment with model prediction
Your Task
<Specific directive corresponding to Question Q1-10>Required Output Format (JSON only)
{ "output": { "<modality_key)": <expected data structure> }, "explanation": "2-3 sentences explaining your reasoning." }
Critical Requirements
• For vision: bounding_box as
• For text: spans as a list of
• For tabular: feature_keys as a list of column names
• OUTPUT SIZE CONSTRAINT: size limit dictated by question type
• Base your decision on the attribution analysis.
Final Instruction: Respond with ONLY JSON.
Figure 11: Prompt structure for the Actor Agent. Task directives, constraints, and JSON schema keys are populated dynamically at runtime based on the specific question type (Q1-Q10) and data modality.
Proposer Agent Prompt Template
System Role:
You are an AI explainability expert designing a strategy to answer a user's question about a machine learning model's prediction on .
User Input:
Question & Data Context
Question: <user question text>
Input Content: <truncated input text, image, or tabular row>
Model Information
Model: <model name> Arch:
<architecture>Prediction: <class index & name> (Conf: <score>)
Top-K Predictions: <list of dicts containing top probabilities>
Available Methods
-
Autonomous Analysis: <instructions on using internal reasoning to ground/extract features>
-
External XAI Tools:
• lime: <executes local surrogate explanation>
• integrated_gradients: <computes path attribution>
• shap: <computes shapley values>
• sensitivity_analysis: <leave-one-out ablation>
• guided_backprop: <modified ReLU gradients>
• smoothgrad: <averaged noisy saliency>
Your Task
<Specific strategy design directive corresponding to Question Q1-10>Required Output Format (JSON only)
{ "strategy_type": "autonomous" | "tools" | "hybrid", "reasoning": "Explain strategy choice (2-3 sentences)", "autonomous_tasks": [ { "task_type": "grounding" | "reasoning" | "comparison", "query": "Specific query for autonomous analysis", "expected_output": "What should be extracted" } ], "tool_selection": { "selected_tools": <subset of available tools>, "reasoning": "Why these tools for this modality" } }
Final Instruction: Provide your strategy as a JSON object:
Figure 12: Prompt structure for the Proposer Agent. Task directives are populated dynamically based on the active question type (Q1-Q10), ensuring the strategy generated aligns with the specific objective.