5 ms·
> And then you have problems like "5142352 * 51234" which is trivial problems for any basic calculator, but very hard for a human or a LLM. I think LLMs are ge
by sdesol 2y ago
> And then you have problems like "5142352 * 51234" which is trivial problems for any basic calculator, but very hard for a human or a LLM.
I think LLMs are getting better (well better trained) on dealing with basic math questions but you still need to help them. For example, if you just ask it them to calculate the value, none of them gets it right.
http://beta.gitsense.com/?chat=876f4ee5-b37b-4c40-8038-de38b6007e99 http://beta.gitsense.com/?chat=876f4ee5-b37b-4c40-8038-de38b...
However, if you ask them to break down the multiplication to make it easier, three got it right.
http://beta.gitsense.com/?chat=ef1951dc-95c0-408a-aac8-f1db95710372 http://beta.gitsense.com/?chat=ef1951dc-95c0-408a-aac8-f1db9...
- diggan 2y ago> I think LLMs are getting better (well better trained) on dealing with basic math questions but you still need to help them I feel like that's a fools errand. You could already in GPT3 days get the LLM to return JSON and make it call your own calculator, way more efficient way of dealing with it, than to get a language model to also be a "basic calculator" model. Luckily, tools usage is easier than ever, and adding a `calc()` function ends up being really simple and precise way of letting the model focus on text+general tool usage instead of combining many different domains. Add a tool for executing Python code, and suddenly it gets way broader capabilities, without having to retrain and refine the model itself.
- sdesol 2y agoI personally think getting LLMs to better deal with numbers will go a long way to making them more useful for different fields. I'm not an accountant, so I don't know how useful it would be. But being able to say, here are some numbers do this for scenario A and this for scenario B and so forth might be useful. Having said that, I do think models that favours writing code and using a "LLM interpretation layer" may make the most sense for the next few (or more) years.
- wat10000 2y agoBased on how humans operate, I’d say they should have a good “intuition” for approximate results, but use an external calculator for the exact numbers. Even if you can train it to be accurate, it’s going to be tremendously inefficient compared to calling out to some external service that can directly use the arithmetic hardware in the computer.
- sdesol 2y agoI agree and this thread got me thinking about how I can package WASM in my chat app to execute LLM generated code. I think a lot can be achieve today with a well constructed prompt. For example, the prompt can say, if you are asked to perform a task like calculating numbers, write a program in JavaScript that can be compiled to WASM and wait for the response before continuing.
- Philpax 2y agoDon't really need WASM for that - have you tried Claude Artifacts?
- sdesol 2y agoI am thinking about making it more versatile. I think having a llm that can process wasm code can be extremely handy.
- wat10000 2y agoExternal tool use and general real-world integration seems to be really lacking currently. Maybe current models are still too limited, but it seems like they should be able to do much better if they weren’t effectively running in a little jar.
- diggan 2y agoIf only we had a function in JavaScript that could execute JavaScript code directly, wouldn't need WASM then (assuming it's just you + assistant locally).