paper-with-me

Papers

PERC: Plan-As-Query Example Retrieval for Underrepresented Code Generation

2024-12-17 · Jaeseok Yoo, Hojae Han, Youngwon Lee, Jaejin Kim, Seung-won Hwang

Code generation with large language models has shown significant promise, especially when employing retrieval-augmented generation (RAG) with few-shot examples. However, selecting effective examples that enhance generation quality remains a challenging task, particularly when the target programming language (PL) is underrepresented. In this study, we present two key findings: (1) retrieving examples whose presented algorithmic plans can be referenced for generating the desired behavior significantly improves generation accuracy, and (2) converting code into pseudocode effectively captures such algorithmic plans, enhancing retrieval quality even when the source and the target PLs are different. Based on these findings, we propose Plan-as-query Example Retrieval for few-shot prompting in Code generation (PERC), a novel framework that utilizes algorithmic plans to identify and retrieve effective examples. We validate the effectiveness of PERC through extensive experiments on the CodeContests, HumanEval and MultiPL-E benchmarks: PERC consistently outperforms the state-of-the-art RAG methods in code generation, both when the source and target programming languages match or differ, highlighting its adaptability and robustness in diverse coding environments.

📄 PDF Abstract BibTeX arXiv:2412.12447

Code (0)

등록된 구현이 없습니다.

Tasks

Code GenerationHumanEvalRAGRetrievalRetrieval-augmented Generation

Methods 이 논문이 사용한 방법론

Refunds@Expedia|||How do I get a full refund from Expedia? “How do I get a full refund from Expedia? How do I get a full refund from Expedia? – Call ☎️ +1-(888) 829 (0881) or +1-805-330-4056 or +1-805-330-4056 for Quick Help &…
Attention 설명 없음
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Multi-Head Attention 설명 없음
Adam 설명 없음
Layer Normalization Unlike batch normalization, Layer Normalization directly estimates the normalization statistics from the summed inputs…
Residual Connection 설명 없음
Weight Decay 설명 없음

Similar Papers 제목 키워드 기반

SpectraQuery: A Hybrid Retrieval-Augmented Conversational Assistant for Battery Science

2026-01-14 · Sreya Vangara, Jagjit Nanda, Yan-Kai Tzeng, Eric Darve arxiv

Scientific reasoning increasingly requires linking structured experimental data with the unstructured literature that explains it, yet most large language model (LLM) assistants cannot reason jointly across these modalit…

Semantic Parsing

LLM for Everyone: Representing the Underrepresented in Large Language Models

2024-09-20 · Samuel Cahyawijaya

Natural language processing (NLP) has witnessed a profound impact of large language models (LLMs) that excel in a multitude of tasks. However, the limitation of LLMs in multilingual settings, particularly in underreprese…

In-Context Learning

Context Tuning for Retrieval Augmented Generation

2023-12-09 · Raviteja Anantha, Tharun Bethi, Danil Vodianik, Srinivas Chappidi

Large language models (LLMs) have the remarkable ability to solve new tasks with just a few examples, but they need access to the right tools. Retrieval Augmented Generation (RAG) addresses this problem by retrieving a l…

HallucinationRAGRetrievalRetrieval-augmented Generation

Unsupervised Adversarial Attacks on Deep Feature-based Retrieval with GAN

2019-07-12 · Guoping Zhao, Mingyu Zhang, Jiajun Liu, Ji-Rong Wen

Studies show that Deep Neural Network (DNN)-based image classification models are vulnerable to maliciously constructed adversarial examples. However, little effort has been made to investigate how DNN-based image retrie…

image-classificationImage ClassificationImage RetrievalRetrieval

FAIR-QR: Enhancing Fairness-aware Information Retrieval through Query Refinement

2025-03-27 · Fumian Chen, Hui Fang

Information retrieval systems such as open web search and recommendation systems are ubiquitous and significantly impact how people receive and consume online information. Previous research has shown the importance of fa…

FairnessInformation RetrievalLearning-To-RankRecommendation Systems+1