Lune

ACL2026Top-tier venue

AIRCoder: Adaptive Integration of Multi-dimensional Retrieval for Repository-level Code Completion

Chuanqi Shi, Miao Gao, Zhiqiang Gao

2026Year

Abstract

Repository-level code completion relies on retrieval strategies to select relevant context from large codebases. Most existing methods employ single-dimensional retrieval based on textual similarity or dependency existence, leading to inconsistent performance across completion scenarios. Even task-adaptive and hybrid methods incur high computational costs while failing to explicitly consider structural hierarchy for retrieving functionally similar code. We introduce AIRCoder , a multi-dimensional retrieval framework that combines eight complementary metrics across three dimensions: textual similarity, dependency existence, and structural hierarchy. By proposing a structure-preserving chunking strategy and lightweight fusion module, AIRCoder learns context-dependent weights to adaptively integrate retrieval metrics for each query. Experiments on CrossCodeEval and RepoEval demonstrate that AIRCoder achieves an average improvement of 4.63% in exact match over the best baseline, with 10.2 × higher efficiency and strong cross-language generalization across Python, Java, C#, and TypeScript. 1

Ask about this paper

Your agent reads all of it.

Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.

Questions to start from

Your agent calls

Luneget_paper_fulltext

Ask in Lune

Free to start. No credit card required.

lune papers fulltext 25abb283-4b8b-4bcb-aab3-3abe5b425842

Builds on11

Related papers

Dusk over the sea between two cliffs drawn in fine vertical lines