Illuminating Blind Spots of Language Models with Targeted Agent-in-the-Loop Synthetic Data

Philip Lippmann, Matthijs T. J. Spaan, Jie Yang · DOI

Abstract

Language models (LMs) have achieved impressive accuracy across a variety of tasks but remain vulnerable to high-confidence misclassifications, also referred to as unknown unknowns (UUs). These UUs cluster into blind spots in the feature space, leading to significant risks in high-stakes applications. This is particularly relevant for smaller, lightweight LMs that are more susceptible to such errors. While the identification of UUs has been extensively studied, their mitigation remains an open challenge, including how to use identified UUs to eliminate unseen blind spots. In this work, we propose a novel approach to address blind spot mitigation through the use of intelligent agents -- either humans or large LMs -- as teachers to characterize UU-type errors. By leveraging the generalization capabilities of intelligent agents, we identify patterns in high-confidence misclassifications and use them to generate targeted synthetic samples to improve model robustness and reduce blind spots. We conduct an extensive evaluation of our method on three classification tasks and demonstrate its effectiveness in reducing the number of UUs, all while maintaining a similar level of accuracy. We find that the effectiveness of human computation has a high ceiling but is highly dependent on familiarity with the underlying task. Moreover, the cost gap between humans and LMs surpasses an order of magnitude, as LMs attain human-like generalization and generation performance while being more scalable.

Introduction

Despite the rapid advancement of language models (LMs), they frequently exhibit "unknown unknowns" (UUs)—instances where the model makes an incorrect prediction with high confidence. These errors are not isolated; they often cluster within specific regions of the feature space known as "blind spots," typically stemming from systematic biases or gaps in the training distribution. For lightweight models deployed in critical domains like healthcare or legal technology, these blind spots pose a significant reliability risk. While existing research has focused on identifying these failures, effective mitigation strategies—especially those that generalize to unseen errors—remain elusive.

Methodology: The Agent-in-the-Loop Workflow

We propose a three-stage Identify-Characterize-Generate framework designed to proactively illuminate and eliminate model blind spots.

  1. Identify: The process begins by identifying UUs in a "student" model (e.g., BERT or Llama 2-7B). This is achieved by evaluating the model on validation data and employing adversarial attacks, such as TextFooler, to find perturbations that trigger high-confidence misclassifications.
  2. Characterize: An "intelligent agent" (either a human crowdworker or a "teacher" LLM like GPT-3.5) analyzes the identified UUs. The agent performs Abstraction (explaining the underlying logic of the failure) and Extrapolation (hypothesizing new, related failure modes).
  3. Generate: Based on these hypotheses, the agent generates targeted synthetic training samples. The student model is then retrained on a combination of the original dataset and this new, highly specific synthetic data.
The Identify-Characterize-Generate workflow, illustrating how agents use abstraction and extrapolation to generate synthetic data that expands the model's understanding of the feature space.

Experimental Design

The effectiveness of this approach was evaluated across three NLP tasks: Sentiment Analysis (IMDB), Semantic Equivalence (MRPC), and Natural Language Inference (QNLI). The evaluation pipeline consists of three parallel tracks to ensure rigorous testing: identifying UUs on validation data (Track A), generating synthetic data for retraining (Track B), and testing the retrained model on a separate set of UUs derived from the test set (Track C).

The evaluation pipeline: Track A identifies validation UUs, Track B handles the generalization and retraining process, and Track C evaluates the retrained model on test-set UUs.

Key Results and Discussion

Our findings demonstrate that targeted synthetic data can significantly improve model robustness without a "robustness tax" on overall accuracy.

  • Significant UU Reduction: The proposed method reduced high-confidence misclassifications by an average of 19.08% across the tested models.
  • Human vs. LLM Performance: While humans showed high intuition in tasks like sentiment analysis, GPT-3.5 proved more scalable and effective overall, achieving a 22.37% UU reduction compared to 15.78% for humans. Furthermore, the cost of using LLMs was over 20 times lower than human crowdworkers ($46 vs. $1,072).
  • Improved Calibration: Retraining not only fixed specific errors but also improved the model's overall calibration. When the model did fail, it tended to do so with lower confidence, facilitating safer human-in-the-loop oversight.
  • Data Efficiency: Significant improvements were achieved by adding synthetic data equivalent to only 2% of the original training set, highlighting the power of targeted over massive data augmentation.

Conclusion

This work demonstrates that intelligent agents can effectively "teach" smaller models to overcome systematic blind spots. By moving from reactive relabeling to proactive hypothesis-driven generation, we can build more reliable LMs for high-stakes applications. Future research will explore hybrid human-LLM workflows to combine human intuition with LLM scalability while addressing potential biases inherited from the teacher agents.

Summary updated

BibTeX
@misc{lippmann2024illuminating,
  author = {Philip Lippmann and Matthijs T. J. Spaan and Jie Yang},
  title = {{Illuminating Blind Spots of Language Models with Targeted Agent-in-the-Loop Synthetic Data}},
  year = {2024},
  eprint = {2403.17860},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2403.17860},
}
Figure