paper-with-me

Papers

Average-Hard Attention Transformers are Constant-Depth Uniform Threshold Circuits

2023-08-06 · Lena Strobl

Transformers have emerged as a widely used neural network model for various natural language processing tasks. Previous research explored their relationship with constant-depth threshold circuits, making two assumptions: average-hard attention and logarithmic precision for internal computations relative to input length. Merrill et al. (2022) prove that average-hard attention transformers recognize languages that fall within the complexity class TC0, denoting the set of languages that can be recognized by constant-depth polynomial-size threshold circuits. Likewise, Merrill and Sabharwal (2023) show that log-precision transformers recognize languages within the class of uniform TC0. This shows that both transformer models can be simulated by constant-depth threshold circuits, with the latter being more robust due to generating a uniform circuit family. Our paper shows that the first result can be extended to yield uniform circuits as well.

📄 PDF Abstract BibTeX arXiv:2308.03212

Code (0)

등록된 구현이 없습니다.

Tasks

Hard Attention

Similar Papers 제목 키워드 기반

Saturated Transformers are Constant-Depth Threshold Circuits

2021-06-30 · William Merrill, Ashish Sabharwal, Noah A. Smith

Transformers have become a standard neural network architecture for many NLP problems, motivating theoretical analysis of their power in terms of formal languages. Recent work has shown that transformers with hard attent…

Hard Attention

Average Attention Transformers and Arithmetic Circuits

2026-05-06 · Lena Ehrmuth, Laura Strieker arxiv

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…

Revisiting Padded Transformer Expressivity: Which Architectural Choices Matter and Which Don't

2026-05-28 · Anej Svete, William Merrill, Ryan Cotterell, Ashish Sabharwal arxiv

Recent work describes what transformers can and cannot compute through connections to boolean circuits, but existing results lack exact characterizations and are sensitive to modeling choices. Padded transformers -- to w…

Formal Language Recognition by Hard Attention Transformers: Perspectives from Circuit Complexity

2022-04-13 · Yiding Hao, Dana Angluin, Robert Frank

This paper analyzes three formal models of Transformer encoders that differ in the form of their self-attention mechanism: unique hard attention (UHAT); generalized unique hard attention (GUHAT), which generalizes UHAT; …

Hard Attention

Fast attention mechanisms: a tale of parallelism

2025-09-10 · Jingwen Liu, Hantao Yu, Clayton Sanford, Alexandr Andoni 외 arxiv

Transformers have the representational capacity to simulate Massively Parallel Computation (MPC) algorithms, but they suffer from quadratic time complexity, which severely limits their scalability. We introduce an effici…