Stochastic Code Generation

Swapnil Sharma, Nikita Anand, Kranthi Kiran G.
4/14/2023
cs.CLcs.LG

No confident code implementation found for this paper. 5 possible matches can be shown below.

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 5 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{sharma2023stochastic,
  title  = {Stochastic Code Generation},
  author = {Swapnil Sharma and Nikita Anand and Kranthi Kiran G.},
  year   = {2023},
  eprint = {2304.08243},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2304.08243v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2304.08243.svg)](https://codeofpaper.com/paper/2304.08243)

Discussion