SWSC: Shared Weight for Similar Channel in LLM

Binrui Zeng, Yongtao Tang, Xiaodong Liu, Xiaopeng Li
1/15/2025
cs.LGcs.CL

No confident code implementation found for this paper.

Abstract

Large language models (LLMs) have spurred development in multiple industries. However, the growing number of their parameters brings substantial storage and computing burdens, making it essential to explore model compression techniques for parameter reduction and easier deployment. We propose SWSC, an LLM compression method based on the concept of Shared Weight for Similar Channel. It uses the K-Means clustering algorithm to cluster model weights channel-by-channel, generating clusters with highly similar vectors within each. A representative vector from each cluster is selected to approximately replace all vectors in the cluster, significantly reducing the number of model weight parameters. However, approximate restoration will inevitably cause damage to the performance of the model. To tackle this issue, we perform singular value decomposition on the weight error values before and after compression and retain the larger singular values and their corresponding singular vectors to compensate for the accuracy. The experimental results show that our method can effectively ensure the performance of the compressed LLM even under low-precision conditions.

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!

Similar Papers

Cite this paper

@article{zeng2025swsc,
  title  = {SWSC: Shared Weight for Similar Channel in LLM},
  author = {Binrui Zeng and Yongtao Tang and Xiaodong Liu and Xiaopeng Li},
  year   = {2025},
  eprint = {2501.08631},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2501.08631v1}
}

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/2501.08631.svg)](https://codeofpaper.com/paper/2501.08631)

Discussion