A neural-network-only compressor claimed second place on a text-compression benchmark that has tracked progress for over two decades. The system named tufazip squeezed one billion bytes of Wikipedia down to 105.39 megabytes, securing the top spot for entries that rely solely on a neural network to make predictions.

The Hutter Prize and Two Decades of Text Compression

The Large Text Compression Benchmark, also known as the Hutter Prize, has challenged participants since the mid‑2000s to losslessly compress a billion-byte excerpt from Wikipedia, enwik9. The scoring rules add the size of any decoder or trained model to the compressed‑text size, so participants must ensure their prediction model saves more space than it costs. Earlier entries have used statistical methods such as PPM and BWT, LSTM‑based predictors, and more recent Transformer architectures. Each wave has chipped away at the compressed size, but most still bundle substantial decoder code alongside the predictions.

Tufazip's 12-Layer Transformer and How It Learns

Tufazip's predictor consists of a 12‑layer, 163‑million‑parameter decoder‑only Transformer. The model uses rotary position embeddings, SwiGLU feed‑forward sublayers, and RMS normalization placed before and after each attention and MLP block. The architecture also normalizes attention queries and keys. The final output assigns a probability to each possible next token.

For the online compression run, the encoder and decoder begin with identical randomly initialized weights. As the model processes each token, it produces next‑token probabilities, encodes the actual token using those probabilities, and then both sides perform the same deterministic weight update before the next prediction. This loop of predict, encode or decode, and learn repeats until the file is complete. The decoder reconstructs the online training as it reconstructs the text, which means the learned weights never need to be transferred between encoder and decoder. For the algorithm to remain lossless, the weight update from learning and next‑token probabilities must be fully deterministic.

The system also experimented with offline transfer. A compact model is trained in advance, its weights are transferred to the decoder, and online learning continues from that starting point. This gives the model a better initialization, but introduces a storage cost: the initialization must save more compressed text than it adds over the billion‑byte file.

Why the Offline‑Then‑Online Balance Matters for Practitioners

The final tufazip result of 105.39 megabytes includes the 4.33‑megabyte quantized offline model and the decoder. The offline‑trained 34‑million‑parameter model provides a head start, and the two copied layers give the online system a trained beginning without adding proportional cost. The deterministic learning loop means a single set of weights serves both compression directions, simplifying deployment. For developers working with neural‑network predictors, the result shows that a purely learned model can compete with established statistical compressors when model size and training procedure are carefully tuned. The approach also suggests that efficient text modeling does not require massive ensembles or complex preprocessing when the architecture and learning rule are right.

The project began from NNCP, and the author improved the model and training recipe to reach 105.98 megabytes using online learning alone, then reduced that to 105.39 megabytes with the offline trained prior including weights and decoder. At the time of submission on September 7, 2026, tufazip ranked #2 on the Large Text Compression Benchmark and became the best‑performing entry using a neural network as its sole prediction model.