arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2412.12883cs.LGcs.AI
收藏

基于Transformer的时间序列预测中剪枝方法的比较研究

A Comparative Study of Pruning Methods in Transformer-based Time Series Forecasting

Scientific Computing Center, Karlsruhe Institute of Technology(卡尔斯鲁厄理工学院科学计算中心);Helmholtz AI(亥姆霍兹人工智能)

Nicholas Kiefer, Arvid Weyrauch, Muhammed Öz, Achim Streit, Markus Götz, Charlotte Debus

AI总结:

本研究对基于Transformer的时间序列预测模型进行非结构化与结构化剪枝的比较基准测试,发现某些模型在高稀疏度下性能更优,但需微调,且结构化剪枝难以显著节省时间。

摘要:

当前时间序列预测领域主要由基于Transformer的模型主导。这些模型参数数量庞大,对计算资源的需求相应较高,这给实际部署带来了挑战,尤其是对于使用低功耗嵌入式设备的商业和科学应用而言。剪枝是一种成熟的减少神经网络参数数量和节省计算资源的方法。然而,剪枝基于Transformer的时间序列预测模型的影响和益处在很大程度上尚不明确。为弥补这一空白,我们提供了一项比较性基准研究,评估了多种最先进的多变量时间序列模型上的非结构化剪枝和结构化剪枝。我们研究了这些剪枝策略对模型预测性能以及计算方面(如模型大小、操作次数和推理时间)的影响。我们的结果表明,某些模型即使在高稀疏度水平下也能被剪枝,其性能优于对应的稠密模型。然而,对剪枝后的模型进行微调是必要的。此外,我们证明,即使有相应的硬件和软件支持,结构化剪枝也无法提供显著的时间节省。

英文摘要:

The current landscape in time-series forecasting is dominated by Transformer-based models. Their high parameter count and corresponding demand in computational resources pose a challenge to real-world deployment, especially for commercial and scientific applications with low-power embedded devices. Pruning is an established approach to reduce neural network parameter count and save compute. However, the implications and benefits of pruning Transformer-based models for time series forecasting are largely unknown. To close this gap, we provide a comparative benchmark study by evaluating unstructured and structured pruning on various state-of-the-art multivariate time series models. We study the effects of these pruning strategies on model predictive performance and computational aspects like model size, operations, and inference time. Our results show that certain models can be pruned even up to high sparsity levels, outperforming their dense counterpart. However, fine-tuning pruned models is necessary. Furthermore, we demonstrate that even with corresponding hardware and software support, structured pruning is unable to provide significant time savings.

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

↑