Back to Devoured - November 23, 2026
DEVOURED
tufazip: Learning to Compress a Billion Bytes of Wikipedia

tufazip: Learning to Compress a Billion Bytes of Wikipedia

Tech Tufa Labs
Tommy He compressed one billion bytes of Wikipedia into 105 MB by using a Transformer model that learns online without needing to transfer weight updates.
What: Using his project 'tufazip', Tommy He achieved the second-highest score on the Large Text Compression Benchmark. He used a 12-layer, 163M-parameter Transformer where the encoder and decoder learn in sync by training on the same data, eliminating the need to send large weight files.
Why it matters: This project bridges the gap between machine learning and information theory, showing that compression is a concrete, quantifiable proxy for machine intelligence.
Deep dive
  • 'tufazip' treats compression as a next-token prediction task using arithmetic coding.
  • To keep the decoder in sync, both encoder and decoder must perform identical gradient descent updates on the stream of data.
  • Offline training (prior weights) was used to initialize the model to improve performance, but the cost of storing these weights had to be less than the space saved by better predictions.
  • Using shared Transformer blocks (Cycle2 layout) reduced the storage cost of the offline-trained prior weights.
  • Replay buffers were used to allow the model to revisit previous context to refine its training on the same data.
  • The project reached an effective compression rate of 0.84 bits per byte for the billion-byte Wikipedia dataset.
Decoder
  • Arithmetic Coding: A form of entropy coding that represents a message as a single floating-point number between 0 and 1, where more frequent symbols require fewer bits.
  • Lossless Compression: Data compression where the original data can be perfectly reconstructed from the compressed file.
  • enwik9: A one-billion-byte extract of Wikipedia used as a benchmark for text compression algorithms.
Original article

Full article content is not available for inline reading.

Read the original article →

Explore all 68 articles in today's digest

Fresh dev news, AI-digested daily. Never miss a trend at devoured.fyi