TimeDistill: Efficient Long-Term Time Series Forecasting with MLP via Cross-Architecture Distillation
Juntong Ni, Zewen Liu, Shiyu Wang, Ming Jin, Wei Jin
TL;DR
TimeDistill tackles the efficiency gap in long-term time-series forecasting by transferring multi-scale temporal and multi-period frequency knowledge from heavy Transformer/CNN teachers to a lightweight MLP via cross-architecture knowledge distillation. It jointly distills predictions and intermediate features at multiple temporal scales and frequency bands, with a theoretical interpretation as mixup-based data augmentation. Empirically, TimeDistill yields up to 18.6% gains for the MLP, can surpass teachers on eight datasets, and achieves up to 7x faster inference with 130x fewer parameters. The work demonstrates the practicality and versatility of distilling cross-architecture knowledge for efficient forecasting across diverse datasets and architectures.
Abstract
Transformer-based and CNN-based methods demonstrate strong performance in long-term time series forecasting. However, their high computational and storage requirements can hinder large-scale deployment. To address this limitation, we propose integrating lightweight MLP with advanced architectures using knowledge distillation (KD). Our preliminary study reveals different models can capture complementary patterns, particularly multi-scale and multi-period patterns in the temporal and frequency domains. Based on this observation, we introduce TimeDistill, a cross-architecture KD framework that transfers these patterns from teacher models (e.g., Transformers, CNNs) to MLP. Additionally, we provide a theoretical analysis, demonstrating that our KD approach can be interpreted as a specialized form of mixup data augmentation. TimeDistill improves MLP performance by up to 18.6%, surpassing teacher models on eight datasets. It also achieves up to 7X faster inference and requires 130X fewer parameters. Furthermore, we conduct extensive evaluations to highlight the versatility and effectiveness of TimeDistill.
