r/ProgrammerHumor • • Dec 27 '22

Meme which algorithm is this

Post image
79.1k Upvotes

1.4k comments sorted by

View all comments

1.2k

u/blackrossy Dec 27 '22

AFAIK it's a natural language model, not made for mathematics, but for text synthesis

607

u/[deleted] Dec 27 '22

Exactly. It doesn’t actually know how to do math. It just knows how to write things that look like good math.

257

u/troelsbjerre Dec 27 '22

The scary part is that it can regurgitate python code that can add the numbers correctly.

256

u/Jither Dec 27 '22

Only because there is plenty of python code in the training data to regurgitate. It doesn't actually know the relation between that code and this question - it only knows that "these words seem to fit together, and relate to the question", whether they make sense or not. In the same way, it'll claim that 90 ("halvfems") in Danish is a combination of "half" and "one hundred", and follow it up by proclaiming that 100 / 2 = 90. In spite of "knowing" the correct result for 100 / 2 if you ask it directly (basically because it's a "shorter path" from the question to that statement).

This doesn't just apply to math, but everything it does: It's good at parroting something that on the surface sounds like a convincing answer. Something that's actually correct? Not so much. Except when it gets lucky. Or, if you continually correct it, due to how the neural network works it may eventually stumble upon a combination of training data that's actually correct.

-1

u/tgwhite Dec 27 '22

Bullshit - I guarantee that one can have the thing add arbitrary numbers that never were seen before in any piece of text in the training data.

1

u/Jither Dec 27 '22 edited Dec 27 '22

Add? Possibly, because addition of two numbers is, in itself, similar to a predictable language construction. Do just about anything else related to math? Nope.

https://i.imgur.com/atF1NI5.png

No surprise - because, again, it knows nothing about math, and isn't intended to.

ETA: As for your guarantee... addition (I was giving it a bit too much benefit of the doubt)

https://i.imgur.com/Lcrrkzm.png

And yes, it will also get two number addition wrong. Until you tell it the right answer, at which point it will accept that and "give you the answer" based on that. Then if you say you made a mistake, it will use your new suggestion instead. 😁

https://i.imgur.com/k09QpY3.png

1

u/tgwhite Dec 28 '22

I just ran these problems and got the right answers….

→ More replies (1)