Transport and Merge: Cross-Architecture Merging for Large Language Models

Chenhang Cui, Binyun Yang, Fei Shen, Yuxin Chen, Jingnan Zheng, Xiang Wang, An Zhang, Tat-Seng Chua

Abstract: Large language models (LLMs) achieve strong capabilities by scaling model capacity and training data, yet many real-world deployments rely on smaller models trained or adapted from low-resource data. This gap motivates the need for mechanisms to transfer knowledge from large, high-resource models to smaller, low-resource targets. While model merging provides an effective transfer mechanism, most existing approaches assume architecture-compatible models. In this work, researchers propose a cross-architecture merging framework based on optimal transport (OT) that aligns activations to infer cross-neuron correspondences between heterogeneous models, enabling effective high-resource to low-resource transfer using only a small set of inputs.

The Challenge of Architecture Compatibility

Model merging has emerged as a highly efficient strategy in AI, allowing developers to combine the strengths of different models without the astronomical costs of training from scratch. However, a significant limitation has persisted: architecture compatibility. Traditionally, merging is restricted to structural twins—models with identical architectures, such as two different fine-tunes of LLaMA-3 8B.

This creates a massive barrier for low-resource scenarios. For instance, a small 1B-parameter model specialized for the Malaysian language cannot easily inherit the advanced reasoning capabilities of a massive 70B general-purpose model. Their internal structures—layers, neurons, and embedding dimensions—are fundamentally misaligned. To bridge this structural gap, researchers introduce Transport and Merge (T&M), a novel framework that acts as a "brain transplant" between heterogeneous LLMs.

The Transport and Merge (T&M) Methodology

The T&M framework utilizes a multi-step pipeline to align and fuse models of entirely different scales and architectures:

  1. Activation Extraction: Both the source (large) and target (small) models process a small "calibration" dataset of approximately 2,000 samples. The system records the activation patterns of neurons in both models.
  2. Optimal Transport (OT) Alignment: Because direct weight comparison is impossible across different architectures, T&M compares behavior. If a group of neurons in the source model fires in a pattern similar to a neuron in the target model, they likely represent the same underlying concept. Optimal Transport provides a mathematical "transport plan" to map these behavioral correspondences.
  3. Cross-Layer Mapping: The framework calculates a global layer-to-layer cost matrix to determine which specific layers of the large model should inform corresponding layers in the small model.
  4. Weight Fusion: Using the transport plans as coordinate maps, the source model's weights are mathematically transformed into the target's coordinate system and fused into its weight space.
  5. Top-k Selection: To prevent the transfer of noisy or irrelevant data, the method selectively replaces only the top-k most active neurons in the target model with the newly mapped source knowledge.
  6. Residual-Frozen Adaptation: Finally, the "donated" knowledge is kept frozen as a residual connection, while the rest of the target model undergoes light fine-tuning to stabilize the fusion.

Key Insights

  • The "Platonic" Representation: The success of T&M reinforces the hypothesis that different LLMs, despite architectural differences, eventually converge on similar internal representations of the world. This fundamental alignment is what makes OT-based merging viable.
  • Sparsity in Knowledge Transfer: Visualizations of the transport maps reveal that correspondences are highly concentrated. A small, sparse subset of "expert" neurons in the source model typically accounts for the majority of the knowledge required by a target neuron.
  • Scaling the Donor: The framework benefits from scaling laws. Merging a 32B source model into a 1B target yielded superior performance compared to using an 8B source. This suggests that larger models develop richer representations that can be effectively distilled through fusion.
  • Computational Efficiency: Unlike traditional knowledge distillation—which requires processing millions of tokens through both teacher and student models—T&M relies on a tiny calibration set and direct weight manipulation, making it vastly more efficient.

Experimental Results

The researchers evaluated T&M across several challenging, low-resource domains, utilizing source models like LLaMA-3 (8B, 32B) and Qwen-2.5 (7B), and target models at the 1B scale (e.g., LLaMA-3-1B, Typhoon2-1B). The framework consistently outperformed base models and demonstrated advantages over standard Supervised Fine-Tuning (SFT) and Distillation:

  • Multilingual Gains: On the MalayMMLU benchmark, the fused model achieved a massive +6.51% improvement in Humanities and +5.99% in Social Sciences. For Cantonese (CMMLU), the average score rose significantly from 25.26 to 27.44.
  • Mathematical Reasoning: On the MGSM (Thai) math task, performance surged from 0.50 to 0.72—a 44% relative improvement—even prior to the final adaptation stage.
  • Architecture Agnosticism: The method proved robust regardless of whether the source was a LLaMA or a Qwen model, confirming its true cross-architecture capabilities.

Limitations and Future Directions

While highly effective, the T&M framework has limitations. It relies heavily on the quality of the calibration set; a poorly chosen or mismatched dataset can result in noisy transport plans. Additionally, like any weight-transfer method, there is a risk of inadvertently transferring the source model's biases or unsafe behaviors.

Future work will focus on incorporating safety-aware objectives directly into the Optimal Transport formulation. This would allow the framework to filter out undesirable knowledge during the merge process itself, reducing the reliance on post-hoc safety alignment.

Summary updated

BibTeX
@inproceedings{cui2026transport,
  author = {Chenhang Cui and Binyun Yang and Fei Shen and Yuxin Chen and Jingnan Zheng and Xiang Wang and An Zhang and Tat-Seng Chua},
  title = {{Transport and Merge: Cross-Architecture Merging for Large Language Models}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=7p6vIkXOxQ},
}
Figure