English

Llamazip: Leveraging LLaMA for Lossless Text Compression and Training Dataset Detection

Machine Learning 2025-11-25 v1 Computation and Language

Abstract

This work introduces Llamazip, a novel lossless text compression algorithm based on the predictive capabilities of the LLaMA3 language model. Llamazip achieves significant data reduction by only storing tokens that the model fails to predict, optimizing storage efficiency without compromising data integrity. Key factors affecting its performance, including quantization and context window size, are analyzed, revealing their impact on compression ratios and computational requirements. Beyond compression, Llamazip demonstrates the potential to identify whether a document was part of the training dataset of a language model. This capability addresses critical concerns about data provenance, intellectual property, and transparency in language model training.

Keywords

Cite

@article{arxiv.2511.17589,
  title  = {Llamazip: Leveraging LLaMA for Lossless Text Compression and Training Dataset Detection},
  author = {Sören Dréano and Derek Molloy and Noel Murphy},
  journal= {arXiv preprint arXiv:2511.17589},
  year   = {2025}
}
R2 v1 2026-07-01T07:49:26.887Z