Live data from Hacker News

I asked GPT-NeoX-20B a hundred arithmetic questions

twitter.com

11–20 of 235 posts

Re: I asked GPT-NeoX-20B a hundred arithmetic questions

#11

Earlier quoted context omitted.

It's recently been shown that even though the numbers are represented with different tokens, the network learns to form an internal representation that understands the progression from one token to the next.

The idea that each number has to be inside ones Brain or Neural Network or Token is plainly wrong. Network has to grasp the "abstract" number, but it clearly did not grasp that concept.

How would you test if it grasped the concept?

Re: I asked GPT-NeoX-20B a hundred arithmetic questions

#13
post #3

Thank you for this. Technically it's not GPT-3, but GPT-NeoX-20B, although they are based on a similar architecture. The poor performance is most likely due to not having a large database of math problems to draw from. Github, for example, is part of the dataset that is used to train both GPT-3 and GPT-Neo variants, which is partly why they can generate meaningful code (sometimes). I wonder how a model finetuned for…

Poor performance is more likely due to how transformer neural networks view numbers. It memorises them like words instead of modeling their numerical structure. Thus even if it’s seen the number 3456 and 3458, it knows nothing of 3457. Totally different embedding. It’s like a kid memorising a multiplication table instead of learning the more general principle of multiplication (related: this illusion is why big model…

Take a look at this paper:

Deep Symbolic Regression for Recurrent Sequences https://arxiv.org/abs/2201.04600

If you look at embedding visualization it is very clear that the model learns order of numbers.

(Interactive demo: http://recur-env.eba-rm3fchmn.us-east-2.elasticbeanstalk.com... )

There is also:

Grokking: Generalization Beyond Overfitting on Small Algorithmic Datasets https://arxiv.org/abs/2201.02177

Again, looking at visualizations the model very clearly grasps the structure of the function it models.

Re: I asked GPT-NeoX-20B a hundred arithmetic questions

#14
post #11

Earlier quoted context omitted.

The idea that each number has to be inside ones Brain or Neural Network or Token is plainly wrong. Network has to grasp the "abstract" number, but it clearly did not grasp that concept.

How would you test if it grasped the concept?

https://arxiv.org/pdf/2201.02177.pdf

This paper shows fairly conclusively that the network 'groks' modular addition.

Re: I asked GPT-NeoX-20B a hundred arithmetic questions

#15
post #11

Earlier quoted context omitted.

The idea that each number has to be inside ones Brain or Neural Network or Token is plainly wrong. Network has to grasp the "abstract" number, but it clearly did not grasp that concept.

How would you test if it grasped the concept?

Being able to extrapolate to numbers that were not in the training set, perhaps? At least that'd be a basic part of the requirement.

Re: I asked GPT-NeoX-20B a hundred arithmetic questions

#16

This just shows that this model did not learn anything. Humans do not see billions of examples to add numbers. We see just few and can apply learned notation and procedures to infinity with 100% precision. GPT-3 learned mathematical intuition. Humans can hardly learn multiplication table over months and repetitions of same examples, and that table hardly matters at all. GPT-3 is just plainly wrong objective they tryi…

I think you'd find that most people doing large number math in their head is also off by a few percent like this model.

Sure, with pen and paper we can follow specific algorithms manually to very slowly get a precise result. If we wanted a computer to merely follow instructions, then I suspect that there are better ways...

Re: I asked GPT-NeoX-20B a hundred arithmetic questions

#17
post #12

Arithmetic seems like an example where it would help to learn from the real world, not just from text. I learnt to add up by watching my teacher manipulate plastic Lego-style blocks. Put 3 blocks with 2 blocks, and you have 1, 2, 3, 4, 5.

But somewhere in that massive corpus of text will be a description just like you've just given...

Re: I asked GPT-NeoX-20B a hundred arithmetic questions

#18
post #15
post #11

Earlier quoted context omitted.

How would you test if it grasped the concept?

Being able to extrapolate to numbers that were not in the training set, perhaps? At least that'd be a basic part of the requirement.

Sure:

Deep Symbolic Regression for Recurrent Sequences https://arxiv.org/abs/2201.04600

(Interactive demo: http://recur-env.eba-rm3fchmn.us-east-2.elasticbeanstalk.com... )

Grokking: Generalization Beyond Overfitting on Small Algorithmic Datasets https://arxiv.org/abs/2201.02177

Both of these models can generalize to numbers it have not seen.

Re: I asked GPT-NeoX-20B a hundred arithmetic questions

#19

This just shows that this model did not learn anything. Humans do not see billions of examples to add numbers. We see just few and can apply learned notation and procedures to infinity with 100% precision. GPT-3 learned mathematical intuition. Humans can hardly learn multiplication table over months and repetitions of same examples, and that table hardly matters at all. GPT-3 is just plainly wrong objective they tryi…

I'll preface this by saying that I am 100% in the camp that thinks these language models are neither intelligent nor a promising avenue towards understanding intelligence.

But your conclusion here is entirely wrong: the model clearly is learning something. From eyeballing this, the model is right about 10% of the time. If it were spitting out random digits the accuracy would effectively be zero. So exactly what is it learning? Is it memorising exactly equations that it saw in training? Is it learning ngram patterns that occur frequently in arithmetic equations?

I'm not an expert on these things and I'd love to hear from someone who is.

Re: I asked GPT-NeoX-20B a hundred arithmetic questions

#20
post #3

Thank you for this. Technically it's not GPT-3, but GPT-NeoX-20B, although they are based on a similar architecture. The poor performance is most likely due to not having a large database of math problems to draw from. Github, for example, is part of the dataset that is used to train both GPT-3 and GPT-Neo variants, which is partly why they can generate meaningful code (sometimes). I wonder how a model finetuned for…

Poor performance is more likely due to how transformer neural networks view numbers. It memorises them like words instead of modeling their numerical structure. Thus even if it’s seen the number 3456 and 3458, it knows nothing of 3457. Totally different embedding. It’s like a kid memorising a multiplication table instead of learning the more general principle of multiplication (related: this illusion is why big model…

The cool thing about math applications is just how easy it would be to generate synthetic data. That these large language models haven't attempted to supplement their gigabytes+ scale data sets with such is an oversight.
Post reply on HN