Introduction
In genomics, homology search—the process of comparing a new DNA or protein sequence against vast databases of known sequences—is a fundamental task for identifying evolutionary relationships. While tools like BLAST offer high speed, Profile Hidden Markov Models (pHMMs), utilized by the HMMER suite, are considered the gold standard for sensitivity. They are particularly effective at detecting distant homologs that other methods might miss.
However, this sensitivity comes at a high computational cost. To mitigate this, HMMER employs a multi-stage pipeline where fast, heuristic filters discard approximately 98% of non-matching sequences before more intensive algorithms are applied. The primary bottleneck is the first stage: the Single Segment ungapped Viterbi (SSV) filter. Despite being the simplest stage, it accounts for roughly 70% of total runtime because it must process every byte of the input database. As genomic data grows exponentially, traditional CPU-based processing is struggling to keep pace.
The SSV Bottleneck and HAVAC's Approach
The researchers developed HAVAC (Hardware Accelerated single-segment Viterbi Additional Coprocessor) to address this bottleneck using a Xilinx Alveo U50 FPGA. The core strategy involves offloading the SSV filter to specialized hardware designed for massive parallelism.
As shown in the figure above, the full pHMM (A) involves complex transitions including insertions (I) and deletions (D). The SSV filter (B) simplifies this by focusing on ungapped alignments, which significantly reduces the computational complexity while remaining effective as an initial screening tool. HAVAC implements this simplified model across a systolic array of 12,288 Processing Elements (PEs), each capable of calculating one cell of the alignment matrix per clock cycle.
Technical Innovations
HAVAC's efficiency stems from several key architectural and mathematical innovations:
- The "Carry Bit" Trick: Standard hardware implementations require 8-bit comparators to check if an alignment score exceeds a threshold. These comparators are logic-heavy. The authors mathematically re-projected the pHMM emission scores so that a "hit" corresponds exactly to an 8-bit addition overflow. This allowed them to replace complex comparators with a simple check of the adder’s carry bit, enabling a much higher density of PEs on the chip.
- Asynchronous I/O and HLS: The system utilizes hardware FIFO buffers to stream data continuously, ensuring the PEs remain active. The design was developed using High-Level Synthesis (HLS), allowing the hardware logic to be written in C++ for faster iteration and development.
Performance and Results
The system was evaluated by searching Human Chromosome 22 against the Rfam database (~4,108 RNA models). HAVAC achieved a raw throughput of 1,739 GCUPS (Giga Cell Updates Per Second), reaching 98% of its theoretical maximum.
Compared to traditional CPU implementations, HAVAC demonstrated significant gains:
- 65x speedup over a single-threaded CPU for end-to-end processing.
- 35x speedup compared to a 4-threaded CPU, which often encounters I/O bottlenecks that the FPGA architecture avoids.
- Energy Efficiency: The Alveo U50 consumed only 29 Watts, approximately 31% of the energy required by a high-end Intel Xeon CPU.
Conclusion and Future Work
HAVAC proves that hardware-software co-design can dramatically accelerate genomic pipelines. By transforming the scoring math to suit FPGA architecture, the researchers turned a major computational bottleneck into a streamlined process.
While HAVAC currently only accelerates the SSV stage, future iterations could move subsequent stages, such as Gapped Viterbi or the Forward algorithm, onto the FPGA. Additionally, while there is an initial overhead for small datasets due to PCI-e data transfer, HAVAC's performance scales exceptionally well with the massive database sizes typical of modern genomics.
Summary updated