ContraDoc: Understanding Self-Contradictions in Documents with Large Language Models

Jierui Li, Vipul Raheja, Dhruv Kumar
11/15/2023
cs.CL

Official code: ddhruvkr/CONTRADOC (15 stars, Apache-2.0, last commit 2025-02-08).

Abstract

In recent times, large language models (LLMs) have shown impressive performance on various document-level tasks such as document classification, summarization, and question-answering. However, research on understanding their capabilities on the task of self-contradictions in long documents has been very limited. In this work, we introduce ContraDoc, the first human-annotated dataset to study self-contradictions in long documents across multiple domains, varying document lengths, self-contradictions types, and scope. We then analyze the current capabilities of four state-of-the-art open-source and commercially available LLMs: GPT3.5, GPT4, PaLM2, and LLaMAv2 on this dataset. While GPT4 performs the best and can outperform humans on this task, we find that it is still unreliable and struggles with self-contradictions that require more nuance and context. We release the dataset and all the code associated with the experiments (https://github.com/ddhruvkr/CONTRADOC).

View on arXivView PDF

Code Implementations(1)

ddhruvkr/CONTRADOCOfficial100%
Apache-2.0
153PythonDec 6, 20231 years agoApache-2.0

Cite this paper

@article{li2023contradoc,
  title  = {ContraDoc: Understanding Self-Contradictions in Documents with Large Language Models},
  author = {Jierui Li and Vipul Raheja and Dhruv Kumar},
  year   = {2023},
  eprint = {2311.09182},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2311.09182v2}
}

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

Discussion