Abstract
In Time Series Classification (TSC), the receptive field (RF) size is a critical determinant of model performance, as discriminative patterns can exist at varying scales. Traditional deep learning approaches rely on computationally expensive ensembles or manual hyperparameter tuning to address this. This paper discusses the Dynamic Sparse Network (DSN), a novel architecture that adaptively learns the optimal receptive field through large, sparse kernels. By employing a fine-grained dynamic sparse training (DST) strategy, DSN achieves state-of-the-art accuracy on major benchmarks, including the UCR and UEA archives, while reducing computational costs and parameter counts by more than 50% compared to dense counterparts.
1. Introduction
Time Series Classification (TSC) is a fundamental task in data mining, with applications ranging from medical diagnostics to industrial monitoring. A central challenge in TSC is the selection of an appropriate Receptive Field (RF)—the specific portion of the input signal that a model processes at any given time. Because time series data often features varying sampling rates and multi-scale patterns (both local and global), a fixed RF often fails to capture the necessary features.
Current methodologies attempt to solve this through three primary means:
- Ensembling: Combining multiple models with different kernel sizes (e.g., InceptionTime).
- Dilated Convolutions: Manually configuring dilation factors to expand the RF.
- Grid Search: Exhaustively testing kernel sizes for each specific dataset.
These approaches are either computationally prohibitive or require significant manual intervention. The Dynamic Sparse Network (DSN) aims to bridge this gap by automatically discovering the required scales for a signal through architectural flexibility rather than brute-force computation.
2. Methodology
The DSN architecture shifts the paradigm from determining the size of a kernel to determining which weights within a large kernel should be active.
2.1 Dynamic Sparse CNN Layer
Instead of utilizing small, dense kernels (e.g., $k=3$), DSN employs very large kernels (e.g., $k=39$) maintained in a sparse state. The model's "Effective Neighbour Receptive Field" (eNRF) is defined by the distance between the first and last non-zero weights within the kernel. As weights are updated and shifted during training, the model effectively "shrinks" or "expands" its view of the data dynamically.
2.2 Fine-Grained Dynamic Sparse Training (DST)
A common pitfall of standard sparse training is the potential loss of fine-grained, local patterns when using large kernels. To mitigate this, DSN introduces a grouped kernel strategy:
- Kernel Grouping: Kernels are partitioned into $N$ groups.
- Constraint Regions: Each group is restricted to a specific region of the kernel. For instance, Group 1 may only activate weights in the first 10% of the kernel to ensure a local perspective, while Group $N$ can access the entire kernel for a global view.
- Prune-and-Regrow: The model employs a cycle where weights with the smallest magnitudes are pruned, and new weights are randomly activated within the allowed constraint regions. This ensures the model explores the optimal connectivity pattern without exceeding its parameter budget.
2.3 Architecture Overview
The DSN architecture consists of three stacked "Sparse CNN Modules." Each module contains a sparse convolutional layer followed by a $1 \times 1$ convolution. This cascading structure allows the receptive field to grow linearly across the layers, while adaptive pooling and a final linear classifier handle the output.
3. Experimental Results
The DSN was evaluated against standard TSC benchmarks, including the UCR 85 and 112 archives, the UEA 30 archive, and specific multivariate datasets like EEG2 and Human Activity Recognition (HAR).
3.1 Accuracy and Benchmarking
On the UCR 85 archive, DSN demonstrated superior performance, outperforming established models such as ResNet, InceptionTime, and OS-CNN by winning on 53 out of 85 datasets. In multivariate tasks, specifically the EEG2 dataset—which is highly sensitive to signal scales—DSN achieved an accuracy of 99.10%, significantly higher than OS-CNN (93.03%) and TapNet (85.30%).
3.2 Efficiency Gains
One of the most significant advantages of DSN is its resource efficiency:
- Parameters: DSN utilizes approximately 126K parameters, whereas ResNet and InceptionTime require 479K and 389K, respectively.
- Computational Complexity: DSN requires roughly 104M FLOPs, a stark contrast to ResNet's 803M and InceptionTime's 325M.
4. Discussion and Limitations
The success of DSN suggests that dense connections in TSC models are often redundant. By treating sparsity as a mechanism for architectural flexibility, the model "learns what to see" more effectively than dense models. The use of constraint regions is particularly vital, as it prevents the model from ignoring local features in favor of global ones.
However, several considerations remain for future development:
- Hardware Implementation: While theoretical FLOP savings are high, real-world speedups on GPUs often require specialized software or hardware (e.g., Sparse Tensor cores) to handle sparse operations efficiently.
- Hyperparameter Sensitivity: Although DSN reduces kernel-size tuning, it introduces the number of groups ($N$) as a parameter. While $N=3$ appears robust, optimal values may vary.
- Generalization: Future work could explore the application of dynamic sparse "seeing" in time series forecasting and computer vision.
5. Conclusion
The Dynamic Sparse Network provides a compelling alternative to dense ensembles in Time Series Classification. By leveraging large sparse kernels and a constrained training strategy, it achieves a rare combination of higher accuracy and significantly lower computational overhead. DSN proves that in the context of temporal data, learning the right connections is more important than having all of them.
Summary updated