paper-with-me

Papers

AlignCoder: Aligning Retrieval with Target Intent for Repository-Level Code Completion

2026-01-27 · Tianyue Jiang, Yanli Wang, Yanlin Wang, Daya Guo, Ensheng Shi, Yuchi Ma, Jiachi Chen, Zibin Zheng arxiv

Repository-level code completion remains a challenging task for existing code large language models (code LLMs) due to their limited understanding of repository-specific context and domain knowledge. While retrieval-augmented generation (RAG) approaches have shown promise by retrieving relevant code snippets as cross-file context, they suffer from two fundamental problems: misalignment between the query and the target code in the retrieval process, and the inability of existing retrieval methods to effectively utilize the inference information. To address these challenges, we propose AlignCoder, a repository-level code completion framework that introduces a query enhancement mechanism and a reinforcement learning based retriever training method. Our approach generates multiple candidate completions to construct an enhanced query that bridges the semantic gap between the initial query and the target code. Additionally, we employ reinforcement learning to train an AlignRetriever that learns to leverage inference information in the enhanced query for more accurate retrieval. We evaluate AlignCoder on two widely-used benchmarks (CrossCodeEval and RepoEval) across five backbone code LLMs, demonstrating an 18.1% improvement in EM score compared to baselines on the CrossCodeEval benchmark. The results show that our framework achieves superior performance and exhibits high generalizability across various code LLMs and programming languages.

📄 PDF Abstract BibTeX arXiv:2601.19697

Code (0)

등록된 구현이 없습니다.

Tasks

Reinforcement LearningCode Completion

Similar Papers 제목 키워드 기반

Beyond Function-Level Search: Repository-Aware Dual-Encoder Code Retrieval with Adversarial Verification

2025-10-16 · Aofan Liu, Shiyuan Song, Haoxuan Li, Cehao Yang 외 arxiv

The escalating complexity of modern codebases has intensified the need for retrieval systems capable of interpreting cross-component change intents, a capability fundamentally absent in conventional function-level search…

Natural Language Queries

ProjAgent: Procedural Similarity Retrieval for Repository-Level Code Generation

2026-07-09 · QiHong Chen, Aaron Imani, Iftekhar Ahmed arxiv

Repository-level code generation requires implementing target functions while accounting for complex cross-file dependencies and project-specific conventions. Existing retrieval methods predominantly rely on lexical, str…

Semantic SimilaritySemantic RetrievalCode Generation

Reason-before-Retrieve: One-Stage Reflective Chain-of-Thoughts for Training-Free Zero-Shot Composed Image Retrieval

2024-12-15 · CVPR 2025 1 · Yuanmin Tang, Xiaoting Qin, Jue Zhang, Jing Yu 외

Composed Image Retrieval (CIR) aims to retrieve target images that closely resemble a reference image while integrating user-specified textual modifications, thereby capturing user intent more precisely. Existing trainin…

Image RetrievalRetrievalZero-Shot Composed Image Retrieval (ZS-CIR)

Diversity driven Query Rewriting in Search Advertising

2021-06-07 · Akash Kumar Mohankumar, Nikit Begwani, Amit Singh

Retrieving keywords (bidwords) with the same intent as query, referred to as close variant keywords, is of prime importance for effective targeted search advertising. For head and torso search queries, sponsored search e…

DiversityRetrieval

Mubeen AI: A Specialized Arabic Language Model for Heritage Preservation and User Intent Understanding

2025-10-27 · Mohammed Aljafari, Ismail Alturki, Ahmed Mori, Yehya Kadumi arxiv

Mubeen is a proprietary Arabic language model developed by MASARAT SA, optimized for deep understanding of Arabic linguistics, Islamic studies, and cultural heritage. Trained on an extensive collection of authentic Arabi…

General KnowledgeIntent Detection