Research map / Large language models / Agents, code and math
The Magic of IF: Investigating Causal Reasoning Abilities in Large Language Models of Code
Xiao Liu, Da Yin, Chen Zhang, Yansong Feng, Dongyan Zhao
Peking University · University of California, Los Angeles · State Key Laboratory of Media Convergence Production Technology and Systems · Beijing Institute for General Artificial Intelligence
Read the paperPlace an idea next to itCheck your own paper ↗
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| use Codex with code prompt instead of Davinci002 text prompt | Codex · ART abductive | BLEU-4: 4.9 -> 13.7 | Improved |
| use Codex with code prompt instead of Davinci002 text prompt | Codex · TimeTravel counterfactual | BLEU-4: 49.0 -> 66.8 | Improved |
| use code prompt instead of text prompt (ablation) | Codex · ART abductive | BLEU-4: 11.7 -> 13.7 | Improved |
| use code prompt instead of text prompt (ablation) | Codex · TimeTravel counterfactual | BLEU-4: 55.1 -> 66.8 | Improved |
| use code prompt instead of text prompt (ablation) | Davinci002 · ART abductive | BLEU-4: 4.9 -> 6.7 | Improved |
| use code prompt instead of text prompt (ablation) | Davinci002 · TimeTravel counterfactual | BLEU-4: 49.0 -> 40.4 | Hurt |
| keep conditional structure rather than sequential structure (ablation) | Codex code prompt · ART abductive | BLEU-4: 9.6 -> 13.7 | Improved |
| keep correct conditional structure rather than disrupted (ablation) | Codex code prompt · TimeTravel counterfactual | BLEU-4: 16.0 -> 66.8 | Improved |
| include task instruction (ablation) | Codex code prompt · ART abductive | BLEU-4: 12.1 -> 13.7 | Improved |
| use meaningful rather than anonymous function names (ablation) | Codex code prompt · ART abductive | BLEU-4: 15.1 vs 13.7 | No clear effect |
| change code format (class, print, return) or language (Java, C) (ablation) | Codex code prompt · ART abductive | BLEU-4: 13.0 to 16.5 | No clear effect |
| use Java instead of Python (ablation) | Codex code prompt · ART abductive | BLEU-4: 13.7 -> 16.5 | Improved |
Open problems in inductive and abstract reasoning evaluation
Do LLM reasoning methods stay cheap and general outside synthetic, English, text-only tests?
- Reasoning pipelines cost many more LLM calls, tokens and time than a single pass. · 19 papers state it
- Benchmarks are synthetic and may not carry over to real-world reasoning. · 12 papers state it
- Experiments stop at small models, and larger ones are untested. · 8 papers state it
Closest papers by meaning
- Unveiling Causal Reasoning in Large Language Models: Reality or Mirage? (NeurIPS 2024 · similarity 0.90)
- Eliciting Causal Abilities in Large Language Models for Reasoning Tasks (AAAI 2025 · similarity 0.90)
- Unveiling the Magic of Code Reasoning through Hypothesis Decomposition and Amendment (ICLR 2025 · similarity 0.90)
- COLD: Causal reasOning in cLosed Daily activities (NeurIPS 2024 · similarity 0.89)
- Causal Sufficiency and Necessity Improves Chain-of-Thought Reasoning (NeurIPS 2025 · similarity 0.89)
- RE-IMAGINE: Symbolic Benchmark Synthesis for Reasoning Evaluation (ICML 2025 · similarity 0.88)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.