Clustering similar weight channels lets LLMs share parameters, making them slim without getting dumb.
SWSC (SWSC: Shared Weight for Similar Channel in LLM) introduces a novel compression method that clusters similar weight channels in LLMs and uses representative vectors with error compensation, achieving 90% compression while maintaining model performance .
-----
https://arxiv.org/abs/2501.08631
π€ Original Problem:
LLMs face deployment challenges due to massive parameter counts, creating storage and computing burdens that limit their practical applications .
-----
π§ Solution in this Paper:
β SWSC uses K-Means clustering to group similar weight channels, selecting representative vectors for each cluster
β The method stores only cluster labels and representative vectors, dramatically reducing parameter count
β To prevent performance degradation, it employs singular value decomposition on weight error values
β The error compensation retains larger singular values and vectors to maintain accuracy during inference
-----
π‘ Key Insights:
β Similar channels in LLM weights can share parameters without significant performance loss
β Error compensation through SVD effectively preserves model accuracy
β The method works particularly well with Query and Key projectors in attention layers
-----
π Results:
β Achieves 90% compression on 4096Γ4096 matrices using 256 clusters
β Maintains stable perplexity (6.547) at 3-bit compression compared to RTN (20.550)
β Outperforms RTN quantization at 2-bit compression (7.297 vs 4958.396)










