News for hackers. Stuff that matters.
Re:Tighter bounds on the expressivity of transformer encoders by sharemywin on Tuesday April 25, 2023 @01:47PM (#35704063)
We connect and strengthen these results by identifying a variant of first-order logic with counting quantifiers that is simultaneously an upper bound for fixed-precision transformer encoders and a lower bound for transformer encoders.

not sure what a fixed precision transformer is?

Re:Tighter bounds on the expressivity of transformer encoders by bmc7505 on Tuesday April 25, 2023 @01:58PM (#35704224)
See Merrill & Sabharwal (2023) [1]:

  A transformer N is a specific kind of a computation graph family over vectors of floating-point numbers with p precision. We work with fixed-precision transformers, i.e., we take p to be constant with respect to the input sequence length n. In practice, transformers typically use p = 32, and, several newer, larger transformer language models use p = 16 (Brown et al., 2020; Zhang et al., 2022), even while allowing larger context lengths n than their predecessors.
[1]: https://arxiv.org/pdf/2210.02671.pdf#page=7
Re:Tighter bounds on the expressivity of transformer encoders by DaiPlusPlus on Tuesday April 25, 2023 @07:43PM (#35708157)
Please exclude my ignorance, but what would happen if network weights were modelled with arbitrary-precision numerics, such as a rational type, instead of IEEE floats?

(Other than drastically slowing things down, of course)

Re:Tighter bounds on the expressivity of transformer encoders by bmc7505 on Tuesday April 25, 2023 @08:38PM (#35708489)
With arbitrary-precision, you can essentially replace the entire neural network with a single parameter. [1] Likewise, in model checking, one often uses bounded-length bitvectors, because even a PDA with two stacks is Turing-equivalent. The poor separability between theoretical and physically-realizable models of computation is one of the weaknesses of the Chomsky hierarchy and classical approximation theory, and why more descriptive theories to characterize function complexity, e.g., circuit complexity, algebraic complexity theory and/or logical expressivity, are often needed.

[1]: https://arxiv.org/pdf/1904.12320.pdf

Re:Tighter bounds on the expressivity of transformer encoders by pizza on Tuesday April 25, 2023 @08:44PM (#35708522)
I guess wrt ieee floats, it depends on how often these cases happen and their consequences in the model:

- rounding errors in arithmetic between small and large numbers, large and large numbers, or small and small numbers

- unrepresentable numbers (eg 0.1)

- non-associativity of arithmetic making order of evaluation relevant

- residual connections can introduce, quite easily, arithmetic errors (heard this from research I can’t find atm): x + f(x) happens a lot in transformers, and the terms might be prone to cancellation or inadvertent rounding

- layernorm blocks introducing some error

- gradients might get added with error if too small or too big

On the bright side, some people have suggested that ieee float problems are usually not so terrible that you can see them instead as introducing slightly beneficial regularization

Re:Tighter bounds on the expressivity of transformer encoders by eutectic on Tuesday April 25, 2023 @01:57PM (#35704209)
I think it means the analysis accounts for rounding error.
Re:Tighter bounds on the expressivity of transformer encoders by ftxbro on Tuesday April 25, 2023 @03:55PM (#35705806)
Yes it's this. They have identified an expressivity level that they are calling FOC[+;MOD] which is intuitively supposed to capture the expressivity that transformers and transformers-with-rounding have in common. More formally they are trying to track down exactly how this level compares to that of transformers, transformers-with-rounding, simplified stateless counter machines, and uniform TC(0), and they have done it with partial success and they are reporting their results.
Re:Tighter bounds on the expressivity of transformer encoders by transformi on Tuesday April 25, 2023 @07:07PM (#35707924)
is it possible to solve NP-hard problems with transformers/LLM?
Re:Tighter bounds on the expressivity of transformer encoders by ironbound on Tuesday April 25, 2023 @08:03PM (#35708296)
you'll be limited right away by the context lenght of 4096 tokens
Re:Tighter bounds on the expressivity of transformer encoders by cardboardbach on Tuesday April 25, 2023 @09:30PM (#35708791)
Of course.
Re:Tighter bounds on the expressivity of transformer encoders by shawntan on Tuesday April 25, 2023 @11:56PM (#35709507)
You should check out the work referenced in the abstract, the most recent here: https://twitter.com/lambdaviking/status/1630581475425828864

There are limitations for what a Transformer can compute if we do not allow for Chain-of-Thought type of output. By allowing the model to "show its work" allows it to effectively use the output as an "infinite tape". I'm simplifying but that's the basic gist of it.

I'll shamelessly plug my blog post from a week ago for a simpler take on the matter: https://blog.wtf.sg/posts/2023-02-03-the-new-xor-problem/

Re:Tighter bounds on the expressivity of transformer encoders by intalentive on Wednesday April 26, 2023 @02:12AM (#35710110)
They can't even learn parity checks.

https://arxiv.org/abs/2207.02098

Re:Tighter bounds on the expressivity of transformer encoders by meltyness on Tuesday April 25, 2023 @08:14PM (#35708361)
Does this mean that transformers are most akin to rule-based expert systems with opaque (currently) statistically-devised rules?