this post was submitted on 22 Nov 2023
1 points (100.0% liked)

Machine Learning

1 readers
1 users here now

Community Rules:

founded 1 year ago
MODERATORS
 

Hello

x-posting from t/askprogramming : Original here.

There was a comment stating I might ask here as well.

Hi all

I am looking for a comparison of known AI models method of handling arithmetic operations.

How do these AI compute 2+2 ? That is to ask :

Do they perform a gradient descent, and figure out that (2+1) < (2+2) < (2+3) hence 2+2 must be between 3 and 5 ? Or do they actually invoke an arithmetic operation in the host language.

I understand that some popular AI model is closed source, and we will not know. But for the rest, is there an already compiled meta study / publications comparing how they tokenize numbers, and handle arithmetic?

Thank you.

top 3 comments
sorted by: hot top controversial new old
[–] lotonototo@alien.top 1 points 11 months ago (1 children)

There's work on tool-assisted LMs regarding math problems: https://arxiv.org/abs/2305.15017. TL;DR: they train the LM to extract the numbers, then feed it into an calculator and return back the result to the LM during inference.

Vanilla LMs, which are neural nets, don't compute anything - they guess the result. The guess is based on previously seen distribution of results related to the given problem. I saw a paper that explored the distribution but can't find it anywhere...

[–] sean_con@alien.top 1 points 11 months ago

This is exactly the answer I was looking for. Thank you

[–] itsmevuyogee@alien.top 1 points 11 months ago

hey there, I'd recommend looking into research papers and conference proceedings related to AI and arithmetic operations. You might find some meta studies or comparisons of how different AI models tokenize numbers and handle arithmetic. Good luck with your search!