Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
102 tokens/sec
GPT-4o
59 tokens/sec
Gemini 2.5 Pro Pro
43 tokens/sec
o3 Pro
6 tokens/sec
GPT-4.1 Pro
50 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

MPCODER: Multi-user Personalized Code Generator with Explicit and Implicit Style Representation Learning (2406.17255v2)

Published 25 Jun 2024 in cs.CL

Abstract: LLMs have demonstrated great potential for assisting developers in their daily development. However, most research focuses on generating correct code, how to use LLMs to generate personalized code has seldom been investigated. To bridge this gap, we proposed MPCoder (Multi-user Personalized Code Generator) to generate personalized code for multiple users. To better learn coding style features, we utilize explicit coding style residual learning to capture the syntax code style standards and implicit style learning to capture the semantic code style conventions. We train a multi-user style adapter to better differentiate the implicit feature representations of different users through contrastive learning, ultimately enabling personalized code generation for multiple users. We further propose a novel evaluation metric for estimating similarities between codes of different coding styles. The experimental results show the effectiveness of our approach for this novel task.

User Edit Pencil Streamline Icon: https://streamlinehq.com
Authors (6)
  1. Zhenlong Dai (3 papers)
  2. Chang Yao (17 papers)
  3. WenKang Han (6 papers)
  4. Ying Yuan (95 papers)
  5. Zhipeng Gao (35 papers)
  6. Jingyuan Chen (41 papers)
Citations (3)