Research map / Large language models / Language, safety and interpretability
Grammar-Based Code Representation: Is It a Worthy Pursuit for LLMs?
Read the paperPlace an idea next to itCheck your own paper ↗
11measured effects
9improved
1no clear effect
1hurt
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.
On benchmark leaderboards
- HumanEval leaderboard pass@1 76.8 · rank 107 of 261 papers
- MBPP leaderboard pass@1 85.2 · rank 20 of 165 papers
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| replace token-based with grammar-based representation in continued pre-training (ablation) | DeepSeek-Coder-1.3B · HumanEval | Pass@1: 43.9 -> 63.4 | Improved |
| replace token-based with grammar-based representation in continued pre-training (ablation) | DeepSeek-Coder-1.3B · MBPP | Pass@1: 61.4 -> 68.3 | Improved |
| replace token-based with grammar-based representation in continued pre-training (ablation) | Qwen2.5-7B · HumanEval | Pass@1: 68.9 -> 76.8 | Improved |
| replace token-based with grammar-based representation in continued pre-training (ablation) | Qwen2.5-7B · MBPP | Pass@1: 81.5 -> 85.2 | Improved |
| replace token-based with grammar-based representation in continued pre-training (ablation) | Qwen2.5-1.5B · MBPP | Pass@1: 60.3 -> 64.8 | Improved |
| add continued pre-training on Python code (token-based) (ablation) | Qwen2.5-1.5B · MBPP | Pass@1: 60.2 -> 60.3 | No clear effect |
| use grammar-based GrammarCoder-1.5B-Base instead of OpenCoder-1.5B-Base | 1.5B base models · MBPP+ | Pass@1: 58.7 -> 55.3 | Hurt |
| use grammar-based representation (token-level differences amplified) (ablation) | edit distance of error/correct pairs · CodeNanoFix | avg edit distance: 14.33 -> 27.43 | Improved |
| use grammar-based representation (ablation) | DeepSeek-Coder-1.3B-Base classifier · CodeNanoFix semantic classification | F1: 67.06 -> 79.30 | Improved |
| use grammar-based representation (ablation) | Qwen2.5-1.5B-Base classifier · CodeNanoFix semantic classification | F1: 68.38 -> 74.36 | Improved |
| use GrammarCoder-1.3B-Base instead of Condor-1.3B | same DeepSeek-Coder-1.3B base · CodeNanoFix semantic classification | F1: 73.38 -> 79.30 | Improved |
Open problems in pruning and circuits in LLMs
Can circuit and interpretability findings be shown to be causal, and to hold on larger and closed models?
- Larger models than the ones studied are left untested. · 17 papers state it
- Evaluated on English only, so other languages are untested. · 11 papers state it
- Findings are correlational, with no causal test of what the model uses. · 8 papers state it
Closest papers by meaning
- Evaluation of LLMs on Syntax-Aware Code Fill-in-the-Middle Tasks (ICML 2024 · similarity 0.88)
- CodeMMLU: A Multi-Task Benchmark for Assessing Code Understanding & Reasoning Capabilities of CodeLLMs (ICLR 2025 · similarity 0.87)
- Can LLM Replace Stack Overflow? A Study on Robustness and Reliability of Large Language Model Code Generation (AAAI 2024 · similarity 0.87)
- AlchemistCoder: Harmonizing and Eliciting Code Capability by Hindsight Tuning on Multi-source Data (NeurIPS 2024 · similarity 0.87)
- How efficient is LLM-generated code? A rigorous & high-standard benchmark (ICLR 2025 · similarity 0.87)
- Steering Large Language Models between Code Execution and Textual Reasoning (ICLR 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.