DQI: Measuring Data Quality in NLP

Swaroop Mishra, Anjana Arunkumar, Bhavdeep Singh Sachdeva, Chris Bryan, Chitta BaralarXiv 2020

TL;DR

This paper introduces a universal Data Quality Index (DQI) to measure and improve the quality of NLP datasets, addressing the issue of models overfitting to spurious biases rather than true linguistic understanding. They propose a data creation paradigm with visualizations and automation tools to help create less biased, more robust datasets, leading to better generalization in NLP models.

What Problem Does This Paper Address?

Modern NLP models achieve impressive performance on benchmarks, but this success is often superficial. Recent research reveals that many popular datasets contain "spurious biases" – unintended correlations between inputs and outputs that models exploit instead of learning the actual task. This leads to models that fail to generalize to out-of-distribution data or adversarial examples, overestimating AI capabilities and posing risks in real-world applications. The core problem is how to create datasets that are genuinely free of these unwanted biases, ensuring models learn robustly.

Methods

The paper's main contribution is the Data Quality Index (DQI), a generic formula designed to quantify dataset quality by measuring seven key text properties. These properties aim to capture various interactions within NLP datasets, including vocabulary characteristics, n-gram frequencies, sentence similarities, and label distributions.

To operationalize DQI, they propose a new data creation paradigm that includes:

  • Data Visualizations: Tools to help data creators understand data quality and visualize the impact of new data instances.
  • Automation Methods: Techniques like Autofix (for manual sample modification) and Textfooler (for generating adversarial examples from low-quality data) to assist creators and improve model robustness.

They evaluate DQI using AFLite, an adversarial filtering approach, and demonstrate its use in renovating biased examples in the SNLI dataset.

Datasets

  • SNLI (Stanford Natural Language Inference): Used extensively for evaluating DQI and for renovating biased examples.
  • MNLI (Multi-Genre Natural Language Inference): Mentioned in relation to vocabulary magnitude.
  • Google Translate, Twitter, Daily Mail, RTE-5, Wall Street Journal-Penn, ARCT, FN+, MARCO, OpenBookQA, Google Translate, Twitter, Daily Mail, RTE-5, Wall Street Journal-Penn, ARCT, FN+, MARCO, OpenBookQA, PASCAL 07, DROP, IMDb, SNLI, CIFAR10, ImageNet, Colored MNIST, Kinetics, GLUE: These datasets are cited in relation to specific "leads" or potential bias indicators.

Key Insights and Ideas

  • Bias is Pervasive: The paper strongly emphasizes that even high-performing models often rely on superficial biases rather than true understanding, highlighting a critical gap in current NLP evaluation.
  • DQI as a Universal Metric: The introduction of a generic DQI formula aims to provide a standardized way to measure dataset quality across different NLP tasks, moving beyond task-specific bias detection.
  • Data Creation is Key: The paper argues that simply filtering existing datasets isn't enough; a proactive approach to creating high-quality data is essential. Their paradigm focuses on empowering dataset creators with tools and feedback.
  • Visualizations Drive Understanding: The interactive visualizations are designed to make complex DQI metrics accessible, allowing creators to intuitively grasp data quality issues and the impact of their changes.
  • Renovated Datasets Improve Generalization: Training models on DQI-renovated datasets (like SNLI) leads to better performance on out-of-distribution tasks, demonstrating the practical benefit of higher data quality.

Key Results

  • Models trained on the renovated SNLI dataset showed better generalization to out-of-distribution tasks.
  • The renovation process revealed a large gap between model performance and human performance, exposing the extent to which models previously relied on biases.
  • The DQI framework was used to create harder benchmarks with an increasing hierarchy of difficulty.
  • Experiments with AFLite showed that "good" quality data (as identified by DQI) generally had higher DQI values than "bad" quality data.
  • The proposed data creation paradigm, with Autofix and Textfooler, assists in creating higher quality data and repairing low-quality samples.

Limitations and Future Work

Limitations: * The paper acknowledges that some DQI components might not be informative enough for certain granularities (e.g., bigrams and trigrams) or specific labels (e.g., neutral labels). * The effectiveness of AFLite in removing bias associated with sentence length was questioned. * The "cold start" scenario for DQI requires careful hyperparameter tuning, as some bounds need to be reset based on the specific language of the dataset. * Textfooler, while useful, can sometimes introduce task-sensitive content shifts or incorrectly change labels.

Future Work: * Weighting DQI Formulae: Developing a comprehensive formula that weights individual DQI components based on dataset size and other factors. * New Adversarial Filtering Algorithms: Using DQI to develop more effective adversarial filtering techniques. * Adversarial Techniques to Fool Models: Exploring other adversarial techniques beyond Textfooler. * High-Quality Data Creation via Crowdsourcing: Emphasizing the primary option of using the data creation paradigm with human annotators to create high-quality data. * Expansion to Other Domains: Extending the generic NLP approach to other modalities like Vision and Speech.

Summary updated

BibTeX
@misc{mishra2020dqi,
  author = {Swaroop Mishra and Anjana Arunkumar and Bhavdeep Singh Sachdeva and Chris Bryan and Chitta Baral},
  title = {{DQI: Measuring Data Quality in NLP}},
  year = {2020},
  eprint = {2005.00816},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2005.00816},
}
Figure