Can Large Language Models Infer Causation from Correlation?

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Jin, Zhijing, Liu, Jiarui, Lyu, Zhiheng, Poff, Spencer, Sachan, Mrinmaya, Mihalcea, Rada, Diab, Mona, Schölkopf, Bernhard
Format: Preprint
Published: 2023
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866914757804556288
author Jin, Zhijing
Liu, Jiarui
Lyu, Zhiheng
Poff, Spencer
Sachan, Mrinmaya
Mihalcea, Rada
Diab, Mona
Schölkopf, Bernhard
author_facet Jin, Zhijing
Liu, Jiarui
Lyu, Zhiheng
Poff, Spencer
Sachan, Mrinmaya
Mihalcea, Rada
Diab, Mona
Schölkopf, Bernhard
contents Causal inference is one of the hallmarks of human intelligence. While the field of CausalNLP has attracted much interest in the recent years, existing causal inference datasets in NLP primarily rely on discovering causality from empirical knowledge (e.g., commonsense knowledge). In this work, we propose the first benchmark dataset to test the pure causal inference skills of large language models (LLMs). Specifically, we formulate a novel task Corr2Cause, which takes a set of correlational statements and determines the causal relationship between the variables. We curate a large-scale dataset of more than 200K samples, on which we evaluate seventeen existing LLMs. Through our experiments, we identify a key shortcoming of LLMs in terms of their causal inference skills, and show that these models achieve almost close to random performance on the task. This shortcoming is somewhat mitigated when we try to re-purpose LLMs for this skill via finetuning, but we find that these models still fail to generalize -- they can only perform causal inference in in-distribution settings when variable names and textual expressions used in the queries are similar to those in the training set, but fail in out-of-distribution settings generated by perturbing these queries. Corr2Cause is a challenging task for LLMs, and would be helpful in guiding future research on improving LLMs' pure reasoning skills and generalizability. Our data is at https://huggingface.co/datasets/causalnlp/corr2cause. Our code is at https://github.com/causalNLP/corr2cause.
format Preprint
id arxiv_https___arxiv_org_abs_2306_05836
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle Can Large Language Models Infer Causation from Correlation?
Jin, Zhijing
Liu, Jiarui
Lyu, Zhiheng
Poff, Spencer
Sachan, Mrinmaya
Mihalcea, Rada
Diab, Mona
Schölkopf, Bernhard
Computation and Language
Artificial Intelligence
Machine Learning
Causal inference is one of the hallmarks of human intelligence. While the field of CausalNLP has attracted much interest in the recent years, existing causal inference datasets in NLP primarily rely on discovering causality from empirical knowledge (e.g., commonsense knowledge). In this work, we propose the first benchmark dataset to test the pure causal inference skills of large language models (LLMs). Specifically, we formulate a novel task Corr2Cause, which takes a set of correlational statements and determines the causal relationship between the variables. We curate a large-scale dataset of more than 200K samples, on which we evaluate seventeen existing LLMs. Through our experiments, we identify a key shortcoming of LLMs in terms of their causal inference skills, and show that these models achieve almost close to random performance on the task. This shortcoming is somewhat mitigated when we try to re-purpose LLMs for this skill via finetuning, but we find that these models still fail to generalize -- they can only perform causal inference in in-distribution settings when variable names and textual expressions used in the queries are similar to those in the training set, but fail in out-of-distribution settings generated by perturbing these queries. Corr2Cause is a challenging task for LLMs, and would be helpful in guiding future research on improving LLMs' pure reasoning skills and generalizability. Our data is at https://huggingface.co/datasets/causalnlp/corr2cause. Our code is at https://github.com/causalNLP/corr2cause.
title Can Large Language Models Infer Causation from Correlation?
topic Computation and Language
Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2306.05836