RITA:时间序列分析所需的唯有组注意力
RITA: Group Attention is All You Need for Timeseries Analytics
AI总结:
本文提出时间序列分析工具 RITA,通过动态聚类的组注意力及自适应调度降低 Transformer 复杂度,在保证近似质量的同时实现最高 63 倍加速并提升准确率。
摘要:
时间序列分析在许多实际应用中都非常重要。近来,在自然语言处理领域广受欢迎的 Transformer 模型已被用于从时间序列中学习高质量的特征嵌入,这是各类时间序列分析任务性能的核心。然而,二次方的时间和空间复杂度限制了 Transformer 的可扩展性,尤其是对于长时间序列。为解决这些问题,我们开发了一款时间序列分析工具 RITA,它采用一种名为组注意力的新型注意力机制来应对这一可扩展性问题。组注意力根据对象之间的相似性将其动态聚类为少量组,并在粗略的组粒度上近似计算注意力。因此,它显著降低了时间和空间复杂度,同时为所计算注意力的质量提供了理论保证。RITA 的动态调度器在训练过程中持续调整组的数量和批量大小,确保组注意力始终使用满足近似质量要求所需的最少组数。在多种时间序列数据集和分析任务上的大量实验表明,RITA 在准确率上优于当前最先进方法,并且速度显著更快——加速比最高可达 63 倍。
英文摘要:
Timeseries analytics is of great importance in many real-world applications. Recently, the Transformer model, popular in natural language processing, has been leveraged to learn high quality feature embeddings from timeseries, core to the performance of various timeseries analytics tasks. However, the quadratic time and space complexities limit Transformers' scalability, especially for long timeseries. To address these issues, we develop a timeseries analytics tool, RITA, which uses a novel attention mechanism, named group attention, to address this scalability issue. Group attention dynamically clusters the objects based on their similarity into a small number of groups and approximately computes the attention at the coarse group granularity. It thus significantly reduces the time and space complexity, yet provides a theoretical guarantee on the quality of the computed attention. The dynamic scheduler of RITA continuously adapts the number of groups and the batch size in the training process, ensuring group attention always uses the fewest groups needed to meet the approximation quality requirement. Extensive experiments on various timeseries datasets and analytics tasks demonstrate that RITA outperforms the state-of-the-art in accuracy and is significantly faster -- with speedups of up to 63X.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。