Developer Tools

MergeSE combines coding AI models in seconds without retraining

Merge two 124M-parameter models on CPU in under 5 seconds...

Deep Dive

Fine-tuned code models often become narrow specialists, degrading sharply when faced with out-of-distribution (OOD) data. In the paper's clone-detection setting, a model trained on same-language clones dropped 71% F1 on cross-language clones, while multi-task training fell to 0.151 F1 on unseen AI-generated clones. Post-hoc model merging offers a fix, recovering 93% of multi-task performance without any training data while generalizing 4x better to unseen clone types. However, until now there was no practical tool for software engineering (SE) researchers to diagnose checkpoint compatibility, merge specialists, validate results, and export models.

MergeSE, accepted at ASE 2026, fills that gap. It is an open-source command-line and web tool that works with HuggingFace encoder checkpoints. The tool provides five operations—tasks, inspect, merge, evaluate, and export—and supports five merging algorithms: TIES, DARE-TIES, Wudi, PCB, and averaging. It also detects cross-task classification-head mismatches, produces seedable deterministic outputs, and includes bundled benchmark samples for smoke testing. A full merge of two 124M-parameter checkpoints completes in under 5 seconds on CPU. End-to-end validation confirms MergeSE-produced checkpoints match reference implementations and recover cross-domain performance from specialists. The registry covers nine SE task types, including vulnerability detection, defect prediction, and code-smell detection, making it broadly useful beyond clone detection.

Key Points
  • Achieves 93% of multi-task performance without training data, with 4x better generalization to unseen clone types
  • Merges two 124M-parameter checkpoints in under 5 seconds on CPU using TIES, DARE-TIES, Wudi, PCB, or averaging
  • Open-source CLI and web tool supports 9 SE task types (vulnerability detection, defect prediction, code-smell detection) with deterministic outputs

Why It Matters

Lets teams combine specialized code models without retraining, saving compute and improving robustness across software engineering tasks.

📬 Get the top 10 AI stories daily