Abstract
Many of the top question answering systems today utilize ensembling to improve their performance on tasks such as the Stanford Question Answering Dataset (SQuAD) and Natural Questions (NQ) challenges. Unfortunately, most of these systems do not publish their ensembling strategies used in their leaderboard submissions. In this work, we investigate a number of ensembling techniques and demonstrate a strategy which improves our F1 score for short answers on the dev set for NQ by 2.3 F1 points over our single model (which outperforms the previous SOTA by 1.9 F1 points).
Introduction
In Machine Reading Comprehension (MRC), ensembling is a standard practice for achieving state-of-the-art results. While novel architectures like BERT and RoBERTa receive significant attention, the specific strategies used to combine these models are often overlooked in literature. This study focuses on the Natural Questions (NQ) dataset, a challenging benchmark requiring systems to identify both "Long Answers" (contextual paragraphs) and "Short Answers" (specific spans). We aim to provide transparency into effective ensembling pipelines for multi-layered prediction tasks.
Methodology
The ensembling pipeline consists of three primary stages: search, normalization, and aggregation.
- Search Strategies: We compared Exhaustive Search (testing all combinations) against Greedy Search (iteratively adding the most beneficial model).
- Normalization: To ensure comparability across models, we evaluated raw scores against Logistic Regression mapping, which converts scores to probabilities.
- Aggregation: We tested several techniques: Max (highest score), Exponential Sum, Reciprocal Rank Sum, and Noisy-Or (probabilistic combination).
Our core strategy involves extracting the top-20 candidate spans from each model, grouping them by exact text, normalizing, averaging, and finally selecting the highest-scoring spans.
Results and Insights
Our systematic evaluation revealed several key findings regarding the optimization of ensembles for NQ.
Search and Diversity
Greedy search proved more robust than exhaustive search, which tended to overfit the development-training set. Furthermore, ensembling models with diverse architectures or hyperparameters yielded significantly better results than simply using different random seeds for the same model.
Hybrid Aggregation
A critical discovery was that different answer types benefit from different aggregation mathematical models. While Unnormalized Max performed best for Short Answers (SA), Logistic Regression with Noisy-Or aggregation was superior for Long Answers (LA).
Performance Gains
The final ensemble achieved substantial improvements over the baseline:
- Short Answer (SA): +2.3 F1 points.
- Long Answer (LA): +4.0 F1 points. The best ensemble reached 0.5933 SA F1 and 0.7107 LA F1 on the NQ development set.
Conclusion
This work demonstrates that well-tuned ensembling strategies are as impactful as architectural innovations. By optimizing for Long Answer performance, we also observed gains in Short Answer accuracy, likely due to the structural constraints of the NQ dataset. Future work will explore multi-objective optimization to further refine the trade-offs between short and long answer spans within the 24-hour inference limits of competitive leaderboards.
Summary updated