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
Even highly accurate language models (LMs) suffer from "unknown unknowns" (UUs): instances where the model makes an incorrect prediction with high confidence. These errors are not random; they tend to cluster into "blind spots" in the feature space, often stemming from specific biases or gaps in the training data. In high-stakes domains like healthcare or criminal justice, a confident but incorrect prediction can have severe consequences.
While identifying these errors is a known challenge, mitigating them effectively remains difficult. Simple reactive approaches, such as relabeling specific errors, fail to address unseen blind spots and do not scale. This paper introduces an "agent-in-the-loop" workflow that utilizes humans or Large Language Models (LLMs) to identify, characterize, and proactively mitigate these blind spots by generating targeted synthetic data.
Methodology: The Identify-Characterize-Generate Workflow
The proposed method follows a three-stage process designed to illuminate and fix model blind spots before they manifest in real-world usage.
- Discovery: Adversarial attacks (e.g., word-level swaps or character bugs) are employed to find samples that cause the student model to fail with high confidence.
- Characterization: An intelligent agent—either a human crowdworker or an LLM (GPT-3.5)—analyzes the error and performs two types of reasoning:
- Abstraction: Formulating a natural language hypothesis about the failure mode (e.g., "The model is sensitive to substituting 'sad' with 'dejected'").
- Extrapolation: Hypothesizing new, related failure modes (e.g., "The model might also fail if we use the word 'despairing'").
- Generation and Retraining: The agent generates new synthetic training samples based on these hypotheses. The original model is then retrained on its original data augmented with a small set (approximately 2%) of this targeted synthetic data.
The researchers evaluated this method on three NLP tasks: Sentiment Analysis (IMDB), Semantic Equivalence (MRPC), and Natural Language Inference (QNLI), using BERT-base and Llama 2 7B as student models.
Experimental Setup and Results
The evaluation pipeline involves discovering UUs on a validation set, generalizing them into an extended set for retraining, and finally evaluating the retrained model on a perturbed test set.
Key Findings
- Significant UU Reduction: The method reduced high-confidence errors by an average of 19.08%. LLM-generated data proved more effective than human-generated data (22.37% vs. 15.78% reduction).
- Robustness vs. Accuracy: Unlike many robustness techniques that degrade general performance, this targeted approach maintained overall accuracy within $\pm 1\%$.
- Agent Performance and Cost: LLMs were over 20 times cheaper than human workers ($46 vs. $1072) and provided near-instantaneous data generation. However, humans occasionally provided "high-ceiling" insights, such as identifying failures related to subtle cultural or biblical references that LLMs missed.
- Task Sensitivity: Human performance was highly dependent on task intuition. While effective for Sentiment Analysis, humans struggled with the abstract logic of Natural Language Inference, sometimes producing low-quality data that increased errors.
Discussion and Limitations
The study demonstrates that LLMs can serve as effective "teachers" to improve the reliability of smaller models. However, limitations remain. Agents can still produce biased or nonsensical data, and human fatigue is a factor in complex tasks. Future work could explore optimizing the ratio of abstraction to extrapolation data or developing hybrid systems that combine human intuition with LLM scalability for high-stakes domains. By moving from reactive relabeling to proactive generalization, this workflow offers a promising path toward more reliable and calibrated language models.
Summary updated