mlsanityData to 14 Oct 2026

Exploring and Evaluating Personalized Models for Code Generation

arXiv 2208.13928 ↗First posted 29 Aug 2022cs.SE cs.CL cs.LGcited by 2

Not on the map. Why?

Abstract (arXiv)

Large Transformer models achieved the state-of-the-art status for Natural Language Understanding tasks and are increasingly becoming the baseline model architecture for modeling source code. Transformers are usually pre-trained on large unsupervised corpora, learning token representations and transformations relevant to modeling generally available text, and are then fine-tuned on a particular downstream task of interest. While fine-tuning is a tried-and-true method for adapting a model to a new domain -- for example, question-answering on a given topic -- generalization remains an on-going challenge. In this paper, we explore and evaluate transformer model fine-tuning for personalization. In the context of generating unit tests for Java methods, we evaluate learning to personalize to a specific software project using several personalization techniques. We consider three key approaches: (i) custom fine-tuning, which allows all the model parameters to be tuned; (ii) lightweight fine-tuning, which freezes most of the model's parameters, allowing tuning of the token embeddings and softmax layer only or the final layer alone; (iii) prefix tuning, which keeps model parameters frozen, but optimizes a small project-specific prefix vector. Each of these techniques offers a trade-off in total compute cost and predictive performance, which we evaluate by code and task-specific metrics, training time, and total computational operations. We compare these fine-tuning strategies for code generation and discuss the potential generalization and cost benefits of each in various deployment scenarios.

Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 19 of its 32 references that are in the map. First posted on arXiv 29 Aug 2022.

Builds on

19 of 32 references.

References · 19

  1. 2017Attention Is All You Needcited by 60,361
  2. 2020Scaling Laws for Neural Language Modelscited by 6,586
  3. 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,915
  4. 2021Program Synthesis with Large Language Modelscited by 3,637
  5. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,310
  6. 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 654
  7. 2020IntelliCode Compose: Code Generation Using Transformercited by 227
  8. 2018code2seq: Generating Sequences from Structured Representations of Codecited by 179
  9. 2021Pretrained Transformers as Universal Computation Enginescited by 162
  10. 2020Unit Test Case Generation with Transformers and Focal Contextcited by 118
  11. 2018Improving Automatic Source Code Summarization via Deep Reinforcement Learningcited by 100
  12. 2020Retrieval-Augmented Generation for Code Summarization via Hybrid GNNcited by 89
7 more
  1. 2020PyMT5: multi-mode translation of natural language and Python code with transformerscited by 80
  2. 2018Generative Code Modeling with Graphscited by 60
  3. 2019Pythia: AI-assisted Code Completion Systemcited by 55
  4. 2019Personalizing ASR for Dysarthric and Accented Speech with Limited Datacited by 45
  5. 2018Personalized Language Model for Query Auto-Completioncited by 25
  6. 2021Generating Bug-Fixes Using Pretrained Transformerscited by 18
  7. 2018Adapting Neural Text Classification for Improved Software Categorizationcited by 7

Built on by

Cited by year

Citing papers per year: 2023: 1; 2024: 1.

2 papers.