Pith. sign in

REVIEW 2 cited by

FT2Ra: A Fine-Tuning-Inspired Approach to Retrieval-Augmented Code Completion

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 2404.01554 v1 pith:3VRRYJRO submitted 2024-04-02 cs.SE

classification cs.SE
keywords fine-tuningft2racompletionmodelschallengecodepredictionsretrieval-based
verification ladder T0 review T1 audit T2 compute T3 formal
0 comments
read the original abstract

The rise of code pre-trained models has significantly enhanced various coding tasks, such as code completion, and tools like GitHub Copilot. However, the substantial size of these models, especially large models, poses a significant challenge when it comes to fine-tuning them for specific downstream tasks. As an alternative approach, retrieval-based methods have emerged as a promising solution, augmenting model predictions without the need for fine-tuning. Despite their potential, a significant challenge is that the designs of these methods often rely on heuristics, leaving critical questions about what information should be stored or retrieved and how to interpolate such information for augmenting predictions. To tackle this challenge, we first perform a theoretical analysis of the fine-tuning process, highlighting the importance of delta logits as a catalyst for improving model predictions. Building on this insight, we develop a novel retrieval-based method, FT2Ra, which aims to mimic genuine fine-tuning. While FT2Ra adopts a retrieval-based mechanism, it uniquely adopts a paradigm with a learning rate and multi-epoch retrievals, which is similar to fine-tuning.In token-level completion, which represents a relatively easier task, FT2Ra achieves a 4.29% improvement in accuracy compared to the best baseline method on UniXcoder. In the more challenging line-level completion task, we observe a substantial more than twice increase in Exact Match (EM) performance, indicating the significant advantages of our theoretical analysis. Notably, even when operating without actual fine-tuning, FT2Ra exhibits competitive performance compared to the models with real fine-tuning.

Discussion (0). Continue with ORCID to comment.

Forward citations

Cited by 2 Pith papers

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

  1. Improving FIM Code Completions via Context & Curriculum Based Learning

    cs.IR 2024-12 conditional novelty 6.0 of 10

    Fine-tuning FIM code models on curriculum examples with retrieved context improves completion quality and live acceptance, with the largest gains for small models.

  2. REACCEPT: Automated Co-evolution of Production and Test Code Based on Dynamic Validation and Large Language Models

    cs.SE 2024-11 reject novelty 6.0 of 10

    REACCEPT uses GPT-4 with retrieval and compile/test/coverage feedback to identify and rewrite outdated Java test code, reporting higher success than prior methods.

Pith tools