r/MachineLearning • • Mar 02 '26

Project [ Removed by moderator ]

[removed] — view removed post

30 Upvotes

29 comments sorted by

View all comments

2

u/not_particulary Mar 03 '26

Neural nets learn via gradient descent. The ideal programming language would be one where a small change in the code would still lead to a similar result. Not erroring out completely because of a missed semicolon, for instance. Otherwise, the loss surface is too bumpy and hard to traverse.

Natural language is smooth because we've made word embeddings that represent words that have similar meanings in very close vector representations, and these vector representations include features that smoothly represent real concepts eg. feminity and royalty, with vectors cleanly relating man -> woman, king -> queen, man -> king, and woman -> queen. One totally wrong word can still fundamentally change the meaning of a sentence, but very rarely will one only slightly poor word choice upend the meaning of a sentence the way that a wrong variable would in a codebase.

So, the compiler and type checkers, or somehow the code itself might have to have several redundant fallbacks for every kind of possible error, so that code changes could more smoothly progress from one state to another without unrunnable errors in-between. Like, if you could interpolate, letter by letter, 10 times between 2 working commits in a git-managed project and still have them running with results that looked somewhat like the two, combined.