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
Renmin University of China · Tsinghua University · Tencent
Read the paperPlace an idea next to itCheck your own paper ↗
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 22 · rank 235 of 261 papers
- MBPP leaderboard pass@1 32.6 · rank 148 of 165 papers
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| preserve repository structure instead of flattening the same data (ablation) | MegaCode, Llama-3.2-1B · code average | average pass@1: 20.25 -> 20.77 | Improved |
| preserve repository structure instead of flattening the same data (ablation) | MegaCode, Llama-3.2-1B · RULER average | accuracy: 73.31 -> 74.46 | Improved |
| preserve repository structure instead of flattening (32k context) (ablation) | MegaCode, Llama-3.2-1B · RULER 32k | accuracy: 60.29 -> 63.85 | Improved |
| preserve repository structure instead of flattening (4k context) (ablation) | MegaCode, Llama-3.2-1B · RULER 4k | accuracy: 84.40 -> 83.73 | Hurt |
| continued pretraining on MegaCode with LSP+Summary | Llama-3.2-1B · code benchmarks average | average pass@1: 19.33 -> 20.77 | Improved |
| add LSP-derived signals (ablation) | MegaCode continued pretraining · code benchmarks average | average pass@1: 19.33 -> 20.13 | Improved |
| add natural-language repository summaries (ablation) | MegaCode continued pretraining · code benchmarks average | average pass@1: 19.33 -> 20.35 | Improved |
| combine LSP and summaries versus either alone (ablation) | MegaCode continued pretraining · code benchmarks average | average pass@1: 20.13/20.35 -> 20.77 | No clear effect |
| append LSP signals and summaries at end of sequence (ablation) | MegaCode continued pretraining · code benchmarks average | average pass@1: 20.77 -> 20.43 | No clear effect |
| train on MegaCode (LSP+Summary) instead of SwallowCode | Llama-3.2-1B, 10B tokens · code benchmarks average | average pass@1: 19.57 -> 20.77 | Improved |
| multilingual MegaCode versus Python-centric SwallowCode on Python tests | Llama-3.2-1B, 10B tokens · HumanEval+ | pass@1: 19.50 -> 17.70 | Hurt |
| train on MegaCode (structured) instead of SwallowCode | Llama-3.2-1B, 10B tokens · RULER average | accuracy: 69.00 -> 74.46 | Improved |
Open problems this paper states
- “Experiments use continued pretraining of a 1B-parameter model, so gains may not transfer to larger architectures.” → Results stop at small or mid-size models and larger ones are untested. (an open problem in LLM unlearning and benchmarks)
Open problems in LLM unlearning and benchmarks
Do LLM unlearning and privacy results still hold on larger models, other languages and real use?
- Results stop at small or mid-size models and larger ones are untested. · 23 papers state it
- The method adds compute, latency or memory over a simple baseline. · 17 papers state it
- Most work is tested in English or a few high-resource languages. · 14 papers state it
Closest papers by meaning
- DyCodeEval: Dynamic Benchmarking of Reasoning Capabilities in Code Large Language Models Under Data Contamination (ICML 2025 · similarity 0.89)
- CodeMMLU: A Multi-Task Benchmark for Assessing Code Understanding & Reasoning Capabilities of CodeLLMs (ICLR 2025 · similarity 0.89)
- Repoformer: Selective Retrieval for Repository-Level Code Completion (ICML 2024 · similarity 0.88)
- Code Graph Model (CGM): A Graph-Integrated Large Language Model for Repository-Level Software Engineering Tasks (NeurIPS 2025 · similarity 0.88)
- RepoMirage: Probing Repository Context Reasoning in Code Agents with Perturbations (NeurIPS 2026 · similarity 0.88)
- RepoGraph: Enhancing AI Software Engineering with Repository-level Code Graph (ICLR 2025 · similarity 0.88)
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.