Smartformer: An Intelligent Transformer Compression Framework for Time-Series Modeling
Preprint
- 15 July 2024
- preprint
- Published by Springer Nature in Research Square
Abstract
Transformer, as one of the cutting-edge deep neural networks (DNNs), has achieved outstanding performance in time-series data analysis. However, this model usually requires massive amounts of parameters to fit. Over-parameterization not only brings storage challenges in a resource-limited setting but also inevitably results in the model over-fitting. Even though literature works introduced several ways to reduce the parameter size of Transformers, none of them addressed this over-parameterized issue by concurrently achieving the following three objectives: preserving the model architecture, maintaining the model performance, and reducing the model complexity (number of parameters). In this study, we propose an intelligent model compression framework, Smartformer, by incorporating reinforcement learning and CP-decomposition techniques to satisfy the aforementioned three objectives. In the experiment, we apply Smartformer and five baseline methods to two existing time-series Transformer models for model compression. The results demonstrate that our proposed Smartformer is the only method that consistently generates the compressed model on various scenarios by satisfying the three objectives. In particular, the Smartformer can mitigate the overfitting issue and thus improve the accuracy of the existing time-series models in all scenarios.Keywords
All Related Versions
This publication has 12 references indexed in Scilit:
- Interpretable building energy consumption forecasting using spectral clustering algorithm and temporal fusion transformers architectureApplied Energy, 2023
- A Transformer-based multimodal-learning framework using sky images for ultra-short-term solar irradiance forecastingApplied Energy, 2023
- A Transformer-Based Approach Combining Deep Learning Network and Spatial-Temporal Information for Raw EEG ClassificationIEEE Transactions on Neural Systems and Rehabilitation Engineering, 2022
- Short-term forecasting for multiple wind farms based on transformer modelEnergy Reports, 2022
- A Survey on Vision TransformerIEEE Transactions on Pattern Analysis and Machine Intelligence, 2022
- Kronecker CP Decomposition With Fast Multiplication for Compressing RNNsIEEE Transactions on Neural Networks and Learning Systems, 2021
- Tensor decomposition to compress convolutional layers in deep learningIISE Transactions, 2021
- Towards a standardized notation and terminology in multiway analysisJournal of Chemometrics, 2000
- Matrix differential calculus with applications to simple, hadamard, and kronecker productsJournal of Mathematical Psychology, 1985
- Some Mathematical Notes on Three-Mode Factor AnalysisPsychometrika, 1966