LEWIS (LayEr WIse Sparsity) -- A Training Free Guided Model Merging Approach

Hetarth Chopra, Vidhi Rambhia, Vikram Adve
3/5/2025
cs.LGcs.CLstat.ML

No confident code implementation found for this paper.

Abstract

As specialized large language models (LLMs) become increasingly prevalent, model merging methods are being used to combine them to create a single multi-task model without requiring any additional data or training. However, these approaches fall short when the objective of merging is to increase the downstream model's performance on a particular task-specific benchmark. In this work, we propose LEWIS (Layer Wise Sparsity), a guided model-merging framework that uses activation-based layer importance to dynamically adjust layer-wise task-vector sparsity required for the merge process. LEWIS uses a calibration dataset to prioritize critical layers during the task-vector pruning process required for model merging. This approach guides existing merging methods by preserving essential layer-wise task-specific knowledge while ensuring the merged model performs the best at benchmarks resembling the calibration dataset. Our experiments demonstrate the effectiveness of LEWIS with performance improvements of code instruction-following and math-solving models created through model merging up to 4 percent and 11.3 percent, respectively, outperforming unguided data-less model merging approaches that use uniform-sparsity.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Cite this paper

@article{chopra2025lewis,
  title  = {LEWIS (LayEr WIse Sparsity) -- A Training Free Guided Model Merging Approach},
  author = {Hetarth Chopra and Vidhi Rambhia and Vikram Adve},
  year   = {2025},
  eprint = {2503.03874},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.03874v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2503.03874.svg)](https://codeofpaper.com/paper/2503.03874)

Discussion