Introduction
As Natural Language Processing (NLP) models become increasingly complex, the need for effective Explainable AI (XAI) grows. Most current XAI methods provide static, "one-shot" outputs—such as a single heatmap or a lone counterfactual example. While these are informative, they often leave users with unresolved questions or ambiguities. InterroLang addresses this gap by framing interpretability as a conversational process, allowing users to probe models and datasets through natural language dialogue.
By moving beyond static explanations to an interactive "question-and-answer" format, InterroLang significantly improves a human's ability to understand and predict model behavior across various tasks, including hate speech detection and reading comprehension.
The InterroLang Framework
InterroLang adapts the TALKTOMODEL framework specifically for the NLP domain. The system architecture consists of three main pillars designed to facilitate iterative understanding:
- Dialogue Engine: This component parses natural language user queries into an internal programming language. The authors evaluated several approaches for this intent recognition task, finding that a BERT model with Adapters provided the optimal balance of efficiency and accuracy, achieving 84.25% exact match parsing accuracy on the Offensive Language Identification Dataset (OLID).
- Execution Engine: This engine runs the parsed operations using a suite of NLP-specific tools, including token-level saliency maps (Integrated Gradients), counterfactual generation (Polyjuice), and free-text natural language justifications (leveraging LLMs like ChatGPT).
- Dialogue Management: The system tracks conversation history to resolve deictic expressions (e.g., "this sample") and manages ambiguities by asking clarification questions.
Experimental Setup and Datasets
The authors evaluated InterroLang across three diverse NLP tasks:
- DailyDialog: Dialogue act classification.
- BoolQ: Reading comprehension for yes/no questions.
- OLID: Offensive Language Identification (hate speech detection).
To support future research, the authors released a new dataset of 1,449 dialogue turns collected during user studies, providing a benchmark for how humans naturally seek explanations in NLP contexts.
Key Insights and Results
Dialogue Improves Simulatability
The most significant finding is that users are much better at "forward prediction"—guessing what the model will do on a new input—after a conversation than after seeing a single, static explanation. Users overwhelmingly preferred free-text rationales over technical saliency maps. When users found a rationale helpful, their ability to simulate the model reached near 100% accuracy.
The "Sanity Check" Effect
While feature attributions (heatmaps) help users form initial hypotheses about model behavior, perturbation methods like adversarial attacks serve as vital "sanity checks" to confirm or debunk those hypotheses. For instance, a user might see that a model relies on a specific word and then use the dialogue interface to test if changing that word flips the prediction.
Modular vs. Monolithic Approaches
Despite the current trend toward end-to-end Large Language Models (LLMs), the authors found that a modular approach—using a specialized parser to trigger specific, faithful XAI algorithms—is currently more reliable. This method ensures that explanations are grounded in the actual logic of the underlying model rather than being "plausible-sounding" hallucinations often produced by monolithic LLMs.
Conclusion and Future Work
InterroLang demonstrates that conversational interfaces can bridge the gap between complex NLP models and human understanding. Future work aims to improve the quality of underlying generation tools like Polyjuice and to make the dialogue agent more proactive, suggesting specific operations if it detects a user is struggling to identify model biases. By evolving from reactive tools to proactive partners, dialogue-based XAI can further democratize the understanding of AI systems.
Summary updated