DuQM: A Chinese Dataset of Linguistically Perturbed Natural Questions for Evaluating the Robustness of Question Matching Models

Hongyu Zhu, Yan Chen, Jing Yan, Jing Liu, Yu Hong, Ying Chen, Hua Wu, Haifeng Wang

TL;DR

This paper introduces DuQM, a novel Chinese dataset designed to rigorously evaluate the robustness of Question Matching (QM) models. By systematically perturbing natural questions with linguistic variations, DuQM reveals significant performance drops in current models, highlighting their fragility and the limitations of existing adversarial evaluation methods.

What Problem Does This Paper Address?

Question Matching (QM) models are crucial for applications like community question answering and intelligent customer services, aiming to identify question pairs with the same meaning. While neural QM models have achieved impressive performance on standard datasets, they often struggle with robustness. This means small, linguistically plausible changes to input questions can lead to incorrect predictions. Previous research has primarily focused on artificial adversarial examples, which may not accurately reflect real-world scenarios and can sometimes be easily bypassed. There's a clear need for a comprehensive evaluation that uses natural, linguistically perturbed questions to truly assess model robustness and diagnose specific linguistic weaknesses.

Methods

The core contribution of this paper is the creation of the DuQM dataset. The dataset is built by taking natural questions from a commercial search engine and applying a systematic process of linguistic perturbation. These perturbations are categorized into three main types:

  • Lexical Features: These involve changes at the word level, including:
  • Part of Speech (POS) Perturbations: Replacing words with synonyms of different POS (e.g., noun to verb).
  • Named Entity (NE) Perturbations: Replacing specific entities with similar-looking but different ones (e.g., "Shanxi" vs. "Shaanxi").
  • Synonym/Antonym Replacement: Swapping words with their synonyms or antonyms.
  • Negation: Adding or removing negation words.
  • Temporal Word Perturbations: Inserting or replacing temporal markers.
  • Syntactic Features: These focus on sentence structure and word relationships:
  • Symmetry/Asymmetry: Swapping conjuncts in coordinated structures or altering word order around prepositions.
  • Negative Asymmetry: Combining syntactic asymmetry with antonyms to create challenging pairs.
  • Voice: Altering between active and passive voice constructions.
  • Pragmatic Features: These address aspects beyond pure syntax and semantics:
  • Misspelling: Introducing common typos.
  • Discourse Particles: Adding or replacing words that convey politeness or attention without changing core meaning.

The construction process involved collecting source questions, applying these perturbations, and then conducting naturalness reviews and manual annotations by linguistic experts to ensure quality and accuracy.

Datasets

  • Training/Fine-tuning: LCQMC (a large-scale Chinese QM corpus) was used for fine-tuning models.
  • Evaluation:
    • DuQM: The newly introduced dataset, containing linguistically perturbed natural Chinese questions. It comprises 3 categories, 13 subcategories, and 32 types of linguistic perturbations, with a total of 10,121 examples.
  • LCQMCtest: Used as a baseline to compare model performance against a standard QM dataset.
  • PWWS, TextFooler, Checklist: These are mentioned as sources for generating artificial adversarial examples, with naturalized versions (PWWSnat, TextFoolernat, Checklistnat) also used for comparison.

Key Insights and Ideas

  • Naturalness Matters: The paper strongly argues that artificial adversarial examples, while useful, don't fully capture real-world robustness challenges. DuQM's focus on natural, linguistically valid perturbations is key to a more accurate assessment.
  • Current Models are Fragile: The significant performance drop observed on DuQM compared to LCQMCtest indicates that even state-of-the-art QM models are not as robust as their performance on standard benchmarks might suggest.
  • Fine-grained Diagnosis is Crucial: DuQM's detailed breakdown by linguistic phenomena allows for a much deeper understanding of why models fail, pinpointing specific linguistic capabilities they lack.
  • Adversarial Training Limitations: Adversarial training methods that rely on artificial examples show limited effectiveness when tested on natural adversarial datasets like DuQM, suggesting a need for better strategies that incorporate naturalness.

Key Results

  • Challenging Benchmark: Models showed a significant performance drop on DuQM compared to LCQMCtest, with accuracy decreasing by up to 20.5%.
  • Better Discrimination: DuQM effectively distinguishes between models that perform similarly on LCQMCtest, revealing performance differences among base and large models.
  • Diagnostic Power: Analysis of model performance across DuQM's subcategories revealed specific weaknesses, such as poor performance on temporal reasoning and asymmetry, while showing strengths in areas like Named Entity recognition.
  • Adversarial Training Ineffectiveness: Adversarial training using artificial examples (PWWS, TextFooler) did not significantly improve performance on natural adversarial test sets (PWWSnat, TextFoolernat, Checklistnat, DuQM), and in some cases, even decreased performance.

Limitations and Future Work

  • Limitations: The paper acknowledges that while DuQM is designed to be diverse and natural, it's still a curated dataset. The effectiveness of adversarial training on natural texts is highlighted as a limitation of current methods.
  • Future Work: The authors suggest that DuQM can help researchers mitigate models' undesirable performance on natural texts. They emphasize the importance of focusing on naturalness when generating adversarial examples for more effective robustness evaluation and training. The dataset and baseline codes are made publicly available to encourage further research.

Summary updated

BibTeX
@inproceedings{zhu2022duqm,
  author = {Hongyu Zhu and Yan Chen and Jing Yan and Jing Liu and Yu Hong and Ying Chen and Hua Wu and Haifeng Wang},
  title = {{DuQM: A Chinese Dataset of Linguistically Perturbed Natural Questions for Evaluating the Robustness of Question Matching Models}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2022},
  doi = {10.18653/v1/2022.emnlp-main.531},
}
Figure