r/neuralnetworks • • 19h ago

What about the parallelism transformer enable during training?

Post image
33 Upvotes

r/neuralnetworks • • 10h ago

I built a lossless text compressor that stores a small neural model inside each archive

16 Upvotes

I’ve been experimenting with using a neural model to compress text and packaged the result as Neuralzip.

The model learns from the input text and supplies byte probabilities to an arithmetic coder. The archive contains both the saved model and the encoded stream, allowing the decoder to recover every original byte.

On a five-book collection, one completed research model produced:

3,120,899 bytes → 791,134 bytes, including the model weights.

For comparison, gzip-9 produced 1,191,527 bytes on the same input, making the Neuralzip archive 33.6% smaller.

The interesting constraint is that a better model only helps if its prediction savings outweigh the bytes needed to store its weights.

There are clear limitations: training and decoding are slow, small files can grow, and stronger conventional compressors can still win. PPMd beat this checkpoint, and gzip beat the saved Alice checkpoint.

I’ve released a Python library and a browser demo where you can watch a saved model reconstruct text chunk by chunk.

GitHub · Demo

I’d like feedback on improving the balance between model size, prediction quality, and decoding cost.