arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2411.07191cs.CLcs.AI
收藏

大语言模型中的超级权重

The Super Weight in Large Language Models

University of Notre Dame(诺丁汉大学);Apple(苹果公司)

Mengxia Yu, De Wang, Qi Shan, Colorado J Reed, Alvin Wan

AI总结:

本文发现LLM中单个“超级权重”参数即可决定模型文本生成能力,并提出无需数据的识别方法及量化改进策略。

摘要:

近期研究揭示了一个令人惊讶的结果:大语言模型(LLM)参数中极小比例的离群值对模型质量具有不成比例的重要性。LLM包含数十亿参数,因此这些微小比例(如0.01%)对应着数十万个参数。在本工作中,我们呈现了一个更为惊人的发现:仅剪除单个参数就能摧毁LLM生成文本的能力——使困惑度增加3个数量级,并将零样本准确率降至随机猜测水平。我们提出了一种无需数据的方法来识别此类参数,称之为超级权重(super weights),仅需通过模型执行一次前向传播。我们还发现,这些超级权重会诱发相应罕见且幅值巨大的激活离群值,称之为超级激活(super activations)。当以高精度保留时,超级激活可以将简单的就近取整量化提升至与最先进方法相竞争的水平。对于权重量化,我们同样发现,通过保留超级权重并裁剪其他权重离群值,就近取整量化可以扩展到比先前所考虑的更大的块大小。为促进对超级权重的进一步研究,我们提供了常见开源LLM的超级权重坐标索引。

英文摘要:

Recent works have shown a surprising result: a small fraction of Large Language Model (LLM) parameter outliers are disproportionately important to the quality of the model. LLMs contain billions of parameters, so these small fractions, such as 0.01%, translate to hundreds of thousands of parameters. In this work, we present an even more surprising finding: Pruning as few as a single parameter can destroy an LLM's ability to generate text -- increasing perplexity by 3 orders of magnitude and reducing zero-shot accuracy to guessing. We propose a data-free method for identifying such parameters, termed super weights, using a single forward pass through the model. We additionally find that these super weights induce correspondingly rare and large activation outliers, termed super activations. When preserved with high precision, super activations can improve simple round-to-nearest quantization to become competitive with state-of-the-art methods. For weight quantization, we similarly find that by preserving the super weight and clipping other weight outliers, round-to-nearest quantization can scale to much larger block sizes than previously considered. To facilitate further research into super weights, we provide an index of super weight coordinates for common, openly available LLMs.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