LLM4Causal: Democratized Causal Tools for Everyone via Large Language Model

Large Language Models (LLMs) have shown their success in language understanding and reasoning on general topics. However, their capability to perform inference based on user-specified structured data and knowledge in corpus-rare concepts, such as causal decision-making is still limited. In this work, we explore the possibility of fine-tuning an open-sourced LLM into LLM4Causal, which can identify the causal task, execute a corresponding function, and interpret its numerical results based on users' queries and the provided dataset. Meanwhile, we propose a data generation process for more controllable GPT prompting and present two instruction-tuning datasets: (1) Causal-Retrieval-Bench for causal problem identification and input parameter extraction for causal function calling and (2) Causal-Interpret-Bench for in-context causal interpretation. By conducting end-to-end evaluations and two ablation studies, we showed that LLM4Causal can deliver end-to-end solutions for causal problems and provide easy-to-understand answers, which significantly outperforms the baselines.

Paper

References (58)

Scroll for more · 38 remaining

Similar papers

Reviewer vBxV8/10 · confidence 3/52024-05-07

Summary

The authors propose a fully end-to-end pipeline generating responses to user querying an input dataset. The query consists of a causal question which need statistical causal analysis. The goal is for the proposed system to 1) understands the natural-language expressed query to format it in the correct way so that 2) the appropriate inferred tool is run through a predefined list of tools available online whose output is 3) formatted itself in a response phrased in natural language and answering the initial query The proposed approach, LLM4Causal, describes how the authors fine-tuned a modern pre-trained LLM on two datasets with the aim of improving the LLM output with regard to subtasks 1) and 3). The semi-automated methods to create these datasets are presented in details. The authors propose automatic and manual evaluation metrics and compare their system to the function calling feature of a chat-GPT (GPT4-turbo) LLM. Their experimental results demonstrate the superiority of their approach over the benchmark method.

Rating

8

Confidence

3

Ethics flag

1

Reasons to accept

The method is clearly described, experiments are sound. The task addressed is an effort toward leveraging natural language understanding and generation capabilities of LLM for actual assistant responding accurately to queries in the domain of causal analysis of quantitative variables. The work appears to be novel, useful for future steps in this direction, well designed and correctly evaluated.

Reasons to reject

Some details are omitted or not clearly explained, such as how exactly are the tools selected: does LLM4Causal’s LLM handle all the logic or do you implement standard logic once the causality-related task is identified by LLM4Causal? In other words, once LLM4Causal predicts that the task is CEL-ATE, how is DR selected over DML, TMLE, or IPW?

Questions to authors

Minor comments: - Table 1: overlapping caption - 3.1: adopt → adapt? - 3.1: publicity → publically? - 3.2: Appendix ??

Reviewer UqM44/10 · confidence 4/52024-05-12

Summary

This work explores the capability of large language models(LLMs) to perform causal tasks. The authors started with the motivation that existing LLMs do not handle specific structured data and knowledge well. The objective of this work is to build LLM4Causal by fine-tuning existing open-source LLMs capable of identifying causal tasks executing the corresponding functions and outputting the results. To fine-tune the training, they constructed two supervised datasets with GPT-4 prompting.

Rating

4

Confidence

4

Ethics flag

1

Reasons to accept

This work proposes a complete pipeline for boosting the performance of LLMs on specific tasks. However, constructing specific datasets via GPT-4 prompts and then fine-tuning open-source LLMs has been used in many previous works.

Reasons to reject

1. The work did not really improve LLMs' abilities in causal decision-making and reasoning, but rather taught LLMs to use causal analysis tools. 2. The experiment was well-designed and predictable. 3. Larger language models with larger scale parameters generally have stronger reasoning capabilities. It is suggested that further exploration and experimentation be conducted. 4. Provide implications in calling different causal tools and algorithms.

Questions to authors

The appendix provides insufficient details on how to use the GP4-turbo.

Reviewer y23N7/10 · confidence 4/52024-05-12

Summary

This paper presents an end-to-end framework for causal decision-making tasks, which addresses the weakness of the current LLM applications on causal tasks. A three-step data generation pipeline is proposed, it first interprets user requests into a JSON data for causal task , and then automatically selects the causal tool to execute the corresponding algorithm, finally it generates a natural language output. Two benchmark datasets, Causal- Retrieval-Bench for causal function calling and Causal-Interpret-Bench for causal interpretation are constructed.

Rating

7

Confidence

4

Ethics flag

1

Reasons to accept

The article proposes a scheme to transfer diversity causal tasks into a unified structured JSON data. This approach can effectively integrates tasks and facilitating the use of LLM. The experimental results shows that the method has significant advantages. The paper provides detailed attachments to demonstrate the effectiveness of the work.

Reasons to reject

The paper proposes the use of structured JSON to represent a variety of tasks and demonstrates that this integrated approach outperforms end2end GPT-4 method. However, the paper does not validate whether this method is superior to handling each task individually, particularly in cases of individual fine-tuning them. Moreover, controlling the quality of JSON data needs additional manual consumption, which diminishes the practical significance of this integrated approach.

Reviewer qRr67/10 · confidence 4/52024-05-17

Summary

