ASAP: Accelerated Short-Read Alignment on Programmable Hardware

Subho S. Banerjee, Mohamed El-Hadedy, Jong Bin Lim, Zbigniew T. Kalbarczyk, Deming Chen, Steven S. Lumetta, Ravishankar K. IyerIEEE Trans. Computers 2018 · DOI

Abstract

The proliferation of high-throughput sequencing machines ensures rapid generation of up to billions of short nucleotide fragments. This massive amount of sequence data can quickly overwhelm today's storage and compute infrastructure. This paper explores the use of hardware acceleration to significantly improve the runtime of short-read alignment, a crucial step in preprocessing sequenced genomes. We focus on the Levenshtein distance (edit-distance) computation kernel and propose the ASAP accelerator, which utilizes the intrinsic delay of circuits for edit-distance computation elements as a proxy for computation. Our design is implemented on an Xilinx Virtex 7 FPGA in an IBM POWER8 system that uses the CAPI interface for cache coherence across the CPU and FPGA. Our design is $200\times$ faster than the equivalent C implementation of the kernel running on the host processor and $2.2\times$ faster for an end-to-end alignment tool for 120-150 base-pair short-read sequences. Further, the design represents a $3760\times$ improvement over the CPU in performance/Watt terms.

Introduction

Modern Next-Generation Sequencing (NGS) platforms generate billions of short DNA fragments (reads) that must be mapped back to a reference genome. This "short-read alignment" is a massive computational bottleneck. At the heart of this process is the Levenshtein Distance (LD) kernel, which calculates the minimum number of edits (insertions, deletions, substitutions) needed to match two strings. In popular tools like BWA or SNAP, this kernel can consume 50%–70% of the total runtime. While CPUs struggle with the quadratic complexity of these comparisons, traditional hardware accelerators often face high power consumption or communication overhead between the host and the device.

The ASAP Architecture: RaceLogic

ASAP reimagines edit-distance computation by mapping mathematical operations directly to circuit propagation delays, a paradigm known as RaceLogic. Instead of using standard binary arithmetic to calculate scores, ASAP encodes computation as the time it takes for a signal to propagate through a circuit.

RaceLogic primitives: Addition via propagation delay and minimization via OR-gate logic.

In this model, addition is represented by a series connection; adding a penalty to a score is achieved by passing the signal through a delay element. Minimization is performed by an OR gate; the first signal to arrive (the "winner" of the race) represents the minimum value. This approach allows the hardware to naturally perform parallel exploration of the edit-distance matrix.

To scale this to full sequence alignment, ASAP utilizes a hardware lattice of these delay elements. Unlike previous ASIC-focused RaceLogic designs, ASAP uses shift-registers and multiplexers to create tunable, runtime-programmable delays on an FPGA.

The ASAP hardware lattice architecture for parallel edit-distance computation.

Key Technical Innovations

  1. Approximation for Ordering: Aligners primarily need to rank candidate locations rather than find an exact LD value. ASAP exploits this by using "zero-delay" circuit elements for matches. Since matches are the norm in sequencing, this allows the signal wavefront to skip through large portions of the search space almost instantly.
  2. CAPI Integration: The design uses IBM’s Coherent Accelerator Processor Interface (CAPI), allowing the FPGA to share a coherent memory space with the Power8 CPU. This eliminates the need for slow PCIe data copies and complex driver overhead.

Evaluation and Results

The system was evaluated using the Human Reference Genome (hg38) and 100 million simulated reads mimicking an Illumina HiSeq 2500. The accelerator was integrated into the SNAP alignment framework for end-to-end testing.

  • Kernel Speedup: The ASAP kernel is 200x faster than a highly optimized SIMD C implementation on a Power8 host.
  • End-to-End Performance: Integration into SNAP provided a 2.2x overall speedup, pushing the tool close to its theoretical Amdahl’s Law limit.
  • Efficiency: The design is 18.8x more power-efficient than the CPU, leading to a total 3760x gain in performance-per-watt.
  • Throughput: For 128-bp reads, ASAP achieved an average of 609.6 GCUP/s (Giga Cell Updates Per Second).

Conclusion

ASAP demonstrates that treating time as a proxy for value can yield massive efficiency gains for specific computational kernels. While the current ASAP lattice grows quadratically ($O(n^2)$) with read length—limiting its use for very long reads on current FPGAs—it provides a transformative solution for the high-volume short-read data produced by modern sequencing platforms. Future work will explore extending the architecture to handle more complex affine or convex gap-penalty models.

Summary updated

BibTeX
@article{banerjee2018asap,
  author = {Subho S. Banerjee and Mohamed El-Hadedy and Jong Bin Lim and Zbigniew T. Kalbarczyk and Deming Chen and Steven S. Lumetta and Ravishankar K. Iyer},
  title = {{ASAP: Accelerated Short-Read Alignment on Programmable Hardware}},
  journal = {IEEE Trans. Computers},
  year = {2018},
  doi = {10.1109/tc.2018.2875733},
}
Figure