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

基于矩阵核范数的大语言模型评估

Large Language Model Evaluation via Matrix Nuclear-Norm

School of Artificial Intelligence, Jilin University(吉林大学人工智能学院);Key Laboratory of Symbolic Computation and Knowledge Engineering, Jilin University(吉林大学符号计算与知识工程重点实验室);International Center of Future Science, Jilin University(吉林大学未来科学国际中心)

Yahan Li, Tingyu Xia, Yi Chang, Yuan Wu

AI总结:

本文提出矩阵核范数作为大语言模型信息压缩能力的评估指标,通过L1,2范数近似将时间复杂度从O(n³)降至O(n²),在保持评估可靠性的同时实现比矩阵熵快8到24倍的加速。

摘要:

随着大语言模型(LLMs)持续演进,高效的评估指标对于衡量其压缩信息和减少冗余的能力至关重要。虽然矩阵熵(Matrix Entropy)等传统指标能提供有价值的见解,但由于其基于奇异值分解(SVD)的 \( O(n^3) \) 时间复杂度,在大规模模型上计算开销很大。为缓解这一问题,我们提出了矩阵核范数(Matrix Nuclear-Norm),它不仅可作为量化LLM数据压缩能力的指标,还提供了矩阵秩的凸近似,以同时捕捉预测判别力和多样性。通过采用 \( L_{1,2}\ ext{-norm} \) 进一步近似核范数,我们能够有效评估模型的信息压缩能力。该方法将时间复杂度降至 \( O(n^2) \),并消除了SVD计算的需求。因此,对于CEREBRAS-GPT模型,当模型规模从111M增大到6.7B时,矩阵核范数的速度比矩阵熵快8到24倍。这一性能差距在更大的模型上更加显著,这一点已在Pythia等其他模型的测试中得到验证。此外,在基准测试和模型响应上的评估证实,我们提出的矩阵核范数是一种可靠、可扩展且高效的工具,用于评估LLM的性能,在准确性与计算效率之间取得了平衡。代码可在 https://github.com/MLGroupJLU/MatrixNuclearNorm 获取。

英文摘要:

As large language models (LLMs) continue to evolve, efficient evaluation metrics are vital for assessing their ability to compress information and reduce redundancy. While traditional metrics like Matrix Entropy offer valuable insights, they are computationally intensive for large-scale models due to their \( O(n^3) \) time complexity with Singular Value Decomposition (SVD). To mitigate this issue, we introduce the Matrix Nuclear-Norm, which not only serves as a metric to quantify the data compression proficiency of LLM but also provides a convex approximation of matrix rank to capture both predictive discriminability and diversity. By employing the \( L_{1,2}\text{-norm} \) to further approximate the nuclear norm, we can effectively assess the model's information compression capabilities. This approach reduces the time complexity to \( O(n^2) \) and eliminates the need for SVD computation. Consequently, the Matrix Nuclear-Norm achieves speeds 8 to 24 times faster than Matrix Entropy for the CEREBRAS-GPT model as sizes increase from 111M to 6.7B. This performance gap becomes more pronounced with larger models, as validated in tests with other models like Pythia. Additionally, evaluations on benchmarks and model responses confirm that our proposed Matrix Nuclear-Norm is a reliable, scalable, and efficient tool for assessing LLMs' performance, striking a balance between accuracy and computational efficiency. The code is available at https://github.com/MLGroupJLU/MatrixNuclearNorm.

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

↑