Skip to content

Source code and data for The Magic of IF: Investigating Causal Reasoning Abilities in Large Language Models of Code (Findings of ACL 2023)

License

Notifications You must be signed in to change notification settings

xxxiaol/magic-if

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Source code and data for The Magic of IF: Investigating Causal Reasoning Abilities in Large Language Models of Code (Findings of ACL 2023)


Dependencies

  • Python>=3.7
  • openai
  • backoff

Abductive reasoning

Code and data of the abductive reasoning task are in the abductive/ folder.

Counterfactual reasoning

Code and data of the counterfactual reasoning task are in the counterfactual/ folder.

Generation results of Codex

Generation results of Codex are in the codex_output/ folder.

Citation

Please cite our paper if this repository inspires your work.

@article{liu2023magic,
  title={The Magic of IF: Investigating Causal Reasoning Abilities in Large Language Models of Code},
  author={Liu, Xiao and Yin, Da and Zhang, Chen and Feng, Yansong and Zhao, Dongyan},
  journal={arXiv preprint arXiv:2305.19213},
  year={2023}
}

Contact

If you have any questions regarding the code, please create an issue or contact the owner of this repository.

About

Source code and data for The Magic of IF: Investigating Causal Reasoning Abilities in Large Language Models of Code (Findings of ACL 2023)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages