Transformers are equivariant to permutations, as ConvNets are equivariant to translations.
Mostly true True in substance, wrong in a detail.
Factual: Statements about the present or the past, checked against the record: did they hold up?
What would count as true or false
Judge as a technical fact as of 2024-03-18. True: standard references or established understanding show that transformer self-attention layers without positional encodings are permutation-equivariant (permuting the input tokens permutes the outputs in the same way), analogous to convolution's translation equivariance. Mostly true: the property holds only with caveats the claim leaves out (for example, it breaks once positional encodings or causal masks are added), but the core statement is accepted as standard. Mixed: experts broadly treat the statement as only partly accurate. Mostly false: the property holds only for narrow components and not for transformers in any meaningful sense. False: transformers, even without positional encodings, are shown not to be permutation-equivariant.
Set before the research began.
Evidence (4)
-
E1 GROUP EQUIVARIANT STAND-ALONE SELF-ATTENTION FOR VISION arXiv (ICLR 2021 conference paper), by David W. Romero (Vrije Universiteit Amsterdam) and Jean-Baptiste Cordonnier (EPFL) · 2021
“Note that the self-attention operation defined in Eq. 3 is equivariant to permutations of the input rows of X. That is, a permutation of the rows of X will produce the same output Y up to this permutation.”
-
E2 GROUP EQUIVARIANT STAND-ALONE SELF-ATTENTION FOR VISION arXiv (ICLR 2021 conference paper), by David W. Romero (Vrije Universiteit Amsterdam) and Jean-Baptiste Cordonnier (EPFL) · 2021
“Proposition 4.1. The global self-attention formulation without positional encoding (Eqs. 3, 8) is permutation equivariant.”
-
E3 GROUP EQUIVARIANT STAND-ALONE SELF-ATTENTION FOR VISION arXiv (ICLR 2021 conference paper), by David W. Romero (Vrije Universiteit Amsterdam) and Jean-Baptiste Cordonnier (EPFL) · 2021
“Though absolute positional encodings do disrupt permutations equivariance, they are unable to provide translation equivariance.”
-
E4 GROUP EQUIVARIANT STAND-ALONE SELF-ATTENTION FOR VISION arXiv (ICLR 2021 conference paper), by David W. Romero (Vrije Universiteit Amsterdam) and Jean-Baptiste Cordonnier (EPFL) · 2021
“Translation equivariance is key to the success of CNNs. It describes the property that if a pattern is translated, its numerical descriptors are also translated, but not modified.”
Reasoning
An independent ICLR 2021 paper states that self-attention is permutation-equivariant: permuting the input rows permutes the output the same way (E1). It also gives this as a formal proposition for global self-attention without positional encoding (E2). The same paper describes CNN translation equivariance in parallel terms, which supports the analogy the claim draws (E4). However, it notes that absolute positional encodings break permutation equivariance (E3), and the claim leaves out that caveat. Under the criteria, this makes the claim mostly true rather than fully true.
Cite this claim
Yann LeCun, “Transformers are equivariant to permutations, as ConvNets are equivariant to translations.” (said 18 March 2024). Verdict: mostly true. Reliability API, claim c_1fdd82aa9e4d, method 0.1.0+c876030c, dataset release v1.1.2. https://epistacklabs.com/claims/c_1fdd82aa9e4d
This claim is in dataset release v1.1.2, with the same verdict.
Reply to this claim
More factual claims by Yann LeCun
-
Mostly true
“If it were the case, we would have AI systems that could teach themselves to drive a car in 20 hours of practice, like any 17 year-old.”
-
Mostly true
“The architecture is good, the architecture of the encoder is good, but the fact that you train the system to reconstruct images does not lead it to produce to long, good generic features of images.”
-
Mostly true
“LLMs can do none of those or they can only do them in a very primitive way and they don’t really understand the physical world.”
-
Mostly true
“No, there’s one thing that autoregressive LLMs or that LLMs in general, not just the autoregressive one, but including the bird style bidirectional ones, are exploiting and its self supervised…”
-
Mostly true
“However, masked AEs are less successful with images, so in continuous domains, in general, [56].”
Verdicts are made automatically; how verdicts are made.