Evaluating Large Language Models for Generalization and Robustness via Data Compression

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Li, Yucheng, Guo, Yunhao, Guerin, Frank, Lin, Chenghua
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866913222875938816
author Li, Yucheng
Guo, Yunhao
Guerin, Frank
Lin, Chenghua
author_facet Li, Yucheng
Guo, Yunhao
Guerin, Frank
Lin, Chenghua
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2402_00861
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Evaluating Large Language Models for Generalization and Robustness via Data Compression
Li, Yucheng
Guo, Yunhao
Guerin, Frank
Lin, Chenghua
Computation and Language
Artificial Intelligence
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.
title Evaluating Large Language Models for Generalization and Robustness via Data Compression
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2402.00861