scimeatlas

Research map / Large language models / Language, safety and interpretability

Grammar-Based Code Representation: Is It a Worthy Pursuit for LLMs?

ACL 2025Large language models › Language, safety and interpretabilityapproach: Pruning and circuits in LLMsopen problems in this approach13 citations (OpenAlex)

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

Measured effects reported in the paper

What was changedWhereMeasuredEffect
replace token-based with grammar-based representation in continued pre-training (ablation)DeepSeek-Coder-1.3B · HumanEvalPass@1: 43.9 -> 63.4Improved
replace token-based with grammar-based representation in continued pre-training (ablation)DeepSeek-Coder-1.3B · MBPPPass@1: 61.4 -> 68.3Improved
replace token-based with grammar-based representation in continued pre-training (ablation)Qwen2.5-7B · HumanEvalPass@1: 68.9 -> 76.8Improved
replace token-based with grammar-based representation in continued pre-training (ablation)Qwen2.5-7B · MBPPPass@1: 81.5 -> 85.2Improved
replace token-based with grammar-based representation in continued pre-training (ablation)Qwen2.5-1.5B · MBPPPass@1: 60.3 -> 64.8Improved
add continued pre-training on Python code (token-based) (ablation)Qwen2.5-1.5B · MBPPPass@1: 60.2 -> 60.3No clear effect
use grammar-based GrammarCoder-1.5B-Base instead of OpenCoder-1.5B-Base1.5B base models · MBPP+Pass@1: 58.7 -> 55.3Hurt
use grammar-based representation (token-level differences amplified) (ablation)edit distance of error/correct pairs · CodeNanoFixavg edit distance: 14.33 -> 27.43Improved
use grammar-based representation (ablation)DeepSeek-Coder-1.3B-Base classifier · CodeNanoFix semantic classificationF1: 67.06 -> 79.30Improved
use grammar-based representation (ablation)Qwen2.5-1.5B-Base classifier · CodeNanoFix semantic classificationF1: 68.38 -> 74.36Improved
use GrammarCoder-1.3B-Base instead of Condor-1.3Bsame DeepSeek-Coder-1.3B base · CodeNanoFix semantic classificationF1: 73.38 -> 79.30Improved

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?

All 4 open problems and what was already tried →

Closest papers by meaning

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.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy