Skip to content
Preprint

MergeSE: Post-Hoc Model Merging for Software Engineering Tasks Without Retraining

Aug 2026 · 1 citation · 19 references
Computer Science

TL;DR

An open-source CLI and web tool for training-free model merging of HuggingFace encoder checkpoints, motivated by OOD generalization in clone detection, which supports SE classification workflows more broadly through a built-in registry of nine task types, including vulnerability detection, defect prediction, and code-smell detection.

Abstract

Fine-tuned code models often behave as domain specialists and can degrade sharply under distribution shift: in our clone-detection setting, a model trained on same-language clones drops 71\% F1 on cross-language clones, while multi-task training falls to 0.151 F1 on unseen AI-generated clones. Our companion study shows that post-hoc model merging can address this fragmentation, achieving 93\% of multi-task performance without training data while generalizing 4$\times$ better to unseen clone types. However, no practical tool exists that lets SE researchers diagnose checkpoint compatibility, merge specialists, validate results on SE benchmarks, and export models for deployment. We present \textbf{MergeSE}, an open-source CLI and web tool for training-free model merging of HuggingFace encoder checkpoints. While motivated by OOD generalization in clone detection, MergeSE supports SE classification workflows more broadly through a built-in registry of nine task types, including vulnerability detection, defect prediction, and code-smell detection. MergeSE provides five operations: \textit{tasks}, \textit{inspect}, \textit{merge}, \textit{evaluate}, and \textit{export}. It supports five merging algorithms, including TIES, DARE-TIES, Wudi, PCB, and averaging; detects cross-task classification-head mismatches; produces seedable deterministic outputs; and includes bundled benchmark samples for smoke-test reproduction. A full merge of two 124M-parameter checkpoints completes in under 5 seconds on CPU. End-to-end validation confirms that MergeSE-produced checkpoints match reference implementations and recover cross-domain performance from domain-specific specialists. The tool is available online at https://mergese.usask.ca, and the development repository is at https://github.com/srlabUsask/MergeSE.

View source

Similar papers

Preprint Aug 2026

UpgradeBench: A Decision-Centric Benchmark for Upgrading Fine-Tuned LLM Specialists

This work presents UpgradeBench, a decision-driven longitudinal benchmark covering four consecutive Qwen releases, one continuation checkpoint, six tasks, and two model sizes, augmented by OLMo checkpoints with known training lineage, and disentangles three core questions: whether a new checkpoint improves fixed-recipe...

Yefei Chen, Wei-Ning Zhang · 0 citations
#artificial intelligence Preprint Sep 2026

CAMFT: Conflict-Aware Mergeable Fine-Tuning for Large Language Models

CAMFT is proposed, a Conflict-Aware Mergeable Fine-Tuning method that makes task adaptation both efficient and mergeaware and treats mergeability as a property shaped during fine-tuning, rather than only a problem to be solved after fine-tuning.

Jin-Gang Zhou, Hai-Yang Guo, Yuan-Pei Ma et al. · 1 citation
Open access Aug 2026

Selecting and Combining Large Language Models in Scalable Code Clone Detection

Findings indicate that ensembling approaches can be statistically significant and effective on larger datasets, where the best-performing ensemble improved performance by 37% over its individual LLMs on the commercial large-scale code.

M. Chochlov, Gul Aftab Ahmed, J. Patten et al. · 1 citation
Open access Oct 2026

ScratchNet: A Multi-modal Benchmark for Evaluating and Advancing LLMs on Scratch Programming Tasks

Large language models (LLMs) have achieved impressive performance on text-based programming tasks, yet they remain unreliable for block-based languages such as Scratch. Scratch programs feature deeply nested, nonlinear structures, event-driven concurrency across multiple sprites, and tight coupling between code and mul...

Yuan Si, Si-Meng Han, Da-Ming Li et al. · 0 citations
2026

Generative vs. Discriminative? An Empirical Study on Code Understanding Classification Tasks

Automated code understanding is crucial for software reliability and maintainability. Encoder-only pretrained models excel in code classification tasks such as vulnerability detection, cross-language clone detection, and exception classification due to their bidirectional context awareness. However, the dominant “pre-t...

Yu-Guo Liu, Yu-Hua Ma, Rong-Cun Wang et al. · 0 citations
Preprint Sep 2026

Shortcutting the Fix: Identifying and Categorizing Agentic Exploits in Software Engineering Benchmarks

This work systematize and audit exploits across five open large language models on SWE-bench Multilingual and DeepSWE using a turn-level LLM-as-a-judge protocol, demonstrating the critical need for exploit-aware evaluation frameworks that measure true repository-level problem solving over benchmark gaming.

Nikolai Ludwig, Wasi Uddin Ahmad, Somshubra Majumdar et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.