Neuralzip

MEASURED, COMPLETE ARCHIVES

Count every byte.

Measured results from fresh browser encoding, the Python package and saved research models. Sizes include weights, streams, metadata and checksums.

Default Python preset

The installed Python package compressed the complete Alice text from 151.1 KB to 80.2 KB (1.88×) in an earlier test with 60 seconds of CPU training. Encoding and verification took 87.9 seconds; decoding took 8.8 seconds on the test machine, using one CPU thread and one coding worker.

All nine representative-file checks restored the exact original bytes. Small inputs in shorter research runs grew because of model overhead. These measured timings are not promises for other devices.

Download the full acceptance results

Fresh browser encoding

The same source files were encoded with the released and updated browser trainers. Sizes include the entire model archive. Every result was independently decoded and compared byte for byte.

TextOriginalBefore fixAfter fix
11 KiB Alice excerpt11.3 KB31.4 KB10.4 KB
Alice in Wonderland (complete)151.1 KB83.2 KB71.4 KB

Measured on GitHub's software WebGL runner. Learning runs and devices can produce different archive sizes and timings. Short or difficult text can still grow.

Download browser measurements

Completed research models

TextOriginalModel archiveRatioTry it
Alice in Wonderland151.1 KB63 KB2.40×Download archive
Five-book collection3,120.9 KB791.1 KB3.94×Download archive

What is included

The current format is a binary model archive. No outer conventional compressor is applied. Shared decoder and runtime installation sizes are excluded, as with ordinary compressor executables. Both supplied archives were decoded and compared with their original source bytes.

Runtime and archive size

Learning affects how compact an archive can become. Restored content is always exact, regardless of model prediction accuracy. Decompression also runs the model, so it is much slower than common conventional codecs. A small file can grow because its model costs more bytes than the predictions save.

Our earlier experiments found PPMd smaller on both texts. We publish complete archives so that comparisons can include model storage instead of counting only an encoded stream.

Reproduce the process

neuralzip encode your-text.txt
neuralzip info your-text.txt.nzip
neuralzip decode your-text.txt.nzip -o restored.txt

Record the input SHA-256, model settings, training method, complete archive size and hardware. Compare exact original bytes after decoding. Different hardware and learning runs can produce different weights; every completed archive must still restore the original bytes.

Download the measurement data