ResearchPod Summary
Code clone detection is currently fragmented, with models specialized for specific languages or clone types (e.g., cross-language or AI-generated) failing when applied to out-of-distribution data. Training a single, unified model is often impractical due to data privacy, high computational costs, or the need for simultaneous access to all training corpora. This paper investigates whether post-hoc model merging—combining trained model checkpoints without retraining—can unify these specialists into a single, high-performing detector.
The authors evaluate five parameter-level merging techniques (Task Arithmetic, TIES, DARE-TIES, WUDI, and PCB) and architecture-level layer stitching. They test these methods across four pre-trained code models (UniXcoder, CodeBERT, and GraphCodeBERT) and three benchmarks, including BigCloneBench (same-language), CLCDSA (cross-language), and GPTCloneBench (AI-generated clones).
This work provides a practical, training-data-free recipe for software engineering teams to consolidate their detection tools. By enabling the creation of a unified, cross-domain clone detector from existing specialist checkpoints, it eliminates the need for expensive retraining cycles and allows for the deployment of a single, robust model that handles diverse clone types effectively.
AI-generated third-party summary by ResearchPod. Not official content or an endorsement by the paper authors or affiliated organizations.