Research map / Large language models / Retrieval and knowledge
CODEPROMPTZIP: Code-specific Prompt Compression for Retrieval-Augmented Generation in Coding Tasks with LMs
Pengfei He, Shaowei Wang, Tse-Hsun (Peter) Chen
University of Manitoba · Concordia University
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 |
|---|---|---|---|
| replace best baseline compressor with CodePromptZip | GPT-3.5-turbo RAG · Assertion Generation | exact match (%): 34.1 -> 42.1 | Improved |
| replace best baseline compressor with CodePromptZip | GPT-3.5-turbo RAG · Bugs2Fix | CodeBLEU (%): 48.1 -> 61.9 | Improved |
| replace best baseline compressor with CodePromptZip | GPT-3.5-turbo RAG · Code Suggestion | CodeBLEU (%): 21.8 -> 23.7 | Improved |
| add copy mechanism to the CodeT5 compressor (ablation) | CodePromptZip · Assertion Generation | exact match (%): 40.9 -> 42.1 | Improved |
| add copy mechanism to the CodeT5 compressor (ablation) | CodePromptZip · Bugs2Fix | CodeBLEU (%): 56.7 -> 61.9 | Improved |
| add copy mechanism to the CodeT5 compressor (ablation) | CodePromptZip · Code Suggestion | CodeBLEU (%): 20.5 -> 23.7 | Improved |
| add retrieved code examples (no compression) | GPT-3.5-turbo · Assertion Generation | exact match (%): 23.9 -> 50.5 | Improved |
| use the compressor instead of type-priority removal with JavaParser (Oracle) | CodePromptZip · Assertion Generation | exact match (%): 46.2 -> 42.1 | Hurt |
| use one lightly compressed example instead of three heavily compressed examples at a 500-token budget (ablation) | CodePromptZip · Assertion Generation | exact match | Improved |
| omit 1% or 3% of tokens at end of examples (unparsable code) (ablation) | CodePromptZip · Assertion Generation (tau 0.3) | exact match (%): 42.1 -> 42.0 (1%); 42.1 -> 41.7 (3%) | No clear effect |
| add the copy mechanism for matching specified compression ratio (ablation) | CodePromptZip · compression ratio control | achieved ratio | Improved |
Earlier methods this paper compares with
Named baselines from earlier accepted papers in this paper's results tables: better than 1 of 1 on most shared results.
- LLMLingua-2 — LLMLingua-2: Data Distillation for Efficient and Faithful Task-Agnostic Prompt Compression (ACL 2024) · better on 3 of 3 shared results
Matched by method name in results tables read by AI. Authors' own tables tend to favour the newer method, and a comparison can be missed when a method is renamed.
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.88)
- Fundamental Limits of Prompt Compression: A Rate-Distortion Framework for Black-Box Language Models (NeurIPS 2024 · similarity 0.88)
- Soft Prompt Recovers Compressed LLMs, Transferably (ICML 2024 · similarity 0.88)
- Leveraging Attention to Effectively Compress Prompts for Long-Context LLMs (AAAI 2025 · similarity 0.88)
- Towards A Generalist Code Embedding Model Based On Massive Data Synthesis (NeurIPS 2025 · similarity 0.87)
- CodeMMR: Bridging Natural Language, Code, and Image for Unified Retrieval (CVPR 2026 · similarity 0.87)
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.