REVIEW 3 cited by
Does Few-Shot Learning Help LLM Performance in Code Synthesis?
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
read the original abstract
Large language models (LLMs) have made significant strides at code generation through improved model design, training, and chain-of-thought. However, prompt-level optimizations remain an important yet under-explored aspect of LLMs for coding. This work focuses on the few-shot examples present in most code generation prompts, offering a systematic study on whether few-shot examples improve LLM's coding capabilities, which few-shot examples have the largest impact, and how to select impactful examples. Our work offers 2 approaches for selecting few-shot examples, a model-free method, CODEEXEMPLAR-FREE, and a model-based method, CODEEXEMPLAR-BASED. The 2 methods offer a trade-off between improved performance and reliance on training data and interpretability. Both methods significantly improve CodeLlama's coding ability across the popular HumanEval+ coding benchmark. In summary, our work provides valuable insights into how to pick few-shot examples in code generation prompts to improve LLM code generation capabilities.
Forward citations
Cited by 3 Pith papers
-
COMPAS: Difficulty-Aware Joint Search for Optimizing Code Generation
COMPAS jointly optimizes model, prompt, and decoding settings separately for easy, medium, and hard code tasks, lifting LiveCodeBench pass@1 from 45.9% to 52.8% at 7.4x lower cost.
-
Hawk: Harnessing Hardware-Aware Knowledge for High-Performance NPU Kernel Generation
Hawk raises NPU kernel generation accuracy from 49.4% to 80% and yields up to 2.2× speedups by retrieving and distilling structured hardware-aware knowledge without any model training.
-
Rethinking Technology Stack Selection with AI Coding Proficiency
AI coding proficiency, a new measure of how effectively LLMs use a given library, reveals large quality gaps between competing Python libraries, with winners varying by model.
Discussion (0). Continue with ORCID to comment.