Promise and Peril of Collaborative Code Generation Models: Balancing Effectiveness and Memorization
Not on the map. Why?
Abstract (arXiv)
In the rapidly evolving field of machine learning, training models with datasets from various locations and organizations presents significant challenges due to privacy and legal concerns. The exploration of effective collaborative training settings capable of leveraging valuable knowledge from distributed and isolated datasets is increasingly crucial. This study investigates key factors that impact the effectiveness of collaborative training methods in code next-token prediction, as well as the correctness and utility of the generated code, demonstrating the promise of such methods. Additionally, we evaluate the memorization of different participant training data across various collaborative training settings, including centralized, federated, and incremental training, highlighting their potential risks in leaking data. Our findings indicate that the size and diversity of code datasets are pivotal factors influencing the success of collaboratively trained code models. We show that federated learning achieves competitive performance compared to centralized training while offering better data protection, as evidenced by lower memorization ratios in the generated code. However, federated learning can still produce verbatim code snippets from hidden training data, potentially violating privacy or copyright. Our study further explores effectiveness and memorization patterns in incremental learning, emphasizing the sequence in which individual participant datasets are introduced. We also identify cross-organizational clones as a prevalent challenge in both centralized and federated learning scenarios. Our findings highlight the persistent risk of data leakage during inference, even when training data remains unseen. We conclude with recommendations for practitioners and researchers to optimize multisource datasets, propelling cross-organizational collaboration forward.
Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Builds on 21 of its 58 references that are in the map. First posted on arXiv 18 Sep 2024.
Builds on
21 of 58 references.
References · 21
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
- 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,332
- 2023StarCoder: may the source be with you!cited by 790
- 2019Large Scale Incremental Learningcited by 727
- 2018Federated Learning for Mobile Keyboard Predictioncited by 565
- 2019Federated Learning with Differential Privacy: Algorithms and Performance Analysiscited by 528
- 2024StarCoder 2 and The Stack v2: The Next Generationcited by 484
- 2022A Systematic Evaluation of Large Language Models of Codecited by 360
- 2022CERT: Continual Pre-Training on Sketches for Library-Oriented Code Generationcited by 87
- 2023Impact of Code Language Models on Automated Program Repaircited by 85
- 2023Bag of Tricks for Training Data Extraction from Language Modelscited by 67
- 2021CoProtector: Protect Open-Source Code against Unauthorized Training Usage with Data Poisoningcited by 39
9 more
- 2023Unveiling Memorization in Code Modelscited by 29
- 2024Robustness, Security, Privacy, Explainability, Efficiency, and Usability of Large Language Models for Codecited by 26
- 2021Memorization and Generalization in Neural Code Intelligence Modelscited by 17
- 2023Your Code Secret Belongs to Me: Neural Code Completion Tools Can Memorize Hard-Coded Credentialscited by 17
- 2020A Systematic Literature Review on Federated Machine Learning: From A Software Engineering Perspectivecited by 14
- 2022To What Extent do Deep Learning-based Code Recommenders Generate Predictions by Cloning Code from the Training Set?cited by 11
- 2024Incentives in Private Collaborative Machine Learningcited by 10
- 2023Multilingual Code Co-Evolution Using Large Language Modelscited by 9
- 2023FedCSD: A Federated Learning Based Approach for Code-Smell Detectioncited by 3
Built on by
Citing papers per year: 2024: 1; 2025: 2; 2026: 1.
4 papers.
- 2024Evaluating Software Development Agents: Patch Patterns, Code Quality, and Issue Complexity in Real-World GitHub Scenarioscited by 16
- 2025Beyond Final Code: A Process-Oriented Error Analysis of Software Development Agents in Real-World GitHub Scenarioscited by 14
- 2026Are Performance-Optimization Benchmarks Reliably Measuring Coding Agents?cited by 1
- 2025Effective Code Membership Inference for Code Completion Models via Adversarial Promptscited by 0
- 2026Are Performance-Optimization Benchmarks Reliably Measuring Coding Agents?1 Jul 2026
- 2025Effective Code Membership Inference for Code Completion Models via Adversarial Prompts19 Nov 2025
- 2025Beyond Final Code: A Process-Oriented Error Analysis of Software Development Agents in Real-World GitHub Scenarios16 Mar 2025
- 2024Evaluating Software Development Agents: Patch Patterns, Code Quality, and Issue Complexity in Real-World GitHub Scenarios16 Oct 2024