Weight Weaving: Parameter Pooling for Data-Free Model Merging

Levy Chaves, Eduardo Valle, Sandra Avila · DOI

TL;DR

This paper introduces "Weight Weaving," a novel data-free method for merging multiple pre-trained deep learning models. Instead of relying on evaluation data to tune critical scaling parameters, Weight Weaving pools model weights across a range of these parameters, significantly improving merging performance and practicality.

What Problem Does This Paper Address?

Combining specialized deep learning models into a single, more capable model (model merging) is a powerful technique for efficiency and performance. However, most state-of-the-art model merging methods rely on a crucial hyperparameter, $\lambda$, which scales the contribution of each individual model. Finding the optimal $\lambda$ typically requires access to privileged evaluation data, a scenario that is often unrealistic in real-world applications. This dependency creates a significant bottleneck, limiting the practical adoption of model merging. The authors aim to solve this by developing a method that can effectively merge models without needing any evaluation data.

Methods

The core innovation is "Weight Weaving," a plug-and-play framework designed to bypass the need for data-driven hyperparameter tuning. It operates in three main steps:

  1. Calculate Delta Weights: The difference between each fine-tuned model's weights and the original pre-trained model's weights (task vectors) are computed.
  2. Create Augmented Weights: For a given model merging function (e.g., Task Arithmetic, TIES) and a user-defined search space of $\lambda$ values, Weight Weaving generates multiple versions of the merged model, each corresponding to a different $\lambda$.
  3. Pool and Merge: Instead of selecting a single best $\lambda$, Weight Weaving pools the parameters from all these augmented models (along with the original delta weights) using a user-defined pooling function. This pooling function can be as simple as averaging or random selection, or it can even be another model merging method. This pooling effectively marginalizes over the $\lambda$ search space.

The method is designed to be orthogonal to existing merging techniques, meaning it can be applied on top of them without modification.

Datasets

The experiments were conducted across three main vision-based experimental setups:

  • Vision Multi-Task Learning: Utilized ViT-B-32, ViT-B-16, and ViT-L-14 visual encoders from CLIP models, fine-tuned and evaluated on eight image classification tasks: SUN397, Cars, RESISC45, EuroSAT, SVHN, GTSRB, MNIST, and DTD.
  • Vision Continual Learning: Employed CIFAR100 and ImageNet-R for generic image recognition, and CUB200 and StanfordCars for fine-grained classification. Datasets were split into multiple subsets of disjoint classes.
  • Vision Domain Generalization: Used the same datasets and models as the multi-task learning setup, with a leave-one-out evaluation strategy.

Key Insights and Ideas

  • Pooling as a Data-Free Solution: The most significant insight is that pooling model weights across a range of scaling factors ($\lambda$) can effectively replace the need for data-driven tuning of $\lambda$. This makes model merging much more practical.
  • Orthogonality and Modularity: Weight Weaving's design as a plug-and-play component that works with any existing merging function is a key enabler for its broad applicability.
  • Sequential Fine-Tuning Creates Redundancy: The paper highlights that sequential fine-tuning (where a model for task $t$ is initialized from task $t-1$) leads to highly correlated task vectors. This correlation suggests increased parameter redundancy, which might necessitate specialized merging techniques for continual learning scenarios.

Key Results

Weight Weaving consistently improved the performance of several state-of-the-art model merging methods in a data-free setting.

  • Average Accuracy Gains: Achieved average accuracy gains of up to 15.9 percentage points across various experimental setups.
  • Consistent Improvement: Outperformed the standard data-free baseline (where $\lambda=1$) in most cases.
  • Effectiveness Across Setups: Demonstrated strong performance in continual learning and domain generalization, with more modest but still beneficial gains in multi-task learning.
  • Pooling Function Impact: While average and random uniform selection pooling functions yielded similar results, using a merging function like MagMax as a pooling function sometimes led to worse performance, suggesting that simple pooling is often more effective.

Limitations and Future Work

  • Sensitivity to Search Space: The effectiveness of Weight Weaving depends on the performance variation across the defined $\lambda$ search space. If the optimal $\lambda$ is concentrated around a single point or if performance is poor outside a narrow range, pooling might not offer significant benefits. This is particularly noted for the ISO-C method in multi-task learning.
  • Identifying Optimal Search Spaces: The paper suggests future work could focus on developing methods to filter out suboptimal scaling factors within the search space, potentially by analyzing model embeddings and layer-wise weight norms.
  • Tailored Pooling for Continual Learning: The observed high correlation in task vectors from sequential fine-tuning suggests a need for specialized pooling methods tailored to the challenges of continual learning.
  • Extending to Other Hyperparameters: The authors believe their framework can be extended to pool parameters across other hyperparameters beyond just $\lambda$.

Summary updated

BibTeX
@misc{chaves2025weight,
  author = {Levy Chaves and Eduardo Valle and Sandra Avila},
  title = {{Weight Weaving: Parameter Pooling for Data-Free Model Merging}},
  year = {2025},
  eprint = {2510.13921},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.13921},
}
Figure