Abstract
Extractive Question Answering (QA) models traditionally rely on synthetic "cloze-style" pre-training, which often results in models that overfit to lexical overlap rather than developing deep semantic reasoning. This paper introduces MCROSS (Momentum Contrastive pRe-training fOr queStion anSwering), a novel framework designed to bridge the gap between synthetic "fill-in-the-blank" queries and natural human questions. By employing a momentum contrastive learning strategy, MCROSS aligns the semantic representations of these disparate query types. Our approach utilizes a dual-encoder architecture and a KL-divergence objective to ensure consistency in answer probability distributions. Experimental results demonstrate that MCROSS achieves state-of-the-art performance on SQuAD v1.1 and shows remarkable gains in zero-shot generalization on datasets like TriviaQA.
1. Introduction
In the field of extractive Question Answering (QA), the primary objective is to identify a specific span within a passage that answers a given query. To mitigate the need for massive human-labeled datasets, researchers frequently employ "cloze-like" pre-training. In this paradigm, an entity is masked within a sentence (e.g., "The [BLANK] is the capital of France"), and the model is tasked with locating the answer ("Paris") within a relevant context.
However, a significant discrepancy exists between these synthetic queries and the natural language questions posed by humans. Natural questions (e.g., "What is the capital of France?") possess distinct syntactic structures and nuances. Models trained exclusively on cloze-style queries often default to "keyword matching" shortcuts, failing to perform high-level semantic reasoning. Consequently, these models struggle when deployed in real-world scenarios where lexical overlap is minimal.
2. Methodology: The MCROSS Framework
MCROSS addresses the query-format gap by introducing a momentum contrastive learning strategy that aligns knowledge across different query styles.
2.1 Dual-Encoder Architecture
The framework utilizes two encoders:
- Fast Encoder: A standard BERT model updated via traditional gradient descent.
- Slow Encoder: A BERT model whose weights are updated as an exponential moving average (EMA) of the fast encoder's weights. This momentum-based approach provides stable representations for negative samples, preventing the "representation collapse" common in standard contrastive learning.
2.2 Query Generation and Training
For each synthetic cloze-like query, a fine-tuned T5 model generates a corresponding "natural" version of the same question. The training process then follows a two-pronged approach:
- Answer Term Prediction: The model performs the standard task of predicting the start and end indices of the answer span.
- Contrastive Learning: The model is trained to align the predicted answer probability distributions for a cloze query and its natural counterpart. Unlike standard contrastive learning that relies on cosine similarity between single vectors, MCROSS utilizes KL-Divergence. This allows the model to compare the entire probability distribution over the text sequence, providing a richer signal for semantic alignment.
3. Experimental Setup
The model was pre-trained on 5 million unique query-passage pairs derived from Wikipedia. Evaluation was conducted across several benchmarks:
- In-Domain: SQuAD v1.1, the standard benchmark for extractive QA.
- Out-of-Domain (Zero-Shot): TriviaQA and NewsQA were used to evaluate the model's ability to generalize to different writing styles and question types without specific fine-tuning.
4. Results and Discussion
MCROSS consistently outperformed both standard BERT baselines and the previous state-of-the-art method, SSPT.
4.1 Performance Metrics
On SQuAD v1.1, MCROSS achieved an F1 score of 90.11, surpassing BERT (87.43) and SSPT (88.75). The most significant improvements were observed in zero-shot scenarios. On TriviaQA, MCROSS reached a zero-shot F1 of 47.79, nearly doubling the performance of the SSPT baseline (26.89).
4.2 Key Insights
The success of MCROSS highlights the importance of distributional consistency. By forcing the model to arrive at the same answer distribution regardless of query format, the model is compelled to learn underlying semantics rather than superficial patterns. Furthermore, the "bilateral" version of the model—which aligns both cloze-to-natural and natural-to-cloze—demonstrated the highest level of robustness across all tested datasets.
5. Limitations and Future Work
While MCROSS shows great promise, the authors noted certain limitations. Due to computational constraints, the model was trained on only 5 million samples—a fraction of the data used by previous state-of-the-art models. Scaling the training data is expected to yield further improvements. Additionally, in NewsQA, a version of the model without contrastive loss performed slightly better in zero-shot tests. This suggests that NewsQA contains many "easy" questions solvable by simple text matching, which the contrastive objective specifically encourages the model to move beyond.
Future research will focus on more sophisticated natural query generation and applying momentum contrastive techniques to a broader range of NLP tasks.
Summary updated