Stochastic Code Generation
Not on the map. Why?
Abstract (arXiv)
Large language models pre-trained for code generation can generate high-quality short code but often struggle with generating coherent long code and understanding higher-level or system-level specifications. This issue is also observed in language modeling for long text generation, and one proposed solution is the use of a latent stochastic process. This approach involves generating a document plan and then producing text that is consistent with it. In this study, we investigate whether this technique can be applied to code generation to improve coherence. We base our proposed encoder and decoder on the pre-trained GPT-2 based CodeParrot model and utilize the APPS dataset for training. We evaluate our results using the HumanEval benchmark and observe that the modified Time Control model performs similarly to CodeParrot on this evaluation.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 11 of its 14 references that are in the map. First posted on arXiv 14 Apr 2023.
Builds on
11 of 14 references.
References · 11
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2019HuggingFace's Transformers: State-of-the-art Natural Language Processingcited by 2,201
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
- 2021Measuring Coding Challenge Competence With APPScited by 879
- 2020CodeBLEU: a Method for Automatic Evaluation of Code Synthesiscited by 468
- 2018Data-to-Text Generation with Content Selection and Planningcited by 106
- 2014Learning to Executecited by 105
- 2020PyMT5: multi-mode translation of natural language and Python code with transformerscited by 80
- 2020Limitations of Autoregressive Models and Their Alternativescited by 54
- 2022Language modeling via stochastic processescited by 18
- 2019Learning Compositional Neural Programs with Recursive Tree Search and Planningcited by 17
Built on by
Not cited yet.