arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2311.01544cs.CLcs.LG
收藏

发散 Token 指标:度量退化以剪除 LLM 组件——并优化量化

Divergent Token Metrics: Measuring degradation to prune away LLM components -- and optimize quantization

Aleph Alpha;Technical University Darmstadt(达姆施塔特工业大学);Hessian Center for Artificial Intelligence(黑森人工智能中心);LMU Munich(慕尼黑大学);German Center for Artificial Intelligence(德国人工智能研究中心);Munich Center for Machine Learning(慕尼黑机器学习中心)

Björn Deiseroth, Max Meuer, Nikolas Gritsch, Constantin Eichenberg, Patrick Schramowski, Matthias Aßenmacher, Kristian Kersting

AI总结:

本文提出 DTM/FDTM 这一 token 级发散指标来评估压缩 LLM,可识别可深度剪枝的注意力组件与可直接 int8 量化的参数,从而优于传统困惑度和准确率指标。

摘要:

大语言模型(LLM)以其令人瞩目的能力重塑了自然语言处理。然而,它们不断增长的规模引发了人们对其有效部署以及 LLM 压缩需求的担忧。本研究提出了发散 Token 指标(Divergent Token Metrics,DTMs),这是一种评估压缩后 LLM 的新方法,旨在解决传统困惑度或准确率指标无法准确反映文本生成质量的局限。DTM 度量 token 级发散,能够更深入地洞察模型压缩的细微之处,尤其是在单独评估各组件影响时。在模型稀疏化中使用首个发散 Token 指标(First Divergent Token Metric,FDTM)表明,在 Llama-2 模型系列上,全部注意力组件中的 25% 可以被剪枝超过 90%,同时仍保持 SOTA 性能。对于量化,FDTM 表明,超过 80% 的参数可以在没有特殊异常值管理的情况下被朴素地转换为 int8。这些评估表明,有必要为各个参数单独选择合适的压缩方式——而且 FDTM 能够识别这些方式——而标准指标则会导致退化的结果。

英文摘要:

Large Language Models (LLMs) have reshaped natural language processing with their impressive capabilities. However, their ever-increasing size has raised concerns about their effective deployment and the need for LLM compression. This study introduces the Divergent Token Metrics (DTMs), a novel approach to assessing compressed LLMs, addressing the limitations of traditional perplexity or accuracy measures that fail to accurately reflect text generation quality. DTMs measure token divergences that allow deeper insights into the subtleties of model compression, in particular, when evaluating components' impacts individually. Utilizing the First Divergent Token Metric (FDTM) in model sparsification reveals that 25% of all attention components can be pruned beyond 90% on the Llama-2 model family, still keeping SOTA performance. For quantization, FDTM suggests that more than 80% of parameters can be naively transformed to int8 without special outlier management. These evaluations indicate the necessity of choosing appropriate compressions for parameters individually -- and that FDTM can identify those -- while standard metrics result in deteriorated outcomes.

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

↑