mlsanityData to 7 Oct 2026

Text-to-Code Generation with Modality-relative Pre-training

arXiv 2402.05783 ↗First posted 8 Feb 2024cs.CLcited by 1

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2014Adam: A Method for Stochastic Optimizationcited by 36,960
  4. 2020Language Models are Few-Shot Learnerscited by 32,199
  5. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  6. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  7. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  8. 2020End-to-End Object Detection with Transformerscited by 7,384
  9. 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
  10. 2019Unsupervised Cross-lingual Representation Learning at Scalecited by 3,907
  11. 2021Program Synthesis with Large Language Modelscited by 3,509
  12. 2019The Curious Case of Neural Text Degenerationcited by 2,881
34 more
  1. 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
  2. 2023Code Llama: Open Foundation Models for Codecited by 2,105
  3. 2018SentencePiece: A simple and language independent subword tokenizer and detokenizer for Neural Text Processingcited by 1,973
  4. 2019BioBERT: a pre-trained biomedical language representation model for biomedical text miningcited by 1,935
  5. 2022Competition-Level Code Generation with AlphaCodecited by 1,427
  6. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
  7. 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 890
  8. 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 876
  9. 2023StarCoder: may the source be with you!cited by 790
  10. 2019Unified Language Model Pre-training for Natural Language Understanding and Generationcited by 668
  11. 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 600
  12. 2020Connecting the Dots: Multivariate Time Series Forecasting with Graph Neural Networkscited by 563
  13. 2022InCoder: A Generative Model for Code Infilling and Synthesiscited by 492
  14. 2019ClinicalBERT: Modeling Clinical Notes and Predicting Hospital Readmissioncited by 487
  15. 2020CodeBLEU: a Method for Automatic Evaluation of Code Synthesiscited by 468
  16. 2019FinBERT: Financial Sentiment Analysis with Pre-trained Language Modelscited by 378
  17. 2022UniXcoder: Unified Cross-Modal Pre-training for Code Representationcited by 355
  18. 2022The Stack: 3 TB of permissively licensed source codecited by 354
  19. 2021Pre-Trained Models: Past, Present and Futurecited by 319
  20. 2023CodeGeeX: A Pre-Trained Model for Code Generation with Multilingual Benchmarking on HumanEval-Xcited by 294
  21. 2021When Vision Transformers Outperform ResNets without Pre-training or Strong Data Augmentationscited by 259
  22. 2022Efficient Training of Language Models to Fill in the Middlecited by 248
  23. 2020UniLMv2: Pseudo-Masked Language Models for Unified Language Model Pre-Trainingcited by 204
  24. 2019SPoC: Search-based Pseudocode to Codecited by 176
  25. 2023SantaCoder: don't reach for the stars!cited by 169
  26. 2020Deep Transformer Models for Time Series Forecasting: The Influenza Prevalence Casecited by 129
  27. 2021Jigsaw: Large Language Models meet Program Synthesiscited by 103
  28. 2022CERT: Continual Pre-Training on Sketches for Library-Oriented Code Generationcited by 87
  29. 2020PyMT5: multi-mode translation of natural language and Python code with transformerscited by 80
  30. 2021CoTexT: Multi-task Learning with Code-Text Transformercited by 61
  31. 2022PanGu-Coder: Program Synthesis with Function-Level Language Modelingcited by 47
  32. 2019Selfie: Self-supervised Pretraining for Image Embeddingcited by 46
  33. 2021TreeBERT: A Tree-Based Pre-Trained Model for Programming Languagecited by 40
  34. 2019Learning and Evaluating Contextual Embedding of Source Codecited by 33

Built on by

Cited by year

Citing papers per year: 2025: 1.

1 paper.