Similar Items: Average Attention Transformers and Arithmetic Circuits