{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/mpcoder-multi-user-personalized-code","title":"MPCODER: Multi-user Personalized Code Generator with Explicit and Implicit Style Representation Learning","arxiv_id":"2406.17255","date":"2024-06-25","proceeding":null,"authors":["Zhenlong Dai","Chang Yao","WenKang Han","Ying Yuan","Zhipeng Gao","Jingyuan Chen"],"abstract":"Large Language Models (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.","url_abs":"https://arxiv.org/abs/2406.17255v2","url_pdf":"https://arxiv.org/pdf/2406.17255v2.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"mpcoder-multi-user-personalized-code","repo_url":"https://github.com/455849940/MPCoder","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"code-generation","task_name":"Code Generation"},{"task_slug":"contrastive-learning","task_name":"Contrastive Learning"},{"task_slug":"representation-learning","task_name":"Representation Learning"}],"methods":[{"method_slug":"adapter","method_name":"Adapter"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2406.17255","atlas_url":"https://app.syntology.ai/?focus=2406.17255","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2406.17255"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"deterministic:regex_extraction","url":"https://github.com/455849940/MPCoder","reach":null}],"summary":{"ran":2,"unverified":2},"by_repo_kind":{"official":{"samples":4,"ran":2,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":4,"samples":[{"code_sha256_prefix":"1fda20b6bb18abdc","entry":"ContrastLoss","repo":"455849940/MPCoder","repo_kind":"official","path":"StylePrompt/FeatureModel.py","file_url":"https://github.com/455849940/MPCoder/blob/HEAD/StylePrompt/FeatureModel.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"1fda20b6bb18abdc"}},{"code_sha256_prefix":"9926485162b90eb9","entry":"MLP","repo":"455849940/MPCoder","repo_kind":"official","path":"StylePrompt/FeatureModel.py","file_url":"https://github.com/455849940/MPCoder/blob/HEAD/StylePrompt/FeatureModel.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"9926485162b90eb9"}},{"code_sha256_prefix":"a56ec68c419378b9","entry":"PreferFeatureCodeLlama","repo":"455849940/MPCoder","repo_kind":"official","path":"StylePrompt/FeatureModel.py","file_url":"https://github.com/455849940/MPCoder/blob/HEAD/StylePrompt/FeatureModel.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"a56ec68c419378b9"}},{"code_sha256_prefix":"7f57f8a4c7350841","entry":"gather_all_with_local_grad","repo":"455849940/MPCoder","repo_kind":"official","path":"StylePrompt/FeatureModel.py","file_url":"https://github.com/455849940/MPCoder/blob/HEAD/StylePrompt/FeatureModel.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"7f57f8a4c7350841"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}