paper-with-me

Papers

What Formal Languages Can Transformers Express? A Survey

2023-11-01 · Lena Strobl, William Merrill, Gail Weiss, David Chiang, Dana Angluin

As transformers have gained prominence in natural language processing, some researchers have investigated theoretically what problems they can and cannot solve, by treating problems as formal languages. Exploring such questions can help clarify the power of transformers relative to other models of computation, their fundamental capabilities and limits, and the impact of architectural choices. Work in this subarea has made considerable progress in recent years. Here, we undertake a comprehensive survey of this work, documenting the diverse assumptions that underlie different results and providing a unified framework for harmonizing seemingly contradictory findings.

📄 PDF Abstract BibTeX arXiv:2311.00208

Code (0)

등록된 구현이 없습니다.

Tasks

Survey

Similar Papers 제목 키워드 기반

Masked Hard-Attention Transformers Recognize Exactly the Star-Free Languages

2023-10-21 · Andy Yang, David Chiang, Dana Angluin

The expressive power of transformers over inputs of unbounded size can be studied through their ability to recognize classes of formal languages. In this paper, we establish exact characterizations of transformers with h…

Hard AttentionPosition

Comparison of different Unique hard attention transformer models by the formal languages they can recognize

2025-06-03 · Leonid Ryvkin

This note is a survey of various results on the capabilities of unique hard attention transformers encoders (UHATs) to recognize formal languages. We distinguish between masked vs. non-masked, finite vs. infinite image a…

Hard AttentionSurvey

NoPE: The Counting Power of Transformers with No Positional Encodings

2025-05-16 · Chris Köcher, Alexander Kozachinskiy, Anthony Widjaja Lin, Marco Sälzer 외

Positional Encodings (PEs) seem to be indispensable for ensuring expressiveness of transformers; without them attention transformers reduce to a bag-of-word model. NoPE-transformers (i.e. with No PEs) with unique hard at…

Hard Attention

Extracting Finite State Machines from Transformers

2024-10-08 · Rik Adriaensen, Jaron Maene

Fueled by the popularity of the transformer architecture in deep learning, several works have investigated what formal languages a transformer can learn. Nonetheless, existing results remain hard to compare and a fine-gr…

What Languages are Easy to Language-Model? A Perspective from Learning Probabilistic Regular Languages

2024-06-06 · Nadav Borenstein, Anej Svete, Robin Chan, Josef Valvoda 외

What can large language models learn? By definition, language models (LM) are distributions over strings. Therefore, an intuitive way of addressing the above question is to formalize it as a matter of learnability of cla…

Language ModelingLanguage Modelling