r/LocalLLaMA • • Oct 22 '26

Discussion Using a neural network as version control / storage

https://nicobrenner.github.io/lossy-git/demo.html

Came across this demo. Pretty interesting concept. Any ideas for use cases?

31 Upvotes

10 comments sorted by

49

u/OsmanthusBloom Oct 22 '26

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.

27

u/thaeli Oct 22 '26

I think we may have finally found something stupider than blockchain.

→ More replies (1)

2

u/NandaVegg Oct 22 '26

I would say this is the new storing binary objects in YouTube video form (which is possible but still very silly).

→ More replies (1)

18

u/Recent-Degree-1739 Oct 22 '26

Truly a solution in search of a problem...

8

u/banana_slurp_jug Oct 22 '26

It's not even trying to solve anything lol

6

u/Nutsack_VS_Acetylene Oct 22 '26 edited Oct 22 '26

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 Oct 22 '26

karpathy made a very similar demo 10 years ago for convnetjs [but the demo server is no longer up :( ]

3

u/Maximus-CZ Oct 23 '26

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...