Abstract
Question Matching (QM) models often achieve high accuracy on standard benchmarks but remain vulnerable to minor linguistic variations. We present DuQM, a new Chinese dataset of over 10,000 naturally perturbed question pairs across lexical, syntactic, and pragmatic dimensions. Unlike existing adversarial benchmarks that rely on artificial noise, DuQM ensures naturalness by filtering candidates against real-world search logs. Evaluation of state-of-the-art models reveals significant performance drops—up to 20.5%—exposing critical weaknesses in temporal reasoning and structural understanding.
Introduction
Question Matching (QM)—the task of determining if two questions share the same semantic meaning—is a cornerstone of modern search engines and chatbots. While neural models achieve high accuracy on standard benchmarks like LCQMC, they are notoriously "brittle." A minor change, such as swapping a single noun or changing word order, can fool a model into misidentifying the semantic relationship between two questions.
Existing robustness tests often rely on artificial adversarial examples generated by algorithms, which may not reflect how humans actually speak or search. Furthermore, these tests frequently provide a single robustness score without explaining the underlying causes of failure. DuQM addresses these gaps by providing a systematic breakdown of a model's linguistic capabilities across lexical, syntactic, and pragmatic dimensions.
Methodology
The construction of DuQM followed a rigorous four-step pipeline to ensure the data was both linguistically significant and natural:
- Linguistic Preprocessing: Source questions were extracted from Baidu search logs. NLP tools identified parts of speech (POS), named entities (NE), and dependency structures.
- Perturbation: Researchers applied 32 types of linguistic "nudges" across three categories: Lexical (e.g., changing nouns or numbers), Syntactic (e.g., swapping word order), and Pragmatic (e.g., adding typos or discourse particles).
- Naturalness Review: To avoid the "gibberish" common in artificial datasets, perturbed questions were filtered against real search logs. If a generated question had no record of being asked by a real user, it was discarded.
- Manual Annotation: Experts reviewed the pairs to ensure grammatical correctness and accurate semantic labeling.
Experimental Results
The researchers evaluated six popular pre-trained models, including BERT, ERNIE, and RoBERTa, using DuQM as a diagnostic tool. The results highlight a significant robustness gap in current state-of-the-art architectures.
Performance Degradation
While models scored approximately 87% accuracy on the standard LCQMC test set, their performance plummeted on DuQM. As shown in the table below, some models experienced a drop in accuracy of up to 20.5%.
Key Linguistic Failures
- Temporal Reasoning: Models performed worst on "Temporal Word" perturbations, often failing to distinguish between questions like "Will it rain today?" and "Will it rain tomorrow?"
- Structural Understanding: While models handled symmetric word swaps well (e.g., "A and B" vs "B and A"), they failed on asymmetric swaps where word order is critical (e.g., "Flights from Beijing to Shanghai" vs "Flights from Shanghai to Beijing"). This suggests models often treat sentences as "bags of words" rather than structured sequences.
- The Naturalness Gap: Artificial adversarial training (AT) failed to improve performance on DuQM, suggesting that models trained on algorithmic noise learn to defeat specific patterns rather than gaining a deeper understanding of language.
Conclusion and Future Work
DuQM serves as a powerful diagnostic tool, revealing that model size and standard benchmark performance are not always indicative of real-world robustness. While larger models like RoBERTa-large showed better resilience, all models exhibited fundamental weaknesses in logic and syntax. Future work will involve expanding the dataset to include more complex behavioral capabilities, such as transitivity, and extending the methodology to other languages and NLP tasks like Natural Language Inference (NLI).
Summary updated