Tufa Labs compresses 1 GB of Wikipedia to 105.39 MB with one neural net

Save is available to registered users — create a free account to save this article. 5 views

Summarize with AI

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.

Tufa Labs announcement of TufaZip compressing 1 GB of Wikipedia to 105.39 MB losslessly

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.

0 0 0 0 0 0 0 0 0 0 0 0

Discussion

0 comments

Members can join the discussion

Become a member to comment and reply to other members.

Become a Member

No comments yet

Be the first to start the discussion.

Go Member

Unlock the deep dives

Full source code and member-only articles. Free account, no card.

Create free account