Priority Sampling of Large Language Models for Compilers
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
- 2023GPT-4 Technical Reportcited by 18,132
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2019The Curious Case of Neural Text Degenerationcited by 2,881
- 2023Code Llama: Open Foundation Models for Codecited by 2,105
- 2022Competition-Level Code Generation with AlphaCodecited by 1,427
- 2018Hierarchical Neural Story Generationcited by 1,182
- 2019Neural Text Generation with Unlikelihood Trainingcited by 489
- 2016Diverse Beam Search: Decoding Diverse Solutions from Neural Sequence Modelscited by 299
- 2020Unsupervised Translation of Programming Languagescited by 262
- 2019Stochastic Beams and Where to Find Them: The Gumbel-Top-k Trick for Sampling Sequences Without Replacementcited by 205
- 2023Self-Evaluation Guided Beam Search for Reasoningcited by 195
- 2023Efficient Guided Generation for Large Language Modelscited by 192
12 more
- 2022Practical Program Repair in the Era of Large Pre-trained Language Modelscited by 133
- 2022A Survey of Controllable Text Generation using Transformer-based Pre-trained Language Modelscited by 128
- 2022Large Language Models are Zero-Shot Fuzzers: Fuzzing Deep-Learning Libraries via Large Language Modelscited by 102
- 2023Large Language Models for Compiler Optimizationcited by 52
- 2023Conformal Nucleus Samplingcited by 32
- 2020Incremental Sampling Without Replacement for Sequence Modelscited by 23
- 2021On Sampling Top-K Recommendation Evaluationcited by 20
- 2016Noisy Parallel Approximate Decoding for Conditional Recurrent Language Modelcited by 18
- 2021Determinantal Beam Searchcited by 18
- 2022Arithmetic Sampling: Parallel Diverse Decoding for Large Language Modelscited by 18
- 2021Implicit Unlikelihood Training: Improving Neural Text Generation with Reinforcement Learningcited by 16
- 2021Learning C to x86 Translation: An Experiment in Neural Compilationcited by 12
Built on by
Citing papers per year: 2024: 3; 2025: 3; 2026: 2.
8 papers.
- 2025KernelBench: Can LLMs Write Efficient GPU Kernels?cited by 206
- 2024Meta Large Language Model Compiler: Foundation Models of Compiler Optimizationcited by 39
- 2024Unused information in token probability distribution of generative LLM: improving LLM reading comprehension through calculation of expected valuescited by 4
- 2024Quasi-random Multi-Sample Inference for Large Language Modelscited by 3
- 2026Learning Adaptive LLM Decodingcited by 2
- 2025Rethinking LLM-Based RTL Code Optimization Via Timing Logic Metamorphosiscited by 1
- 2025Iterative Learning of Computable Phenotypes for Treatment Resistant Hypertension using Large Language Modelscited by 0
- 2026The New Compiler Stack: A Survey on the Synergy of LLMs and Compilerscited by 0
- 2026Learning Adaptive LLM Decoding10 Mar 2026
- 2026The New Compiler Stack: A Survey on the Synergy of LLMs and Compilers5 Jan 2026
- 2025Iterative Learning of Computable Phenotypes for Treatment Resistant Hypertension using Large Language Models7 Aug 2025
- 2025Rethinking LLM-Based RTL Code Optimization Via Timing Logic Metamorphosis22 Jul 2025
- 2025KernelBench: Can LLMs Write Efficient GPU Kernels?14 Feb 2025
- 2024Quasi-random Multi-Sample Inference for Large Language Models9 Nov 2024
- 2024Meta Large Language Model Compiler: Foundation Models of Compiler Optimization27 Jun 2024
- 2024Unused information in token probability distribution of generative LLM: improving LLM reading comprehension through calculation of expected values11 Jun 2024