[Paper Review] A Framework for High-throughput Sequence Alignment using Real Processing-in-Memory Systems
This paper proposes Alignment-in-Memory (AIM), a framework that accelerates high-throughput pairwise sequence alignment by leveraging real processing-in-memory (PIM) hardware, specifically the UPMEM system. By executing alignment computations directly in memory using DPUs within memory modules, AIM achieves up to 6.15× speedup over full-scale CPU systems, demonstrating PIM's potential to overcome memory bandwidth bottlenecks in bioinformatics workloads.
Sequence alignment is a memory bound computation whose performance in modern systems is limited by the memory bandwidth bottleneck. Processing-in-memory architectures alleviate this bottleneck by providing the memory with computing competencies. We propose Alignment-in-Memory (AIM), a framework for high-throughput sequence alignment using processing-in-memory, and evaluate it on UPMEM, the first publicly-available general-purpose programmable processing-in-memory system. Our evaluation shows that a real processing-in-memory system can substantially outperform server-grade multi-threaded CPU systems running at full-scale when performing sequence alignment for a variety of algorithms, read lengths, and edit distance thresholds. We hope that our findings inspire more work on creating and accelerating bioinformatics algorithms for such real processing-in-memory systems. Our code is available at https://github.com/safaad/aim.
Motivation & Objective
- To evaluate the feasibility and performance of real processing-in-memory (PIM) systems for accelerating sequence alignment.
- To address the memory bandwidth bottleneck in dynamic programming-based sequence alignment algorithms by co-locating computation with data in memory.
- To design a flexible framework that supports multiple alignment algorithms and memory hierarchy optimizations on programmable PIM hardware.
- To demonstrate that PIM systems can outperform high-end CPU systems in throughput for sequence alignment workloads.
Proposed method
- The framework, named Alignment-in-Memory (AIM), dispatches sequence pairs across multiple memory modules in the UPMEM PIM system, where each pair is aligned using local DPU cores.
- AIM supports five alignment algorithms: Needleman-Wunsch (NW), Smith-Waterman-Gotoh (SWG), GenASM, wavefront algorithm (WFA), and WFA-adaptive, each with two implementations.
- Two memory management strategies are employed: one using only on-chip WRAM, and another using both WRAM and off-chip MRAM, tailored to data access patterns and memory consumption.
- The framework automatically determines the optimal number of DPU threads per memory module to maximize utilization and minimize latency.
- It leverages UPMEM’s architecture, which integrates general-purpose DPUs with DRAM arrays on a single chip, enabling computation near data.
- The system is evaluated across varying read lengths, edit distance thresholds, and algorithm variants to assess performance and scalability.
Experimental results
Research questions
- RQ1Can real processing-in-memory systems like UPMEM outperform conventional CPU-based systems in high-throughput sequence alignment?
- RQ2How do different memory hierarchy management strategies (WRAM-only vs. WRAM+MRAM) affect performance across varying read lengths and edit distances?
- RQ3What is the impact of algorithmic choice and memory access patterns on the performance of PIM-based sequence alignment?
- RQ4To what extent can PIM architectures alleviate the memory bandwidth bottleneck in dynamic programming-based alignment?
Key findings
- AIM running on a single UPMEM system achieves up to 6.15× speedup over a dual-socket server-grade CPU system for WFA with 5% edit distance and 1,000-length reads.
- For shorter reads and low edit distances (1%), WRAM-only implementations of WFA and WFA-adaptive are up to 1.17× and 1.12× faster, respectively, due to lower latency.
- For longer reads and higher edit distances (5%), the WRAM+MRAM implementation of WFA is up to 6.15× faster, as it better supports higher memory consumption and thread counts.
- The GenASM algorithm benefits most from WRAM-only implementation, achieving up to 2.76× speedup at 1% edit distance due to high thread utilization.
- The performance gap between WRAM-only and WRAM+MRAM implementations increases with edit distance, especially for memory-intensive algorithms like WFA.
- Overall, AIM demonstrates that PIM-based systems can substantially outperform CPU-based systems in throughput for sequence alignment, even on current-generation hardware.
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.