Research map / Large language models / Retrieval and knowledge
Late Code Chunking: A Code Chunking Strategy for Repository-Level Code Completion
Seungmin Oh, Eunseok Lee
Sungkyunkwan University
Read the paperPlace an idea next to itCheck your own paper ↗
12measured effects
8improved
1no clear effect
3hurt
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 changed | Where | Measured | Effect |
|---|---|---|---|
| use LC2 instead of Fixed-Token chunking | DeepSeekCoder-1.3B + UniXcoder · CrossCodeEval Python | EM: 22.01 -> 26.35 | Improved |
| use LC2 instead of Fixed-Token chunking | DeepSeekCoder-1.3B + UniXcoder · CrossCodeEval C# | EM: 19.98 -> 21.72 | Improved |
| use LC2 instead of Fixed-Token chunking | DeepSeekCoder-1.3B + UniXcoder · RepoEval Line | EM: 44.88 -> 45.12 | Improved |
| use function-level chunks instead of fixed-token chunks | chunking baseline · CrossCodeEval C# | EM: 19.98 -> 13.24 | Hurt |
| use 64-token query with 512-token chunk instead of 16-token query (ablation) | UniXcoder retrieval · CrossCodeEval Python | EM: 21.68 -> 23.64 | Improved |
| increase chunk size beyond 1,024 tokens (ablation) | CodeRankEmbed retrieval · CrossCodeEval Python | EM: 24.28 -> 21.28 | Hurt |
| use asymmetric query-chunk sizing (Code Retrieval Context only) (ablation) | LC2 · CrossCodeEval Python | EM | Improved |
| add context expansion (ablation) | LC2 with UniXcoder · CrossCodeEval Python | EM | Improved |
| add context augmentation with function signatures and docstrings (ablation) | LC2 · CrossCodeEval Python | EM | Improved |
| add context augmentation with function signatures and docstrings (ablation) | LC2 · CrossCodeEval C# | EM | Hurt |
| use CodeRankLLM 7B instead of UniXcoder as retriever | LC2 · CrossCodeEval Python | EM: 26.35 -> 29.47 | Improved |
| use BM25 instead of dense UniXcoder retriever | LC2 · CrossCodeEval Python | EM: 26.35 -> 26.20 | No clear effect |
Open problems in RAG robustness and evaluation
When does retrieval help a language model, and when does it mislead it?
- Only one answer-bearing document is handled. · 6 papers state it
- String-match metrics misjudge long or rephrased answers. · 6 papers state it
- Verbalized graph triples distort or drop facts. · 5 papers state it
Closest papers by meaning
- CodeRAG: Finding Relevant and Necessary Knowledge for Retrieval-Augmented Repository-Level Code Completion (EMNLP 2025 · similarity 0.93)
- cAST: Enhancing Code Retrieval-Augmented Generation with Structural Chunking via Abstract Syntax Tree (EMNLP 2025 · similarity 0.92)
- Repoformer: Selective Retrieval for Repository-Level Code Completion (ICML 2024 · similarity 0.91)
- AIRCoder: Adaptive Integration of Multi-dimensional Retrieval for Repository-level Code Completion (ACL 2026 · similarity 0.90)
- Fast and Focused: Interactive Repository-Level Fill-in-the-Middle Code Completion with Hybrid Structural Retrieval (EMNLP 2026 · similarity 0.90)
- Hierarchical Context Pruning: Optimizing Real-World Code Completion with Repository-Level Pretrained Code LLMs (AAAI 2025 · similarity 0.89)
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.