Does Few-Shot Learning Help LLM Performance in Code Synthesis?
Open accessAbstract
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.
Integrity signals
Registry
Cites
Statistics
Claims the paper makes
15 of 26 cited sources checked · 10 supported · 3 flagged · accuracy not yet measured
- Premisecitation
State-of-the-art models show minimal performance differences between different algorithms.
“Specifically, state-of-the-art models (Guo et al., 2024;Huang et al., 2023) show minimal performance differences between different algorithms.”
Quote in the paperSubstantial claim2 of 2 sources checked- cites Guo et al., 2024 source
The paper's model comparisons report substantial rather than minimal performance differences. In the Instruction Tuning section, it describes DeepSeek-Coder's 9% and 11% accuracy improvements over a similarly sized CodeLlama model, and Table 3 reports differing benchmark scores across models. The paper compares models, not algorithms as such; no page number is available in our copy. (LLM, conf=0.84)
Checked by a reasoning model — may be wrong.
Experimental — accuracy not yet measured - cites Huang et al., 2023 source
Section 4.2 (RQ1) says AgentCoder outperforms all baseline optimisation approaches, rather than finding minimal differences between algorithms. It reports 89.1% pass@1 for AgentCoder versus 63.0% for CodeCoT on MBPP-ET, and an 8.8-point difference in their average pass@1 scores. (LLM, conf=0.88)
Checked by a reasoning model — may be wrong.
Experimental — accuracy not yet measured
- Premisecitation
Existing techniques for code generation evaluate on predefined prompt templates with little to no modifications.
“In fact, existing techniques evaluate on predefined prompt templates with little to no modifications (Austin et al., 2021;Liu et al., 2024b).”
Quote in the paperSubstantial claim1 of 2 sources checked- cites Austin et al., 2021 source
Section 3 (p. 5) describes evaluating code synthesis with a specified few-shot prompt format. But Sections 4.2–4.3 (pp. 7–8) report varying the number of test assertions and the choice of prompt examples, so the claim that prompts received little to no modification overstates this paper's methods. The paper also does not establish that this is how existing techniques generally evaluate. (LLM, conf=0.86)
Experimental — accuracy not yet measured - cites Liu et al., 2024b
Couldn’t be matched to a paper in Crossref, so it can’t be checked.
- Premisecitation
Longer prompts require much more compute costs.
“While performance monotonically improves, longer prompts require much more compute costs (Dao et al., 2022).”
Quote in the paperSubstantial claim1 of 1 sources checked- cites Dao et al., 2022 source
- Interpretationreasoning
Existing ICL techniques for example selection do not work in our setting.
“Hence, existing ICL techniques for example selection(Liu et al., 2021) does not work in our setting.”
Quote in the paperSubstantial claim1 of 1 sources checked- cites Liu et al., 2021 source
- Rests on an assumption: Few-shot examples in code synthesis prompts are not in the same input-output space as in-context learning.
- Findingcitation
Larger models such as MISTRAL, LLAMA, and CODELLAMA exhibit much better zero-shot coding capabilities than T5-SMALL and T5-BASE.
“Following neural scaling laws (Kaplan et al., 2020), larger models, such as MISTRAL, LLAMA, and CODELLAMA, exhibit much better zero-shot coding capabilities than T5-SMALL and T5-BASE.”
Quote in the paperNot a substantial claim1 of 1 sources checked- cites Kaplan et al., 2020
- Findingown data
Among the LLMs tested, CODELLAMA benefits the most from good test case selection.
“Among the LLMs tested, CODELLAMA (Roziere et al., 2023) benefits the most from good test case selection, hence we focus this work around CODELLAMA.”
Quote in the paperSubstantial claim1 of 1 sources checked- cites Roziere et al., 2023 source
- Findingreasoning
CODEEXEMPLAR-FREE improves LLM code generation ability by only modifying the input prompt.
“We propose an interpretable model-free algorithm, requiring no training, that improves LLM code generation ability by only modifying the input prompt.”
Quote in the paperSubstantial claim - Findingreasoning
CODEEXAMPLAR-BASE improves LLM code generation by only modifying the input prompt.
“We propose a data-driven neural network, trained on a dataset of code generation prompts, that improves LLM code generation by only modifying the input prompt.”
Quote in the paperSubstantial claim - Findingown data
Adding a single one-shot example can improve LLM coding capabilities by the same margin as model architecture or training dataset design choices.
“Specifically, by adding just a single one-shot example, LLM coding capabilities can improve by the same margin as model architecture or training dataset design choices (Table 1).”
Quote in the paperSubstantial claim - Findingown data
Prompt design has a large influence on downstream performance.
“Our study shows prompt design has a large influence on the downstream performance.”
Quote in the paperSubstantial claim - Findingown data
PERPLEXITY(TARGET)'s ranking is a good estimator for Pass@1's ranking.
“We show that PERPLEXITY (TARGET)'s ranking is a good estimator for Pass@1's ranking in Section 5.3.1.”
Quote in the paperSubstantial claim - Findingown data
Our methods improve perplexity over the natural language prompt on its own.
“Figure 5 also demonstrates our methods improve perplexity over the natural language prompt on its own.”
Quote in the paperSubstantial claim - Findingown data
CODEEXAMPLAR-BASE performs better than the random choice under all settings of N.
“We highlight CODEEXAMPLAR-BASE performs better than the random choice under all settings of N .”
Quote in the paperSubstantial claim - Findingown data
The embeddings naturally encode the PERPLEXITY (TARGET) score.
“As shown, the embeddings naturally encode the PERPLEXITY (TARGET) score.”
Quote in the paperSubstantial claim - Findingown data
By removing the need to generalize to new prompts, CODEEXAMPLAR-BASE greatly improves in its ranking predictions.
“By removing the need to generalize to new pormpts, CODEEXAMPLAR-BASE greatly improves in its ranking predictions (Figure 7).”
Quote in the paperSubstantial claim - Findingown data
The best test case for a given problem improves PERPLEXITY (TARGET) much more than the median test case.
“The best test case for a given problem improves PERPLEXITY (TARGET) much more than the median test case, motivating a need to rank candidate examples, f p , by their helpfulness.”
Quote in the paperSubstantial claim - Findingown data
PERPLEXITY(SOURCE)'s ranking is a good estimator for PERPLEXITY(TARGET)'s ranking.
“We show that PERPLEXITY (SOURCE)'s ranking is a good estimator for PERPLEXITY (TAR-GET)'s ranking in Section 5.3.2.”
Quote in the paperSubstantial claim - Findingnone given
Most few-shot examples improve CODELLAMA coding capabilities.
“Because most few-shot examples improve CODEL-LAMA coding capabilities, we shift our focus to studying which examples improve its coding capabilities the most.”
Quote in the paperNot a substantial claim - Findingown data
Prompts with more complex inputs tend to be informative.
“We observe that prompts with more complex inputs tend to be informative (Table 3), while simple or edge case examples provide little benefit.”
Quote in the paperSubstantial claim - Findingown data
CODELLAMA performance monotonically improves with more few-shot examples.
“While performance monotonically improves, longer prompts require much more compute costs (Dao et al., 2022).”
Quote in the paperSubstantial claim - Findingown data
Simple or edge case examples provide little benefit.
“We observe that prompts with more complex inputs tend to be informative (Table 3), while simple or edge case examples provide little benefit.”
Quote in the paperSubstantial claim - Findingown data
LLM embeddings themselves provide a reliable signal on a prompt's PERPLEXITY (TARGET) score.
“While PERPLEXITY (SOURCE) roughly correlates PERPLEXITY (TARGET), we discover LLM embeddings themselves also provides a reliable signal on a prompt's PERPLEXITY (TARGET) score.”
- Also stated in: § 5.3.3 Embedding-Level Signals · plain
“Our investigation (Figure 3) reveals LLM embeddings themselves are a suitable signal to measure PERPLEXITY (TARGET).”
Quote in the paperSubstantial claim - Also stated in: § 5.3.3 Embedding-Level Signals · plain
- Findingown data
The embedding contains rich semantic information on each test case.
“This embedding contains rich semantic information on each test case, as shown in Section 5.3.3.”
Quote in the paperSubstantial claim - Findingown data
The LLM is approximately 2× slower on prompts including 10 few-shot examples compared to prompts with no examples.
“Specifically, the LLM is approximately 2× slower on prompts including 10 few-shot examples compared to prompts with no examples (only the natural language).”
Quote in the paperSubstantial claim - Interpretationreasoning
The two methods offer a trade-off between improved performance and reliance on training data and interpretability.
“The 2 methods offer a trade-off between improved performance and reliance on training data and interpretability.”
Quote in the paperSubstantial claim - Premisereasoning
Directly including all M examples from the larger pool into the prompt is infeasible due to the LLM's high compute costs on very long context prompts.
“Directly including all M examples from the larger pool, Dj , into the prompt is infeasible, due to LLM's high compute costs on very long context prompts.”
Quote in the paperSubstantial claim - Interpretationreasoning
PERPLEXITY (SOURCE) can directly be used for model-free inference.
“Hence this metric can directly be used for model-free inference, as elaborated in Section 4.1.”
Quote in the paperSubstantial claim - Interpretationcitation
The Pass@1 metric is too coarse for the paper's use-case.
“We note that the Pass@1 metric is too coarse for our use-case.”
Quote in the paperSubstantial claim - Interpretationreasoning
Prompt optimization on its own can improve the LLM's code generation abilities without any additional LLM training, model design, or model alignment.
“Because both single and multiple few-shot examples improves LLM's coding performance, we showed prompt optimization on its own can improve the LLM's code generation abilities without any additional LLM training, model design, or model alignment.”
Quote in the paperSubstantial claim - Premisenone given
PERPLEXITY (SOURCE) does not require access to any ground truth code to compute.
“We highlight the benefit of PERPLEXITY (SOURCE) is it does not require access to any ground truth code to compute.”
Quote in the paperSubstantial claim - Interpretationown data
Not all test cases are created equal.
“However, not all test cases are created equal.”
Quote in the paperSubstantial claim - Premisecitation
Large quantities of test cases are often readily available in real-world applications.
“because large quantities of test cases are often readily available in realworld applications (Lemieux et al., 2023)”
Quote in the paperSubstantial claim0 of 1 sources checked- cites Lemieux et al., 2023 source
- Interpretationreasoning
CODEEXAMPLAR-BASE can better distinguish cases where a few-shot example hurts or improves the LLM's coding capabilities than CODEEXEMPLAR-FREE.
“Unlike CODEEXEMPLAR-FREE, CODEEXAMPLAR-BASE is directly trained on the PERPLEXITY (TAR-GET) metric, hence can better distinguish cases where when the example hurts or improves the LLM's coding capabilities.”
Quote in the paperSubstantial claim - Interpretationreasoning
Pass@1 is a discrete metric and cannot capture the more fine-grained performance gains from different design choices.
“As explained in Section 4, Pass@1 is a discrete metric, hence cannot capture the more fine-grained performance gains from different design choices.”
Quote in the paperSubstantial claim - Interpretationreasoning
Under the setting where the same prompt can occur between training and testing, the model only needs to learn the importance of individual examples, rather than learn the importance of individual examples and generalize to new prompts.
“Hence, the model only needs to learn the importance of individual examples, rather than learn the importance of individual examples and generalize to new prompts.”
Quote in the paperSubstantial claim - Interpretationreasoning
As long as the effect of a few-shot example on the LLM's generated output is positive (the model does not hallucinate), PERPLEXITY(SOURCE) remains a reliable metric for selecting impactful few-shot examples.
“As long as this effect is positive (the model does not hallucinate), PERPLEXITY (SOURCE) remains a reliable metric for selecting impactful few-shot examples.”
Quote in the paperNot a substantial claim - Interpretationreasoning
Pass@1 does not effectively measure the effect of including individual one-shot examples in the prompt of a single problem.
“Thus, Pass@1 does not effectively measure the effect of including individual one-shot examples in the prompt of a single problem.”
Quote in the paperSubstantial claim - Interpretationown data
CODEEXAMPLAR-BASE can be improved by a better training dataset.
“Specifically, we find CODEEXAMPLAR-BASE can be improved by a better training dataset.”
Quote in the paperSubstantial claim - Interpretationreasoning
There is a natural tradeoff between performance and compute costs in terms of the number of examples.
“Thus, there is a natural tradeoff between performance and compute costs in terms of the number of examples.”
Quote in the paperSubstantial claim
- May combine two claims. 23
- Classified as probably not a substantial claim. 33
- The quote only partly states this claim. 1
May combine two claims.
PremisecitationLarge pools of test cases can originate from human-generated documentation or GPT-generated unit tests.
“In practice, large pools of test cases, Dj , can either originate from human generated documentation (Nassif et al., 2021;Lemieux et al., 2023) or GPTgenerated unit tests (Austin et al., 2021).”
Quote in the paperNot a substantial claim1 of 3 sources checked- cites Nassif et al., 2021
Couldn’t be matched to a paper in Crossref, so it can’t be checked.
- cites Lemieux et al., 2023 source
- cites Austin et al., 2021 source
Austin et al. do not describe GPT-generated unit tests as the source of their test cases. Section 2.1 (p. 4) says crowdworkers wrote three test cases for each MBPP problem; Section 3 (p. 5) describes the model generating code that was checked against those tests, not generating the tests. (LLM, conf=0.84)
Checked by a reasoning model — may be wrong.
Experimental — accuracy not yet measured
Classified as probably not a substantial claim.
PremisecitationLLM in-context learning ability is shaped by which examples are included in the ICL prompt.
“Inspired by existing work (Liu et al., 2021(Liu et al., , 2024c) ) that show LLM's in-context learning (ICL) ability is shaped by which examples are included in the ICL prompt”
Quote in the paperSubstantial claim1 of 2 sources checked- cites Liu et al., 2021 source
- cites Liu et al., 2024c
Couldn’t be matched to a paper in Crossref, so it can’t be checked.
Probably not a substantial claim: may not pass S3 (load-bearing). May combine two claims.
PremisecitationMistral is a 7B decoder-only model trained for language generation.
“MISTRAL (Jiang et al., 2023), which is an 7B decoder-only model trained for language generation,”
Quote in the paperNot a substantial claim1 of 1 sources checked- cites Jiang et al., 2023 source
Probably not a substantial claim: may not pass S3 (load-bearing).
PremisecitationCodeLlama is more specialized in coding tasks.
“Furthermore CODELLAMA is more specialized in coding tasks thus yielding slightly lower PERPLEX-ITY (TARGET) score compared to MISTRAL despite their comparable sizes.”
Quote in the paperNot a substantial claim1 of 1 sources checked- cites Roziere et al., 2023 source
Probably not a substantial claim: may not pass S3 (load-bearing).
Study design and conductnone givenThe main experiments are performed on CodeLlama.
“The main experiments are performed on CODELLAMA (Roziere et al., 2023).”
- Also stated in: § Additional information · plain
“Our experiments are primarily performed on CODELLAMA (Roziere et al., 2023),”
Quote in the paperNot a substantial claim1 of 1 sources checked- cites Roziere et al., 2023 source
- Also stated in: § Additional information · plain
Probably not a substantial claim: may not pass S3 (load-bearing).
PremisecitationHumanEval+ augments the original HumanEval dataset with GPT-generated test cases and further test cases from mutation genetic algorithms.
“This dataset augments the original HumanEval (Chen et al., 2021) dataset with GPT-generated test cases and further test cases from mutation genetic algorithms.”
Quote in the paperNot a substantial claim1 of 2 sources checked- cites Chen et al., 2021 source
- cites Liu et al., 2024b
Couldn’t be matched to a paper in Crossref, so it can’t be checked.
Classified as probably not a substantial claim.
PremisecitationFoundation models learn more from data they cannot generate.
“Inspired by recent work showing foundation models learn more from data they cannot generate (Shumailov et al., 2024)”
Quote in the paperSubstantial claim1 of 1 sources checked- cites Shumailov et al., 2024 source
Probably not a substantial claim: may not pass S3 (load-bearing). May combine two claims.
PremisecitationCodeLlama is a 7B decoder-only model trained on code synthesis.
“which is a 7B decoder-only model trained on code synthesis.”
Quote in the paperNot a substantial claim1 of 1 sources checked- cites Roziere et al., 2023 source
The Abstract describes Code Llama as a family with 7B, 13B, 34B, and 70B variants, rather than a single 7B model. The Introduction describes training for code generation, and Additional information calls the models autoregressive transformers, consistent with the decoder-only description. The 7B description is accurate for a variant, but not for Code Llama as a whole. (LLM, conf=0.88)
Experimental — accuracy not yet measured
May combine two claims.
Findingown dataBoth CODEEXEMPLAR-FREE and CODEEXAMPLAR-BASE significantly improve CODELLAMA's coding ability on the HUMANEVAL+ benchmark under fixed token constraints.
“Both methods significantly improve CODELLAMA's coding ability across the popular HUMANEVAL+ coding benchmark.”
- Also stated in: § 1 Introduction · plain
“Both approaches substantially improve CODELLAMA's coding capabilities on the HUMANEVAL+ benchmark under fixed token constraints.”
Quote in the paperSubstantial claim- Also stated in: § 1 Introduction · plain
May combine two claims.
Findingown dataThe choice of few-shot examples in the code generation prompt significantly affects LLM coding capability, confirmed on T5-SMALL, T5-BASE, MISTRAL, and CODELLAMA on the HUMANEVAL+ benchmark.
“We confirm our hypothesis on several language models: T5-SMALL, T5-BASE, MISTRAL, and CODELLAMA on the HUMANEVAL+ benchmark.”
- Also stated in: § 1 Introduction · boosted
“We demonstrate that choice of few-shot examples in the LLM prompt has a significant effect on LLM coding capabilities across 5 different LLMs.”
- Also stated in: § 1 Introduction · boosted
“Given few-shot examples greatly affect LLM coding capability”
Quote in the paperSubstantial claim- Also stated in: § 1 Introduction · boosted
May combine two claims. The quote only partly states this claim.
FindingreasoningCODEEXAMPLAR-BASE is a data-driven neural network trained on a dataset of code generation prompts and performs better than CODEEXEMPLAR-FREE.
“the latter offers a better performing data-driven model.”
- Also stated in: § 1 Introduction · plain
“We propose a data-driven neural network, trained on a dataset of code generation prompts”
Quote in the paperSubstantial claim- Also stated in: § 1 Introduction · plain
May combine two claims.
Findingown dataBoth CODEEXEMPLAR-FREE and CODEEXAMPLAR-BASE improve CodeLlama's likelihood of generating ground truth code by up to 5.0 through solely optimizing the prompt.
“Our experiments show both CODEEXEMPLAR-FREE and CODEEXAMPLAR-BASE improves CODELLAMA's likelihood of generating ground truth code by up to 5.0 through solely optimizing the prompt (Figure 5).”
Quote in the paperSubstantial claimProbably not a substantial claim: may not pass S3 (load-bearing).
FindingreasoningCodeLlama yields slightly lower PERPLEXITY (TARGET) score compared to Mistral despite their comparable sizes.
“Furthermore CODELLAMA is more specialized in coding tasks thus yielding slightly lower PERPLEX-ITY (TARGET) score compared to MISTRAL despite their comparable sizes.”
Quote in the paperNot a substantial claimMay combine two claims.
Findingown dataAdding more few-shot examples to CODELLAMA significantly improves coding performance, then saturates around a log perplexity improvement of around 5.0 after 6 examples.
“By adding more few-shot examples, CODELLAMA coding performance significantly improves then saturates around a log perplexity improvement of around 5.0 after 6 examples (Figure 2).”
Quote in the paperSubstantial claimMay combine two claims.
Findingown dataBoth CODEEXEMPLAR-FREE and CODEEXAMPLAR-BASE improve CodeLlama's raw Pass@1 coding performance by 5.70 ± 2.17% and 5.05 ± 1.70% on average respectively through solely optimizing the prompt.
“Not only does our approach improve the PERPLEXITY (TARGET) score, but both CODEEXEMPLAR-FREE and CODEEXAMPLAR-BASE improves CODEL-LAMA's raw Pass@1 coding performance by 5.70 ± 2.17% and 5.05 ± 1.70% on average respectively through solely optimizing the prompt (Figure 6).”
Quote in the paperSubstantial claimMay combine two claims.
FindingreasoningCODEEXEMPLAR-FREE and CODEEXAMPLAR-BASE boost model performance by selecting informative few-shot examples quantitatively and automatically.
“As shown in Section 6, CODEEXEMPLAR-FREE and CODEEXAMPLAR-BASE boost model performance by selecting these informative fewshot examples quantitatively and automatically.”
Quote in the paperSubstantial claimMay combine two claims.
Findingown dataMost few-shot examples improve PERPLEXITY (TARGET), because the median test case improves PERPLEXITY (TARGET).
“We find most examples improve PERPLEXITY (TARGET), because the median test case improves PERPLEXITY (TAR-GET).”
Quote in the paperSubstantial claimMay combine two claims.
Findingown dataUnder the fixed N-shot setting, CODEEXEMPLAR-FREE extracts more effective prompts than both the original prompt (HumanEval) and randomly selecting few-shot examples (Random).
“Specifically, under the fixed N -shot setting, CODEEXEMPLAR-FREE extracts more effective prompts than both the original prompt (Human Eval), randomly selecting few-shot examples (Random).”
Quote in the paperSubstantial claimProbably not a substantial claim: may not pass S3 (load-bearing).
Findingown dataLarger models (Mistral and CodeLlama) have lower perplexity generating the test prompts compared to smaller models (T5-BASE and T5-SMALL).
“As expected the larger models (MISTRAL and CODELLAMA) have lower perplexity generating the test prompts compared to the smaller models (T5-BASE and T5-SMALL).”
Quote in the paperNot a substantial claimMay combine two claims.
Findingown dataPass@1 scores correlate with PERPLEXITY (TARGET) scores, since successful prompts have higher mean perplexity.
“Our analysis (Table 2) confirms Pass@1 scores correlate with the PERPLEXITY (TARGET) scores, since successful prompts have higher mean perplexity.”
Quote in the paperSubstantial claimClassified as probably not a substantial claim.
PremisecitationIn-context learning enables LLMs to adapt to new tasks by providing examples within the input prompt.
“In-context learning enables LLMs to adapt to new tasks by providing examples within the input prompt (Brown, 2020).”
Quote in the paperSubstantial claim0 of 1 sources checked- cites Brown, 2020
Couldn’t be matched to a paper in Crossref, so it can’t be checked.
May combine two claims.
InterpretationreasoningCODEEXEMPLAR-FREE is an interpretable, model-free, data-agnostic algorithm requiring no training.
“The former offers an interpretable dataagnostic algorithm”
- Also stated in: § 1 Introduction · plain
“We propose an interpretable model-free algorithm, requiring no training”
Quote in the paperSubstantial claim- Also stated in: § 1 Introduction · plain
Probably not a substantial claim: may not pass S3 (load-bearing), S4 (based).
Interpretationnone givenBoth approaches support arbitrary token cost constraints.
“Both approaches support arbitrary token cost constraints.”
Quote in the paperNot a substantial claimProbably not a substantial claim: may not pass S3 (load-bearing). May combine two claims.
Interpretationnone givenBoth algorithms are gray-box: they do not require access to ground-truth weights of the model, only the logits for given input.
“Both algorithms are gray-box: they do not require access to ground-truth weights of the model, only the logits for given input.”
Quote in the paperNot a substantial claimProbably not a substantial claim: may not pass S2 (checkable), S3 (load-bearing), S4 (based).
Study design and conductnone givenWe follow the intended usage of the LLMs.
“We follow the intended usage of the LLMs.”
Quote in the paperNot a substantial claimMay combine two claims.
Interpretationown dataBoth CODEEXEMPLAR-FREE and CODEEXAMPLAR-BASE meaningfully improve CodeLlama's coding capabilities.
“We show that both CODEEXEMPLAR-FREE and CODEEXAMPLAR-BASE meaningfully improves CODELLAMA's coding capabilties.”
Quote in the paperSubstantial claimProbably not a substantial claim: may not pass S3 (load-bearing). May combine two claims.
PremisecitationLlama is an 8B decoder-only model trained for language generation.
“and LLAMA (Dubey et al., 2024), which is a 8B decoder-only model also trained for language generation.”
Quote in the paperNot a substantial claim0 of 1 sources checked- cites Dubey et al., 2024
Couldn’t be matched to a paper in Crossref, so it can’t be checked.
Classified as probably not a substantial claim.
Study design and conductnone givenAll other experiments adopt out-of-distribution training, where prompts are split into train and test sets never seen in training.
“All other experiments in this work adopt the harder out-of-distribution training, where the prompts are split in to train test sets that are never seen in training.”
Quote in the paperSubstantial claimProbably not a substantial claim: may not pass S2 (checkable).
Interpretationown dataOur prompt optimization techniques have practical application.
“These results indicate that our prompt optimization techniques have practical application.”
Quote in the paperNot a substantial claimClassified as probably not a substantial claim.
Study design and conductcitationThis work tests on the HumanEval+ benchmark.
“This work tests on the HUMANEVAL+ (Liu et al., 2024b) benchmark.”
- Also stated in: § Additional information · plain
“All experiments are conducted on the popular HU-MANEVAL+ (Liu et al., 2024b) benchmark.”
Quote in the paperSubstantial claim0 of 1 sources checked- cites Liu et al., 2024b
Couldn’t be matched to a paper in Crossref, so it can’t be checked.
- Also stated in: § Additional information · plain
Probably not a substantial claim: may not pass S2 (checkable).
InterpretationreasoningThere is a need to select the best N ≪ M few-shot examples from the larger pool of M many-shot examples.
“motivating a need to select the best N ≪ M few-shot examples from the larger pool of M many-shot examples.”
Quote in the paperNot a substantial claim- Rests on an assumption: LLM compute costs are determined by the prompt token length.
Probably not a substantial claim: may not pass S3 (load-bearing).
Study design and conductnone givenWe chose our settings by evaluating on the validation set.
“We chose our settings by evaluating on the validation set.”
Quote in the paperNot a substantial claimClassified as probably not a substantial claim.
PremisereasoningThe Pass@1 metric is binary on a single coding problem.
“Specifically, the Pass@1 metric is binary on a single coding problem.”
Quote in the paperSubstantial claimClassified as probably not a substantial claim. May combine two claims.
Study design and conductnone givenThe training dataset was split from HUMANEVAL+ into training and testing splits in an 80:20 ratio, ensuring prompts in the test set do not leak into the training set.
“We collect the training dataset by splitting the HUMANEVAL+ dataset into the training and testing splits in a 80:20 split, ensuring prompts in the test set do not leak into the training set.”
Quote in the paperSubstantial claimProbably not a substantial claim: may not pass S3 (load-bearing), S4 (based). May combine two claims.
Premisenone givenGeneration from scratch entails ensuring input-output pairs both describe ground truth code and maximize Pass@1.
“generation from scratch entails ensuring input-output pairs both describe ground truth code and maximize Pass@1.”
Quote in the paperNot a substantial claimProbably not a substantial claim: may not pass S4 (based).
Interpretationnone givenIf the LLM does not expect to read a certain few-shot example, then this example will have a large effect on the LLM's generated output.
“Intuitively, if the LLM does not expect to read a certain few-shot example, then this example will have a large effect on the LLM's generated output.”
Quote in the paperNot a substantial claimProbably not a substantial claim: may not pass S2 (checkable).
Interpretationown dataThere is a need to rank candidate examples by their helpfulness.
“motivating a need to rank candidate examples, f p , by their helpfulness.”
Quote in the paperNot a substantial claimClassified as probably not a substantial claim.
Interpretationown dataThese results motivate a learning-based approach, CODEEXAMPLAR-BASE, which encodes semantic representations of one-shot examples to estimate PERPLEXITY (TARGET).
“These results motivate for our learningbased approach, CODEEXAMPLAR-BASE, which encodes semantic representations of one-shot examples to estimate PERPLEXITY (TARGET).”
Quote in the paperSubstantial claimClassified as probably not a substantial claim.
Study design and conductnone givenAll experiments in this work adopt the harder setting, where the train and test set have disjunct natural language descriptions.
“We highlight all the experiments in this work adopt the harder setting, where the train and test set have disjunct natural language descriptions .”
Quote in the paperSubstantial claimProbably not a substantial claim: may not pass S3 (load-bearing). May combine two claims.
PremisecitationT5-SMALL and T5-BASE are 60M and 220M encoder-decoder models trained on many different tasks.
“We also explore T5-SMALL and T5-BASE (Raffel et al., 2020), which are 60M and 220M encoder-decoder models trained on many different tasks,”
Quote in the paperNot a substantial claim0 of 1 sources checked- cites Raffel et al., 2020
Couldn’t be matched to a paper in Crossref, so it can’t be checked.
May combine two claims.
InterpretationreasoningUnlike Pass@1, PERPLEXITY (TARGET) is a more granular evaluation metric that measures the effect of few-shot examples on individual problems.
“Unlike Pass@1, PERPLEXITY (TARGET) is a more granular evaluation metric that measures the effect of few-shot examples on individual problems.”
Quote in the paperSubstantial claimClassified as probably not a substantial claim.
Study design and conductreasoningThe large pool of examples is obtained from the HUMANEVAL+ benchmark to prevent data leakage.
“However, because the HUMANEVAL+ benchmark (Liu et al., 2024b) already uses GPT to generate its test cases, to prevent data leakage, the large pool of examples is obtained from HUMANEVAL+ benchmark.”
Quote in the paperSubstantial claim0 of 1 sources checked- cites Liu et al., 2024b
Couldn’t be matched to a paper in Crossref, so it can’t be checked.
Classified as probably not a substantial claim.
InterpretationreasoningBetter dataset design that improves the prompt generalization of CODEEXAMPLAR-BASE can further improve its performance.
“This indicates better dataset design which improves the prompt generalization of CODEEXAMPLAR-BASE can further improve its performance, encouraging development of larger coding datasets.”
Quote in the paperSubstantial claimClassified as probably not a substantial claim.
Study design and conductnone givenThis work focuses on code generation.
“This work focuses on code generation.”
Quote in the paperSubstantial claimProbably not a substantial claim: may not pass S3 (load-bearing). May combine two claims.
Premisenone givenCODEEXEMPLAR-FREE is a model-free algorithm with no hyperparameters.
“Because CODEEXEMPLAR-FREE is a modelfree algorithm with no hyperparameters.”
Quote in the paperNot a substantial claimProbably not a substantial claim: may not pass S3 (load-bearing). May combine two claims.
Study design and conductnone givenThis work does not tackle chain of thought prompting, only the original prompt in a zero-shot manner.
“This work does not tackle chain of thought prompting, only the original prompt in a zero-shot manner.”
Quote in the paperNot a substantial claimProbably not a substantial claim: may not pass S3 (load-bearing), S4 (based).
Study design and conductnone givenWe follow the intended usage of the datasets.
“We follow the intended usage of the datasets.”
Quote in the paperNot a substantial claim
The authors state this as an assumption.
All few-shot examples will improve performance by disambiguating the natural language prompt.
“(1) all few-shot examples will improve performance by disambiguating the natural language prompt”
The authors state this as an assumption.
Few-shot examples that the LLM cannot generate are more effective at disambiguating the natural language prompt.
“(2) few-shot examples that the LLM cannot generate are more effective at disambiguating the natural language prompt.”
The authors state this as an assumption.
Each example is added independently, where the (K+1)th best example is not dependent on which example is the Kth best.
“our model design assumes each example is added independently, where the (K + 1)th best example is not dependent on which example is the Kth best.”
The paper relies on this without support.
CODELLAMA is the best LLM among the five evaluated models.
“on the best LLM among the above choices, CODELLAMA”
The paper relies on this without support.
LLM compute costs are determined by the prompt token length.
“As mentioned previously, LLM comput costs are determined by the prompt token length”
The paper relies on this without support.
Few-shot examples in code synthesis prompts are not in the same input-output space as in-context learning.
“Unlike in-context learning (ICL), few-shot examples in code synthesis prompts are not in the same input output space.”
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
Each contradiction between two passages listed here was confirmed by an independent check.
Unit-test allocation has conflicting proportions
MajorThe evaluation setup gives a 60:20:20 split for the unit tests, but the additional information says test cases are divided 80:20 between evaluation and few-shot examples.
“we split the unit tests into (1) few-shot examples used for prompt optimizations ( Dj = [(x (j,i) c , y (j,i) c )] M i=0 ) and (2) few-show examples used for benchmarking in an 60:20:20 split.”
“We split the test cases into evaluation test cases and those used for few-shot examples in an 80:20 split.”
Prompt split is reported as both 80:20 and 60:20:20
MajorThe methods section assigns 80% of prompts to training, while the evaluation setup assigns 60%. These cannot be the same prompt split.
“we collect a dataset of few-shot example, [(x Collecting the Dataset: We collect the training dataset by splitting the HUMANEVAL+ dataset into the training and testing splits in a 80:20 split”
“we divide the prompts into 2 sets, one for training CODEEXAMPLAR-BASE and one for validation/testing in an 60:20:20 split.”
An increment example leaves one element unchanged
MinorThe stated function increments every list element by 1, but this example maps the input element 2 to 2 rather than 3.
“>>> incr_list([5,3,5,2,3,3,9,0,123]) [6,4,6,2,4,4,10,1,124]”
“Return list with elements incremented by 1.”
Cites
Matplotlib: a 2D graphics environment
Hunter, J. D. (2007) · Computing in Science & Engineering · doi:10.1109/mcse.2007.55 · Cited by 39,249 · see citing works
PyTorch: An Imperative Style, High-Performance Deep Learning Library
Paszke, A., Gross, S., Massa, F., Lerer, A., Bradbury, J., Chanan, G., Killeen, T., Lin, Z., Gimelshein, N., Antiga, L., et al. (2019) · arXiv · doi:10.48550/arxiv.1912.01703 · Cited by 31,473 · see citing works
Harris, C. R., Millman, K. J., van der Walt, S. J., Gommers, R., Virtanen, P., Cournapeau, D., Wieser, E., Taylor, J., Berg, S., Smith, N. J., et al. (2020) · Nature · doi:10.1038/s41586-020-2649-2 · Cited by 23,826 · see citing works
Language Models are Few-Shot Learners
Brown, T. B., Mann, B., Ryder, N., Subbiah, M., Kaplan, J., Dhariwal, P., Neelakantan, A., Shyam, P., Sastry, G., Askell, A., et al. (2020) · arXiv · doi:10.48550/arxiv.2005.14165 · Cited by 23,372 · cited 1× · see citing works
“In-context learning enables LLMs to adapt to new tasks by providing examples within the input prompt (Brown, 2020).”
Data Structures for Statistical Computing in Python
McKinney, W. (2010) · Proceedings of the Python in Science Conferences · doi:10.25080/majora-92bf1922-00a · Cited by 11,511 · see citing works
Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer
Raffel, C., Shazeer, N., Roberts, A., Lee, K., Narang, S., Matena, M., Zhou, Y., Li, W., & Liu, P. J. (2019) · arXiv · doi:10.48550/arxiv.1910.10683 · Cited by 10,929 · cited 1× · see citing works
“We evaluate the effect of adding few-shot examples on 5 language models: T5-S MALL (60M) (Raffel et al., 2020), T5-B ASE (220M) (Raf-fel et al., 2020), M ISTRAL (7B) (Jiang et al., 2023), L LAMA (8B) (Dubey et al., 2024), and C ODE L LAMA (7B) (Roziere et al., 2023).”
Transformers: State-of-the-Art Natural Language Processing
Wolf, T., Debut, L., Sanh, V., Chaumond, J., Delangue, C., Moi, A., Cistac, P., Rault, T., Louf, R., Funtowicz, M., et al. (2020) · Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing: System Demonstrations · doi:10.18653/v1/2020.emnlp-demos.6 · Cited by 8,741 · see citing works
seaborn: statistical data visualization
Waskom, M. (2021) · Journal of Open Source Software · doi:10.21105/joss.03021 · Cited by 7,310 · see citing works
LLaMA: Open and Efficient Foundation Language Models
Touvron, H., Lavril, T., Izacard, G., Martinet, X., Lachaux, M.-A., Lacroix, T., Rozière, B., Goyal, N., Hambro, E., Azhar, F., et al. (2023) · arXiv · doi:10.48550/arxiv.2302.13971 · Cited by 4,602 · cited 1× · see citing works
“…models (LLMs) (Radford et al., 2019) have demonstrated impressive capabilities outside of natural language processing, including in mathematics (Touvron et al., 2023; Luo et al., 2023), time series forecasting (Ansari et al., 2024; Woo et al., 2024; Das et al., 2023), tabular data…”
Scaling Laws for Neural Language Models
Kaplan, J., McCandlish, S., Henighan, T., Brown, T. B., Chess, B., Child, R., Gray, S., Radford, A., Wu, J., & Amodei, D. (2020) · arXiv · Cited by 1,749 · cited 1× · see citing works
“Following neural scaling laws (Kaplan et al., 2020), larger models, such as M ISTRAL , L LAMA , and C ODE L LAMA , exhibit much better zero-shot coding capabilities than T5-S MALL and T5-B ASE .”
Wang, Y., Wang, W., Joty, S., & Hoi, S. C. H. (2021) · Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing · doi:10.18653/v1/2021.emnlp-main.685 · Cited by 1,495 · cited 1× · see citing works
“More specialized code LLMs, such as CodeT5 (Wang et al., 2021), In-Coder (Fried et al., 2022), DeepSeek-Coder (Guo et al., 2024), StarCoder2 (Lozhkov et al., 2024), Qwen2.”
Self-citationEvaluating Large Language Models Trained on Code
Chen, M., Tworek, J., Jun, H., Yuan, Q., Pinto, H. P. D. O., Kaplan, J., Edwards, H., Burda, Y., Joseph, N., Brockman, G., et al. (2021) · arXiv · doi:10.48550/arxiv.2107.03374 · Cited by 1,436 · see citing works
FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness
Dao, T., Fu, D. Y., Ermon, S., Rudra, A., & Ré, C. (2022) · arXiv · doi:10.48550/arxiv.2205.14135 · Cited by 1,214 · cited 1× · see citing works
“While performance monotonically improves, longer prompts require much more compute costs (Dao et al., 2022).”
A decoder-only foundation model for time-series forecastingPreprint
Das, A., Kong, W.-H., Sen, R., et al. (2023) · International Conference on Machine Learning · doi:10.48550/arxiv.2310.10688 · Cited by 993 · see citing works
Unified Training of Universal Time Series Forecasting TransformersPreprint
Woo, G., Liu, C., Kumar, A., et al. (2024) · International Conference on Machine Learning · doi:10.48550/arxiv.2402.02592 · Cited by 828 · see citing works
AI models collapse when trained on recursively generated data
Shumailov, I., Shumaylov, Z., Zhao, Y., Papernot, N., Anderson, R., & Gal, Y. (2024) · Nature · doi:10.1038/s41586-024-07566-y · Cited by 793 · see citing works
Liu, H., Li, C., Wu, Q., & Lee, Y. J. (2023) · arXiv · doi:10.48550/arxiv.2304.08485 · Cited by 682 · see citing works
Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivity
Lu, Y., Bartolo, M., Moore, A., Riedel, S., & Stenetorp, P. (2021) · arXiv · doi:10.48550/arxiv.2104.08786 · Cited by 615 · cited 1× · see citing works
“Research focuses on optimizing example selection and ordering (Lu et al., 2021; Liu et al., 2021; Wang et al., 2024b; Peng et al., 2024), including using curriculum learning (Liu et al., 2024d) and comparing it with fine-tuning (Mosbach et al., 2023).”
Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivity
Lu, Y., Bartolo, M., Moore, A., Riedel, S., & Stenetorp, P. (2022) · Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers) · doi:10.18653/v1/2022.acl-long.556 · Cited by 610 · cited 1× · see citing works
“Research focuses on optimizing example selection and ordering (Lu et al., 2021; Liu et al., 2021; Wang et al., 2024b; Peng et al., 2024), including using curriculum learning (Liu et al., 2024d) and comparing it with fine-tuning (Mosbach et al., 2023).”
What Makes Good In-Context Examples for GPT-3?
Liu, J., Shen, D., Zhang, Y., Dolan, B., Carin, L., & Chen, W. (2022) · Proceedings of Deep Learning Inside Out (DeeLIO 2022): The 3rd Workshop on Knowledge Extraction and Integration for Deep Learning Architectures · doi:10.18653/v1/2022.deelio-1.10 · Cited by 563 · cited 2× · see citing works
“Research focuses on optimizing example selection and ordering (Lu et al., 2021; Liu et al., 2021; Wang et al., 2024b; Peng et al., 2024), including using curriculum learning (Liu et al., 2024d) and comparing it with fine-tuning (Mosbach et al., 2023).”
Code Llama: Open Foundation Models for Code
Rozière, B., Gehring, J., Gloeckle, F., Sootla, S., Gat, I., Tan, X. E., Adi, Y., Liu, J., Sauvestre, R., Remez, T., et al. (2023) · arXiv · doi:10.48550/arxiv.2308.12950 · Cited by 531 · cited 6× · see citing works
“Current LLMs exhibit code generation capabilities through improved model design (Guo et al., 2024), training (Roziere et al., 2023), and chain-of-thought (Li et al., 2023).”
InfluentialCalibrate Before Use: Improving Few-Shot Performance of Language Models
Zhao, T. Z., Wallace, E., Feng, S., Klein, D., & Singh, S. (2021) · arXiv · doi:10.48550/arxiv.2102.09690 · Cited by 513 · cited 1× · see citing works
“However, challenges persist in performance stability and prompt sensitivity (Zhao et al., 2021), motivating research on meta-learning (Coda-Forno et al., 2023) and model scale effects (Sun et al., 2024).”
Grattafiori, A., Dubey, A., Jauhri, A., Pandey, A., Kadian, A., Al-Dahle, A., Letman, A., Mathur, A., Schelten, A., Vaughan, A., et al. (2024) · arXiv · doi:10.48550/arxiv.2407.21783 · Cited by 505 · cited 3× · see citing works
“…just a few months, LLMs exhibit zero-shot abilities in code completion (Peng et al., 2023), code generation (Roziere et al., 2023; Guo et al., 2024; Dubey et al., 2024), test case generation (Vikram et al., 2023; Lemieux et al., 2023; Schäfer et al., 2023), debugger interaction (Islam et al.,…”
InfluentialSelf-citationAn Empirical Evaluation of Using Large Language Models for Automated Unit Test Generation
Schäfer, M., Nadi, S., Eghbali, A., & Tip, F. (2024) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2023.3334955 · Cited by 431 · cited 1× · see citing works
“…code generation (Roziere et al., 2023; Guo et al., 2024; Dubey et al., 2024), test case generation (Vikram et al., 2023; Lemieux et al., 2023; Schäfer et al., 2023), debugger interaction (Islam et al., 2024; Ho et al., 2024), and repository-level generation (Shrivastava et al., 2023; Bui et…”
Perplexity—a measure of the difficulty of speech recognition tasks
Jelinek, F., Mercer, R. L., Bahl, L. R., & Baker, J. K. (1977) · The Journal of the Acoustical Society of America · doi:10.1121/1.2016299 · Cited by 405 · cited 1× · see citing works
“Because Pass@1 is a discrete metric, we optimize a more granular surrogate objective: the perplexity of generating the ground truth code, P ERPLEXITY (T ARGET ), as described in Equation 1, where perplexity is defined as P P ( y ; (Jelinek et al., 1977).”
Program Synthesis with Large Language Models
Austin, J., Odena, A., Nye, M., Bosma, M., Michalewski, H., Dohan, D., Jiang, E., Cai, C., Terry, M., Le, Q., et al. (2021) · arXiv · doi:10.48550/arxiv.2108.07732 · Cited by 388 · cited 1× · see citing works
“In fact, existing techniques evaluate on predefined prompt templates with little to no modifications (Austin et al., 2021; Liu et al., 2024b).”
Liu, J., Xia, C. S., Wang, Y., & Zhang, L. (2023) · Advances in Neural Information Processing Systems 36 · doi:10.52202/075280-0943 · Cited by 384 · cited 3× · see citing works
“However, because the H UMAN E VAL + benchmark (Liu et al., 2024b) already uses GPT to generate its test cases, to prevent data leakage, the large pool of examples is obtained from H UMAN E VAL + benchmark.”
Learning To Retrieve Prompts for In-Context Learning
Rubin, O., Herzig, J., & Berant, J. (2022) · Proceedings of the 2022 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies · doi:10.18653/v1/2022.naacl-main.191 · Cited by 374 · cited 1× · see citing works
“This has driven advances in example construction (Chan et al., 2022), mechanism exploration (Rubin et al., 2021), and reliability improvement (Gao and Das, 2024).”
Jiang, A. Q., Sablayrolles, A., Mensch, A., Bamford, C., Chaplot, D. S., Casas, D. D. L., Bressand, F., Lengyel, G., Lample, G., Saulnier, L., et al. (2023) · arXiv · doi:10.48550/arxiv.2310.06825 · Cited by 340 · see citing works
OpenCodeInterpreter: Integrating Code Generation with Execution and RefinementPreprint
Zheng, T., Zhang, G., Shen, T., et al. (2024) · Annual Meeting of the Association for Computational Linguistics · doi:10.48550/arxiv.2402.14658 · Cited by 322 · cited 1× · see citing works
“For instance, Agent-Coder (Huang et al., 2023) and OpenCodeInter-preter (Zheng et al., 2024) introduce frameworks that decompose coding problems into subtasks or leverage execution feedback and iterative refinement, tackling challenging programming problems more effectively.”
MapCoder: Multi-Agent Code Generation for Competitive Problem SolvingPreprint
Islam, M. A., Ali, M. E., & Parvez, M. R. (2024) · Annual Meeting of the Association for Computational Linguistics · doi:10.48550/arxiv.2405.11403 · Cited by 309 · cited 1× · see citing works
“…et al., 2023; Guo et al., 2024; Dubey et al., 2024), test case generation (Vikram et al., 2023; Lemieux et al., 2023; Schäfer et al., 2023), debugger interaction (Islam et al., 2024; Ho et al., 2024), and repository-level generation (Shrivastava et al., 2023; Bui et al., 2024; Wang et al., 2024a).”
CodaMosa: Escaping Coverage Plateaus in Test Generation with Pre-trained Large Language Models
Lemieux, C., Inala, J. P., Lahiri, S. K., & Sen, S. (2023) · 2023 IEEE/ACM 45th International Conference on Software Engineering (ICSE) · doi:10.1109/icse48619.2023.00085 · Cited by 306 · see citing works
The Impact of AI on Developer Productivity: Evidence from GitHub Copilot
Peng, S., Kalliamvakou, E., Cihon, P., & Demirer, M. (2023) · arXiv · doi:10.48550/arxiv.2302.06590 · Cited by 287 · cited 1× · see citing works
“In just a few months, LLMs exhibit zero-shot abilities in code completion (Peng et al., 2023), code generation (Roziere et al., 2023; Guo et al., 2024; Dubey et al., 2024), test case generation (Vikram et al., 2023; Lemieux et al., 2023; Schäfer et al., 2023), debugger interaction (Islam et al.,…”
Wang, X., Zhu, W., Saxon, M. S., & Wang, W. Y. (2023) · Neural Information Processing Systems · doi:10.52202/075280-0687 · Cited by 215 · cited 1× · see citing works
“Research focuses on optimizing example selection and ordering (Lu et al., 2021; Liu et al., 2021; Wang et al., 2024b; Peng et al., 2024), including using curriculum learning (Liu et al., 2024d) and comparing it with fine-tuning (Mosbach et al., 2023).”
Self-citationA Note on Shumailov et al. (2024): 'AI Models Collapse When Trained on Recursively Generated Data'
Borji, A. (2024) · arXiv.org · doi:10.48550/arxiv.2410.12954 · Cited by 212 · cited 1×
“Inspired by recent work showing foundation models learn more from data they cannot generate (Shumailov et al., 2024), our model-free ranker makes the following qualitative assumptions: (1) all few-shot examples will improve performance by disambiguating the nat-ural language prompt, and (2)…”
Structured Chain-of-Thought Prompting for Code Generation
Li, J., Li, G., Li, Y., & Jin, Z. G. (2024) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3690635 · Cited by 200 · cited 1× · see citing works
“Current LLMs exhibit code generation capabilities through improved model design (Guo et al., 2024), training (Roziere et al., 2023), and chain-of-thought (Li et al., 2023).”
InCoder: A Generative Model for Code Infilling and Synthesis
Fried, D., Aghajanyan, A., Lin, J., Wang, S., Wallace, E., Shi, F., Zhong, R., Yih, W.-T., Zettlemoyer, L., & Lewis, M. (2022) · arXiv · doi:10.48550/arxiv.2204.05999 · Cited by 187 · cited 1× · see citing works
“More specialized code LLMs, such as CodeT5 (Wang et al., 2021), In-Coder (Fried et al., 2022), DeepSeek-Coder (Guo et al., 2024), StarCoder2 (Lozhkov et al., 2024), Qwen2.”
DeepSeek-Coder: When the Large Language Model Meets Programming - The Rise of Code Intelligence
Guo, D., Zhu, Q., Yang, D., Xie, Z., Dong, K., Zhang, W., Chen, G., Bi, X., Wu, Y., Li, Y. K., et al. (2024) · arXiv · doi:10.48550/arxiv.2401.14196 · Cited by 180 · cited 4× · see citing works
“Current LLMs exhibit code generation capabilities through improved model design (Guo et al., 2024), training (Roziere et al., 2023), and chain-of-thought (Li et al., 2023).”
InfluentialHo, C.-T., Ren, H., & Khailany, B. (2024) · AAAI Conference on Artificial Intelligence · doi:10.48550/arxiv.2408.08927 · Cited by 155 · cited 1× · see citing works
“…et al., 2023; Guo et al., 2024; Dubey et al., 2024), test case generation (Vikram et al., 2023; Lemieux et al., 2023; Schäfer et al., 2023), debugger interaction (Islam et al., 2024; Ho et al., 2024), and repository-level generation (Shrivastava et al., 2023; Bui et al., 2024; Wang et al., 2024a).”
Large Language Models as Evolutionary Optimizers
Liu, S., Chen, C., Qu, X., Tang, K., & Ong, Y.-S. (2024) · IEEE Congress on Evolutionary Computation (CEC) · doi:10.1109/cec60901.2024.10611913 · Cited by 154 · see citing works
What Makes Good In-Context Examples for GPT-$3$?
Liu, J., Shen, D., Zhang, Y., Dolan, B., Carin, L., & Chen, W. (2021) · arXiv · doi:10.48550/arxiv.2101.06804 · Cited by 148 · see citing works
Generative Multimodal Models are In-Context Learners
Sun, Q., Cui, Y., Zhang, X., Zhang, F., Yu, Q., Wang, Y., Rao, Y., Liu, J., Huang, T., & Wang, X. (2024) · 2024 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) · doi:10.1109/cvpr52733.2024.01365 · Cited by 147 · see citing works
TabPFN: A Transformer That Solves Small Tabular Classification Problems in a SecondPreprint
Hollmann, N., Müller, S., Eggensperger, K., & Hutter, F. (2022) · arXiv (Cornell University) · doi:10.48550/arxiv.2207.01848 · Cited by 126 · cited 1× · see citing works
“…including in mathematics (Touvron et al., 2023; Luo et al., 2023), time series forecasting (Ansari et al., 2024; Woo et al., 2024; Das et al., 2023), tabular data understanding (Hegselmann et al., 2023; Hollmann et al., 2022; Xu et al., 2024), and multi-modal understanding (Liu et al., 2024a).”
Revisiting Demonstration Selection Strategies in In-Context LearningPreprint
Peng, K.-Q., Ding, L., Yuan, Y., Liu, X.-B., Zhang, M., Ouyang, Y., & Tao, D.-C. (2024) · Annual Meeting of the Association for Computational Linguistics · doi:10.48550/arxiv.2401.12087 · Cited by 109 · cited 1× · see citing works
“Research focuses on optimizing example selection and ordering (Lu et al., 2021; Liu et al., 2021; Wang et al., 2024b; Peng et al., 2024), including using curriculum learning (Liu et al., 2024d) and comparing it with fine-tuning (Mosbach et al., 2023).”
Chronos: Learning the Language of Time SeriesPreprint
Ansari, A. F., Stella, L., Türkmen, A. C., Zhang, X., Mercado, P., Shen, H., Shchur, O., Rangapuram, S. S., Arango, S. P., Kapoor, S., et al. (2024) · arXiv (Cornell University) · doi:10.48550/arxiv.2403.07815 · Cited by 85 · cited 1× · see citing works
“…capabilities outside of natural language processing, including in mathematics (Touvron et al., 2023; Luo et al., 2023), time series forecasting (Ansari et al., 2024; Woo et al., 2024; Das et al., 2023), tabular data understanding (Hegselmann et al., 2023; Hollmann et al., 2022; Xu et al.,…”
TabLLM: Few-shot Classification of Tabular Data with Large Language ModelsPreprint
Hegselmann, S., Buendia, A., Lang, H., Agrawal, M., Jiang, X., & Sontag, D. A. (2022) · arXiv (Cornell University) · doi:10.48550/arxiv.2210.10723 · Cited by 83 · see citing works
Few-shot Fine-tuning vs. In-context Learning: A Fair Comparison and Evaluation
Mosbach, M., Pimentel, T., Ravfogel, S., Klakow, D., & Elazar, Y. (2023) · arXiv · doi:10.48550/arxiv.2305.16938 · Cited by 81 · cited 1× · see citing works
“Research focuses on optimizing example selection and ordering (Lu et al., 2021; Liu et al., 2021; Wang et al., 2024b; Peng et al., 2024), including using curriculum learning (Liu et al., 2024d) and comparing it with fine-tuning (Mosbach et al., 2023).”
StarCoder 2 and The Stack v2: The Next Generation
Lozhkov, A., Li, R., Allal, L. B., Cassano, F., Lamy-Poirier, J., Tazi, N., Tang, A., Pykhtar, D., Liu, J., Wei, Y., et al. (2024) · arXiv · doi:10.48550/arxiv.2402.19173 · Cited by 74 · cited 1× · see citing works
“More specialized code LLMs, such as CodeT5 (Wang et al., 2021), In-Coder (Fried et al., 2022), DeepSeek-Coder (Guo et al., 2024), StarCoder2 (Lozhkov et al., 2024), Qwen2.”
Data Distributional Properties Drive Emergent In-Context Learning in Transformers
Chan, S., Santoro, A., Lampinen, A., Wang, J., Singh, A., Richemond, P., McClelland, J., & Hill, F. (2022) · Advances in Neural Information Processing Systems 35 · doi:10.52202/068431-1371 · Cited by 69 · see citing works
Qwen2.5-Coder Technical Report
Hui, B., Yang, J., Cui, Z., Yang, J., Liu, D., Zhang, L., Liu, T., Zhang, J., Yu, B., Lu, K., et al. (2024) · arXiv · doi:10.48550/arxiv.2409.12186 · Cited by 65 · cited 1× · see citing works
“5-coder (Hui et al., 2024), Magicoder (Wei et al., 2023), Artigenz-Coder (Agarwal et al., 2024) etc. have been fine-tuned specifically for programming tasks, showing improved performance in code completion and bug fixing.”
Can Large Language Models Write Good Property-Based Tests?Preprint
Vikram, V., Lemieux, C., Sunshine, J., & Padhye, R. (2023) · arXiv (Cornell University) · doi:10.48550/arxiv.2307.04346 · Cited by 39 · cited 1× · see citing works
“…in code completion (Peng et al., 2023), code generation (Roziere et al., 2023; Guo et al., 2024; Dubey et al., 2024), test case generation (Vikram et al., 2023; Lemieux et al., 2023; Schäfer et al., 2023), debugger interaction (Islam et al., 2024; Ho et al., 2024), and repository-level…”
Mixture of In-Context Prompters for Tabular PFNsPreprint
Xu, D., Cirit, O., Asadi, R., Sun, Y.-Z., & Wang, W. (2024) · arXiv.org · doi:10.48550/arxiv.2405.16156 · Cited by 37 · see citing works
Self-citationAgentCoder: Multi-Agent-based Code Generation with Iterative Testing and Optimisation
Huang, D., Zhang, J. M., Luck, M., Bu, Q., Qing, Y., & Cui, H. (2023) · arXiv · doi:10.48550/arxiv.2312.13010 · Cited by 34 · cited 2× · see citing works
“Specifically, state-of-the-art models (Guo et al., 2024; Huang et al., 2023) show minimal performance differences between different algorithms.”
WizardMath: Empowering Mathematical Reasoning for Large Language Models via Reinforced Evol-Instruct
Luo, H., Sun, Q., Xu, C., Zhao, P., Lou, J., Tao, C., Geng, X., Lin, Q., Chen, S., Tang, Y., et al. (2023) · arXiv · doi:10.48550/arxiv.2308.09583 · Cited by 33 · cited 1× · see citing works
“…et al., 2019) have demonstrated impressive capabilities outside of natural language processing, including in mathematics (Touvron et al., 2023; Luo et al., 2023), time series forecasting (Ansari et al., 2024; Woo et al., 2024; Das et al., 2023), tabular data understanding (Hegselmann et al.,…”
BigCodeBench: Benchmarking Code Generation with Diverse Function Calls and Complex Instructions
Zhuo, T. Y., Vu, M. C., Chim, J., Hu, H., Yu, W., Widyasari, R., Yusuf, I. N. B., Zhan, H., He, J., Paul, I., et al. (2024) · arXiv · doi:10.48550/arxiv.2406.15877 · Cited by 29 · see citing works
Repository-Level Prompt Generation for Large Language Models of Code
Shrivastava, D., Larochelle, H., & Tarlow, D. (2022) · arXiv · doi:10.48550/arxiv.2206.12839 · Cited by 27 · cited 1× · see citing works
“…et al., 2023; Guo et al., 2024; Dubey et al., 2024), test case generation (Vikram et al., 2023; Lemieux et al., 2023; Schäfer et al., 2023), debugger interaction (Islam et al., 2024; Ho et al., 2024), and repository-level generation (Shrivastava et al., 2023; Bui et al., 2024; Wang et al., 2024a).”
Customizing Language Model Responses with Contrastive In-Context Learning
Gao, X., & Das, K. (2024) · AAAI Conference on Artificial Intelligence · doi:10.48550/arxiv.2401.17390 · Cited by 27 · cited 1×
“This has driven advances in example construction (Chan et al., 2022), mechanism exploration (Rubin et al., 2021), and reliability improvement (Gao and Das, 2024).”
Magicoder: Empowering Code Generation with OSS-Instruct
Wei, Y., Wang, Z., Liu, J., Ding, Y., & Zhang, L. (2023) · arXiv · doi:10.48550/arxiv.2312.02120 · Cited by 27
Generating Unit Tests for Documentation
Nassif, M., Hernandez, A., Sridharan, A., & Robillard, M. P. (2022) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2021.3087087 · Cited by 22 · see citing works
Meta-in-context learning in large language models
Coda-Forno, J., Binz, M., Akata, Z., Botvinick, M., Wang, J., & Schulz, E. (2023) · Advances in Neural Information Processing Systems 36 · doi:10.52202/075280-2844 · Cited by 20
RAMBO: Enhancing RAG-based Repository-Level Method Body Completion
Bui, T.-D., Luu-Van, D.-T., Nguyen, T., Nguyen, T.-T., Nguyen, S., & Vo, H. (2024) · Information and Software Technology · doi:10.48550/arxiv.2409.15204 · Cited by 16 · cited 1×
“…et al., 2023; Guo et al., 2024; Dubey et al., 2024), test case generation (Vikram et al., 2023; Lemieux et al., 2023; Schäfer et al., 2023), debugger interaction (Islam et al., 2024; Ho et al., 2024), and repository-level generation (Shrivastava et al., 2023; Bui et al., 2024; Wang et al., 2024a).”
Learning To Retrieve Prompts for In-Context LearningPreprint
Rubin, O., Herzig, J., & Berant, J. (2021) · arXiv (Cornell University) · doi:10.48550/arxiv.2112.08633 · Cited by 11 · see citing works
Customizing Language Model Responses with Contrastive In-Context Learning
Gao, X., & Das, K. (2024) · Proceedings of the AAAI Conference on Artificial Intelligence · doi:10.1609/aaai.v38i16.29760 · Cited by 10 · see citing works
AcTracer: Active Testing of Large Language Model via Multi-Stage Sampling
Huang, Y., Song, J., Hu, Q., Juefei-Xu, F., & Ma, L. (2025) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3744340 · Cited by 6 · cited 1× · see citing works
“These efforts, along with frameworks like Modelizer (Mammadov et al., 2024) and AcTracer (Huang et al., 2024), underscore the importance of selecting informative input-output pairs for strong reasoning and generalization.”
Learning Program Behavioral Models from Synthesized Input–Output Pairs
Mammadov, T., Klakow, D., Koller, A., & Zeller, A. (2026) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3748720 · Cited by 5 · cited 1× · see citing works
“These efforts, along with frameworks like Modelizer (Mammadov et al., 2024) and AcTracer (Huang et al., 2024), underscore the importance of selecting informative input-output pairs for strong reasoning and generalization.”
Let’s learn step by step: Enhancing in-context learning ability with curriculum learning
Liu, Y., Liu, J., Shi, X., Cheng, Q., Huang, Y., & Lu, W. (2024) · arXiv · doi:10.48550/arxiv.2402.10738 · Cited by 4 · cited 1× · see citing works
“Research focuses on optimizing example selection and ordering (Lu et al., 2021; Liu et al., 2021; Wang et al., 2024b; Peng et al., 2024), including using curriculum learning (Liu et al., 2024d) and comparing it with fine-tuning (Mosbach et al., 2023).”
Inductive or Deductive? Rethinking the Fundamental Reasoning Abilities of LLMs
Cheng, K., Yang, J., Jiang, H., Wang, Z., Huang, B., Li, R., Li, S., Li, Z., Gao, Y., Li, X., et al. (2024) · arXiv · doi:10.48550/arxiv.2408.00114 · Cited by 4 · see citing works
Self-citationAcTracer: Active Testing of Large Language Model via Multi-Stage Sampling
Huang, Y., Song, J., Hu, Q., Juefei-Xu, F., & Ma, L. (2024) · arXiv · doi:10.48550/arxiv.2408.03573 · Cited by 2 · see citing works
Wang, J., He, Y., & Chen, H. (2024) · arXiv (Cornell University) · doi:10.48550/arxiv.2409.13122 · Cited by 1 · see citing works
Case2Code: Scalable Synthetic Data for Code Generation
Shao, Y., Li, L., Ma, Y., Li, P., Song, D., Cheng, Q., Li, S., Li, X., Wang, P., Guo, Q., et al. (2024) · arXiv · doi:10.48550/arxiv.2407.12504 · cited 1×
“To enhance inductive reasoning, researchers are developing techniques like Case2Code (Shao et al., 2024) and SolverLearner (Cheng et al., 2024) to evaluate and improve LLMs’ ability to learn from input-output examples.”
Learning Program Behavioral Models from Synthesized Input-Output Pairs
Mammadov, T., Klakow, D., Koller, A., & Zeller, A. (2024) · arXiv · doi:10.48550/arxiv.2407.08597
OpenAI, Achiam, J., Adler, S., Agarwal, S., Ahmad, L., Akkaya, I., Aleman, F. L., Almeida, D., Altenschmidt, J., Altman, S., et al. (2023) · arXiv · doi:10.48550/arxiv.2303.08774
Flagged first, then by citations
Research works printed but not linked: 4
- [31]31. Jia Li, Ge Li, Yongmin Li, and Zhi Jin. 2023. Struc- tured chain-of-thought prompting for code genera- tion. ACM Transactions on Software Engineering and Methodology.
- [48]48. Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, Ilya Sutskever, et al. 2019. Language models are unsupervised multitask learners. OpenAI blog, 1(8):9.
- [55]55. PMLR.
- [69]69. PMLR.
Cited by
Sorted by citations
AI-Powered Enterprise System for CRM and Inventory Management in Low-Digital MSMEs
Alabastro, Z. M., Lui, B. A., Ilagan, J. B., Ilagan, J. R., & Uy, G. A. (2026) · Lecture notes in computer science · doi:10.1007/978-3-032-30044-7_1
- Authors
- Xu, D., Xie, T., Xia, B., Li, H., Bai, Y., Sun, Y., & Wang, W.
- Affiliations
- University of California, Los Angeles (US)
- University of Illinois Urbana-Champaign (US)
- Nvidia (United Kingdom) (GB)
- Venue
- arXiv
- Publisher
- arXiv
- Published
- 2024
- ISSN
- 2331-8422 (ISSN-L)
- arXiv
- 2412.02906
- OpenAlex
- W4405089172
- Semantic Scholar
- 20a62371018946ac5e6ae5120a8baf9d17cfd5d0
- Cited by
- 3
- References
- 66
- Citations by year
- 2026: 1 · 2025: 2
- Type
- posted content
- Language
- en
- Open access
- green
- arxiv.org
- Locations
- arXiv (Cornell University) (submittedVersion)
- arXiv (Cornell University)
- Topics
- Physical Sciences › Computer Science › Information Systems › Software Engineering Research
- Physical Sciences › Computer Science › Artificial Intelligence › Topic Modeling
- Physical Sciences › Computer Science › Computer Science Applications › Teaching and Learning Programming
- Keywords
- few-shot learning, code generation, large language models, prompt engineering, program synthesis, CodeLlama
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Claims read by deepseek-v4.1-flash under definition version 3 (extract-v3) on 2026-10-10.
Classified by jev-1.13-20260917 (gold-guideline-v0.2) on 2026-10-10.
Cited sources are checked by gpt-6-sol.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review