The paper presents LLM4Causal, an end-to-end, user-friendly large language model designed for causal decision-making tasks. The model addresses the limitations of general LLMs in handling causal tasks by fine-tuning them with two specialized datasets: Causal-Retrieval-Bench for identifying causal problems and extracting variables and Causal-Interpret-Bench for interpreting causal results. LLM4Causal operates through three major steps: interpreting user requests, assigning and executing causal tools, and providing easy-to-understand interpretations of the outputs. The model's performance was evaluated across three main causal decision-making categories: causal effect estimation, causal structure discovery, and causal policy learning. In total, there are 5 tasks in these three categories. The results demonstrate superior performance compared to baselines like ChatGPT and GPT-4. This work highlights the potential of fine-tuning large language models to enhance their capabilities in specialized domains like causal inference, making them accessible and effective for general users.

Rating

7

Confidence

4

Ethics flag

1

Reasons to accept

1. This work presents a very comprehensive framework for causal inference. Here, the authors fine-tuned LLM to interpret uses' causal query, utilize external tools to calculate causal relations, and interpret the logic behind causal relations. 2. The framework covers five tasks and conducts a lot of experiments, showing its generalization ability on various causal tasks. 3. The problem studied in this paper is significant, which is how to use LLM to make causal inference more accessible to normal people.

Reasons to reject

1. There are some typos, like in Section 3.2, "See Figure 5 in Appendix ??" 2. Since the paper just fine-tunes Llama2 on those causal tasks instead of instruction tuning. Can we just fine-tune a small model, like T5, BART, or GPT2, to do this task? 3. Two fine-tuning datasets collected in this paper are quite small. The Causal-Retrieval-Bench only contains 1,500 pairs. Causal-Interpret-Bench only contains 400 examples. It seems that there will a very sever over-fitting problem for Llama2 (7B). 4. Is this framework possible to be extended to causality between textual events, like the following references? 5. There are also some missing reference: 1) Rashkin, Hannah, et al. "Event2Mind: Commonsense Inference on Events, Intents, and Reactions." Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). 2018. 2) Ning, Qiang, et al. "Joint Reasoning for Temporal and Causal Relations." Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). 2018. 3) Wang, Zhaowei, et al. "COLA: Contextualized Commonsense Causal Reasoning from the Causal Inference Perspective." Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). 2023.

Questions to authors

No

Reviewer vBxV2024-06-04

Thank you for the clarification

Thank you for the clarification. I now understand that, after identifying the task, the method is selected by default. In my opinion (also raised by Reviewer UqM4), it would improve readability if you specified that each task is currently assigned a default method, and future steps could include automatic method selection for a given detected task (out of this work's scope).

Authorsrebuttal2024-06-05

Follow-Up

Dear Reviewer, we sincerely appreciate the time and effort you invested in evaluating our submission. We hope our responses have adequately addressed your question and clarified any concerns regarding our paper. Should you have any further feedback, questions, or comments, please do not hesitate to let us know before the rebuttal period concludes. Your insights are invaluable, and we're keen to address any remaining issues.

Authorsrebuttal2024-06-05

Follow-Up

Dear Reviewer, we sincerely appreciate the time and effort you invested in evaluating our submission. We hope our responses have adequately addressed your question and clarified any concerns regarding our paper. Should you have any further feedback, questions, or comments, please do not hesitate to let us know before the rebuttal period concludes. Your insights are invaluable, and we're keen to address any remaining issues.

Authorsrebuttal2024-06-05

Follow-Up

Dear Reviewer, we sincerely appreciate the time and effort you invested in evaluating our submission. We hope our responses have adequately addressed your question and clarified any concerns regarding our paper. Should you have any further feedback, questions, or comments, please do not hesitate to let us know before the rebuttal period concludes. Your insights are invaluable, and we're keen to address any remaining issues.

Reviewer qRr62024-06-05

Response to Rebuttal

I have read the response

Reviewer UqM42024-06-06

Thanks for the response from the authors. I still have some concerns. External causal tools need to be used under assumptions. How does LLM4Causal address this?

Authorsrebuttal2024-06-07

Response

Dear reviewer, Thank you for your insightful question! Currently, LLM4Causal can help with some assumption checking. For example, in the current framework, users could request LLM4Causal to validate structure-wise assumptions by asking a causal discovery query. The learned structure among variables can then be used to detect the presence of instrument/mediator/confounder variables, which is critical for accurately performing causal effect estimation tasks. However, other assumptions, such as Markov properties [1], error distributions [2], no unmeasured confounders [3], and so on, remain challenging to verify using observational datasets. This is still an open question in the literature, and hence beyond the scope of what language models can handle. We strongly agree that assumption-checking is essential for causal learning. Therefore, we would explore pre-trained ML models for assumption classification [4] as our next step. Also, it is worth noting that the LLM4Causal framework can easily adapt any assumption-checking tools that might be developed in the future, to improve its capabilities. Please do not hesitate to contact us if you have any further questions or require additional clarification. Should we have addressed your concerns, we would appreciate it if you could consider reevaluating the score. Thank you for considering our responses. [1] Sharma, A., Syrgkanis, V., Zhang, C., & Kıcıman, E. (2021). Dowhy: Addressing challenges in expressing and validating causal assumptions. arXiv preprint arXiv:2108.13518. [2] Celli, V. (2022). Causal mediation analysis in economics: Objectives, assumptions, models. Journal of Economic Surveys, 36(1), 214-234. [3] Imbens, G. W., & Rubin, D. B. (2015). Causal inference in statistics, social, and biomedical sciences. Cambridge university press. [4] Gupta, S., Zhang, C., & Hilmkil, A. (2023). Learned Causal Method Prediction. arXiv preprint arXiv:2311.03989.

Program Chairsdecision2024-07-10

Decision

Accept

© 2026 NYSGPT2525 LLC