MetaExplainer: A Framework to Generate Multi-Type User-Centered Explanations for AI Systems

Shruthi Chari, Oshani Seneviratne, Prithwish Chakraborty, Pablo Meyer, Deborah L. McGuinnessarXiv 2025

TL;DR

MetaExplainer is a neuro-symbolic framework that bridges the gap between raw AI model outputs and the intuitive explanations human users actually need. By combining the linguistic flexibility of Large Language Models (LLMs) with the structured precision of a formal Explanation Ontology, it translates free-form user questions into targeted explainability algorithms (like SHAP or DiCE) and synthesizes the results back into clear, natural language.

What Problem Does This Paper Address?

Traditional Explainable AI (XAI) tools are built for developers, not end-users. Algorithms like SHAP or LIME generate feature importance vectors or complex data frames that leave domain experts, such as clinicians, scratching their heads. When a doctor asks, "Why is this patient at high risk for diabetes?" or "What if their BMI were lower?", they expect a direct, contextual answer—not a raw mathematical chart.

While conversational XAI interfaces exist, they are typically rigid, rule-based, or restricted to a single type of explanation. MetaExplainer addresses this lack of flexibility by providing a modular framework capable of dynamically generating five distinct, user-centered explanation types (Contrastive, Counterfactual, Rationale, Case-Based, and Data) based entirely on how a user phrases their question.

Methods

MetaExplainer uses a three-stage Decompose-Delegate-Synthesize pipeline that elegantly blends deep learning with symbolic AI:

  1. Decompose: A fine-tuned Llama3 model acts as the semantic parser. It takes a user's natural language question and translates it into an intermediate predicate logic format, extracting key variables, feature filters, and the underlying explanation type requested.
  2. Delegate: The framework uses the formal Explanation Ontology (EO) to map the identified explanation type to the best-suited backend XAI algorithm (e.g., SHAP for feature importance, DiCE for counterfactuals, Protodash for case-based examples). These algorithms are then executed against the predictive model via automated SPARQL queries.
  3. Synthesize: The raw dataframes generated by the XAI algorithms are fed into a Retrieval-Augmented Generation (RAG) pipeline powered by LlamaIndex. The LLM structures this data using templates provided by the ontology to output a coherent, natural language response.
Figure 1: Workflow diagram of MetaExplainer, highlighting the different input and output streams. Methods are indicated by green boxes and all other data components are shown in blue.

Datasets

The authors evaluated the framework using the Pima Indians Diabetes Dataset, a widely cited tabular dataset consisting of 768 records and 9 columns (8 clinical features and 1 binary outcome variable indicating diabetes onset). To generate the underlying predictions, they trained three standard classifiers (Logistic Regression, Decision Tree, and Random Forest), utilizing the top-performing Logistic Regression model (F1-score of 0.77) to feed the explainers.

Key Insights and Ideas

  • The Neuro-Symbolic Bridge: Pure LLMs are prone to hallucinations and struggle with precise mathematical constraints, while standalone XAI algorithms lack conversational context. By using a formal ontology as an explicit structural guide, MetaExplainer anchors the LLM's generative capabilities to verified algorithmic outputs.
  • Dynamic Multi-Type Explanations: Instead of forcing every user query into a feature-importance box, the system dynamically shifts its explanation strategy. A "What if" question triggers a counterfactual generator, while a "Why" question yields a rule-based rationale.
  • Decoupled Extensibility: Because the relationship between user intent and XAI algorithms is managed entirely within the ontology, developers can add support for new explanation types, metrics, or machine learning models simply by updating the ontology graph—no core code rewrites required.

Key Results

The authors conducted a rigorous per-stage quantitative evaluation alongside a qualitative user study:

  • Parsing Accuracy (Decompose): The fine-tuned Llama3 model achieved a 59.06% F1-score for exact machine interpretation parsing and an impressive 81.46% F1-score for correctly identifying user-implied likelihoods.
  • Explainer Quality (Delegate): The backend explainers demonstrated strong performance, yielding a 0.71 faithfulness score for feature importances (SHAP) and a high diversity score (340.96) for generating alternative data samples.
  • Generation Quality (Synthesize): The RAG pipeline achieved 66% answer relevance and 67% context utilization, proving that the final text accurately reflected the underlying data.

Performance metrics for the Decompose stage text fields. Summary of metrics for model explanation outputs from the Delegate stage. RAG metrics for the natural-language explanations generated in the Synthesis stage.

  • User Satisfaction: A study involving 20 participants showed that over 90% felt the system successfully satisfied their curiosity and helped build trust in the AI's predictions. However, overall system satisfaction sat at 67.41%, as users still expressed some hesitation regarding the transparency of the MetaExplainer framework itself.

Limitations and Future Work

  • The Synthesis Faithfulness Gap: While context utilization was high, the automated RAG faithfulness metric scored low (25%). This indicates that translating complex tabular data into perfectly faithful natural language summaries remains a difficult hurdle for LLMs.
  • Modality Limitations: The framework was only validated on a small, tabular dataset. The authors note that expanding MetaExplainer to handle multi-modal data (such as combining clinical charts with medical imaging or text notes) is a critical next step.
  • User Interface Refinement: User feedback highlighted that while the generated content was highly creative and comprehensive, the presentation format needs to be improved to reduce user hesitation during critical decision-making tasks.

Summary updated

BibTeX
@misc{chari2025metaexplainer,
  author = {Shruthi Chari and Oshani Seneviratne and Prithwish Chakraborty and Pablo Meyer and Deborah L. McGuinness},
  title = {{MetaExplainer: A Framework to Generate Multi-Type User-Centered Explanations for AI Systems}},
  year = {2025},
  eprint = {2508.00300},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.00300},
}
Figure