Summary
This paper uses complexity theory to argue that a) one transformer layer cannot compose functions when the domains of the functions are too large and b) that many tasks requiring compositionality (in the broad sense) are unlikely to be solvable by Transformers, assuming that $L\neq NL$.
The paper is well written, and deals with a very interesting topic and approach: examining the computational properties of Transformers. This is an essential area of research as it allows us to understand what the limitations of these ubiquitous models could be.
Reasons to reject
- I have a bunch of questions that are outlined in the Questions to Authors. This is not an area of expertise for me so I am unsure how critical the questions I raise are.
- Currently limited to a single transformer layer, would be good to have a conjecture about the extent to which the results generalise to >1 layer.
Questions to authors
Theorem 1 states that for functions $g: A\rightarrow B$, $f:B\rightarrow C$ with $|A|=|B|=|C|=n$, and a Transformer layer $\mathcal{L}$ with $H$ heads, embedding dimension $d$, and precision $p$, such that $H(d+1)p < n \log n$, then $\mathcal{L}$ cannot solve the function composition problem.
A key question I had for the proof of this theorem was as follows. Part of the proof is observing that the passage of information is via the quantity $\frac{(F + G + X)}{(F' + G' + X')}$. This quantity by itself could form part of the encoding of $f(g(x))$ or of $g(f(x))$ by commutativity of addition. So for this to form part of the encoding of the desired $f(g(x))$ we need to add in positional embeddings. But presumably this will require passing on $p$ more bits of information (I must say I am not totally clear if this is true, and complexity/information theory is not really my field, so I could well be mistaken). If this is the case, can the contradiction with Lemma 1 still be derived? This may also be a problem for the proof of Lemma 3, since the order of function composition is critical there too, I think.
More general observations and questions are as follows.
1) A key concept in the paper is that of domain size. In the case of functions over the set $\{1,...,n\}$ this is well-defined. It would be good to include a discussion of what domain size means in other contexts. If the domain is the continuous interval $[1, n]$, does this mean function composition is basically impossible?
2) Theorem 1 holds for a single layer. Can anything be conjectured about the capabilities of more than one layer (other than anecdotal examples)? Shades of 'perceptrons can only compute linearly separable classifiers' here.
3) How do these results compare with those of Lake, B. M., & Baroni, M. (2023). Human-like systematic generalization through a meta-learning neural network. Nature, 623(7985), 115-121., where the network is able to represent e.g. `tiptoe backwards around a cone` given `tiptoe`, `walk backwards`, and `walk around a cone`, and 3 layers are used.
4) MLPs are universal function approximators, and $\Phi$ could include an MLP. Could the MLP approximate $f(g(x))$? I'm guessing there are known complexity/space bounds here, how do these interact with your arguments and proofs? Would be good to have a line or two on this.
Minor comments/typos
- p2: the the father
- p2: idexicals -> indexicals
- p3: "That is, the LLM generates outputs even when the probability of the predicted token is low. When this intensifies, the model will generate a low-likelihood series of tokens, resulting in an unreliable output." Why should the output be unreliable if the series of tokens is low-likelihood? I think the problem here is more that incorrect answers are higher likelihood given the cropus, which is why the output becomes unreliable.
- p4: Why is the token of the query `John`? why isn't it `?`?
- p4: "Notice that the number $N$ of input tokens is a small multiple of the domain size of the functions." Why is this important? Not referred to in the rest of the paper.
- p4: Does the notation $[n]$ mean a set of cardinality $n$? Please add this in.
- p5: "Faye supplies the token strings associated with function f — say, the value of f applied to 0 is 3, etc." What goes into the etc.? All of the values of f from 0 to n-1?
- p9: CoT [needs a] prompt of length $\Omega(\sqrt{N})$ - is this correct? is it the same $N$ as on p4?