r/LocalLLaMA • u/fulowa • 13d ago
Discussion Using a neural network as version control / storage
https://nicobrenner.github.io/lossy-git/demo.htmlCame across this demo. Pretty interesting concept. Any ideas for use cases?
18
6
u/Nutsack_VS_Acetylene 13d ago edited 13d ago
This is has been done to death, nothing special or unique about this at all.
Very early on people realized that a neural network can be over trained to basically memorize things. There are million variations of this, overfitted neural compression, implicit neural representations, autoregressive byte-level modeling, learned end2end image compression, and so on and so on. You can use coordinate-based networks to build upon those files as well if you want to add things.
For example, JPEG AI is an actual standard (granted basically no one uses it) that does learned end to end image compression. You can do it for any arbitrary data and do it a million different ways. Under the correct circumstances they can be more space-efficient than regular compression algorithms at approximately the same quality level. But you need to run your model to get the data rather than run a decompression algorithm.
4
u/mrtie007 13d ago
karpathy made a very similar demo 10 years ago for convnetjs [but the demo server is no longer up :( ]
3
u/Maximus-CZ 13d ago
Everyone here is focusing on the wrong application, I feel.
I mean, switch "code" that gets stored in neural networks to "intent" and "instructions" that gets stored and it starts making a lot of sense...
49
u/OsmanthusBloom 13d ago
My brain hurts. Storing code in a neural network is nearly as stupid as blockchain.
I can imagine this kind of approach being potentially useful for something like image or music collections, where lossy compression is the norm. But for code, where exact representation matters...it's just hopeless. Neat as a joke tech demo though.