Long Context Question Answering via Supervised Contrastive Learning

Avi Caciularu, Ido Dagan, Jacob Goldberger, Arman Cohan
12/16/2021
30 citations
cs.CLcs.AI
contrastive-ssl

Official code: aviclu/long-context-qa-contrast (7 stars, Python, last commit 2022-09-06).

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

72PythonDec 16, 20214 years ago

Similar Papers

Cite this paper

@article{caciularu2021long,
  title  = {Long Context Question Answering via Supervised Contrastive Learning},
  author = {Avi Caciularu and Ido Dagan and Jacob Goldberger and Arman Cohan},
  year   = {2021},
  eprint = {2112.08777},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2112.08777}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2112.08777.svg)](https://codeofpaper.com/paper/2112.08777)

Discussion