Research map / Large language models / Retrieval and knowledge
cAST: Enhancing Code Retrieval-Augmented Generation with Structural Chunking via Abstract Syntax Tree
Yilin Zhang, Xinran Zhao, Zora Zhiruo Wang, Chenyang Yang, Jiayi Wei, Tongshuang Wu
Carnegie Mellon University
Read the paperPlace an idea next to itCheck your own paper ↗
10measured effects
7improved
1no 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.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| AST-based chunking (cAST) instead of fixed-size chunking | RAG pipeline with StarCoder2-7B · RepoEval (CodeSage) | Pass@1: 67.6 -> 73.2 | Improved |
| cAST instead of fixed-size chunking | RAG with BGE retriever · RepoEval | Recall@5: 67.4 -> 69.8 | Improved |
| cAST instead of fixed-size chunking | RAG with BGE retriever, claude-3.7-sonnet · SWE-bench Lite | Pass@1: 13.7 -> 16.3 | Improved |
| cAST instead of fixed-size chunking | RAG with CodeSage retriever, StarCoder2-7B · CrossCodeEval | EM: 24.8 -> 29.1 | Improved |
| cAST instead of fixed-size chunking | BGE retriever · RepoEval | nDCG@5: 71.3 -> 71.1 | No clear effect |
| merge sibling AST nodes after splitting (ablation) | cAST with BGE · RepoEval | nDCG@5: 53.5 -> 71.1 | Improved |
| merge sibling AST nodes after splitting (ablation) | cAST with GIST + StarCoder2 · RepoEval | Pass@1: 45.0 -> 57.9 | Improved |
| double context length to 8000 (ablation) | cAST with CodeSage + StarCoder2 · RepoEval | Pass@1: 73.2 -> 69.2 | Hurt |
| reduce context length to 3500 (ablation) | cAST with BGE + StarCoder2 · RepoEval | Pass@1: 51.7 -> 46.9 | Hurt |
| set max chunk size 2000 instead of 1000 (ablation) | cAST with BGE + StarCoder2 · RepoEval | Pass@1: 43.4 -> 51.7 | Improved |
Closest papers by meaning
- Repoformer: Selective Retrieval for Repository-Level Code Completion (ICML 2024 · similarity 0.91)
- SRACG: A Code Generation Framework with Selective Retrieval Augmentation (AAAI 2026 · similarity 0.90)
- PinNet: Pinpoint Instructive Information for Retrieval Augmented Code-to-Text Generation (ICML 2024 · similarity 0.88)
- AST-T5: Structure-Aware Pretraining for Code Generation and Understanding (ICML 2024 · similarity 0.88)
- RPM-MCTS: Knowledge-Retrieval as Process Reward Model with Monte Carlo Tree Search for Code Generation (AAAI 2026 · similarity 0.87)
- Let's Revise Step-by-Step: A Unified Local Search Framework for Code Generation with LLMs (NeurIPS 2025 · 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.
