{"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/arxiv-2601-15479","title":"Benchmarking LLMs for Pairwise Causal Discovery in Biomedical and Multi-Domain Contexts","arxiv_id":"2601.15479","date":"2026-01-21","proceeding":null,"authors":["Sydney Anuyah","Sneha Shajee-Mohan","Ankit-Singh Chauhan","Sunandan Chakraborty"],"abstract":"The safe deployment of large language models (LLMs) in high-stakes fields like biomedicine, requires them to be able to reason about cause and effect. We investigate this ability by testing 13 open-source LLMs on a fundamental task: pairwise causal discovery (PCD) from text. Our benchmark, using 12 diverse datasets, evaluates two core skills: 1) \\textbf{Causal Detection} (identifying if a text contains a causal link) and 2) \\textbf{Causal Extraction} (pulling out the exact cause and effect phrases). We tested various prompting methods, from simple instructions (zero-shot) to more complex strategies like Chain-of-Thought (CoT) and Few-shot In-Context Learning (FICL). The results show major deficiencies in current models. The best model for detection, DeepSeek-R1-Distill-Llama-70B, only achieved a mean score of 49.57\\% ($C_{detect}$), while the best for extraction, Qwen2.5-Coder-32B-Instruct, reached just 47.12\\% ($C_{extract}$). Models performed best on simple, explicit, single-sentence relations. However, performance plummeted for more difficult (and realistic) cases, such as implicit relationships, links spanning multiple sentences, and texts containing multiple causal pairs. We provide a unified evaluation framework, built on a dataset validated with high inter-annotator agreement ($κ\\ge 0.758$), and make all our data, code, and prompts publicly available to spur further research. \\href{https://github.com/sydneyanuyah/CausalDiscovery}{Code available here: https://github.com/sydneyanuyah/CausalDiscovery}","url_abs":"https://arxiv.org/abs/2601.15479","url_pdf":"https://arxiv.org/pdf/2601.15479","source":{"archive":null,"snapshot":"2025-07-28","note":"not in the Papers with Code archive (frozen at the snapshot)","row_kind":"graph","title_abstract_authors_date":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)"},"code_links":[],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2601.15479","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2601.15479"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+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":[{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/sydneyanuyah/CausalDiscovery","reach":null}],"summary":{"unverified":8},"by_repo_kind":{"found_in_text":{"samples":8,"ran":0,"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":8,"samples":[{"code_sha256_prefix":"5938e8daf778ae3e","entry":"compute_metrics","repo":"sydneyanuyah/CausalDiscovery","repo_kind":"found_in_text","path":"results/experiment2/evaluate.py","file_url":"https://github.com/sydneyanuyah/CausalDiscovery/blob/HEAD/results/experiment2/evaluate.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"5938e8daf778ae3e"}},{"code_sha256_prefix":"ffe8e10b155daccb","entry":"create_device_map","repo":"sydneyanuyah/CausalDiscovery","repo_kind":"found_in_text","path":"experiments/experiment2/ankexperiment2.py","file_url":"https://github.com/sydneyanuyah/CausalDiscovery/blob/HEAD/experiments/experiment2/ankexperiment2.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"ffe8e10b155daccb"}},{"code_sha256_prefix":"f567e36d476131bf","entry":"evaluate_per_tag","repo":"sydneyanuyah/CausalDiscovery","repo_kind":"found_in_text","path":"results/experiment2/evaluate.py","file_url":"https://github.com/sydneyanuyah/CausalDiscovery/blob/HEAD/results/experiment2/evaluate.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"f567e36d476131bf"}},{"code_sha256_prefix":"6b5a357f49d8130e","entry":"get_model_name_last","repo":"sydneyanuyah/CausalDiscovery","repo_kind":"found_in_text","path":"experiments/experiment2/ankexperiment2.py","file_url":"https://github.com/sydneyanuyah/CausalDiscovery/blob/HEAD/experiments/experiment2/ankexperiment2.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"6b5a357f49d8130e"}},{"code_sha256_prefix":"cc1b012a07eefcdc","entry":"normalize_list_field","repo":"sydneyanuyah/CausalDiscovery","repo_kind":"found_in_text","path":"results/experiment2/evaluate.py","file_url":"https://github.com/sydneyanuyah/CausalDiscovery/blob/HEAD/results/experiment2/evaluate.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"cc1b012a07eefcdc"}},{"code_sha256_prefix":"c214b53228fce2f7","entry":"quantize_4bit","repo":"sydneyanuyah/CausalDiscovery","repo_kind":"found_in_text","path":"experiments/experiment2/ankexperiment2.py","file_url":"https://github.com/sydneyanuyah/CausalDiscovery/blob/HEAD/experiments/experiment2/ankexperiment2.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"c214b53228fce2f7"}},{"code_sha256_prefix":"76c48345f235e3bb","entry":"quantize_4bit","repo":"sydneyanuyah/CausalDiscovery","repo_kind":"found_in_text","path":"experiments/experiment2/exp2.py","file_url":"https://github.com/sydneyanuyah/CausalDiscovery/blob/HEAD/experiments/experiment2/exp2.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"76c48345f235e3bb"}},{"code_sha256_prefix":"773dc943bfdf606d","entry":"run_llm_batch","repo":"sydneyanuyah/CausalDiscovery","repo_kind":"found_in_text","path":"experiments/experiment2/exp2.py","file_url":"https://github.com/sydneyanuyah/CausalDiscovery/blob/HEAD/experiments/experiment2/exp2.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"773dc943bfdf606d"}}]},"arxiv_metadata":{"licence":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)","fields":["title","abstract","authors","date"],"primary_category":"cs.CL","source":"arxiv_2026.jsonl"},"syntology_extracted_results":null}