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

Sören Dréano, Derek Molloy, Noel Murphy
11/16/2025
cs.LGcs.CL

No confident code implementation found for this paper. 1 possible match can be shown below.

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{drano2025llamazip,
  title  = {Llamazip: Leveraging LLaMA for Lossless Text Compression and Training Dataset Detection},
  author = {Sören Dréano and Derek Molloy and Noel Murphy},
  year   = {2025},
  eprint = {2511.17589},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2511.17589v1}
}

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/2511.17589.svg)](https://codeofpaper.com/paper/2511.17589)

Discussion