Performer is a Transformer that approximates softmax attention weights with dot products of randomly generated feature vectors and computes attention without building the matrix. It was proposed by Choromanski et al. at Google and elsewhere in the 2020 paper "Rethinking Attention with Performers" and presented at ICLR 2021. The approximation mechanism is called FAVOR+ (Fast Attention Via positive Orthogonal Random features).
Linear attention replaced softmax with a different function, , and reordered the computation to reach . However, the replacement function is not softmax, so it does not give the same values as a pretrained model's attention.
Performer also reorders the computation, but it generates randomly so that the expected value of its dot product exactly equals the softmax weight . In other words, it approximates softmax attention itself without bias.
As an analogy, instead of comparing everyone's preferences pair by pair ( times), you randomly create a fixed set of questions, record each person's answers, and estimate how similar two people's preferences are from how well their answers match. The more questions, the more accurate the estimate, and the number of questions does not depend on the number of people .
The right side of the figure at the top of the article shows this difference. Softmax attention builds an matrix, whereas Performer approximates it with dot products of random features and builds only an matrix instead.

