DocNLI: A Large-scale Dataset for Document-level Natural Language Inference

Wenpeng Yin, Dragomir Radev, Caiming Xiong
6/17/2021
cs.CL
benchmark-dataset

Official code: salesforce/DocNLI (69 stars, Python, BSD-3-Clause, last commit 2025-05-01).

Abstract

Natural language inference (NLI) is formulated as a unified framework for solving various NLP problems such as relation extraction, question answering, summarization, etc. It has been studied intensively in the past few years thanks to the availability of large-scale labeled datasets.

Show full abstract

However, most existing studies focus on merely sentence-level inference, which limits the scope of NLI's application in downstream NLP problems. This work presents DocNLI -- a newly-constructed large-scale dataset for document-level NLI. DocNLI is transformed from a broad range of NLP problems and covers multiple genres of text. The premises always stay in the document granularity, whereas the hypotheses vary in length from single sentences to passages with hundreds of words. Additionally, DocNLI has pretty limited artifacts which unfortunately widely exist in some popular sentence-level NLI datasets. Our experiments demonstrate that, even without fine-tuning, a model pretrained on DocNLI shows promising performance on popular sentence-level benchmarks, and generalizes well to out-of-domain NLP tasks that rely on inference at document granularity. Task-specific fine-tuning can bring further improvements. Data, code, and pretrained models can be found at https://github.com/salesforce/DocNLI.

View on arXivView PDF

Code Implementations(1)

salesforce/DocNLIOfficial100%
BSD-3-Clause
698Python, ShellJun 10, 20211 years agoBSD-3-Clause

Similar Papers

Cite this paper

@article{yin2021docnli,
  title  = {DocNLI: A Large-scale Dataset for Document-level Natural Language Inference},
  author = {Wenpeng Yin and Dragomir Radev and Caiming Xiong},
  year   = {2021},
  eprint = {2106.09449},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2106.09449}
}

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/2106.09449.svg)](https://codeofpaper.com/paper/2106.09449)

Discussion