paper-with-me

Papers

Transformers as Transducers

2024-04-02 · Lena Strobl, Dana Angluin, David Chiang, Jonathan Rawski, Ashish Sabharwal

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 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 functions and show that it computes exactly the first-order rational functions (such as string rotation). Then, we introduce two new extensions. B-RASP[pos] enables calculations on positions (such as copying the first half of a string) and contains all first-order regular functions. S-RASP adds prefix sum, which enables additional arithmetic operations (such as squaring a string) and contains all first-order polyregular functions. Finally, we show that masked average-hard attention transformers can simulate S-RASP.

📄 PDF Abstract BibTeX arXiv:2404.02040

Code (0)

등록된 구현이 없습니다.

Tasks

Hard AttentionPOS

Similar Papers 제목 키워드 기반

A Canonical Semi-Deterministic Transducer

2014-05-10 · Achilles Beros, Colin de la Higuera

We prove the existence of a canonical form for semi-deterministic transducers with incomparable sets of output strings. Based on this, we develop an algorithm which learns semi-deterministic transducers given access to t…

Translation

Model Checking Strategies from Synthesis Over Finite Traces

2023-05-15 · Suguman Bansal, Yong Li, Lucas Martinelli Tabajara, Moshe Y. Vardi 외

The innovations in reactive synthesis from {\em Linear Temporal Logics over finite traces} (LTLf) will be amplified by the ability to verify the correctness of the strategies generated by LTLf synthesis tools. This motiv…

Neural CRF transducers for sequence labeling

2018-11-04 · Kai Hu, Zhijian Ou, Min Hu, Junlan Feng

Conditional random fields (CRFs) have been shown to be one of the most successful approaches to sequence labeling. Various linear-chain neural CRFs (NCRFs) are developed to implement the non-linear node potentials in CRF…

ChunkingNERPOSPOS Tagging

Formalization of Malagasy conjugation

2026-05-26 · Joro Ny Aina Ranaivoarison, Eric Laporte, Baholisoa Simone Ralalaoherivony arxiv

This paper reports the core linguistic work performed to construct a dictionary-based morphological analyser for Malagasy simple verbs. It uses the Unitex platform and comprised the contruction of an electronic dictionar…

Rational Kernels for Arabic Stemming and Text Classification

2015-02-26 · Attia Nehar, Djelloul Ziadi, Hadda Cherroun

In this paper, we address the problems of Arabic Text Classification and stemming using Transducers and Rational Kernels. We introduce a new stemming technique based on the use of Arabic patterns (Pattern Based Stemmer).…

ClassificationGeneral Classificationtext-classificationText Classification