Research map / Large language models / Retrieval and knowledge
RepoShapley: Shapley-Enhanced Context Filtering for Repository-Level Code Completion
Yu Huo, Kun Zeng, Siyu Zhang, Yuquan Lu, Cheng Yang, Yifu Guo, Xiaoying Tang
The Chinese University of Hong Kong · Sun Yat-sen University · University of California, San Diego · Hangzhou Dianzi University · The Guangdong Provincial Key Laboratory of Future Networks of Intelligence · Shenzhen Future Network of Intelligence Institute (FNii-Shenzhen)
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.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| add post-verification with frozen generator to labeling (ablation) | RepoShapley (SC-Base-1B) · RepoEval-Line | ES: 54.44 -> 82.78 | Improved |
| use Shapley coalition attribution instead of single-chunk probing labels (ablation) | RepoShapley (SC-Base-1B) · RepoEval-Line | ES: 77.12 -> 82.78 | Improved |
| use sigmoid surrogate instead of linear surrogate (ablation) | RepoShapley (SC-Base-1B) · RepoEval-Line | ES: 76.41 -> 82.78 | Improved |
| use confidence-weighted votes instead of uniform weights (ablation) | RepoShapley (SC-Base-1B) · RepoEval-Line | ES: 80.97 -> 82.78 | Improved |
| train with both selection and generation formats instead of selection only (ablation) | RepoShapley (SC-Base-1B) · RepoEval-Line | ES: 8.27 -> 82.78 | Improved |
| train with both formats instead of generation only (ablation) | RepoShapley (SC-Base-1B) · RepoEval-Line | ES: 79.11 -> 82.78 | Improved |
| add learned retrieval trigger (ablation) | RepoShapley (SC-Base-1B) · RepoEval-Line | ES / latency: accuracy 81.33 vs 82.78; latency 1462 -> 1053 ms | No clear effect |
| use RepoShapley instead of CodeFilter | SC-Base-7B · RepoEval-API | EM/ES: 53.62/79.29 -> 58.79/84.11 | Improved |
| use RepoShapley instead of CodeFilter | SC-Base-7B · RepoEval-Function | UT: 37.79 -> 41.84 | Improved |
| use RepoShapley instead of CodeFilter | Llama-13B · CCLongEval-Chunk | ES: 74.19 -> 78.59 | Improved |
| swap Jaccard for UniXcoder dense retriever | RepoShapley (SC-Base-7B) · RepoEval-Line | ES gain over Full-Retrieve: +8.80 (Jaccard) vs +7.69 (UniXcoder) | No clear effect |
| vary surrogate scale beta (0.1, 1.0, 5.0) (ablation) | RepoShapley (SC-Base-1B) · RepoEval-Line | ES: 78.5 (0.1), 82.78 (1.0), 80.4 (5.0) | Mixed |
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
- Repoformer: Selective Retrieval for Repository-Level Code Completion (ICML 2024 · similarity 0.92)
- CodeRAG: Finding Relevant and Necessary Knowledge for Retrieval-Augmented Repository-Level Code Completion (EMNLP 2025 · similarity 0.90)
- RepoCoder: Repository-Level Code Completion Through Iterative Retrieval and Generation (EMNLP 2023 · similarity 0.90)
- Hierarchical Context Pruning: Optimizing Real-World Code Completion with Repository-Level Pretrained Code LLMs (AAAI 2025 · similarity 0.87)
- RepoMirage: Probing Repository Context Reasoning in Code Agents with Perturbations (NeurIPS 2026 · similarity 0.86)
- RepoBench: Benchmarking Repository-Level Code Auto-Completion Systems (ICLR 2024 · similarity 0.86)
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.