MergePipe: A Budget-Aware Data Management System for Scalable LLM Merging
Wang et al. in Inference & systems
Can a 25% cap on full expert reads skip most weights?
MergePipe: A Budget-Aware Data Management System for Scalable LLM Merging
One merge cost is fixed; another grows
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.
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
The cap covers expert reads only. Each run still reads the base model and writes the full output; metadata sits outside that budget.
- Cexpert
- Expert parameter bytes the plan will read
- B
- User cap in logical FP32 bytes
From catalog to published merge

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.
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

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.
Qwen3-8B AVG: lower cost, higher mean
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

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.
The biggest speedup includes reused TIES preparation
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.
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

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.
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.
Why it matters
- 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?
2 likes 12 slides, 3 min
2 days ago