Show HN: Overfitted a 900KB Transformer to Compress a 100MB CSV into 7MB
41–50 of 83 posts
Re: Show HN: Overfitted a 900KB Transformer to Compress a 100MB CSV into 7MB
#42What does it compress the full 1GB file to? http://prize.hutter1.net/
Maybe everyone should compress the 1st 100MB worth of digits of pi, for an apples-to-apples comparison? Edit: oh wait that's too easy. Need to generate /publish random digits so everyone can use it.
Decompressor: Take any old algorithm for finding digets of pi, find first 100M of them, print them.
Compression ratio of 0! :0
Re: Show HN: Overfitted a 900KB Transformer to Compress a 100MB CSV into 7MB
#43Re: Show HN: Overfitted a 900KB Transformer to Compress a 100MB CSV into 7MB
#44main drawback is that it's not lossless ;-)
but this is great. I hope this actually becomes a format that wraps the weights and transformer module (maybe this can also be NAS-optimized too?). Maybe it would even work for video?
It's like calling gzip but instead of compression level you choose kolmogorov complexity level
Re: Show HN: Overfitted a 900KB Transformer to Compress a 100MB CSV into 7MB
#45Fabrice Bellard may have been the first to do this, 7 years ago: https://news.ycombinator.com/item?id=27244004
Re: Show HN: Overfitted a 900KB Transformer to Compress a 100MB CSV into 7MB
#46So has anyone tried to you know for example keep constant weights base model and just transmit the data, might be better compression
BUT my model size is just 900KB (for 100mb file atleast) so it is negligible
Re: Show HN: Overfitted a 900KB Transformer to Compress a 100MB CSV into 7MB
#47Dumb question: can you train a model to predict the next byte of ANOTHER MODEL So apply this same logic to compressing a bigger model within a smaller model I know this is absolutely regarded, but humour me please
Re: Show HN: Overfitted a 900KB Transformer to Compress a 100MB CSV into 7MB
#48Three questions: 1. How much was AI used to generate documentation for this project? 2. The 100MB CSV data sources are not provided in the repo so it doesn't seem possible to reproduce your results. The enwik9 dataset says it is a "slice" of the larger data set, and there are many NYC taxi trip record datasets that exist. Can you provide the datasets used to generate your results? 3. I am surprised to see performance…
2. Have added the link for downloading both the enwik9 slice and the nyc dataset. Apologies I forgot to add it.
You can get it from here - https://github.com/samyak112/pym-particles/blob/main/README....
3. Other than zip i tested it with zstd19, and now that you mentioned LZMA2 and BZIP2
I got results on enwik9 100mb slice as
zstd - 28mb bzip2 - 30mb lzma2 - 26mb
I will mention these and results from ZPAQ in the readme for both files, thanks for pointing them out!!!
But the thing is this neural compression approach cant be used right now, as it takes hours to compress and de compress a 100mb file so not really usable and more of a fun project.
Re: Show HN: Overfitted a 900KB Transformer to Compress a 100MB CSV into 7MB
#49I've had this idea of building a codec that would similarly overfit to specific images. But the codec itself would not be a fixed size transformer... instead you could just mess around with the sizing to get better quality/smaller size. So the codec would be something like: I've seen experiments where people have a "fixed" pipeline but I think having something more dynamic would work quite well.
Re: Show HN: Overfitted a 900KB Transformer to Compress a 100MB CSV into 7MB
#50Earlier quoted context omitted.
I tried it on a enwik9 100 mb slice and was able to compress it to 20 mb + 900kb transformer so 21mb. I know the top submission was able to get it to 13 mb. Still trying some ideas to get better compression.
Since you know the size of the file beforehand you may be able to overfit some kind of text diffusion model instead of a transformer? May allow you to partially correct the model output using some other method and then fill in the blanks that were wrong from previous generations.
Can you point me to something that i can read? I really wanna try this approach , diffusion model does sounds interesting for compression.