Text-to-Code Generation with Modality-relative Pre-training
Not on the map. Why?
Abstract (arXiv)
Large pre-trained language models have recently been expanded and applied to programming language tasks with great success, often through further pre-training of a strictly-natural language model--where training sequences typically contain both natural and (linearised) programming language. Such approaches effectively map both modalities of the sequence into the same embedding space. However, programming language keywords (e.g. "while") often have very strictly defined semantics. As such, transfer learning from their natural language usage may not necessarily be beneficial to their code application and vise versa. Assuming an already pre-trained language model, in this work we investigate how sequence tokens can be adapted and represented differently, depending on which modality they belong to, and to the ultimate benefit of the downstream task. We experiment with separating embedding spaces between modalities during further model pre-training with modality-relative training objectives. We focus on text-to-code generation and observe consistent improvements across two backbone models and two test sets, measuring pass@k and a novel incremental variation.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 46 of its 59 references that are in the map. First posted on arXiv 8 Feb 2024.
Builds on
46 of 59 references.
References · 46
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2020End-to-End Object Detection with Transformerscited by 7,384
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
- 2019Unsupervised Cross-lingual Representation Learning at Scalecited by 3,907
- 2021Program Synthesis with Large Language Modelscited by 3,509
- 2019The Curious Case of Neural Text Degenerationcited by 2,881
34 more
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
- 2023Code Llama: Open Foundation Models for Codecited by 2,105
- 2018SentencePiece: A simple and language independent subword tokenizer and detokenizer for Neural Text Processingcited by 1,973
- 2019BioBERT: a pre-trained biomedical language representation model for biomedical text miningcited by 1,935
- 2022Competition-Level Code Generation with AlphaCodecited by 1,427
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
- 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 890
- 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 876
- 2023StarCoder: may the source be with you!cited by 790
- 2019Unified Language Model Pre-training for Natural Language Understanding and Generationcited by 668
- 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 600
- 2020Connecting the Dots: Multivariate Time Series Forecasting with Graph Neural Networkscited by 563
- 2022InCoder: A Generative Model for Code Infilling and Synthesiscited by 492
- 2019ClinicalBERT: Modeling Clinical Notes and Predicting Hospital Readmissioncited by 487
- 2020CodeBLEU: a Method for Automatic Evaluation of Code Synthesiscited by 468
- 2019FinBERT: Financial Sentiment Analysis with Pre-trained Language Modelscited by 378
- 2022UniXcoder: Unified Cross-Modal Pre-training for Code Representationcited by 355
- 2022The Stack: 3 TB of permissively licensed source codecited by 354
- 2021Pre-Trained Models: Past, Present and Futurecited by 319
- 2023CodeGeeX: A Pre-Trained Model for Code Generation with Multilingual Benchmarking on HumanEval-Xcited by 294
- 2021When Vision Transformers Outperform ResNets without Pre-training or Strong Data Augmentationscited by 259
- 2022Efficient Training of Language Models to Fill in the Middlecited by 248
- 2020UniLMv2: Pseudo-Masked Language Models for Unified Language Model Pre-Trainingcited by 204
- 2019SPoC: Search-based Pseudocode to Codecited by 176
- 2023SantaCoder: don't reach for the stars!cited by 169
- 2020Deep Transformer Models for Time Series Forecasting: The Influenza Prevalence Casecited by 129
- 2021Jigsaw: Large Language Models meet Program Synthesiscited by 103
- 2022CERT: Continual Pre-Training on Sketches for Library-Oriented Code Generationcited by 87
- 2020PyMT5: multi-mode translation of natural language and Python code with transformerscited by 80
- 2021CoTexT: Multi-task Learning with Code-Text Transformercited by 61
- 2022PanGu-Coder: Program Synthesis with Function-Level Language Modelingcited by 47
- 2019Selfie: Self-supervised Pretraining for Image Embeddingcited by 46
- 2021TreeBERT: A Tree-Based Pre-Trained Model for Programming Languagecited by 40
- 2019Learning and Evaluating Contextual Embedding of Source Codecited by 33
Built on by
Citing papers per year: 2025: 1.
1 paper.