scimeatlas

Research map / Architectures and efficiency / Attention and transformers

LEANCODE: Understanding Models Better for Code Simplification of Pre-trained Large Language Models

Yan Wang, Ling Ding, Tien N. Nguyen, Shaohua Wang, Yanan Zheng

ACL 2025Architectures and efficiency › Attention and transformersapproach: Language model pretraining and inductionopen problems in this approach2 citations (OpenAlex)

Central University of Finance and Economics · University of Texas at Dallas · Yale University

Read the paperPlace an idea next to itCheck your own paper ↗

15measured effects
9improved
6hurt

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 changedWhereMeasuredEffect
use context-aware CLS-attention token scores (LeanCode) instead of DietCode self-attention scorescode simplification, 50% removal · Code search, CodeBERTMRR: 0.429 -> 0.688Improved
use LeanCode instead of DietCodecode simplification, 50% removal · Code search, CodeT5MRR: 0.561 -> 0.706Improved
use LeanCode instead of SlimCodecode simplification, 50% removal · Code search, CodeBERTMRR: 0.594 -> 0.688Improved
use encoder-decoder attention scores (LeanCode) instead of DietCodecode simplification, 50% removal · Code summarization, CodeT5BLEU-4: 14.27 -> 18.46Improved
use LeanCode instead of SlimCodecode simplification, 50% removal · Code summarization, CodeT5BLEU-4: 14.53 -> 18.46Improved
use LeanCode instead of DietCodecode simplification, 50% removal · Code summarization, CodeBERTBLEU-4: 14.23 -> 16.24Improved
remove 10% of tokens with LeanCodeCodeBERT code search · Code searchMRR: 0.726 -> 0.728Improved
remove 50% of tokens with LeanCodeCodeT5 code search/summarization · Code search/summarizationMRR/BLEU-4: MRR 0.747 -> 0.706; BLEU-4 20.55 -> 18.46Hurt
increase removal ratio from 30% to above 30% for SlimCodeSlimCode · Code searchMRR: CodeBERT 0.70 -> 0.594 at 50%Hurt
replace LeanCode's removal algorithm with DietCode's (keeping LeanCode weights) (ablation)LeanCode · Code search, CodeBERT, 50%MRR: 0.688 -> 0.682Hurt
replace LeanCode's removal algorithm with DietCode's (keeping LeanCode weights) (ablation)LeanCode · Code summarization, CodeT5, 50%BLEU-4: 18.46 -> 17.63Hurt
apply LeanCode-simplified code to GPT-4oGPT-4o prompts · Code search, 30% removalPrecision: 0.82 -> 0.828Improved

Open problems in language model pretraining and induction

Do positional-encoding, tokenization and pretraining findings hold beyond small models and a few languages?

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