Tufa Labs has released TufaZip, an open-source lossless text compressor that uses a single Transformer neural network to shrink the 1 billion-byte enwik9 Wikipedia benchmark to 105.39 MB. Code and research notes are available on GitHub and the Tufa Labs research blog.

Unlike classic compressors such as gzip or bzip2, or hybrid leaders like cmix that combine thousands of predictors, TufaZip relies on a single 12-layer, 163M-parameter Transformer as its sole probability model. It ranked second on Matt Mahoney's Large Text Compression Benchmark when first submitted in September 2026 and currently sits 13th overall as the top pure neural-network entry.
What it is
- Online training during compression: Starting from a fixed random seed, the Transformer predicts each next token, passes those probabilities to an arithmetic coder, and trains on each seen token in real time.
- Zero weight transfer for learned state: During decoding, an identical model starts from the same seed and repeats the exact training steps on each decoded token, so the full learned weights do not need to be stored.
- Compact offline initialization (v2): TufaZip v2 adds Cycle2, two offline-trained Transformer blocks quantized to 4.33 MB and copied across 12 layers that specialize online, cutting total archive size by 0.59 MB compared to the pure online baseline.
- Compute tradeoffs: Compressing enwik9 takes 631,548 seconds (about 7.3 days) and decompressing takes 645,748 seconds (about 7.5 days), using 73,748 MiB (about 72 GiB) of memory on two Intel Xeon Platinum 8570 CPUs and two Nvidia B200 GPUs.
Benchmark results on enwik9
| Configuration | Payload | Decoder and weights | Total compressed size |
|---|---|---|---|
| Online v1 (v0.1.0) | 105.924 MB | 0.055 MB | 105.979 MB |
| Six-layer prior (L6) | 99.173 MB | 10.945 MB | 110.118 MB |
| Cycle2 (tufazip v2) | 100.958 MB | 4.430 MB | 105.388 MB (105,388,353 bytes) |
Sources
Did this land? Leave a reaction.
Discussion
0 commentsMembers can join the discussion
Become a member to comment and reply to other members.
Become a MemberNo comments yet
Be the first to start the discussion.