Abstract
The retrieval model is an indispensable component for real-world knowledge-intensive tasks, e.g., open-domain question answering (ODQA). As separate retrieval skills are annotated for different datasets, recent work focuses on customized methods, limiting the model transferability and scalability. In this work, we propose a modular retriever where individual modules correspond to key skills that can be reused across datasets. Our approach supports flexible skill configurations based on the target domain to boost performance. To mitigate task interference, we design a novel modularization parameterization inspired by sparse Transformer. We demonstrate that our model can benefit from self-supervised pretraining on Wikipedia and fine-tuning using multiple ODQA datasets, both in a multi-task fashion. Our approach outperforms recent self-supervised retrievers in zero-shot evaluations and achieves state-of-the-art fine-tuned retrieval performance on NQ, HotpotQA and OTT-QA.
Introduction
Open-domain question answering (ODQA) requires systems to navigate massive external knowledge sources to find supportive evidence. However, different queries demand different "retrieval recipes." While a simple question might require a single search, complex multi-hop questions or those involving specific entities require more sophisticated pipelines. Current research often produces dataset-specific retrievers (e.g., DPR for single-hop, MDR for multi-hop), creating "one-trick ponies" that lack scalability and transferability. Furthermore, multi-task training often suffers from task interference, where learning new skills degrades the performance of existing ones due to parameter competition.
Methods
We introduce Chain-of-Skills (COS), a modular retrieval framework that treats retrieval as a sequence of configurable reasoning skills.
The Skill Set
COS decomposes complex retrieval into five core reusable skills:
- Single Retrieval: Standard question-to-passage search.
- Expanded Query Retrieval: Using retrieved evidence to find the next "hop" in a chain.
- Entity Span Proposal: Identifying potential entities within a query.
- Entity Linking: Mapping identified spans to specific knowledge base entries.
- Reranking: Optimizing the order of retrieved candidates.
Modular Architecture
To mitigate task interference, COS employs a novel modular Transformer architecture. Unlike standard Mixture-of-Experts (MoE) models that specialize Feed-Forward Networks (FFN), COS specializes the Multi-Head Attention (MHA) layers. This design choice stems from the insight that FFNs are better suited for storing shared factual world knowledge, while MHA layers can be specialized to handle the distinct "patterns of attention" required for different reasoning tasks.
Training and Inference
The model undergoes multi-task self-supervised pretraining on Wikipedia—using hyperlinks and passage cropping to simulate retrieval and linking—followed by multi-task fine-tuning on diverse ODQA datasets. At inference time, these skills can be "chained" together in configurations tailored to the specific complexity of the target domain.
Key Results
COS achieves state-of-the-art (SOTA) performance across several major benchmarks, including NQ (85.6 Top-20 accuracy), HotpotQA (88.89 Passage EM), and OTT-QA (79.9 Top-20 accuracy).
Beyond supervised performance, COS demonstrates remarkable zero-shot transferability. In evaluations without task-specific fine-tuning, it achieved an average Top-100 accuracy of 82.3% across four datasets, outperforming the previous best self-supervised retriever (Contriever) by over 7 percentage points. Ablation studies confirmed that MHA specialization is more effective at reducing task interference than FFN specialization, suggesting that the "how to look" (attention) is more task-specific than the "what is known" (factual knowledge).
Conclusion
Chain-of-Skills provides a flexible and scalable framework for ODQA by modularizing retrieval into configurable skills. While the current model uses a BERT-base backbone, future work may explore larger architectures to better model full evidence chains and improve the reranking of multi-passage evidence. COS represents a significant step toward robust, general-purpose retrieval systems capable of adapting to diverse knowledge-intensive tasks.
Summary updated