Putting Question-Answering Systems into Practice: Transfer Learning for Efficient Domain Customization

Bernhard Kratzwald, Stefan Feuerriegel · DOI

TL;DR

This paper introduces two cost-effective strategies to bring high-performance Question-Answering (Q&A) systems to specialized industries: metadata filtering to sharpen document retrieval and a novel "fuse-and-oversample" transfer learning technique. By leveraging these methods, the authors achieved significant performance gains in finance and film industry use cases using fewer than 400 annotated question-answer pairs.

What Problem Does This Paper Address?

While we are used to asking search engines questions, traditional Information Retrieval (IR) often leaves us with a "wall of links" that we must manually sift through. Q&A systems aim to provide the exact answer directly. However, there’s a catch: state-of-the-art neural Q&A models are data-hungry.

To work well in a specific field—like analyzing financial regulatory filings or medical records—these systems usually require thousands of domain-specific, hand-labeled examples to understand the unique terminology and context. For most businesses, annotating that much data is prohibitively expensive. The authors tackle this "cold-start" problem, seeking ways to build accurate Q&A systems for niche domains without the massive data overhead.

Methods

The authors propose a two-stage remedy targeting the two main components of a Q&A pipeline:

  1. Metadata Filtering (The IR Lever): Most content-based Q&A systems ignore document metadata (like author, date, or company name). The authors integrated a filtering mechanism upstream of the retrieval module. By allowing users to restrict the search to specific categories (e.g., "Only look at documents for Apple Inc."), the system drastically reduces noise and improves the chances of the retrieval module finding the correct document.
  2. Fuse-and-Oversample (The Extraction Lever): Standard transfer learning usually involves "fine-tuning": training a model on a massive general dataset (like SQuAD) and then slightly adjusting it with a small domain dataset. The authors found this approach "fragile" and prone to overfitting when the domain dataset is tiny. Instead, they propose fusing the large general dataset with the small domain dataset and oversampling the domain-specific pairs (in a 1:3 ratio) so the model learns both general language logic and domain-specific nuances simultaneously from scratch.

Datasets

The study utilized three primary data sources:

  • SQuAD (Stanford Question Answering Dataset): A massive open-domain dataset with over 100,000 pairs used as the "source" for transfer learning.
  • Financial News Dataset: A newly annotated set of 393 training and 257 test pairs based on "ad hoc" regulatory announcements from firms. This dataset is characterized by complex, formal language.
  • WikiMovies: Used for a robustness check, the authors subsampled 393 training and 257 test pairs from this movie-industry dataset to see if their methods generalized to other fields.

Key Insights and Ideas

  • Metadata is a Low-Hanging Fruit: In many business contexts, metadata is already available. Utilizing it isn't just a "nice-to-have"; it acts as a powerful prior that can boost retrieval accuracy more effectively than swapping out complex IR algorithms.
  • Fine-tuning is Fragile on Small Data: When you only have a few hundred examples, the choice of learning rate and batch size becomes extremely volatile. The "fuse-and-oversample" approach is much more robust because the large general dataset acts as a stabilizer, preventing the model from "forgetting" how to answer questions while it learns new domain terminology.
  • The IR Bottleneck: The accuracy of the document retrieval module sets a hard "upper bound" on the entire system. If the IR module doesn't pick the right document, the answer extraction module never even gets a chance to find the right answer.

Key Results

The results demonstrate that "practical" Q&A is achievable with minimal labeling effort:

  • Retrieval Boost: Adding a simple metadata filter (e.g., filtering by firm name) improved the Recall@1 (the probability that the top-ranked document contains the answer) from 0.48 to 0.88.
  • Extraction Accuracy: The "fuse-and-oversample" method outperformed standard fine-tuning across multiple neural architectures (DrQA, R-Net, BiDAF), providing an accuracy (Exact Match) increase of 8.1% to 17.0% over baselines.
  • End-to-End Success: Without customization, the system answered roughly 1 in 7.6 questions correctly. With the combined metadata and transfer learning approach, that improved to 1 in 2.2 questions—a massive leap for a system trained on fewer than 400 local examples.

Limitations and Future Work

The authors acknowledge several boundaries to their current work:

  • Language: The study was limited to English-language datasets.
  • Single-Document Constraints: The system requires the answer to be a "sub-span" (a direct quote) from a single document. It cannot currently synthesize an answer by combining information from multiple different documents.
  • Metadata Dependency: The success of the first lever depends entirely on the availability and quality of document metadata in the target domain.

Future research directions include exploring ensemble learning (combining multiple models) and developing methods to handle semi-structured data like tables, which are common in business reports but difficult for standard neural Q&A to parse.

Summary updated

BibTeX
@article{kratzwald2019putting,
  author = {Bernhard Kratzwald and Stefan Feuerriegel},
  title = {{Putting Question-Answering Systems into Practice: Transfer Learning for Efficient Domain Customization}},
  journal = {ACM Trans. Manag. Inf. Syst.},
  year = {2019},
  doi = {10.1145/3309706},
}
Figure