Change Partners at Every Layer: Balanced Random Regrouping for Model Merging
Abstract
Model merging combines fine-tuned experts into one model that serves many tasks without retraining, but merging many experts this way substantially reduces accuracy. Grouping offers a middle ground: at every layer or weight matrix, the experts are divided into groups, the experts in a group are merged into one shared module, and a task uses the module merged from its expert's group. Natural choices are to keep the same partners across layers or to group similar experts. Surprisingly, we find that randomly changing partners at every layer outperforms both. We call this Balanced Random Regrouping (BRR): it independently partitions the experts into equal-sized random groups at each layer (BRR-layer) or weight matrix (BRR-matrix) and merges each group with an existing method. With validation-selected merge scales, both BRR variants outperform reusing one grouping across layers in all 24 CLIP settings, by 1.0-6.8 points, and BRR-matrix also outperforms the similarity-based FlexMerge in every setting. A first-order analysis explains this gain. At each layer, merging a task's expert with its partners shifts the task's output features; when the partners are the same at every layer, these shifts tend to point in similar directions and add up, whereas with new partners at every layer they vary independently and add up less on average. A series of experiments supports this analysis, which further guides a grouping search that can outperform BRR.
Create a lesson
Metadata
- Categories
- cs.LG, cs.CV
- Comments
- 26 pages, including appendix
Related papers
RAP: Radial-Angular Random Projection for Hyperbolic Representations
Shared title terminologycs.LGJiahong Liu, Wenhao Yu, Yifan Li et al.
Change Point Detection with Generative Models
Shared title terminologycs.LGTigran Ramazyan, Denis Derkach, Mikhail Hushchyn
Random Voronoi Networks
Shared title terminologycs.LGRay Verma, Pau Mateo-Bernardó, Daniel Mas Montserrat et al.
Casper: A Projection-Based Neurosymbolic Layer for Scalable & Guaranteed Constraint Satisfaction
Shared title terminologycs.LGLohith Konathala, Luca Andolfi, Eleonora Giunchiglia
The Marauder's Map: Bézier Manifolds Reveal Hidden Surfaces for Model Merging and Ensembling
Shared title terminologycs.LGAbhiram Iyer, Mark T. Harnett, Sarthak Chandra
GREMLIN: Generating Random Environments for Meta-Learning with Interacting Networks
Shared title terminologycs.LGOctave Gaspard