Proceedings of the First Workshop on Interactive Learning for Natural Language Processing

Hugo Zylberajch, Piyawat Lertvittayakumjorn, Francesca Toni, Katharina Stein, Leonie Harter, Luisa Geiger, Nikhil Mehta, Dan Goldwasser, Yoav Artzi, Luke Zettlemoyer, Joyce Chai, Lanbo She, Rui Fang, Spencer Ottarson, Cody Littley, Changsong Liu, Kenneth Hanson, M Chita-Tegmark, M Lohani, M Scheutz, Lisa Fan, Marissa Mccoy, Charlene Stokes, Dan Roth, Luheng He, Julian Michael, Mike Lewis, Jan-Christoph Klie, Richard Eckart De Castilho, Iryna Gurevych, Ji-Ung Lee, Christian Meyer, Percy Liang, Christopher Potts, Cristina Barros, Elena Lloret, Estela Saquete, Borja Navarro-Colorado, Mohammad Giang Binh Tran, Dat Quoc Alrifai, Nguyen, Xiuying Chen, Zhangming Chan, Shen Gao, Meng-Hsuan Yu, Dongyan Zhao, Rui Yan, J Brendan, Delbert Frey, Dueck, Jimmy Lin, Nitin Madnani, Bonnie Dorr, Yan Liu, Sheng-Hua Zhong, Wenjie Li, Sebastian Martschat, Katja Markert, Volodymyr Mnih, Adria Badia, Mehdi Mirza, Alex Graves, Timothy Lillicrap, Tim Harley, David Silver, Koray Kavukcuoglu, Frederick Mosteller, Xavier Tannier, Vronique Moriceau, Cody Rioux, Sadid Hasan, Yllias Chali, Seonggi Ryang, Takeshi Abekawa, Edwin Simpson, Yang Gao, Haoyu Song, Wei-Nan Zhang, Jingwen Hu, Ting Liu, Julius Steen, Jannik Strtgen, Michael Gertz, Louis L Thurstone, Mohammad Alrifai, Eelco Herder, Tuan Giang Binh Tran, Nam-Khanh Tran, Nattiya Alrifai, KanhabuaOpenalex Unknown 2021 · OpenAlex

Abstract

Biases and artifacts in training data often lead text classifiers to adopt shallow pattern matching strategies rather than true linguistic understanding, resulting in poor generalizability. We present HILDIF (Human-In-the-Loop Debugging using Influence Functions), a novel explanatory debugging pipeline that enables humans to improve deep text classifiers. By leveraging influence functions to identify problematic training examples and applying targeted data augmentation, HILDIF allows models to "unlearn" harmful heuristics. Our experiments on the Natural Language Inference (NLI) task demonstrate that HILDIF effectively alleviates artifact problems in fine-tuned BERT models, significantly increasing performance on adversarial benchmarks like HANS without degrading performance on standard datasets.

Introduction

Deep learning models for Natural Language Processing (NLP) are notoriously adept at "gaming" benchmarks. In tasks such as Natural Language Inference (NLI)—where a model must determine if a hypothesis is entailed by, neutral to, or contradicts a premise—models frequently rely on shallow heuristics. For instance, a model might learn that high lexical overlap between a premise and a hypothesis almost always indicates entailment. While this strategy yields high scores on standard datasets like MNLI, it fails on adversarial sets like HANS (Heuristic Analysis for NLI Systems), which are specifically designed to penalize such shortcuts.

Because these models are often treated as "black boxes," identifying and correcting these specific behaviors is challenging. Retraining on massive new datasets is computationally expensive and may not address the underlying bias. HILDIF addresses this by involving human experts in a targeted, data-centric debugging loop.

The HILDIF Pipeline

The HILDIF framework consists of four integrated stages designed to move from error identification to model correction:

  1. Explanation via Influence: Rather than using feature attribution (which highlights important words), HILDIF utilizes influence functions—specifically the efficient FASTIF algorithm. This identifies the specific training examples that most strongly influenced an incorrect prediction on a validation "anchor point."
  2. User Feedback: A human expert reviews these influential training examples. The user scores them based on whether they share the same problematic heuristic as the anchor point, effectively filtering the "noise" from the training data.
  3. Data Augmentation: For the influential samples confirmed as problematic, the system generates synthetic training data using back-translation and synonym replacement. This process preserves the semantics of the sentences while breaking the surface-level patterns (e.g., lexical overlap) the model was over-relying on.
  4. Fine-tuning: The model undergoes a final round of fine-tuning on this small, high-quality set of augmented data to correct its reliance on the identified heuristics.

Experimental Results

We evaluated HILDIF using a BERT-base model trained on the MNLI dataset and tested on the adversarial HANS dataset. HANS focuses on three specific heuristics: lexical overlap, subsequence, and constituent structure.

Performance Gains

