by peter_d_sherman · 2y ago · 0 comments
What is the smallest, tiniest amount of parameters that will result in a language model which understands how to add, multiply, subtract, divide, handle "if..then" type constructs, and perform loops?
In other words, what is the smallest amount of parameters for a language model that will result in a Turing-complete (https://en.wikipedia.org/wiki/Turing_completeness) AI LM -- regardless of how few words it would recognize?
?
I submit that one to all of the (L)LM AI researchers in the world.
Tiniest Turing-complete Language Model, please!
IMO the question doesn’t make sense due to how LLMs are structured, and on the other hand not a lot is needed to make a system Turing-complete. Turing-completeness and the capabilities of LLMs are mostly orthogonal aspects.
Turing-completeness isn’t even necessarily desirable, because that would mean that the system can get stuck in an infinite loop, never producing an answer.
https://openreview.net/pdf/0c9a0f445d430a4d2bf9a08078c435091...
Without a loop - an LLM takes a fixed set of tokens and produces a fixed set of tokens. It has some internal state.
So without a loop an LLM cannot be a general purpose computer (Turing machine).
Turing machines are simple. They need 3 things - infinitely long tape, ability to have internal state, and conditionally write and move tape based on what is on tape.
So if an LLM had access to infinite memory, all it needs is to implement a subleq instruction which is quite simple, and run itself in a loop.
See https://en.m.wikipedia.org/wiki/One-instruction_set_computer
One instruction set computer
See this paper from DeepMind which talks about compiling existing code into transformer primitives https://arxiv.org/pdf/2301.05062.pdf
So the smallest ML model that can do arbitrary math with () * / + - operators and floating/int numbers is not that complex.
Perhaps few 1000s of params. One can compile existing code into transformer weights.
Now that you mention, I’ve been nerdsniped to building it.