[Paper Review] Can Explanations Be Useful for Calibrating Black Box Models?
This paper proposes a calibration method that uses model attributions and human-crafted heuristics to improve black box NLP model performance on out-of-domain data without parameter updates. By combining LIME or SHAP attributions with task-specific features, a simple classifier predicts model correctness, achieving state-of-the-art performance in selective question answering and outperforming fine-tuning in some cases, demonstrating that explanations significantly enhance model calibration.
NLP practitioners often want to take existing trained models and apply them to data from new domains. While fine-tuning or few-shot learning can be used to adapt a base model, there is no single recipe for making these techniques work; moreover, one may not have access to the original model weights if it is deployed as a black box. We study how to improve a black box model's performance on a new domain by leveraging explanations of the model's behavior. Our approach first extracts a set of features combining human intuition about the task with model attributions generated by black box interpretation techniques, then uses a simple calibrator, in the form of a classifier, to predict whether the base model was correct or not. We experiment with our method on two tasks, extractive question answering and natural language inference, covering adaptation from several pairs of domains with limited target-domain data. The experimental results across all the domain pairs show that explanations are useful for calibrating these models, boosting accuracy when predictions do not have to be returned on every example. We further show that the calibration model transfers to some extent between tasks.
Motivation & Objective
- To address the challenge of deploying black box NLP models in new domains where fine-tuning is infeasible due to lack of model weights.
- To investigate whether model explanations (via feature attributions) can improve calibration of black box models on out-of-domain data.
- To develop a calibrator that uses both human intuition and model-level attributions to predict model correctness without accessing model parameters.
- To evaluate generalization of the calibrator across domains and tasks, especially in selective prediction settings.
Proposed method
- The method extracts input tokens and their attribution scores using LIME or SHAP, which quantify the importance of each token in the model's prediction.
- It constructs a set of features combining human-identified heuristics (e.g., presence of proper nouns or verbs) with attribution scores for those tokens.
- A binary classifier (the calibrator) is trained on a small set of labeled examples from the target domain to predict whether the black box model's prediction is correct.
- The calibrator is evaluated in both standard and selective question answering settings, where predictions are only retained if the calibrator deems them reliable.
- The approach leverages instance-specific explanations to build a meta-learner that estimates model reliability, avoiding reliance on model confidence scores.
- The method is evaluated across two tasks—extractive question answering and natural language inference—on five source-target domain pairs.
Experimental results
Research questions
- RQ1Can explanations derived from black box model attributions improve calibration of models on out-of-domain data?
- RQ2Does combining human-identified heuristics with model attributions lead to better calibrator performance than baselines that do not use explanations?
- RQ3Can the trained calibrator generalize to new domains or tasks without retraining?
- RQ4In selective prediction settings, does the explanation-based calibrator outperform existing methods in identifying reliable predictions?
Key findings
- The explanation-based calibrator, named LimeCal, consistently outperforms baselines across all five domain pairs in both extractive question answering and natural language inference tasks.
- In the selective QA setting, LimeCal achieves the highest performance among all methods, especially excelling when Squad-Adv is used as an OOD distribution.
- In some settings, the explanation-based calibrator outperforms fine-tuning the model on target-domain data, despite the latter having full access to model parameters.
- The calibrator demonstrates transferability: a model trained on one domain can generalize to another, indicating learned heuristics are robust across domains.
- The method improves model reliability by identifying correct predictions with high accuracy, even when the base model fails on out-of-domain examples.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.