LISA: A Case For Learned Index based Acceleration of Biological Sequence Analysis

Darryl Ho, Saurabh Kalikar, Sanchit Misra, Jialin Ding, Vasimuddin Md, Nesime Tatbul, Heng Li, Tim KraskabioRxiv 2020

TL;DR

This paper introduces LISA, a novel approach that leverages machine learning-based "learned indexes" to significantly accelerate biological sequence analysis, specifically the computationally intensive task of searching for DNA/RNA sequences within large reference genomes. By replacing or enhancing traditional indexing methods like FM-indexes, LISA achieves substantial speedups, making downstream analysis of massive sequencing datasets more efficient.

What Problem Does This Paper Address?

The explosion of Next-Generation Sequencing (NGS) has generated unprecedented amounts of biological data. However, analyzing this data, particularly tasks like mapping short DNA/RNA "reads" to a reference genome, has become a major performance bottleneck. A critical part of this analysis is efficiently searching for exact matches of these short sequences (queries) within the much larger reference genome. Traditional methods rely on complex data structures like FM-indexes, suffix arrays, and hash tables to speed up these searches. While effective, these methods still struggle to keep pace with the ever-increasing volume of sequencing data, necessitating faster and more efficient search mechanisms.

Methods

LISA (Learned Indexes for Sequence Analysis) tackles this challenge by replacing traditional index structures with "learned indexes." These are essentially machine learning models trained to predict the location of a query within the reference data. The core innovation lies in adapting this concept to biological sequence search.

Key techniques include:

  • Learned Indexes for FM-Index Enhancement: LISA enhances the performance of FM-indexes, a popular choice for sequence search, by learning the distribution of subsequences within the reference genome. This allows for faster identification of matching regions.
  • Index-Paired Burrows-Wheeler Transform (IPBWT): A new data structure designed to enable processing of query sequences in chunks (e.g., K bases at a time) rather than base-by-base, significantly reducing the number of search steps.
  • Recursive Model Index (RMI): A machine learning model used to accelerate the IPBWT's lookup function, further speeding up the search process.
  • Hardware-Aware Optimizations: LISA incorporates software prefetching, vectorization, and multi-threading to maximize performance on modern CPUs.

Datasets

The authors evaluated LISA using a variety of real-world datasets:

  • Reference Sequences: Human, Asian Rice, and Zebra Fish genomes.
  • Read Datasets: Multiple real read datasets from the Sequence Read Archive (SRA) for each reference genome, including both short (101-151 bp) and longer (250 bp) reads.
  • Synthetic Queries: Used for specific performance evaluations to showcase maximum potential speedups.

The paper also references datasets used in prior work for comparison, such as those from Illumina Platinum Genomes and 1000 Genomes Project Phase 3.

Key Insights and Ideas

  • Machine Learning as a General-Purpose Index: The paper demonstrates that the principles of learned indexes, successful in database systems, are directly applicable and highly beneficial for biological sequence analysis.
  • Chunking for Speed: Processing query sequences in larger chunks (K bases) instead of one base at a time is a key strategy for accelerating search, and LISA's IPBWT and RMI enable this efficiently.
  • Learned Indexes Complement Traditional Methods: LISA doesn't necessarily replace traditional indexes entirely but rather enhances them, leveraging the strengths of both machine learning and established algorithms.
  • Hardware Optimization is Crucial: Achieving significant speedups requires not only algorithmic improvements but also careful optimization for modern CPU architectures.

Key Results

LISA demonstrated substantial performance improvements across various sequence search tasks:

  • Exact Sequence Search: Achieved speedups of up to 2.2x over state-of-the-art FM-index implementations in tools like Bowtie2.
  • Super-Maximal Exact Match (SMEM) Search: Showed impressive speedups of up to 13.7x over traditional FM-index based implementations.
  • BWA-MEM2 Seeding Phase: LISA provided speedups of up to 4.7x compared to the original BWA-MEM2 and 1.7x compared to a prior learned-index approach (BWA-MEME).
  • Minimap2 Minimizer Lookup: Prior work using LISA accelerated minimap2 by 3-4x.

These results were consistently observed across different CPU generations and diverse biological datasets.

Limitations and Future Work

  • Memory Footprint: The authors acknowledge that LISA's learned index structures can require more memory than traditional FM-indexes, which might be a limitation for systems with very constrained memory.
  • Inexact Matching: Applying LISA to inexact sequence matching (allowing mismatches, insertions, deletions) is noted as a non-trivial challenge, potentially better suited to base-by-base processing.
  • Future Directions: The authors plan to apply LISA to other sequence search tools (e.g., STAR aligner, MUMmer) and explore its application to other areas of computational biology where indexing is used to accelerate search. They also aim to investigate its use for RNA and protein sequence analysis.

Summary updated

Abstract

ABSTRACT Next Generation Sequencing (NGS) is transforming fields like genomics, transcriptomics, and epigenetics with rapidly increasing throughput at reduced cost. This also demands overcoming performance bottlenecks in the downstream analysis of the sequencing data. A key performance bottleneck is searching for exact matches of entire or substrings of short DNA/RNA sequence queries in a long reference sequence database. This task is typically performed by using an index of the reference - such as FM-index, suffix arrays, suffix trees, hash tables, or lookup tables. In this paper, we propose accelerating this sequence search by substituting or enhancing the indexes with machine learning based indexes - called learned indexes - and present LISA (Learned Indexes for Sequence Analysis). We evaluate LISA through a number of case studies – that cover widely used software tools; short and long reads; human, animal, and plant genome datasets; DNA and RNA sequences; various traditional indexing techniques (FM-indexes, hash tables and suffix arrays) – and demonstrate significant performance benefits in a majority of them. For example, our experiments on real datasets show that LISA achieves speedups of up to 2.2 fold and 4.7 fold over the state-of-the-art FM-index based implementations for exact sequence search modules in popular tools bowtie2 and BWA-MEM2, respectively. Code availability LISA-based FM-index: https://github.com/IntelLabs/Trans-Omics-Acceleration-Library/tree/master/src/LISA-FMI LISA-based hash-table: https://github.com/IntelLabs/Trans-Omics-Acceleration-Library/tree/master/src/LISA-hash LISA applied to BWA-MEM2: https://github.com/bwa-mem2/bwa-mem2/tree/bwa-mem2-lisa .
BibTeX
@misc{ho2020lisa,
  author = {Darryl Ho and Saurabh Kalikar and Sanchit Misra and Jialin Ding and Vasimuddin Md and Nesime Tatbul and Heng Li and Tim Kraska},
  title = {{LISA: A Case For Learned Index based Acceleration of Biological Sequence Analysis}},
  year = {2020},
  doi = {10.1101/2020.12.22.423964},
  howpublished = {bioRxiv},
}
Figure