paper-with-me

Papers

Beyond "What to Retrieve": Uncertainty in Retrieval-Augmented Code Generation

2026-07-27 · Chandan Kumar Sah, Li Zhang, Xiaoli Lian arxiv

Repository-level code generation relies on heterogeneous evidence whose relevance, compatibility, and completeness are inherently uncertain. Similar-code examples, repository context, and project-specific APIs may provide complementary information, but can also introduce noisy, redundant, or conflicting signals. Existing retrieval-augmented approaches primarily optimize retrieval relevance without explicitly modeling how uncertainty in retrieved evidence affects downstream generation. We introduce OpenCoder, an uncertainty-aware framework that estimates source-specific uncertainty, uses it to filter and rank heterogeneous evidence, and guides generation, verification, and repair. A factorial analysis over API knowledge, repository context, and similar-code evidence reveals no universal additive source ranking; instead, significant cross-source interactions depend on the accompanying evidence and LLM backend. On an expanded 32-task RepoExec-inline evaluation, OpenCoder improves GPT selected-output correctness over Baseline RAG from 56.25\% to 78.13\%. However, it matches a verification-and-repair control, and the corresponding Gemini improvement is not statistically supported, indicating backend-dependent benefits. Target-aware API refinement also substantially improves API-set retrieval. These findings support treating uncertainty as an actionable control signal for repository-level retrieval, verification, and repair.

📄 PDF Abstract BibTeX arXiv:2607.24884

Code (0)

등록된 구현이 없습니다.

Tasks

Code Generation

Similar Papers 제목 키워드 기반

To Retrieve or Not to Retrieve? Uncertainty Detection for Dynamic Retrieval Augmented Generation

2025-01-16 · Kaustubh D. Dhole

Retrieval-Augmented Generation equips large language models with the capability to retrieve external knowledge, thereby mitigating hallucinations by incorporating information beyond the model's intrinsic abilities. Howev…

Long Form Question AnsweringQuestion AnsweringRetrievalRetrieval-augmented Generation

DRAGIN: Dynamic Retrieval Augmented Generation based on the Information Needs of Large Language Models

2024-03-15 · Weihang Su, Yichen Tang, Qingyao Ai, Zhijing Wu 외

Dynamic retrieval augmented generation (RAG) paradigm actively decides when and what to retrieve during the text generation process of Large Language Models (LLMs). There are two key elements of this paradigm: identifyin…

RAGRetrievalRetrieval-augmented GenerationSentence+1

Beyond Self-Knowledge: Propagating Uncertainty Across Reasoning and Retrieval in LLMs

2026-07-28 · Chandan Kumar Sah, Xiaoli Lian, Li Zhang arxiv

Retrieval-augmented generation improves knowledge-intensive question answering, but indiscriminate retrieval can introduce irrelevant evidence and unnecessary computation. We investigate whether verbalized confidence fro…

Question Answering

Predictive Prefetching for Retrieval-Augmented Generation

2026-05-18 · Wuyang Zhang, Shichao Pei arxiv

Retrieval-Augmented Generation (RAG) improves factual grounding in large language models but suffers from substantial latency due to synchronous retrieval. While recent work explores asynchronous retrieval, existing appr…

Decide Then Retrieve: A Training-Free Framework with Uncertainty-Guided Triggering and Dual-Path Retrieval

2026-01-07 · Wang Chen, Guanqiang Qi, Weikang Li, Yang Li 외 arxiv

Retrieval-augmented generation (RAG) enhances large language models (LLMs) by incorporating external knowledge, but existing approaches indiscriminately trigger retrieval and rely on single-path evidence construction, of…