Pith. sign in

REVIEW 6 cited by

What to Retrieve for Effective Retrieval-Augmented Code Generation? An Empirical Study and Beyond

Not yet reviewed by Pith; the record is open.

This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.

SPECIMEN: schema-true, not a live event

T0 review · schema-true

One-sentence machine reading of the paper's core claim.

pith:XXXXXXXX · record.json · timestamp

arxiv 2503.20589 v1 pith:RP5TWVBD submitted 2025-03-26 cs.SE

What to Retrieve for Effective Retrieval-Augmented Code Generation? An Empirical Study and Beyond

classification cs.SE
keywords codegenerationalliancecoderapisempiricalinformationperformanceresults
verification ladder T0 review T1 audit T2 compute T3 formal T4 reserved
0 comments
read the original abstract

Repository-level code generation remains challenging due to complex code dependencies and the limitations of large language models (LLMs) in processing long contexts. While retrieval-augmented generation (RAG) frameworks are widely adopted, the effectiveness of different retrieved information sources-contextual code, APIs, and similar snippets-has not been rigorously analyzed. Through an empirical study on two benchmarks, we demonstrate that in-context code and potential API information significantly enhance LLM performance, whereas retrieved similar code often introduces noise, degrading results by up to 15%. Based on the preliminary results, we propose AllianceCoder, a novel context-integrated method that employs chain-of-thought prompting to decompose user queries into implementation steps and retrieves APIs via semantic description matching. Through extensive experiments on CoderEval and RepoExec, AllianceCoder achieves state-of-the-art performance, improving Pass@1 by up to 20% over existing approaches.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.

Forward citations

Cited by 6 Pith papers

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score.

  1. ProjAgent: Procedural Similarity Retrieval for Repository-Level Code Generation

    cs.SE 2026-07 conditional novelty 6.0

    ProjAgent introduces procedural similarity—retrieving code with matching computational logic—via LLM hidden-state projections, improving repository-level code generation to 41.14% Pass@1 on REPOCOD.

  2. TICoder: A Repository-Level Code Generation Framework with Test-Driven Planning and Implementation-Aware Reuse

    cs.SE 2026-06 unverdicted novelty 6.0

    TICoder improves repository-level code generation by 11.52% over prior methods through test-driven planning and implementation-aware code reuse on standard benchmarks.

  3. VeriCache: Turning Lossy KV Cache into Lossless LLM Inference

    cs.AR 2026-05 unverdicted novelty 6.0

    VeriCache turns lossy KV cache compression into lossless LLM inference by drafting with compressed cache and verifying drafts with full cache, achieving up to 4x throughput with identical outputs.

  4. Bridging Generation and Training: A Systematic Review of Quality Issues in LLMs for Code

    cs.SE 2026-05 accept novelty 6.0

    A review of 114 studies creates taxonomies for code and data quality issues, formalizes 18 propagation mechanisms from training data defects to LLM-generated code defects, and synthesizes detection and mitigation techniques.

  5. Not All RAGs Are Created Equal: A Component-Wise Empirical Study for Software Engineering Tasks

    cs.SE 2026-05 unverdicted novelty 5.0

    Retriever-side choices, particularly the retrieval algorithm, exert more influence on RAG performance than generator selection across code generation, summarization, and repair tasks.

  6. R+R: Reassessing Java Security API Misuse in Current LLMs: A Replication on JCA and JSSE APIs with External Security Knowledge

    cs.CR 2026-05 unverdicted novelty 4.0

    Replication finds Java security API misuse persists in current LLMs but is reduced by external knowledge in a model-dependent manner.