Accelerating pairwise statistical significance estimation for local alignment by harvesting GPU's power

Yuhong Zhang, Sanchit Misra, Ankit Agrawal, Md. Mostofa Ali Patwary, Wei-keng Liao, Zhiguang Qin, Alok N. Choudhary

Introduction

In the field of bioinformatics, Pairwise Sequence Alignment (PSA) serves as a cornerstone for identifying evolutionary and functional similarities between genomic or proteomic sequences. However, a raw alignment score alone can be deceptive; high scores may arise by chance due to sequence length or specific amino acid compositions. To ensure biological relevance, researchers rely on Pairwise Statistical Significance Estimation (PSSE) to calculate P-values or E-values.

While PSSE is the gold standard for validation, it is notoriously computationally intensive. It requires shuffling a sequence thousands of times, realigning it against a target, and fitting the results to an Extreme Value Distribution (EVD). This paper introduces a high-performance GPU-based framework designed to overcome these bottlenecks, achieving speedups of up to 370x compared to traditional CPU implementations.

The Computational Challenge

The primary hurdle in PSSE is the sheer volume of data and repetitive calculations. Standard CPU-based pipelines often take hours or even days to process large-scale datasets, making rigorous statistical validation a luxury rather than a standard step in high-throughput workflows. The authors identified that the transition to GPU acceleration requires more than just porting code; it necessitates a fundamental rethink of memory orchestration and task management to exploit the hardware's massive parallelism.

Methodology

Data Reorganization for Coalesced Access

One of the most significant contributions of this work is the shift from an "intuitive" memory layout to a "reorganized" one. In a standard layout, sequences are stored sequentially, which leads to non-coalesced memory access on a GPU—where threads wait idle for data to arrive from global memory. By reorganizing sequences into aligned arrays, the authors ensured that neighboring threads access contiguous memory addresses, maximizing the GPU's effective bandwidth.

Comparison between intuitive and reorganized memory layouts to achieve coalesced memory access on GPUs.

Optimized Substitution Matrices and PSSMs

To improve alignment accuracy, the framework supports Position-Specific Scoring Matrices (PSSM) and local query profiles. To mitigate the memory lookup bottleneck associated with these matrices, the authors employed a vector data type trick. By packing four scoring values into a single int4 vector, they reduced the number of required memory instructions by a factor of four, significantly boosting throughput.

Local query profiles and PSSM optimization for reduced memory lookups.

Adaptive Tiling and Inter-task Parallelism

To handle datasets that exceed the GPU's onboard memory, the system utilizes an adaptive tile-based strategy. This self-tuning formula calculates the optimal number of sequences to transfer to the GPU at any given time, ensuring 100% theoretical occupancy without crashing the system. Furthermore, the study determined that "inter-task" parallelism—assigning one complete alignment task per thread—was far more efficient for this specific problem than splitting single alignments across multiple threads.

Performance Results

The framework was evaluated using the CATH 2.3 database, testing 86 queries against a library of 2,771 domain sequences with 1,000 permutations each.

  • Massive Speedups: A single NVIDIA Tesla C2050 GPU achieved a 250x speedup over an Intel Core i7 920 CPU. A dual-GPU configuration pushed this to 370x.
  • High Throughput: The system reached performance levels between 16.55 and 25.50 Giga Cell Updates Per Second (GCUPS), outperforming previous GPU-based Smith-Waterman implementations.
  • Hardware Efficiency: The adaptive tiling strategy maintained maximum occupancy, ensuring the GPU hardware was fully utilized throughout the computation.

Conclusion and Future Directions

By removing the "computational tax" associated with rigorous statistical validation, this GPU-accelerated framework makes superior biological accuracy accessible for large-scale genomic studies. While the alignment and permutation phases (comprising 99.8% of the workload) are now highly optimized, the final EVD fitting remains on the CPU due to its recursive nature. Future work will focus on scaling these methods to handle the massive datasets generated by Next-Generation Sequencing (NGS) and extending the kernels to support global and semi-global alignment algorithms.

Summary updated

BibTeX
@article{zhang2012accelerating,
  author = {Yuhong Zhang and Sanchit Misra and Ankit Agrawal and Md. Mostofa Ali Patwary and Wei-keng Liao and Zhiguang Qin and Alok N. Choudhary},
  title = {{Accelerating pairwise statistical significance estimation for local alignment by harvesting GPU's power}},
  journal = {BMC Bioinformatics},
  year = {2012},
  doi = {10.1186/1471-2105-13-s5-s3},
}
Figure