计算机科学 > 计算复杂性
[提交于 2026年5月6日]
标题:Average Attention Transformers and Arithmetic Circuits
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:We analyse the computational power of transformer encoders as sequence-to-sequence functions on vectors. We show that average hard attention can be used to simulate arithmetic circuits if they are given as an input to an encoder. The circuit families that can be simulated this way have constant depth while using unbounded addition, binary multiplication and sign gates. The transformers we use have arithmetic circuits instead of feed-forward networks. With typical average attention the functions they compute are also computed by the same class of circuit families. Our results hold for transformers over the reals, rationals and any ring in between the two.
提交历史
来自:Lena Ehrmuth[v1] 2026年5月6日 星期三 09:35:39 UTC