TL;DR
This paper introduces SF-QA, a Python library designed to simplify and standardize the evaluation of open-domain question answering (QA) systems. By providing pre-indexed knowledge sources, a modular pipeline, and reproducible configurations, SF-QA aims to lower the barrier to entry for researchers and foster more accessible and comparable research in the field.
What Problem Does This Paper Address?
Open-domain Question Answering (QA) systems aim to answer questions using vast amounts of unstructured text, like Wikipedia. While significant progress has been made, two major hurdles hinder accessibility and reproducibility:
- High Cost of Indexing: Building and maintaining the knowledge base (e.g., indexing Wikipedia) is computationally expensive, especially for neural ranking models that require substantial time and memory. This often limits cutting-edge research to well-resourced institutions or industry labs.
- Reproducibility Challenges: Datasets are often tied to specific versions of Wikipedia, and system performance can vary significantly with different data versions or hyperparameter settings. The complexity of these systems makes it difficult for researchers to reproduce prior work or build upon it.
Methods
SF-QA tackles these problems by offering a modular and reproducible framework for evaluating two-stage ranker-reader QA systems. Its core components include:
- Modular Pipeline: SF-QA breaks down the QA process into distinct, interchangeable modules: ranker service, reader hub, evaluation, and pipeline configuration. This allows researchers to swap components easily.
- Pre-indexed Knowledge Sources: Instead of requiring users to index massive datasets themselves, SF-QA provides pre-indexed Wikipedia dumps (in multiple versions and languages) accessible via public APIs or cached results. This significantly reduces the computational burden.
- Ranker Service: Supports various ranking methods (e.g., BM25, SPARTA) and offers different document splitting strategies (sentence, paragraph, chunk, context) for indexing.
- Reader Hub: Allows users to integrate their own reader models or use pre-trained ones compatible with the Hugging Face Transformer library. It also supports flexible fusion mechanisms for combining ranker and reader outputs.
- Pipeline Configuration: A YAML file defines all hyperparameters for a complete QA system, enabling precise replication of experiments and results.
- Evaluation Script: A comprehensive script that computes standard metrics (EM, F1) and other useful intermediate metrics for analysis, supporting both English and Chinese.
Datasets
SF-QA evaluates its framework on several standard open-domain QA datasets, including:
- Open SQUAD
- Open Natural Questions
- Open CMRC
- Open DRCD
The framework utilizes multiple versions of Wikipedia dumps (2016, 2018, 2020 for English; 2017, 2018, 2020 for Chinese) as its knowledge sources.
Key Insights and Ideas
- Democratizing Open-Domain QA: The primary goal is to make advanced open-domain QA research accessible to a wider community, including those with limited computational resources.
- Reproducibility is Key: The framework emphasizes the importance of reproducible research by providing exact configurations and pre-indexed data, addressing the temporal sensitivity of QA systems to data versions.
- Modularity for Flexibility: By decoupling rankers, readers, and evaluation, SF-QA allows researchers to focus on specific components (e.g., improving reader models) without re-implementing the entire pipeline.
- Industry-Academia Bridge: SF-QA aims to connect researchers and industry by offering a ready-to-use API and demonstrating seamless integration with platforms like RASA.
Key Results
- Time Savings: Evaluating an open-domain QA system using SF-QA with cached results reduced the elapsed time from 29 hours to approximately 4 hours for a single experimental setting, highlighting significant efficiency gains.
- Reproduced State-of-the-Art: The framework successfully reproduced results from several prior state-of-the-art open-domain QA systems (Bertserini, Multi-passage BERT, SPARTA), demonstrating its effectiveness and reliability.
- Performance Consistency: The paper shows that model accuracy is significantly affected by the Wikipedia dump version, underscoring the importance of SF-QA's version-controlled data.
Limitations and Future Work
- Limited Ranker/Reader Support (Initial): While SF-QA aims to be a hub, it initially supports a specific set of rankers and readers. The authors encourage community contributions to expand this.
- Focus on Two-Stage Systems: The current framework is primarily designed for two-stage ranker-reader QA systems.
- Future Work: The authors plan to include more ranker and reader models, expand language support, and further encourage community contributions to enrich the framework. They also envision SF-QA as a platform for knowledge-empowered applications.
Summary updated