LGCLMar 11, 2024

Elephants Never Forget: Testing Language Models for Memorization of Tabular Data

arXiv:2403.06644v121 citationsh-index: 11Has Code
Originality Incremental advance
AI Analysis

This work addresses a critical issue for researchers and practitioners using LLMs in machine learning tasks, highlighting the need for data integrity, though it is incremental in nature.

The paper tackles the problem of data contamination and memorization in large language models (LLMs) for tabular data, revealing that LLMs are pre-trained on many popular tabular datasets, which can lead to invalid performance evaluation on downstream tasks due to overfitting to test sets.

While many have shown how Large Language Models (LLMs) can be applied to a diverse set of tasks, the critical issues of data contamination and memorization are often glossed over. In this work, we address this concern for tabular data. Starting with simple qualitative tests for whether an LLM knows the names and values of features, we introduce a variety of different techniques to assess the degrees of contamination, including statistical tests for conditional distribution modeling and four tests that identify memorization. Our investigation reveals that LLMs are pre-trained on many popular tabular datasets. This exposure can lead to invalid performance evaluation on downstream tasks because the LLMs have, in effect, been fit to the test set. Interestingly, we also identify a regime where the language model reproduces important statistics of the data, but fails to reproduce the dataset verbatim. On these datasets, although seen during training, good performance on downstream tasks might not be due to overfitting. Our findings underscore the need for ensuring data integrity in machine learning tasks with LLMs. To facilitate future research, we release an open-source tool that can perform various tests for memorization \url{https://github.com/interpretml/LLM-Tabular-Memorization-Checker}.

Code Implementations1 repo
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes