{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/causal-reasoning-of-entities-and-events-in","title":"Causal Reasoning of Entities and Events in Procedural Texts","arxiv_id":"2301.10896","date":"2023-01-26","proceeding":null,"authors":["Li Zhang","Hainiu Xu","Yue Yang","Shuyan Zhou","Weiqiu You","Manni Arora","Chris Callison-Burch"],"abstract":"Entities and events are crucial to natural language reasoning and common in procedural texts. Existing work has focused either exclusively on entity state tracking (e.g., whether a pan is hot) or on event reasoning (e.g., whether one would burn themselves by touching the pan), while these two tasks are often causally related. We propose CREPE, the first benchmark on causal reasoning of event plausibility and entity states. We show that most language models, including GPT-3, perform close to chance at .35 F1, lagging far behind human at .87 F1. We boost model performance to .59 F1 by creatively representing events as programming languages while prompting language models pretrained on code. By injecting the causal relations between entities and events as intermediate reasoning steps in our representation, we further boost the performance to .67 F1. Our findings indicate not only the challenge that CREPE brings for language models, but also the efficacy of code-like prompting combined with chain-of-thought prompting for multihop event reasoning.","url_abs":"https://arxiv.org/abs/2301.10896v3","url_pdf":"https://arxiv.org/pdf/2301.10896v3.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"causal-reasoning-of-entities-and-events-in","repo_url":"https://github.com/zharry29/causal_reasoning_of_entities_and_events","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[],"methods":[{"method_slug":"adam","method_name":"Adam"},{"method_slug":"attention","method_name":"Attention"},{"method_slug":"attention-dropout","method_name":"Attention Dropout"},{"method_slug":"bpe","method_name":"BPE"},{"method_slug":"cosine-annealing","method_name":"Cosine Annealing"},{"method_slug":"dense-connections","method_name":"Dense Connections"},{"method_slug":"dropout","method_name":"Dropout"},{"method_slug":"gpt-3","method_name":"GPT-3"},{"method_slug":"layer-normalization","method_name":"Layer Normalization"},{"method_slug":"linear-layer","method_name":"Linear Layer"},{"method_slug":"linear-warmup-with-cosine-annealing","method_name":"Linear Warmup With Cosine Annealing"},{"method_slug":"multi-head-attention","method_name":"Multi-Head Attention"},{"method_slug":"residual-connection","method_name":"Residual Connection"},{"method_slug":"softmax","method_name":"Softmax"},{"method_slug":"weight-decay","method_name":"Weight Decay"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2301.10896","atlas_url":"https://app.syntology.ai/?focus=2301.10896","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2301.10896"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/zharry29/causal_reasoning_of_entities_and_events","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran":7,"unverified":8},"by_repo_kind":{"official":{"samples":15,"ran":7,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"41277c3358776c7b","entry":"goal_to_code","repo":"zharry29/causal_reasoning_of_entities_and_events","repo_kind":"official","path":"codex/v1.2.6/openai_models.py","file_url":"https://github.com/zharry29/causal_reasoning_of_entities_and_events/blob/HEAD/codex/v1.2.6/openai_models.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"41277c3358776c7b"}},{"code_sha256_prefix":"3c38f3bbfb0461a3","entry":"parse_codex_prediction","repo":"zharry29/causal_reasoning_of_entities_and_events","repo_kind":"official","path":"codex/v1.2.1/openai_models.py","file_url":"https://github.com/zharry29/causal_reasoning_of_entities_and_events/blob/HEAD/codex/v1.2.1/openai_models.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"3c38f3bbfb0461a3"}},{"code_sha256_prefix":"b08a7d06f5210cff","entry":"parse_codex_prediction","repo":"zharry29/causal_reasoning_of_entities_and_events","repo_kind":"official","path":"codex/v1.2.3/openai_models.py","file_url":"https://github.com/zharry29/causal_reasoning_of_entities_and_events/blob/HEAD/codex/v1.2.3/openai_models.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"b08a7d06f5210cff"}},{"code_sha256_prefix":"5cbdf807893e810c","entry":"parse_codex_prediction","repo":"zharry29/causal_reasoning_of_entities_and_events","repo_kind":"official","path":"codex/v1.2.5/openai_models.py","file_url":"https://github.com/zharry29/causal_reasoning_of_entities_and_events/blob/HEAD/codex/v1.2.5/openai_models.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"5cbdf807893e810c"}},{"code_sha256_prefix":"5ccf8fb9732577d7","entry":"parse_codex_prediction","repo":"zharry29/causal_reasoning_of_entities_and_events","repo_kind":"official","path":"codex/v1.2.6/openai_models.py","file_url":"https://github.com/zharry29/causal_reasoning_of_entities_and_events/blob/HEAD/codex/v1.2.6/openai_models.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"5ccf8fb9732577d7"}},{"code_sha256_prefix":"76067d310884b7d2","entry":"parse_gen","repo":"zharry29/causal_reasoning_of_entities_and_events","repo_kind":"official","path":"gpt3/niket1/openai_models.py","file_url":"https://github.com/zharry29/causal_reasoning_of_entities_and_events/blob/HEAD/gpt3/niket1/openai_models.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"76067d310884b7d2"}},{"code_sha256_prefix":"492f53812fee57cc","entry":"text_to_code","repo":"zharry29/causal_reasoning_of_entities_and_events","repo_kind":"official","path":"codex/v1.2.1/openai_models.py","file_url":"https://github.com/zharry29/causal_reasoning_of_entities_and_events/blob/HEAD/codex/v1.2.1/openai_models.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"492f53812fee57cc"}},{"code_sha256_prefix":"efd28f7fa5c65a9c","entry":"entity_and_event","repo":"zharry29/causal_reasoning_of_entities_and_events","repo_kind":"official","path":"codex/v1.2.3/openai_models.py","file_url":"https://github.com/zharry29/causal_reasoning_of_entities_and_events/blob/HEAD/codex/v1.2.3/openai_models.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"efd28f7fa5c65a9c"}},{"code_sha256_prefix":"d28314959a83c236","entry":"event_only","repo":"zharry29/causal_reasoning_of_entities_and_events","repo_kind":"official","path":"codex/v1.2.1/openai_models.py","file_url":"https://github.com/zharry29/causal_reasoning_of_entities_and_events/blob/HEAD/codex/v1.2.1/openai_models.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"d28314959a83c236"}},{"code_sha256_prefix":"c83c46cb3d332009","entry":"event_only","repo":"zharry29/causal_reasoning_of_entities_and_events","repo_kind":"official","path":"codex/v1.2.2/openai_models.py","file_url":"https://github.com/zharry29/causal_reasoning_of_entities_and_events/blob/HEAD/codex/v1.2.2/openai_models.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"c83c46cb3d332009"}},{"code_sha256_prefix":"2e2c16954ed09e3b","entry":"event_only","repo":"zharry29/causal_reasoning_of_entities_and_events","repo_kind":"official","path":"codex/v1.2.4/openai_models.py","file_url":"https://github.com/zharry29/causal_reasoning_of_entities_and_events/blob/HEAD/codex/v1.2.4/openai_models.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"2e2c16954ed09e3b"}},{"code_sha256_prefix":"6b0568644ace839f","entry":"event_only","repo":"zharry29/causal_reasoning_of_entities_and_events","repo_kind":"official","path":"codex/v1.2.5/openai_models.py","file_url":"https://github.com/zharry29/causal_reasoning_of_entities_and_events/blob/HEAD/codex/v1.2.5/openai_models.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"6b0568644ace839f"}},{"code_sha256_prefix":"62bd25caa33a238d","entry":"gpt3","repo":"zharry29/causal_reasoning_of_entities_and_events","repo_kind":"official","path":"gpt3.5/openai_models.py","file_url":"https://github.com/zharry29/causal_reasoning_of_entities_and_events/blob/HEAD/gpt3.5/openai_models.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"62bd25caa33a238d"}},{"code_sha256_prefix":"2b309e8385773dbd","entry":"gpt3","repo":"zharry29/causal_reasoning_of_entities_and_events","repo_kind":"official","path":"gpt3/niket1/openai_models.py","file_url":"https://github.com/zharry29/causal_reasoning_of_entities_and_events/blob/HEAD/gpt3/niket1/openai_models.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"2b309e8385773dbd"}},{"code_sha256_prefix":"303e6c5008ec8231","entry":"gpt3_prompt","repo":"zharry29/causal_reasoning_of_entities_and_events","repo_kind":"official","path":"gpt3/niket1/openai_models.py","file_url":"https://github.com/zharry29/causal_reasoning_of_entities_and_events/blob/HEAD/gpt3/niket1/openai_models.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"303e6c5008ec8231"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}