In modern Question Answering (QA) systems, two paradigms dominate: Answer Sentence Selection (AS2) and Generative QA (GenQA). AS2 models act as rankers, identifying the most relevant pre-existing sentence from a corpus. In contrast, GenQA models act as synthesizers, generating natural, concise answers from multiple sources. While GenQA offers a superior user experience, its development is hindered by the high cost of acquiring human-authored "gold standard" training data.
Researchers from the University of Trento, Amazon Alexa AI, and the Allen Institute for AI presented a novel solution at EMNLP 2022: leveraging pre-trained rankers to teach generative models through knowledge transfer.
The Challenge of Data Scarcity
Training robust GenQA models typically requires vast datasets of question-context-answer triplets. Creating these "perfect" answers manually is resource-intensive. Conversely, AS2 data—where sentences are simply labeled as correct or incorrect—is far more abundant. This research explores whether the knowledge embedded in a high-performing ranker can be used to train a generator on unlabeled data.
Methodology: The Weak Supervision Pipeline
The proposed framework utilizes a "Weak Supervision" (WS) pipeline to transform a ranking task into a generative one.
The process involves several key steps:
- Teacher Model (AS2): A high-performing ranker (e.g., RoBERTa or ELECTRA) processes a large set of unlabeled questions and retrieved documents.
- Pseudo-Gold Targets: The top-ranked sentence ($c_{\mathcal{M}_1}$) serves as the target for the generator.
- Contextual Input: The subsequent $k$ top-ranked sentences provide the source material for the generator.
- Loss Weighting (LW): To account for varying ranker confidence, training loss is weighted by the ranker's confidence score. This prevents the model from over-learning from low-confidence predictions.
- Score-Conditioned I/O Shaping (SC): Confidence scores are discretized into buckets (e.g.,
[_YES_],[_MAYBE_]). These tokens are prepended to inputs and outputs, helping the model distinguish between high- and low-quality source text.
The underlying architecture for the generator is the T5 (Text-to-Text Transfer Transformer).
Experimental Results
The framework was evaluated on several benchmarks, including MS-MARCO, WikiQA, and TREC-QA, as well as a large-scale industrial dataset.
Key Findings:
- Superior Performance: On the MS-MARCO NLG dataset, the best-performing configuration (WS+LW+SC) achieved an accuracy of 83.7%, surpassing both the AS2 baseline (79.3%) and a GenQA model trained on fully supervised human data (82.6%).
- Effectiveness of Bucketing: Discretizing confidence scores proved more effective than using raw numerical values, as special tokens better guide the model's internal attention mechanism.
- Volume Over Perfection: On smaller datasets like WikiQA, the weakly supervised model outperformed those trained on limited "perfect" data, suggesting that a large volume of noisy data can be more valuable than a small amount of high-quality data.
- Human Evaluation: Since standard metrics like BLEU often fail to capture answer quality, human evaluations confirmed that the generated answers were more direct and stylistically superior to the raw sentences selected by rankers.
Conclusion and Future Directions
This research demonstrates that knowledge transfer from ranking models is a powerful tool for overcoming data bottlenecks in generative QA. By using weak supervision, models can learn to "clean" noisy retrieved text into high-quality answers.
Future work may involve extending this approach to multilingual contexts and exploring the use of AS2 models for more sophisticated checkpoint selection during the training process. While the risk of "hallucination" remains a challenge for all generative models, the score-conditioning technique provides a promising mitigation strategy.
Summary updated