PulseExploreJournal ClubDebatesTrendingResearchersJournals
Instagram
HomeExploreJournal ClubTrending
Synapse
⌘+K
Synapse
January 1, 2025Transactions of the Association for Computational Linguistics1 citationsOpen Access

Transformers as Transducers

LSLena StroblDADana AngluinDCDavid Chiang

Key Points

Key points are not available for this paper at this time.

Abstract

Abstract We study the sequence-to-sequence mapping capacity of transformers by relating them to finite transducers, and find that they can express surprisingly large classes of (total functional) transductions. We do so using variants of RASP, a programming language designed to help people “think like transformers,” as an intermediate representation. We extend the existing Boolean variant B-RASP to sequence-to-sequence transductions and show that it computes exactly the first-order rational transductions (such as string rotation). Then, we introduce two new extensions. B-RASPpos enables calculations on positions (such as copying the first half of a string) and contains all first-order regular transductions. S-RASP adds prefix sum, which enables additional arithmetic operations (such as squaring a string) and contains all first-order polyregular transductions. Finally, we show that masked average-hard attention transformers can simulate S-RASP.

Ask AI
Helpful
Bookmark
Share
View Full Paper

Cite This Study

Strobl et al. (2025) studied this question.

synapsesocial.com/papers/69daad344a1e15904c835a0ahttps://doi.org/10.1162/tacl_a_00736
Ask AI
Helpful
Bookmark
Share
View Full Paper