# MergePipe: A Budget-Aware Data Management System for Scalable LLM Merging

> MergePipe plans expert-block reads under a budget and records realized access in a manifest. At a 25% expert-read budget, Qwen3-0.6B AVG at K=20 used 21.33% of full reads, a 78.7% reduction; tested merges retained competitive benchmark quality.

- arXiv: https://arxiv.org/abs/2612.04074
- Authors: Yuanyi Wang, Guanghao Zhu, Yanggan Gu, Su Lu, Yifan Yang, Xijun Xiang, Xuhuan Li, Kunxi Li, Zihao Wang, Zhaoyi Yan, Congkai Xie, Jianmin Wu, Hongxia Yang
- Published: 2026-12-03
- Topic: Inference & systems
- Visual carousel: https://instaxiv.com/p/2612.04074
- Explanation by InstaXiv, a secondary educational summary. Cite the original paper for exact results. InstaXiv is not affiliated with or endorsed by arXiv or Cornell University.

## Can a 25% cap on full expert reads skip most weights?

**78.7%** expert reads saved vs full; Qwen3-0.6B, K=20 AVG

## One merge cost is fixed; another grows

**Base and output:** Every merge reads the complete base model and writes a complete output checkpoint. These volumes are required and do not grow with the number of experts.

**Expert parameters:** Naive merging scans all eligible expert parameters each run, so input grows linearly with pool size. MergePipe caps expert reads before execution.

## Only expert reads sit inside the budget

$$
\begin{gathered}C_{\mathrm{merge}}=C_{\mathrm{base}}+\amber{C_{\mathrm{expert}}}+C_{\mathrm{out}}+C_{\mathrm{meta}}\\C_{\mathrm{expert}}(\pi)\leB\end{gathered}
$$

The cap covers expert reads only. Each run still reads the base model and writes the full output; metadata sits outside that budget.

- $C_{\mathrm{expert}}$: Expert parameter bytes the plan will read
- $B$: User cap in logical FP32 bytes

## From catalog to published merge

![Figure 2](https://cdn.instaxiv.com/figures/2612.04074/figure2.webp)

Catalog metadata feeds a deterministic hash planner that admits complete groups under budget. Execution streams updates and records coverage; a manifest binds plan and realized reads, and staged writes are digest-checked before publication. (Figure 2)

## How a planner spends an expert-read budget

1. **Generate candidates**: Stable tensor/block IDs feed a deterministic hash order; selection uses catalog metadata, not expert-value importance scores.
2. **Admit complete groups**: Each candidate is one block position across all experts. The planner adds it only when the group's exact byte cost fits the remaining budget.
3. **Apply, then keep base**: AVG or TIES runs unchanged at selected positions; unselected positions retain the base. The plan records selected blocks, operator, inputs and budget.

## Plan first, then read the chosen weights

![Figure 1](https://cdn.instaxiv.com/figures/2612.04074/figure1.webp)

In panel (b), plan-before-read cuts expert-source reads by 78.7% and median execution time by 42.1% versus scan-then-mask for Qwen3-0.6B, K=20 AVG, with the same merged checkpoint. (Figure 1)

## Qwen3-8B AVG: lower cost, higher mean

| Method | Mean (%) | Time (s) | Expert I/O (GiB) |
| --- | --- | --- | --- |
| Full-read AVG | 76.40 | 1023.1 | 517.50 |
| **MergePipe, 25%** | **77.52** | **685.9** | **129.37** |

_Qwen3-8B K=20 AVG; 25% expert-read cap; equal-weight 8-task mean; median complete time; logical FP32 expert I/O. Merge quality/cost table._

## A low-access merge can stay near base quality

![Figure 4](https://cdn.instaxiv.com/figures/2612.04074/figure4.webp)

Read the rightmost column as the equal-weight mean across eight tasks. At Qwen3-0.6B, K=20, 21.33% access gives AVG 52.46 versus base 51.66; TIES mean is within 0.27 points of full. (Figure 4)

## The biggest speedup includes reused TIES preparation

**Naive TIES, full reads:** For Qwen3-0.6B at K=20, the end-to-end merge takes 356.89 s; Naive rebuilds TIES thresholds and signs on each invocation.

**MergePipe, 25% budget:** It takes 52.04 s (6.86× speedup) at 21.33% realized access, while binding prepared TIES statistics for reuse.

This is a full-pipeline comparison, not an isolated test of block selection.

## Read reduction and state reuse save different work

![Figure 5](https://cdn.instaxiv.com/figures/2612.04074/figure5.webp)

For Qwen3-0.6B, K=8, both MergePipe paths reuse TIES state; the 25% path further lowers reads and input-plus-merge time. Naive rebuilds its thresholds. (Figure 5)

## Where these results should not be overread

- **Offline, aligned scope**: Designed for disk-resident, parameter-aligned merges; it adds no merge formula and does not test training-time fusion.
- **Quality varies by task**: Hash selection uses IDs, not value importance; quality tests cover three of five models and eight tasks, with scores varying by operator and budget.
- **Checkpoint transaction gap**: Atomic publication is specified by the transaction interface; measured checkpoint runs save complete files and manifests without invoking that manager.

Best used when: Best for repeated disk-resident merges where expert-checkpoint reads dominate cost.

## Key takeaways

- Expert reads are the controllable part of merge I/O; base reads and full output writes remain unavoidable.
- Qwen3-8B K=20 AVG at 25% budget: expert I/O fell by 75.0%, complete time by 33.0%; mean was 77.52 vs full's 76.40.
- Can block selection target task-relevant updates across more models without scanning expert values?

## Links

- arXiv: https://arxiv.org/abs/2612.04074
- PDF: https://arxiv.org/pdf/2612.04074
- Code: https://github.com/wyy-code/mergepipe

## Citation

```bibtex
@article{wang2026mergepipe,
  title   = {MergePipe: A Budget-Aware Data Management System for Scalable LLM Merging},
  author  = {Wang, Yuanyi and Zhu, Guanghao and Gu, Yanggan and Lu, Su and Yang, Yifan and Xiang, Xijun and Li, Xuhuan and Li, Kunxi and Wang, Zihao and Yan, Zhaoyi and Xie, Congkai and Wu, Jianmin and others},
  journal = {arXiv preprint arXiv:2612.04074},
  year    = {2026},
  url     = {https://arxiv.org/abs/2612.04074}
}
```
