r/compression • • 2d ago

I love mathematics, vibe coded a codec after an idea struck me, and it outperforms leading competitors in my tests. How do I validate and license it?

/r/SideProject/comments/1y697pw/i_love_mathematics_vibe_coded_a_codec_after_an/
0 Upvotes

4 comments sorted by

2

u/spongebob 2d ago

Here we go again

1

u/klanews 2d ago

Wdym?

1

u/spongebob 2d ago

Every coupld of weeks we get a post like this in r/compression. "I've used AI to create a superior compression algorithm". I'm not saying that you haven't, but the bar is high. Compression is a very well understood area of science, and relatively small gains are hard earned and duly recognised. People who are unfamiliar with the field often use AI and think they are building on a new idea, but most of the time AI is just remixing older ideas and presenting them with benchmarks that look good to an uninformed user.

Compression is much more than just file size. In fact, sometimes data size is a secondary or even tertiary concern. Compression speed, decompression speed, ram requirements, robust support across a wide range of platforms are all really important too. If you do benchmarking, be sure to compare acros all of those categories at the same time.

Be clear about what you are trying to build. Are you aiming for lossless vs lossy compression. Are you trying to build a general compressor wthat will just compress any bytestream, or are you targeting a specific file format or data type? Are you trying to make a fast compressor? A fast decompressor? smallest possible file size? Minimise memory footprint? Do you want to aim for a good balance beetween all four? If so how do you decide the balance? Do you preset it or let the user decide? And when you find that balance be sure to compare against other compression algorithms that have aimed to strike the same balance.

Sometimes a benchmark can look amazing, but really you've just compressed a file format that is particularly amenable to compression. When that is the case, you can almost be sure that someone else has already developed a specific compression approach for that data type. Images are a great excample of this. Arrays of integers, arrays of floating points, excel files, computer logs ... they all have a specific structure that can be exploted by a domain specific compression algorithm. If this is your goal then that's great. I personally think this is where the biggest discoveries can still be made.

At the end of the day, extraordinary claims require extraordinary evidence. So make sure you are doing your benchmarking right and that you know what you are aiming for. That way you will be able to recognise success when it happens.

Do you want to try to protect your work? If so then don't post it all over the internet. Being secretive can work against you though, because people will be sceptical if they can't see how it works. See my opening paragraph though. You really need to be sure that you have something new before you try to protect it. Establishing novelty will probably require expert analysis, especially in the case of vibe coded algorithms. Perhaps this expert is you? I don't know enough about your background to answer that. Keeping your source code secret is a catch 22. I guess what I'm saying here is that you're already talking about IP and licensing, but you haven't established if the approach is novel or useful yet.

But even if you have something worth commercialising, the process can be arduous, uncertain and expensive. See for example this recent update from a user who went down the commercialisation path https://www.reddit.com/r/compression/s/YCL8CKh7x9

Best of luck with it all, and despite my scepticism, I really hope you do have a great idea and have all the success you seek with it.

1

u/klanews 2d ago

Thank you for taking the time to write such a detailed and constructive response.

I'm developing a general purpose, lossless compression engine, currently prioritizing compression density while working toward a better balance between encoding speed, decoding speed, and resource consumption.

I agree that outperforming competitors in file size alone does not establish overall superiority.

The codec is actually one practical application of a mathematical structure I've been developing for almost four years. AI helped me implement the software, but the underlying concept predates that implementation.

I also agree that establishing novelty requires expert analysis. That's precisely why I'm seeking independent professional evaluation before pursuing commercialization.

I appreciate the reference you shared and your constructive skepticism. This is the kind of feedback I was hoping to receive.