Research map / Large language models / Language, safety and interpretability
Language Models of Code are Few-Shot Commonsense Learners
Aman Madaan, Shuyan Zhou, Uri Alon, Yiming Yang, Graham Neubig
Carnegie Mellon University
Read the paperPlace an idea next to itCheck your own paper ↗
15measured effects
10improved
1no clear effect
4hurt
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 a code prompt (Python class) instead of a text prompt (ablation) | Codex · ExplaGraphs eval | SeCA / StCA: StCA 38.02 -> 45.20; SeCA 18.23 -> 23.74 | Improved |
| use a code prompt instead of a text prompt (ablation) | Codex · ProScript edge prediction | F1: 44.47 -> 56.52 | Improved |
| use a code prompt instead of a text prompt (ablation) | davinci · ExplaGraphs eval | SeCA: 7.14 -> 15.37 (StCA 33.16 -> 33.00) | Improved |
| use a code prompt instead of a text prompt (ablation) | davinci · ProScript edge prediction | F1: 43.06 -> 49.3 | Improved |
| use a code LM (Codex) instead of NL LM (davinci) with code prompt (ablation) | Python prompt · ProScript edge prediction | F1: 49.3 -> 56.52 | Improved |
| use CoCoGen (15 examples) instead of fine-tuned T5 on full data | script generation · ProScript script generation | BLEU: 23.80 -> 25.24 | Improved |
| use CoCoGen (15 examples) instead of T5 fine-tuned on 4k | edge prediction · ProScript edge prediction | F1: 75.72 (T5 4k) vs 56.24 | Hurt |
| use CoCoGen (30 examples) instead of T5 fine-tuned on 1500 | T5 · ExplaGraphs eval | StCA: 38.19 -> 45.20 | Improved |
| use CoCoGen (30 examples) instead of T5 fine-tuned on 2500 | T5 · ExplaGraphs eval | SeCA: 29.65 (T5 2500) vs 23.74 | Hurt |
| use CoCoGen instead of davinci | davinci · ProPara 3-shot | F1: 58.0 -> 63.0 | Improved |
| add knowledge-similarity tuning retriever for dynamic prompts (ablation) | CoCoGen · ProScript edge prediction | F1: 56.52 -> 65.71 | Improved |
| add knowledge-similarity tuning retriever for dynamic prompts (ablation) | CoCoGen · ExplaGraphs eval | StCA: 45.2 -> 37.47 | Hurt |
Closest papers by meaning
- Guided Knowledge Generation with Language Models for Commonsense Reasoning (EMNLP 2024 · similarity 0.89)
- Harnessing Black-Box Control to Boost Commonsense in LM's Generation (EMNLP 2023 · similarity 0.89)
- Language Generation with Multi-Hop Reasoning on Commonsense Knowledge Graph (EMNLP 2020 · similarity 0.89)
- A Systematic Investigation of Commonsense Knowledge in Large Language Models (EMNLP 2022 · similarity 0.89)
- CodePlan: Unlocking Reasoning Potential in Large Language Models by Scaling Code-form Planning (ICLR 2025 · similarity 0.89)
- CodeIO: Condensing Reasoning Patterns via Code Input-Output Prediction (ICML 2025 · similarity 0.87)
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.
