CLOMO: Counterfactual Logical Modification with Large Language Models

Yinya Huang, Ruixin Hong, Hongming Zhang, Wei Shao, Zhicheng Yang +4 more
11/29/2023
12 citations
cs.CLcs.AI

Official code: Eleanor-H/CLOMO (4 stars, Python, last commit 2024-07-06).

Abstract

In this study, we delve into the realm of counterfactual reasoning capabilities of large language models (LLMs). Our primary objective is to cultivate the counterfactual thought processes within LLMs and rigorously assess these processes for their validity.

Show full abstract

Specifically, we introduce a novel task, Counterfactual Logical Modification (CLOMO), and a high-quality human-annotated benchmark. In this task, LLMs must adeptly alter a given argumentative text to uphold a predetermined logical relationship. To effectively evaluate a generation model's counterfactual capabilities, we propose an innovative evaluation metric, the decomposed Self-Evaluation Score (SES) to directly evaluate the natural language output of LLMs instead of modeling the task as a multiple-choice problem. Analysis shows that the proposed automatic metric aligns well with human preference. Our experimental results show that while LLMs demonstrate a notable capacity for logical counterfactual thinking, there remains a discernible gap between their current abilities and human performance. Code and data are available at https://github.com/Eleanor-H/CLOMO.

View on arXivView PDF

Code Implementations(1)

Eleanor-H/CLOMOOfficial100%

Official code and data for "CLOMO: Counterfactual Logical Modification with Large Language Models" (ACL 2024)

40Python, ShellJun 3, 20242 years ago

Similar Papers

Cite this paper

@article{huang2023clomo,
  title  = {CLOMO: Counterfactual Logical Modification with Large Language Models},
  author = {Yinya Huang and Ruixin Hong and Hongming Zhang and Wei Shao and Zhicheng Yang and Dong Yu and Changshui Zhang and Xiaodan Liang and Linqi Song},
  year   = {2023},
  eprint = {2311.17438},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2311.17438v4}
}

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

Discussion