The impact of HILDIF was most pronounced in the "Constituent" heuristic category. In cases of non-entailment where the model previously failed, the baseline accuracy was a mere 5.7%. After HILDIF debugging—using only 20 influential points and handpicked anchors—accuracy rose to 41.6%.

Generalizability and Robustness

Crucially, this improvement did not come at the cost of general performance. The model maintained its high accuracy on the original MNLI test set, suggesting that HILDIF helps the model learn more robust features rather than simply trading one bias for another. While there was a slight dip in accuracy for "entailment" cases as the model became more skeptical of shallow patterns, the overall balanced accuracy on adversarial sets improved significantly.

Key Insights

  • Data-Centric Debugging: Highlighting influential data points is often more actionable for developers than feature attribution. Seeing the specific examples the model is mimicking allows for more precise intervention.
  • Efficiency of Human Intuition: The study found that handpicking anchor points (selecting validation cases known to contain heuristics) led to much larger performance gains than random sampling. This demonstrates that targeted human intervention can be highly efficient, requiring very few examples to achieve significant results.
  • The Power of Augmentation: Fine-tuning on augmented versions of influential samples outperformed fine-tuning on the raw samples themselves. This suggests that the model requires variations of a pattern to truly generalize a fix and move beyond surface-level artifacts.

Limitations and Future Directions

While HILDIF shows promise, the current study relied on a single expert user. Future work should explore how non-experts interact with the pipeline and whether group consensus can reduce individual bias. Additionally, the authors suggest that replacing simple augmentation methods with more sophisticated generative models (such as GPT-based generators) could create more diverse and linguistically complex synthetic examples. Finally, exploring iterative debugging—applying HILDIF over multiple cycles—could further harden models against complex, multi-layered biases.

Summary updated

Abstract

Biases and artifacts in training data can cause unwelcome behavior in text classifiers (such as shallow pattern matching), leading to lack of generalizability.One solution to this problem is to include users in the loop and leverage their feedback to improve models.We propose a novel explanatory debugging pipeline called HILDIF, enabling humans to improve deep text classifiers using influence functions as an explanation method.We experiment on the Natural Language Inference (NLI) task, showing that HILDIF can effectively alleviate artifact problems in fine-tuned BERT models and result in increased model generalizability. MNLI DatasetP: News ' cover says the proliferation of small computer devices and the ascendance of Web-based applications are eroding Microsoft's dominance.H: Microsoft is a more profitable company than Apple.
BibTeX
@inproceedings{zylberajch2021proceedings,
  author = {Hugo Zylberajch and Piyawat Lertvittayakumjorn and Francesca Toni and Katharina Stein and Leonie Harter and Luisa Geiger and Nikhil Mehta and Dan Goldwasser and Yoav Artzi and Luke Zettlemoyer and Joyce Chai and Lanbo She and Rui Fang and Spencer Ottarson and Cody Littley and Changsong Liu and Kenneth Hanson and M Chita-Tegmark and M Lohani and M Scheutz and Lisa Fan and Matthias Scheutz and Monika Lohani and Marissa Mccoy and Charlene Stokes and Dan Goldwasser and Dan Roth and Luheng He and Julian Michael and Mike Lewis and Luke Zettlemoyer and Jan-Christoph Klie and Richard Eckart De Castilho and Iryna Gurevych and Ji-Ung Lee and Christian Meyer and Iryna Gurevych and Percy Liang and Christopher Potts and Cristina Barros and Elena Lloret and Estela Saquete and Borja Navarro-Colorado and Mohammad Giang Binh Tran and Dat Quoc Alrifai and Nguyen and Xiuying Chen and Zhangming Chan and Shen Gao and Meng-Hsuan Yu and Dongyan Zhao and Rui Yan and J Brendan and Delbert Frey and Dueck and Jimmy Lin and Nitin Madnani and Bonnie Dorr and Yan Liu and Sheng-Hua Zhong and Wenjie Li and Sebastian Martschat and Katja Markert and Volodymyr Mnih and Adria Badia and Mehdi Mirza and Alex Graves and Timothy Lillicrap and Tim Harley and David Silver and Koray Kavukcuoglu and Frederick Mosteller and Kiem-Hieu Nguyen and Xavier Tannier and Vronique Moriceau and Cody Rioux and Sadid Hasan and Yllias Chali and Seonggi Ryang and Takeshi Abekawa and Edwin Simpson and Yang Gao and Iryna Gurevych and Haoyu Song and Wei-Nan Zhang and Jingwen Hu and Ting Liu and Julius Steen and Katja Markert and Jannik Strtgen and Michael Gertz and Louis L Thurstone and Giang Tran and Mohammad Alrifai and Eelco Herder and Tuan Giang Binh Tran and Nam-Khanh Tran and Mohammad Tran and Nattiya Alrifai and Kanhabua},
  title = {{Proceedings of the First Workshop on Interactive Learning for Natural Language Processing}},
  booktitle = {Openalex Unknown},
  year = {2021},
  doi = {10.18653/v1/2021.internlp-1},
}
Figure