arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2405.17951cs.LG
收藏

通过Token合并实现Transformer与状态空间模型的高效时间序列处理

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

Technical University of Munich(慕尼黑技术大学);Munich Data Science Institute(慕尼黑数据科学研究所);Munich Center for Machine Learning(慕尼黑机器学习中心)

Leon Götz, Marcel Kollovieh, Stephan Günnemann, Leo Schwinn

AI总结:

本研究首次将Token合并应用于时间序列分析,提出局部合并算法,支持因果合并并实现线性复杂度,在Chronos模型上取得高达5400%加速且精度损失极小。

摘要:

尽管亚二次注意力机制或状态空间模型近期取得了进展,但处理长token序列仍然带来巨大的计算需求。Token合并已成为提高计算机视觉架构计算效率的一种解决方案。在本工作中,我们首次在时间序列分析中对Transformer和状态空间模型进行了Token合并的调查研究。我们进一步引入了局部合并(local merging),这是一种领域特定的Token合并算法,可选择性地合并局部邻域内的Token,从而实现两大主要优势:a) 局部合并可根据邻域大小将其计算复杂度从二次调整至线性,从而有效扩展到长序列;b) 局部合并是首个因果合并方案,使得Token合并能够在Transformer解码器中使用。此外,我们识别了输入数据的频谱特性,这些特性能够可靠地预测局部合并的潜在收益,而无需在下游任务上进行评估。我们全面的实证评估表明,局部合并以极小的精度影响带来了显著的计算效率提升,在最近提出的Chronos基础模型上实现了高达5400%的加速。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