XAL: EXplainable Active Learning Makes Classifiers Better Low-resource Learners

Yun Luo, Zhen Yang, Fandong Meng, Yingjie Li, Fang Guo, Qinglin Qi, Jie Zhou, Yue Zhang

Abstract

Active Learning (AL) aims to minimize labeling effort by selecting the most informative data points for human annotation. However, traditional uncertainty-based methods often struggle with overconfident deep learning models that rely on spurious correlations. We present Explainable Active Learning (XAL), a framework that leverages a model's ability to generate natural language explanations as a selection criterion. By identifying instances where a model cannot justify its predictions, XAL selects more diverse and informative data. Our results across six diverse text classification tasks show that XAL consistently outperforms state-of-the-art AL baselines, achieving high performance with significantly less labeled data.

Introduction

The primary challenge in Active Learning is identifying data that truly expands a model's understanding. Deep learning models are frequently overconfident, often learning "shortcuts" or superficial patterns rather than the underlying logic of a task. Consequently, standard AL strategies like maximum entropy may select redundant or uninformative samples that lie near a flawed decision boundary. XAL addresses this by shifting the focus from statistical uncertainty to causal reasoning, requiring the model to "explain itself" to prove its understanding.

The XAL Framework

XAL utilizes an encoder-decoder architecture, specifically leveraging the FLAN-T5 model. The encoder performs the primary classification task, while the decoder generates a natural language rationale for the prediction.

The XAL framework architecture, illustrating the interaction between the encoder-decoder model, LLM-generated explanations, and the selection strategy.

Training with Ranking Loss

To ensure the decoder provides high-quality reasoning, the framework employs a ranking loss mechanism. Large Language Models (LLMs) like ChatGPT are used to generate "golden" explanations for labeled instances. Additionally, "unreasonable" explanations are generated by prompting the LLM with incorrect labels. The model is then trained to assign higher scores to logical, correct explanations than to unreasonable ones.

Selection Strategy

During the active learning cycle, unlabeled instances are evaluated based on two metrics: the encoder's entropy (traditional uncertainty) and the decoder's explanation score. If a model cannot provide a high-scoring, logical explanation for a prediction, that instance is considered highly informative and prioritized for human annotation. This approach ensures the model explores the data distribution more effectively than simple boundary-based sampling.

Experimental Results

We evaluated XAL on six datasets representing various challenges: RTE and MRPC (GLUE benchmark), MAMS (multi-aspect sentiment), COVID19 and DEBA (stance detection), and CLEF (imbalanced relevance classification).

Macro-F1 scores across six datasets, comparing XAL against nine active learning baselines as the number of labeled instances increases.

XAL consistently outperformed nine strong baselines, including BALD, CoreSet, and BADGE. Key findings include:

  • Efficiency: On the RTE task, XAL reached 90% of full-dataset performance using only 6% of the total data.
  • Performance: In the MAMS dataset, XAL achieved a macro-F1 score of 74.04% with just 500 instances, a 2% improvement over the next best baseline.
  • Interpretability: Human evaluation confirmed that generated explanations were over 94% consistent with predicted labels, indicating that the model's performance gains are rooted in improved reasoning rather than lucky guesses.

Discussion and Insights

XAL's success stems from its ability to use explanations as a proxy for knowledge. A model's inability to explain its choice is a more reliable signal of ignorance than simple output probability. Furthermore, by using LLMs as "teachers" to provide logic rather than just labels, XAL mitigates the noise often associated with automated annotation. While the computational overhead of explanation generation is higher than simple sampling (e.g., 21 minutes vs. 2 minutes for MAMS), the drastic reduction in required human annotation makes XAL a highly effective framework for building robust classifiers in low-resource settings.

Conclusion

Explainable Active Learning represents a paradigm shift from statistical to causal data selection. By requiring models to justify their inferences, XAL identifies critical gaps in a model's understanding, leading to superior performance and better data efficiency. Future work will focus on optimizing inference speeds and applying the framework to more complex multi-class industrial applications.

Summary updated

BibTeX
@inproceedings{luo2024xal,
  author = {Yun Luo and Zhen Yang and Fandong Meng and Yingjie Li and Fang Guo and Qinglin Qi and Jie Zhou and Yue Zhang},
  title = {{XAL: EXplainable Active Learning Makes Classifiers Better Low-resource Learners}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.naacl-long.372},
}
Figure