mlsanityData to 7 Oct 2026

Priority Sampling of Large Language Models for Compilers

arXiv 2402.18734 ↗First posted 28 Feb 2024cs.LG cs.CL cs.PFcited by 8

Not on the map. Why?

Abstract (arXiv)

Large language models show great potential in generating and optimizing code. Widely used sampling methods such as Nucleus Sampling increase the diversity of generation but often produce repeated samples for low temperatures and incoherent samples for high temperatures. Furthermore, the temperature coefficient has to be tuned for each task, limiting its usability. We present Priority Sampling, a simple and deterministic sampling technique that produces unique samples ordered by the model's confidence. Each new sample expands the unexpanded token with the highest probability in the augmented search tree. Additionally, Priority Sampling supports generation based on regular expression that provides a controllable and structured exploration process. Priority Sampling outperforms Nucleus Sampling for any number of samples, boosting the performance of the original model from 2.87% to 5% improvement over -Oz. Moreover, it outperforms the autotuner used for the generation of labels for the training of the original model in just 30 samples.

Key facts. Cited by 8 papers in the map (data through 7 Oct 2026). Builds on 24 of its 31 references that are in the map. First posted on arXiv 28 Feb 2024.

Builds on

24 of 31 references.

References · 24

  1. 2023GPT-4 Technical Reportcited by 18,132
  2. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  3. 2019The Curious Case of Neural Text Degenerationcited by 2,881
  4. 2023Code Llama: Open Foundation Models for Codecited by 2,105
  5. 2022Competition-Level Code Generation with AlphaCodecited by 1,427
  6. 2018Hierarchical Neural Story Generationcited by 1,182
  7. 2019Neural Text Generation with Unlikelihood Trainingcited by 489
  8. 2016Diverse Beam Search: Decoding Diverse Solutions from Neural Sequence Modelscited by 299
  9. 2020Unsupervised Translation of Programming Languagescited by 262
  10. 2019Stochastic Beams and Where to Find Them: The Gumbel-Top-k Trick for Sampling Sequences Without Replacementcited by 205
  11. 2023Self-Evaluation Guided Beam Search for Reasoningcited by 195
  12. 2023Efficient Guided Generation for Large Language Modelscited by 192
12 more
  1. 2022Practical Program Repair in the Era of Large Pre-trained Language Modelscited by 133
  2. 2022A Survey of Controllable Text Generation using Transformer-based Pre-trained Language Modelscited by 128
  3. 2022Large Language Models are Zero-Shot Fuzzers: Fuzzing Deep-Learning Libraries via Large Language Modelscited by 102
  4. 2023Large Language Models for Compiler Optimizationcited by 52
  5. 2023Conformal Nucleus Samplingcited by 32
  6. 2020Incremental Sampling Without Replacement for Sequence Modelscited by 23
  7. 2021On Sampling Top-K Recommendation Evaluationcited by 20
  8. 2016Noisy Parallel Approximate Decoding for Conditional Recurrent Language Modelcited by 18
  9. 2021Determinantal Beam Searchcited by 18
  10. 2022Arithmetic Sampling: Parallel Diverse Decoding for Large Language Modelscited by 18
  11. 2021Implicit Unlikelihood Training: Improving Neural Text Generation with Reinforcement Learningcited by 16
  12. 2021Learning C to x86 Translation: An Experiment in Neural Compilationcited by 12

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 3; 2025: 3; 2026: 2.

8 papers.