Abstract
Machine learning models in Natural Language Processing (NLP) frequently rely on spurious correlations, or "artifacts," to achieve high performance on benchmarks. To address this, we present VAIDA (Visual Analytics for Interactively Discouraging Artifacts), a human-and-metric-in-the-loop system that provides real-time visual feedback to crowdworkers during data creation. VAIDA utilizes a Data Quality Index (DQI) to flag problematic linguistic patterns in situ, educating workers and encouraging the production of higher-quality, adversarial samples. Our evaluation demonstrates that VAIDA reduces artifacts by 45.8% and significantly challenges state-of-the-art models, with BERT's accuracy dropping by 31.3% on VAIDA-generated datasets.
Introduction
The reliability of NLP benchmarks is often undermined by models exploiting unintended patterns in training data. For instance, in Natural Language Inference (NLI), a model might incorrectly learn that the presence of the word "not" always indicates a contradiction. While post-hoc filtering exists, it is inefficient and fails to prevent the creation of flawed data. VAIDA shifts the focus to the data creation phase, providing immediate feedback to crowdworkers to discourage the use of repetitive patterns and spurious correlations.
Methods
VAIDA integrates several key components to guide the data creation process:
- Data Quality Index (DQI): A multi-component metric scoring samples on vocabulary diversity, inter-sample similarity, and label-specific n-gram frequencies.
- Real-Time Visual Feedback: A "traffic light" system (Red/Yellow/Green) provides immediate quality indicators as workers type, with tooltips highlighting specific artifacts.
- AutoFix: An algorithmic module that suggests word replacements to improve quality scores.
- Analyst Interface: A suite of visualizations (treemaps, heatmaps) allowing analysts to monitor the benchmark's overall distribution.
The workflow involves an iterative process where workers create hypotheses, review DQI feedback, and revise samples either manually or via AutoFix before submission.
Evaluation was primarily conducted on the SNLI task using premises from Flickr30k, with additional testing on the Story CLOZE dataset to demonstrate extensibility.
Key Results
The implementation of VAIDA led to significant improvements in data quality and model robustness:
- Artifact Reduction: A 45.8% decrease in artifacts compared to standard crowdsourcing methods.
- Model Degradation: Accuracy for BERT, RoBERTa, and GPT-3 (few-shot) dropped by 31.3%, 22.5%, and 14.98% respectively when tested on VAIDA-generated samples.
- Worker Performance: Crowdworkers saw a 34.6% increase in the quality of accepted samples.
- Analyst Efficiency: Human analysts reported a 14.3% reduction in frustration during the review process.
Discussion and Conclusion
A key finding is the "learning curve" associated with real-time feedback; workers began instinctively avoiding artifacts after creating 50–60 samples. Furthermore, by targeting linguistic properties rather than specific model weaknesses, VAIDA produces model-agnostic adversarial data. While the initial interface can be complex for new users, the gamification of the task reduced reported mental demand.
VAIDA demonstrates that providing in situ feedback to data creators is a viable and effective strategy for building more robust NLP benchmarks. By involving humans and metrics in a tight loop, we can move beyond simple data collection toward a more educational and rigorous benchmark creation process. Future work will focus on scaling the analyst review process and adapting VAIDA for more complex NLP tasks like dialogue and summarization.
Summary updated