[Paper Review] Accelerating Time Series Analysis via Processing using Non-Volatile Memories
This paper proposes MATSA, the first MRAM-based Processing-Using-Memory (PUM) accelerator for Time Series Analysis, which accelerates Subsequence Dynamic Time Warping (sDTW) by performing computation directly in MRAM crossbars to eliminate off-chip data movement. MATSA achieves 7.35×/6.15×/6.31× higher performance and 11.29×/4.21×/2.65× better energy efficiency than CPU, GPU, and Processing-Near-Memory platforms, respectively.
Time Series Analysis (TSA) is a critical workload to extract valuable information from collections of sequential data, e.g., detecting anomalies in electrocardiograms. Subsequence Dynamic Time Warping (sDTW) is the state-of-the-art algorithm for high-accuracy TSA. We find that the performance and energy efficiency of sDTW on conventional CPU and GPU platforms are heavily burdened by the latency and energy overheads of data movement between the compute and the memory units. sDTW exhibits low arithmetic intensity and low data reuse on conventional platforms, stemming from poor amortization of the data movement overheads. To improve the performance and energy efficiency of the sDTW algorithm, we propose MATSA, the first Magnetoresistive RAM (MRAM)-based Accelerator for TSA. MATSA leverages Processing-Using-Memory (PUM) based on MRAM crossbars to minimize data movement overheads and exploit parallelism in sDTW. MATSA improves performance by 7.35x/6.15x/6.31x and energy efficiency by 11.29x/4.21x/2.65x over server-class CPU, GPU, and Processing-Near-Memory platforms, respectively.
Motivation & Objective
- Address the performance and energy inefficiency of sDTW on conventional CPU and GPU platforms due to high data movement overheads.
- Overcome the limitations of Processing-Near-Memory (PNM) platforms, which remain compute-bound due to slow in-memory operations.
- Design a dedicated accelerator leveraging the low latency, low energy, and high endurance of MRAM to enable in-memory computation for sDTW.
- Minimize data movement and maximize parallelism by executing sDTW computations directly in MRAM crossbars using a novel data mapping and pipelined anti-diagonal execution.
- Achieve high performance and energy efficiency across diverse workloads, including real-world time series datasets like ECG and seismology.
Proposed method
- Implement MATSA as a PUM-based accelerator using magnetoresistive RAM (MRAM) crossbars to perform computation directly in memory, eliminating off-chip data movement.
- Decompose the sDTW kernel into bitwise boolean operations that can be executed in parallel across MRAM crossbar columns.
- Introduce a novel data mapping strategy that reduces the sDTW memory footprint from quadratic to linear by representing the 2D dynamic programming matrix using four vectors.
- Apply an anti-diagonal computation order to resolve inter-cell dependencies in the dynamic programming matrix and enable pipelined execution.
- Leverage the high parallelism of MRAM crossbars—up to thousands of concurrent operations—by mapping each sDTW query to a column in the crossbar.
- Use an in-house simulator with realistic MRAM latency and energy models (e.g., 5ns read latency, 50nJ read energy) to evaluate MATSA’s performance and energy efficiency.
Experimental results
Research questions
- RQ1Can Processing-Using-Memory (PUM) with MRAM eliminate the data movement bottleneck in sDTW, a memory-bound workload on conventional platforms?
- RQ2How does MATSA’s in-memory computation and novel data mapping reduce the memory footprint and enable on-the-fly computation of the 2D dynamic programming matrix?
- RQ3To what extent does MATSA outperform CPU, GPU, FPGA, and PNM platforms in terms of performance and energy efficiency for sDTW workloads?
- RQ4How does MATSA’s anti-diagonal pipelined execution strategy overcome data dependencies in the sDTW computation while maximizing parallelism?
- RQ5What are the performance and energy tradeoffs of MATSA across diverse real-world time series datasets, and how does it scale with varying input sizes?
Key findings
- MATSA achieves 7.35× higher performance and 11.29× better energy efficiency than a server-class CPU (cpuxeon) on sDTW workloads.
- MATSA delivers 6.15× higher performance and 4.21× better energy efficiency than a GPU baseline, demonstrating superior scalability and efficiency.
- MATSA outperforms the PNM platform UPMEM by 6.31× in performance and 2.65× in energy efficiency, overcoming its compute-bound limitations.
- The performance and energy benefits stem from eliminating off-chip data movement and exploiting massive parallelism via MRAM crossbars.
- MATSA-HPC achieves 11.29× lower energy consumption than cpuxeon and 4.21× lower than GPU, with energy savings primarily due to in-memory computation.
- MATSA supports arbitrary-sized datasets and maintains high efficiency across six real-world datasets, including Human, ECG, and Seismology, demonstrating broad applicability.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.