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

通过数据压缩评估大型语言模型的泛化能力与鲁棒性

Evaluating Large Language Models for Generalization and Robustness via Data Compression

University of Surrey(萨里大学);Harbin Engineering University(哈尔滨工程大学);University of Manchester(曼彻斯特大学)

Yucheng Li, Yunhao Guo, Frank Guerin, Chenghua Lin

AI总结:

本文提出基于无损数据压缩的评估方法,通过训练截止前后压缩性能差异衡量大模型的泛化与鲁棒性,实验发现Mistral和Llama-2表现均衡,且模型在arXiv数据上泛化最佳。

摘要:

现有的评估大型语言模型的方法面临诸多挑战,如数据污染、对提示的敏感性以及基准创建的高成本。为解决这些问题,我们提出了一种基于无损数据压缩的评估方法,用于测试模型在训练截止日期之后的预测能力泛化情况。具体而言,我们收集了2017年至2023年间跨越83个月的全面测试数据,并根据模型的训练数据截止日期将数据划分为训练期和测试期。我们衡量:1)测试期上的压缩性能,作为对未见数据泛化能力的度量;2)训练期与测试期之间的性能差距,作为鲁棒性的度量。我们的实验测试了14个不同规模的代表性大型语言模型,数据来源包括维基百科、新闻文章、代码、arXiv论文和多模态数据。我们发现,许多模型在截止日期后的压缩率显著下降,但Mistral和Llama-2等模型在性能与鲁棒性之间表现出良好的平衡。结果还表明,模型在新闻和代码数据上的泛化能力较弱,但在arXiv论文上表现尤为出色。我们还发现,上下文大小和分词实现方式对整体压缩性能有重大影响。

英文摘要:

Existing methods for evaluating large language models face challenges such as data contamination, sensitivity to prompts, and the high cost of benchmark creation. To address this, we propose a lossless data compression based evaluation approach that tests how models' predictive abilities generalize after their training cutoff. Specifically, we collect comprehensive test data spanning 83 months from 2017 to 2023 and split the data into training and testing periods according to models' training data cutoff. We measure: 1) the compression performance on the testing period as a measure of generalization on unseen data; and 2) the performance gap between the training and testing period as a measure of robustness. Our experiments test 14 representative large language models with various sizes on sources including Wikipedia, news articles, code, arXiv papers, and multi-modal data. We find that the compression rate of many models reduces significantly after their cutoff date, but models such as Mistral and Llama-2 demonstrate a good balance between performance and robustness. Results also suggest that models struggle to generalize on news and code data, but work especially well on arXiv papers. We also find the context size and tokenization implementation have a big impact of on the overall compression performance.

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

↑