Pruning In Time (PIT): A Lightweight Network Architecture Optimizer for Temporal Convolutional Networks

Matteo Risso, Alessio Burrello, Daniele Jahier Pagliari, Francesco Conti, Lorenzo Lamberti, Enrico Macii, Luca Benini, Massimo Poncino · DOI

Abstract

Pruning In Time (PIT) is a lightweight Neural Architecture Search (NAS) tool designed to automatically optimize the dilation factors of Temporal Convolutional Networks (TCNs). By framing dilation as a structured pruning problem on the time-axis, PIT identifies Pareto-optimal architectures that are up to 7.4× smaller and 3× faster on edge hardware with zero loss in accuracy—all within a single training run.

Introduction

Temporal Convolutional Networks (TCNs) are highly effective for time-series tasks such as heart rate monitoring and audio classification. Their primary advantage lies in dilation, which allows a network to expand its receptive field by skipping input steps without increasing the number of parameters. However, manually selecting the optimal dilation factor for each layer is a complex, trial-and-error process.

While existing Neural Architecture Search (NAS) tools can automate model design, they typically focus on standard CNNs or require computationally expensive "supernets." PIT addresses these challenges by making dilation optimization automatic, differentiable, and efficient enough to run on a single GPU.

Methodology

The core innovation of PIT is treating dilation as a structured weight pruning problem. This approach allows the architecture search to be performed using standard gradient descent, significantly reducing the memory footprint and search time compared to multi-path NAS methods.

The PIT training loop and architecture search process.

The optimization process follows a three-phase training cycle:

  1. Warmup: The weights of a "seed" network (initially with no dilation, $d=1$) are trained to establish a baseline.
  2. Pruning Loop: Trainable "mask" parameters ($\gamma$) are introduced to act as switches for specific weight slices along the time dimension. A Lasso-style regularizer ($L_1$ penalty) encourages the masks to prune weights, effectively increasing the dilation factor.
  3. Fine-tuning: The architecture is frozen at the discovered dilation settings, and weights are fine-tuned to recover accuracy.

To ensure hardware efficiency, PIT restricts the search to power-of-two dilations, making the resulting models compatible with optimized kernels for low-power microcontrollers like the GAP8 SoC.

Datasets

PIT was evaluated on two distinct time-series benchmarks:

  • Nottingham: A polyphonic music dataset for predicting piano note sequences.
  • PPGDalia: A real-world dataset for heart rate estimation using Photoplethysmogram (PPG) and accelerometer data from wearables.

Key Results

PIT demonstrates significant improvements in both search efficiency and model performance. It is up to 10.4× faster than state-of-the-art tools like ProxylessNAS and only marginally slower than training a single fixed network.

Pareto-optimal architectures found by PIT compared to baselines.

Key performance metrics include:

  • Model Compression: On the ResTCN architecture, PIT achieved a 2.54× reduction in parameters alongside a 13% accuracy improvement over the baseline.
  • Edge Deployment: When tested on the GAP8 System-on-Chip, PIT-optimized models showed a 7.4× reduction in size and a 3× reduction in latency with no drop in accuracy.
  • Superiority over Manual Tuning: PIT-generated architectures consistently outperformed hand-tuned models, reducing parameters by 54% while maintaining identical performance levels.

Conclusion and Future Work

PIT provides a powerful, hardware-aware solution for optimizing TCNs. By framing dilation as sparsity, it enables efficient single-path architecture search. While currently focused on power-of-two dilations and fixed topologies, future iterations could integrate PIT with other NAS techniques to simultaneously optimize channel counts and bit-precision (quantization), further pushing the boundaries of edge-AI optimization.

Summary updated

BibTeX
@inproceedings{risso2021pruning,
  author = {Matteo Risso and Alessio Burrello and Daniele Jahier Pagliari and Francesco Conti and Lorenzo Lamberti and Enrico Macii and Luca Benini and Massimo Poncino},
  title = {{Pruning In Time (PIT): A Lightweight Network Architecture Optimizer for Temporal Convolutional Networks}},
  booktitle = {DAC},
  year = {2021},
  doi = {10.1109/dac18074.2021.9586187},
}
Figure