Efficient Time Series Processing for Transformers and State-Space Models through Token Merging

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Götz, Leon, Kollovieh, Marcel, Günnemann, Stephan, Schwinn, Leo
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866908478880088064
author Götz, Leon
Kollovieh, Marcel
Günnemann, Stephan
Schwinn, Leo
author_facet Götz, Leon
Kollovieh, Marcel
Günnemann, Stephan
Schwinn, Leo
contents Despite recent advances in subquadratic attention mechanisms or state-space models, processing long token sequences still imposes significant computational requirements. Token merging has emerged as a solution to increase computational efficiency in computer vision architectures. In this work, we perform the first investigations of token merging in time series analysis on both transformers and state-space models. We further introduce local merging, a domain-specific token merging algorithm that selectively combines tokens within a local neighborhood, achieving two major benefits: a) Local merging can adjust its computational complexity from quadratic to linear based on the neighborhood size to effectively scale to long sequences; b) Local merging is the first causal merging scheme enabling token merging in transformer decoders. Further, we identify spectral properties of the input data that reliably predict the potential benefits of local merging without requiring evaluation on downstream tasks. Our comprehensive empirical evaluation demonstrates that local merging offers substantial efficiency gains with minimal impact on accuracy, achieving up to 5400% acceleration on the recently proposed Chronos foundation model.
format Preprint
id arxiv_https___arxiv_org_abs_2405_17951
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Efficient Time Series Processing for Transformers and State-Space Models through Token Merging
Götz, Leon
Kollovieh, Marcel
Günnemann, Stephan
Schwinn, Leo
Machine Learning
Despite recent advances in subquadratic attention mechanisms or state-space models, processing long token sequences still imposes significant computational requirements. Token merging has emerged as a solution to increase computational efficiency in computer vision architectures. In this work, we perform the first investigations of token merging in time series analysis on both transformers and state-space models. We further introduce local merging, a domain-specific token merging algorithm that selectively combines tokens within a local neighborhood, achieving two major benefits: a) Local merging can adjust its computational complexity from quadratic to linear based on the neighborhood size to effectively scale to long sequences; b) Local merging is the first causal merging scheme enabling token merging in transformer decoders. Further, we identify spectral properties of the input data that reliably predict the potential benefits of local merging without requiring evaluation on downstream tasks. Our comprehensive empirical evaluation demonstrates that local merging offers substantial efficiency gains with minimal impact on accuracy, achieving up to 5400% acceleration on the recently proposed Chronos foundation model.
title Efficient Time Series Processing for Transformers and State-Space Models through Token Merging
topic Machine Learning
url https://arxiv.org/abs/2405.17951