Evaluating Large Language Models for Generalization and Robustness via Data Compression

Yucheng Li, Yunhao Guo, Frank Guerin, Chenghua Lin
2/1/2024
cs.CLcs.AI

No official code found. Best implementation: liyucheng09/llm-compressive (32 stars, last commit 2024-05-29).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

Longitudinal Evaluation of LLMs via Data Compression

320C++, PythonDec 26, 20232 years ago
benchmarkevaluationllmllmsnlp

Similar Papers

Cite this paper

@article{li2024evaluating,
  title  = {Evaluating Large Language Models for Generalization and Robustness via Data Compression},
  author = {Yucheng Li and Yunhao Guo and Frank Guerin and Chenghua Lin},
  year   = {2024},
  eprint = {2402.00861},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2402.00861v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2402.00861.svg)](https://codeofpaper.com/paper/2402.00861)

Discussion