Reproduce “Neural Models for Source Code Synthesis and Completion” on OpenResearch
Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Mitodru Niyogi
Mitodru Niyogi's Master's thesis, conducted at Ruprecht-Karls-Universität Heidelberg in collaboration with SAP, develops and evaluates advanced neural models for Natural Language to Code (NL2Code) translation and code completion using a sequence-based approach. The fine-tuned Seq2Seq-BART model, pre-trained on mined data and augmented, achieved a BLEU-4 score of 27.8235% for NL2Code, surpassing the prior state-of-the-art TranX by 10.82% and producing a higher proportion of syntactically valid code.
Key insights
- Direct token sequence generation using advanced Transformer-based models (like BART) can outperform complex AST-based semantic parsers (like TranX) for NL2Code, simplifying the architecture while improving performance and syntactic correctness.
- Transfer learning (pretraining on large mined data and fine-tuning) and data augmentation via back-translation are crucial strategies for overcoming data scarcity and achieving state-of-the-art results in NL2Code.
- Pre-trained general-purpose NLP models (like RoBERTa and BART) can be successfully adapted and trained on programming languages to achieve deep contextual understanding for tasks like code completion.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.