scimeatlas

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

MegaCode: A Repository-Level Dataset for Long-Context Code Reasoning

Wenyang Luo, Shuang Sun, Hu Yiwen, Fei Bai, Yanzipeng Gao, Shuo Wang, Hongyu Lu, Wayne Xin Zhao, Ji-Rong Wen

EMNLP 2026Large language models › Language, safety and interpretabilityapproach: LLM unlearning and benchmarksopen problems in this approach0 citations (OpenAlex)

Renmin University of China · Tsinghua University · Tencent

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

12measured effects
8improved
2no clear effect
2hurt

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
preserve repository structure instead of flattening the same data (ablation)MegaCode, Llama-3.2-1B · code averageaverage pass@1: 20.25 -> 20.77Improved
preserve repository structure instead of flattening the same data (ablation)MegaCode, Llama-3.2-1B · RULER averageaccuracy: 73.31 -> 74.46Improved
preserve repository structure instead of flattening (32k context) (ablation)MegaCode, Llama-3.2-1B · RULER 32kaccuracy: 60.29 -> 63.85Improved
preserve repository structure instead of flattening (4k context) (ablation)MegaCode, Llama-3.2-1B · RULER 4kaccuracy: 84.40 -> 83.73Hurt
continued pretraining on MegaCode with LSP+SummaryLlama-3.2-1B · code benchmarks averageaverage pass@1: 19.33 -> 20.77Improved
add LSP-derived signals (ablation)MegaCode continued pretraining · code benchmarks averageaverage pass@1: 19.33 -> 20.13Improved
add natural-language repository summaries (ablation)MegaCode continued pretraining · code benchmarks averageaverage pass@1: 19.33 -> 20.35Improved
combine LSP and summaries versus either alone (ablation)MegaCode continued pretraining · code benchmarks averageaverage pass@1: 20.13/20.35 -> 20.77No clear effect
append LSP signals and summaries at end of sequence (ablation)MegaCode continued pretraining · code benchmarks averageaverage pass@1: 20.77 -> 20.43No clear effect
train on MegaCode (LSP+Summary) instead of SwallowCodeLlama-3.2-1B, 10B tokens · code benchmarks averageaverage pass@1: 19.57 -> 20.77Improved
multilingual MegaCode versus Python-centric SwallowCode on Python testsLlama-3.2-1B, 10B tokens · HumanEval+pass@1: 19.50 -> 17.70Hurt
train on MegaCode (structured) instead of SwallowCodeLlama-3.2-1B, 10B tokens · RULER averageaccuracy: 69.00 -> 74.46Improved

Open problems this paper states

Open problems in LLM unlearning and benchmarks

Do LLM unlearning and privacy results still hold on larger models, other languages and real use?

All 5 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