Introduction
As Large Language Models (LLMs) like GPT-4 and Llama become increasingly integrated into critical workflows, the need for Explainable AI (xAI) has transitioned from a theoretical preference to a practical necessity. However, while xAI has made significant strides in image recognition and text classification, the domain of text generation remains a "wild west." Current model-agnostic methods, such as SHAP or LIME, often struggle to account for the unique architectural hurdles of autoregressive models. This paper identifies 17 critical challenges across the xAI pipeline and proposes a roadmap for more faithful, human-centered explanations.
The Problem: Why Generation is Different
Most existing xAI tools were designed for discriminative tasks where the goal is to provide "attribution scores"—highlighting which input features led to a specific label. Text generation introduces two complexities that break these traditional frameworks:
- Autoregressive Dependency: In generation, each token produced depends not only on the initial prompt but on every previously generated token. This creates a moving target for explanations.
- Stochasticity: Generative models are inherently probabilistic. The same prompt can yield different outputs depending on the random seed or sampling strategy. Current xAI methods often ignore this randomness, providing explanations that may not reflect the model's actual internal reasoning for a specific instance.
A Taxonomy of Challenges
The research maps the explainability pipeline into three distinct stages, identifying specific hurdles in each:
1. Dataset Creation (D)
The authors advocate for "Explainable Next-Token" selection. A primary challenge is that not every word in a generated sequence requires an explanation; function words (e.g., "the," "of") often carry little semantic weight compared to content words. The paper suggests involving linguists to create perturbed datasets—sentence pairs that differ by a single semantic or syntactic element—to determine if xAI methods can accurately detect these controlled changes.
2. Explanation Design (X)
This stage involves translating complex model weights into human-readable formats. Two major technical hurdles include:
- The Tokenization Trap: Modern models use subword tokenizers that split single words into multiple fragments. Most xAI methods assume a "one word = one feature" relationship, leading to fragmented and confusing attributions. The authors argue that xAI should treat all tokens belonging to a single word as a unified entity.
- LM Stochasticity: If a model is split 50/50 between two potential next words, the explanation should reflect that uncertainty. The paper proposes "probabilistic word-level explainability" to explain the entire probability distribution rather than just the sampled token.
3. Explanation Evaluation (E)
There is currently no standardized "grade" for generative explanations. The authors propose moving beyond simple accuracy toward two more robust metrics:
- Faithfulness: Does the explanation truly reflect the model's internal logic?
- Coherency: Do similar inputs produce logically consistent explanations?
Key Insights and Proposed Frameworks
Linguists as Architects
A central theme of the paper is that machine learning practitioners should not work in isolation. Linguists are essential for designing "minimal perturbations"—changing one dimension of a sentence (e.g., gender, number, or tense) to create a ground truth. This allows researchers to test if an xAI method actually "notices" the specific linguistic feature it is supposed to explain.
Contrastive Evaluation
Rather than asking if an explanation is "good" in a vacuum, the authors suggest a contrastive approach. By asking, "How does the explanation change when I change the input from 'The student saw their friends' to 'The student saw them'?", researchers can better isolate the causal factors in model output.
Results and Stakeholder Mapping
The paper provides a qualitative taxonomy of 17 challenges categorized into Dataset Creation (6), Explanation Design (4), and Evaluation (7). To address these, it defines specific roles for three key stakeholders:
- Linguists: Responsible for designing high-quality perturbations and ground-truth datasets.
- End-Users: Responsible for defining the necessary format and granularity of explanations.
- ML Practitioners: Responsible for developing the underlying mathematical frameworks and metrics to ensure faithfulness.
Limitations and Future Work
The current analysis is primarily focused on the English language. The authors acknowledge that challenges related to tokenization and dataset creation would be significantly more complex for morphologically rich or non-alphabetic languages.
The paper concludes with a call to action: the NLP community must collaborate on a standardized, perturbation-based benchmark. Without such a framework, generative xAI will remain a collection of disparate methods without a rigorous way to measure progress. Future work must also address the variability of subjective human judgment when evaluating how "helpful" an explanation truly is.
Summary updated