AI Paper Atlas

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

EMNLP 2025Large language models › Retrieval and knowledgeapproach: RAG robustness and evaluationopen problems in this approach44 citations (OpenAlex)

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 changedWhereMeasuredEffect
AST-based chunking (cAST) instead of fixed-size chunkingRAG pipeline with StarCoder2-7B · RepoEval (CodeSage)Pass@1: 67.6 -> 73.2Improved
cAST instead of fixed-size chunkingRAG with BGE retriever · RepoEvalRecall@5: 67.4 -> 69.8Improved
cAST instead of fixed-size chunkingRAG with BGE retriever, claude-3.7-sonnet · SWE-bench LitePass@1: 13.7 -> 16.3Improved
cAST instead of fixed-size chunkingRAG with CodeSage retriever, StarCoder2-7B · CrossCodeEvalEM: 24.8 -> 29.1Improved
cAST instead of fixed-size chunkingBGE retriever · RepoEvalnDCG@5: 71.3 -> 71.1No clear effect
merge sibling AST nodes after splitting (ablation)cAST with BGE · RepoEvalnDCG@5: 53.5 -> 71.1Improved
merge sibling AST nodes after splitting (ablation)cAST with GIST + StarCoder2 · RepoEvalPass@1: 45.0 -> 57.9Improved
double context length to 8000 (ablation)cAST with CodeSage + StarCoder2 · RepoEvalPass@1: 73.2 -> 69.2Hurt
reduce context length to 3500 (ablation)cAST with BGE + StarCoder2 · RepoEvalPass@1: 51.7 -> 46.9Hurt
set max chunk size 2000 instead of 1000 (ablation)cAST with BGE + StarCoder2 · RepoEvalPass@1: 43.4 -> 51.7Improved

Closest papers by meaning

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.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy