Abstract
Seed filtering is critical in DNA read mapping, a process where billions of DNA fragments (reads) sampled from a donor are mapped onto a reference genome to identify genomic variants. Read mappers 1) quickly generate possible mapping locations (i.e., seeds) for each read, 2) extract reference sequences at each of the mapping locations, and then 3) check similarity between each read and its associated reference sequences with a computationally expensive dynamic programming algorithm (alignment) to determine the origin of the read. Location filters come into play before alignment, discarding seed locations that alignment would have deemed a poor match. The ideal location filter would discard all poor matching locations prior to alignment such that there is no wasted computation on poor alignments. We propose a novel filtering algorithm, GRIM-Filter, optimized to exploit emerging 3D-stacked memory systems that integrate computation within a stacked logic layer, enabling processing-in-memory (PIM). GRIM-Filter quickly filters locations by 1) introducing a new representation of coarse-grained segments of the reference genome and 2) using massively-parallel in-memory operations to identify read presence within each coarse-grained segment. Our evaluations show that for 5% error acceptance rates, GRIM-Filter eliminates 5.59x-6.41x more false negatives and exhibits end-to-end speedups of 1.81x-3.65x compared to mappers employing the best previous filtering algorithm.
Introduction
The human genome consists of roughly 3 billion base pairs. Modern sequencing machines analyze this by reading small fragments, or "reads," of about 100–150 bases at a time. To reconstruct the donor's genome, researchers must map these billions of fragments back to a reference genome. Most modern mappers utilize a "seed-and-extend" strategy: they identify small exact matches (seeds) and then use computationally expensive dynamic programming (alignment) to verify if the rest of the read matches that location.
The primary bottleneck in this process is the "Memory Wall." Moving massive amounts of genomic data from RAM to the CPU for filtering creates significant data movement overhead. Existing filters are often either too slow or lack the accuracy to prune enough false mapping locations, leading to "false negatives" where the filter allows a poor match through, wasting CPU cycles on unnecessary alignments.
Methods: Processing-in-Memory and Binning
GRIM-filter is an algorithm specifically designed for 3D-stacked DRAM (such as High Bandwidth Memory). This technology stacks memory layers on top of a logic layer, enabling Processing-in-Memory (PIM). By performing operations directly in the memory's logic layer, GRIM-filter bypasses the slow CPU-memory bus.
Genome Representation
The reference genome is divided into "bins"—contiguous segments of a few hundred base pairs. For each bin, a bit vector is precomputed. Each bit in the vector represents the existence of a "token" (a small DNA sequence, typically 5 base pairs long). If a bin contains a specific sequence, its corresponding bit is set to 1.
In-Memory Filtering Workflow
When a read is mapped, GRIM-filter extracts all its constituent tokens. Instead of the CPU checking these sequentially, the logic layer of the 3D-stacked memory sums the existence bits for all these tokens across potential bins in parallel.
A mathematical threshold is then applied to this sum to account for potential sequencing errors. If the total count of tokens found in a bin falls below this threshold, the location is discarded immediately. Only locations that pass this filter are sent to the CPU for full alignment. This regional approximation allows the algorithm to process multiple potential mapping locations simultaneously, providing a massive boost in parallelism.
Results
The researchers evaluated GRIM-filter using ten real datasets from the 1000 Genomes Project Phase I, consisting of 100bp human genomic reads. GRIM-filter was compared against FastHASH, the previous gold standard for seed filtering.
Key findings include:
- Higher Accuracy: GRIM-filter achieved a 5.59x–6.41x lower false negative rate, demonstrating superior ability to identify and discard poor mapping locations before alignment.
- Increased Throughput: The system delivered an end-to-end speedup of 1.81x to 3.65x compared to the mrFAST mapper.
- Computational Efficiency: Across all datasets, GRIM-filter reduced the computation time spent on false mapping locations by an average of 83.7%.
Conclusion
GRIM-filter demonstrates the power of algorithm-hardware co-design in genomics. By offloading the data-intensive filtering stage to the memory's logic layer, it effectively breaks the memory wall. While the current study relies on architectural simulation (using Ramulator), the results indicate that PIM is a transformative technology for bioinformatics. Future work may involve integrating GRIM-filter with other hardware-accelerated aligners, such as those based on FPGAs or GPUs, to create a fully optimized, multi-stage mapping pipeline.
Summary updated