On the Expressiveness and Length Generalization of Selective State-Space Models on Regular Languages

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Terzić, Aleksandar, Hersche, Michael, Camposampiero, Giacomo, Hofmann, Thomas, Sebastian, Abu, Rahimi, Abbas
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866915371010752512
author Terzić, Aleksandar
Hersche, Michael
Camposampiero, Giacomo
Hofmann, Thomas
Sebastian, Abu
Rahimi, Abbas
author_facet Terzić, Aleksandar
Hersche, Michael
Camposampiero, Giacomo
Hofmann, Thomas
Sebastian, Abu
Rahimi, Abbas
contents Selective state-space models (SSMs) are an emerging alternative to the Transformer, offering the unique advantage of parallel training and sequential inference. Although these models have shown promising performance on a variety of tasks, their formal expressiveness and length generalization properties remain underexplored. In this work, we provide insight into the workings of selective SSMs by analyzing their expressiveness and length generalization performance on regular language tasks, i.e., finite-state automaton (FSA) emulation. We address certain limitations of modern SSM-based architectures by introducing the Selective Dense State-Space Model (SD-SSM), the first selective SSM that exhibits perfect length generalization on a set of various regular language tasks using a single layer. It utilizes a dictionary of dense transition matrices, a softmax selection mechanism that creates a convex combination of dictionary matrices at each time step, and a readout consisting of layer normalization followed by a linear map. We then proceed to evaluate variants of diagonal selective SSMs by considering their empirical performance on commutative and non-commutative automata. We explain the experimental results with theoretical considerations. Our code is available at https://github.com/IBM/selective-dense-state-space-model.
format Preprint
id arxiv_https___arxiv_org_abs_2412_19350
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle On the Expressiveness and Length Generalization of Selective State-Space Models on Regular Languages
Terzić, Aleksandar
Hersche, Michael
Camposampiero, Giacomo
Hofmann, Thomas
Sebastian, Abu
Rahimi, Abbas
Machine Learning
Artificial Intelligence
Computation and Language
Selective state-space models (SSMs) are an emerging alternative to the Transformer, offering the unique advantage of parallel training and sequential inference. Although these models have shown promising performance on a variety of tasks, their formal expressiveness and length generalization properties remain underexplored. In this work, we provide insight into the workings of selective SSMs by analyzing their expressiveness and length generalization performance on regular language tasks, i.e., finite-state automaton (FSA) emulation. We address certain limitations of modern SSM-based architectures by introducing the Selective Dense State-Space Model (SD-SSM), the first selective SSM that exhibits perfect length generalization on a set of various regular language tasks using a single layer. It utilizes a dictionary of dense transition matrices, a softmax selection mechanism that creates a convex combination of dictionary matrices at each time step, and a readout consisting of layer normalization followed by a linear map. We then proceed to evaluate variants of diagonal selective SSMs by considering their empirical performance on commutative and non-commutative automata. We explain the experimental results with theoretical considerations. Our code is available at https://github.com/IBM/selective-dense-state-space-model.
title On the Expressiveness and Length Generalization of Selective State-Space Models on Regular Languages
topic Machine Learning
Artificial Intelligence
Computation and Language
url https://arxiv.org/abs/2412.19350