NoWag: A Unified Framework for Shape Preserving Compression of Large Language Models

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Liu, Lawrence, Chakrabarti, Inesh, Li, Yixiao, Wang, Mengdi, Zhao, Tuo, Yang, Lin F.
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866917226061234176
author Liu, Lawrence
Chakrabarti, Inesh
Li, Yixiao
Wang, Mengdi
Zhao, Tuo
Yang, Lin F.
author_facet Liu, Lawrence
Chakrabarti, Inesh
Li, Yixiao
Wang, Mengdi
Zhao, Tuo
Yang, Lin F.
contents Large language models (LLMs) exhibit remarkable performance across various natural language processing tasks but suffer from immense computational and memory demands, limiting their deployment in resource-constrained environments. To address this challenge, we propose NoWag (Normalized Weight and Activation Guided Compression), a unified framework for one-shot shape preserving compression algorithms. We apply NoWag to compress Llama-2 (7B, 13B, 70B) and Llama-3 (8B, 70B) models using two popular shape-preserving techniques: vector quantization (NoWag-VQ) and unstructured/semi-structured pruning (NoWag-P). Our results show that NoWag-VQ significantly outperforms state-of-the-art one-shot vector quantization methods, while NoWag-P performs competitively against leading pruning techniques. These findings highlight underlying commonalities between these compression paradigms and suggest promising directions for future research. Our code is available at https://github.com/LawrenceRLiu/NoWag
format Preprint
id arxiv_https___arxiv_org_abs_2504_14569
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle NoWag: A Unified Framework for Shape Preserving Compression of Large Language Models
Liu, Lawrence
Chakrabarti, Inesh
Li, Yixiao
Wang, Mengdi
Zhao, Tuo
Yang, Lin F.
Machine Learning
Artificial Intelligence
Large language models (LLMs) exhibit remarkable performance across various natural language processing tasks but suffer from immense computational and memory demands, limiting their deployment in resource-constrained environments. To address this challenge, we propose NoWag (Normalized Weight and Activation Guided Compression), a unified framework for one-shot shape preserving compression algorithms. We apply NoWag to compress Llama-2 (7B, 13B, 70B) and Llama-3 (8B, 70B) models using two popular shape-preserving techniques: vector quantization (NoWag-VQ) and unstructured/semi-structured pruning (NoWag-P). Our results show that NoWag-VQ significantly outperforms state-of-the-art one-shot vector quantization methods, while NoWag-P performs competitively against leading pruning techniques. These findings highlight underlying commonalities between these compression paradigms and suggest promising directions for future research. Our code is available at https://github.com/LawrenceRLiu/NoWag
title NoWag: A Unified Framework for Shape Preserving Compression of Large Language Models
topic Machine Learning
Artificial Intelligence
url https://arxiv.org/abs/2504.14569