Abstract
A fundamental trade-off between effectiveness and efficiency needs to be balanced when designing an online question answering system. Effectiveness comes from sophisticated functions such as extractive machine reading comprehension (MRC), while efficiency is obtained from improvements in preliminary retrieval components such as candidate document selection and paragraph ranking. Given the complexity of the real-world multi-document MRC scenario, it is difficult to jointly optimize both in an end-to-end system. To address this problem, we develop a novel deep cascade learning model, which progressively evolves from the document-level and paragraph-level ranking of candidate texts to more precise answer extraction with machine reading comprehension. Specifically, irrelevant documents and paragraphs are first filtered out with simple functions for efficiency consideration. Then we jointly train three modules on the remaining texts for better tracking the answer: the document extraction, the paragraph extraction and the answer extraction. Experiment results show that the proposed method outperforms the previous state-of-the-art methods on two large-scale multi-document benchmark datasets, i.e., TriviaQA and DuReader. In addition, our online system can stably serve typical scenarios with millions of daily requests in less than 50ms.
Introduction
Machine Reading Comprehension (MRC) has transitioned from analyzing single short snippets to "multi-document" scenarios where systems must sift through numerous long web pages to find an answer. This shift introduces a fundamental trade-off between effectiveness and efficiency. Traditional pipeline approaches, which rank documents first and then read the top candidate, are efficient but brittle; if the initial ranker fails, the reader cannot recover. Conversely, joint approaches that process all documents simultaneously are accurate but computationally prohibitive for real-world systems handling millions of daily queries.
Researchers from Alibaba Group have developed a "Deep Cascade" model to bridge this gap. By employing a coarse-to-fine approach—filtering documents and paragraphs with lightweight models before applying a heavy multi-task deep learning architecture—they achieve state-of-the-art results while maintaining sub-50ms latency in production environments.
The Deep Cascade Architecture
The proposed model follows a three-stage cascade designed to progressively narrow the search space while increasing the depth of analysis. All stages are supported by a jointly learned parameter set to ensure the model tracks the answer effectively across levels of granularity.
- Document Ranking (Coarse): This stage uses traditional Information Retrieval (IR) features like BM25 and TF-IDF alongside a simple Logistic Regression classifier to quickly discard irrelevant documents from the full set.
- Paragraph Ranking (Finer): Structural features (e.g., paragraph position, length) and word-matching features are fed into an XGBoost model to select the most promising paragraphs from the remaining ranked documents.
- Multi-task Deep Attention Model (Deep): The core innovation is a neural network that performs three tasks simultaneously: Document Extraction (predicting document relevance), Paragraph Extraction (identifying the source paragraph), and Answer Span Extraction (pinpointing the exact answer). These tasks share bottom layers, such as BiLSTMs and attention mechanisms, allowing the model to learn rich representations while using document and paragraph labels as auxiliary signals.
Experimental Evaluation
The model was evaluated on two major benchmarks:
- TriviaQA (Web): 95K question-answer pairs with an average of 6 evidence documents per question.
- DuReader: A large Chinese MRC dataset with 200K questions and 1M documents from real search results.
Results and Discussion
The Deep Cascade Model achieved state-of-the-art performance, outperforming models like S-Norm and R-net. On TriviaQA, it reached an Exact Match (EM) score of 68.65 and an F1 of 73.07.
A key finding is that pruning noisy paragraphs early actually improves accuracy by allowing the MRC model to focus on high-quality data. As shown in the performance analysis, removing the cascade ranking significantly increases response time as document length grows, without providing a corresponding boost in F1 score.
In Alibaba’s "Alime" chatbot system, this architecture enables the model to serve millions of requests with a response time of less than 50ms. The ablation study confirms that the coarse-to-fine structure is essential for maintaining high F1 scores while keeping latency manageable as input length increases.
Conclusion
The Deep Cascade Model demonstrates that a coarse-to-fine structure is not merely a speed optimization but a performance enhancer for multi-document MRC. By jointly learning document, paragraph, and answer extraction, the model effectively balances the needs of large-scale online systems. Future work may explore generative MRC to synthesize answers from multiple sources and further refine the initial retrieval steps to ensure no relevant documents are missed in the earliest stages of the cascade.
Summary updated