Long Context Question Answering Via Supervised Contrastive Learning · The Large Language Model Bible Contribute to LLM-Bible

Long Context Question Answering Via Supervised Contrastive Learning

Caciularu Avi, Dagan Ido, Goldberger Jacob, Cohan Arman. Arxiv 2021

[Paper]    
Applications Model Architecture Pretraining Methods RAG Reinforcement Learning Transformer

Long-context question answering (QA) tasks require reasoning over a long document or multiple documents. Addressing these tasks often benefits from identifying a set of evidence spans (e.g., sentences), which provide supporting evidence for answering the question. In this work, we propose a novel method for equipping long-context QA models with an additional sequence-level objective for better identification of the supporting evidence. We achieve this via an additional contrastive supervision signal in finetuning, where the model is encouraged to explicitly discriminate supporting evidence sentences from negative ones by maximizing question-evidence similarity. The proposed additional loss exhibits consistent improvements on three different strong long-context transformer models, across two challenging question answering benchmarks – HotpotQA and QAsper.

Similar Work