3 ms·
This has been built on extensively over the past two years. For instance: Tighter Bounds on the Expressivity of Transformer Encoders https://arxiv.org/abs/2301.
by inciampati 3y ago
This has been built on extensively over the past two years. For instance: Tighter Bounds on the Expressivity of Transformer Encoders https://arxiv.org/abs/2301.10743 https://arxiv.org/abs/2301.10743. I find it interesting that transformers are equivalent to first order logic on circuits with counters. Amazing what you can do even if you're not Turing complete!
- tambourine_man 3y agoTransformers are Turing complete, right?
- canjobear 3y agoNo, they are actually very limited formally. For example you can't model a language of nested brackets to arbitrary depth (as you can with an RNN). That makes it all the more interesting that they are so successful.
- nyrikki 3y agoThe paper from yesterday: https://news.ycombinator.com/item?id=36332033 https://news.ycombinator.com/item?id=36332033 Showed that attention with positional encodings and arbitrary precision rational activation functions is Turing complete. Using a finite precision, nonrational activation function and/or without positional encodings is not Turning complete. Plus Turing completeness does not tell you anything about practical computation in reasonable time or space constraints. printf() format strings are TC, and while interesting, probably won't help you solve real problems.
- HarHarVeryFunny 3y agoMaybe, but a CPU is also Turing-complete yet a (for example) sort program running on a CPU is just a sort program. The functionality of an LLM is defined by whatever it learnt during it's (dataset-specific) training, even if that includes in-context and one-shot "learning". You could train a Turing-complete transformer to do a different task than running an LLM, but once you've trained it to run/be an LLM, then that is what it is.
- nyrikki 3y agoA CPU is a finite state machine, so adding an unbounded tape is trivial to make a theoretical TC. The arbitrary precision activation function and position requirements are to keep the attention dynamic reweighting values in the computable set. As even multi layer neural networks use the shifting, reflection and sum of line segments to produce their curve, the results of those operations may not map to representable numbers even given unbounded digits when using typical activation functions. Using an activation function that keeps results in aleph-nought, or a countable infinity is what allows for it to be TC. Probably Approximately Correct or PAC learning is intentionally fuzzy. The occasional gradant loss problem with ReLU is possibly a lens to think about this in. But the success of statistical learning in the past 30 years has been largely related to having existential quantifiers with acceptable training loss. Following the very useful concept from stats that all models are wrong but some are useful. Transformer models will most definitely be useful for some problems, assuming that a physically unrealizable configuration is TC will hold will lead to wasted efforts. Simply acknowledging the potential dead ends of a technology helps with not only choosing the right path but recognizing early that you need to change course. IMHO, this posts papers method as a lens is far more useful as an intuition.
- inciampati 3y agoBeautiful synopsis, thank you!
- sp332 3y agoBeing technically maybe turing complete doesn't mean we know how to program it usefully. https://blog.wtf.sg/posts/2023-02-03-the-new-xor-problem/ https://blog.wtf.sg/posts/2023-02-03-the-new-xor-problem/ To be completely fair, the Transformer architecture does not map neatly into being analysed like automata and categorised in the Chomsky Hierarchy. Neural Networks and the Chomsky Hierarchy train different architectures on formal languages curated from different levels of the Chomky hierarchy.