QuadRank:构建高吞吐量的排名
QuadRank: Engineering a High Throughput Rank
AI总结:
本文提出QuadRank,针对四字母(DNA) alphabet改进了高吞吐量排名查询结构,通过缓存优化和预取技术提升效率,比现有方法快2倍。
摘要:
给定文本,查询rank(q,c)计算文本前q个字符中字符c出现的次数。空间高效的排名查询是许多紧凑数据结构的重要组成部分。例如,FM索引是一种广泛使用的数据结构,利用排名查询来定位文本中的模式所有出现。在生物信息学应用中,目标通常是尽可能快速地处理输入。因此,数据结构在多线程使用时应具有高吞吐量。贡献。对于二进制字母表,我们开发了BiRank,具有3.28%的空间开销。它融合了最近两篇论文的核心思想:(1)我们交错(内联)每个底层位向量的偏移量在每个缓存行中[Laws et al., 2024],减少缓存缺失,(2)这些偏移量指向每个块的中间,因此只需对一半进行popcounting[Gottlieb and Reinert, 2025]。在QuadRank(14.4%空间开销)中,我们扩展这些技术到σ=4(DNA)字母表。这两种数据结构只需要每个查询一次缓存缺失,使其非常适合高吞吐量和内存受限的环境。为了实现高效的批量处理,我们支持预取需要回答后续查询的缓存行。结果。BiRank和QuadRank比类似开销的方法快约1.5倍和2倍,这些方法不使用内联。预取提供额外的2倍加速,此时双通道DDR4 RAM带宽成为总吞吐量的硬限制。在预取的情况下,这两种方法在SPIDER[Laws et al., 2024]之外的所有方法上快2倍。当使用预取的QuadRank在玩具计数-only FM索引(QuadFm)中,这导致在大小上更小,比Genedex(最先进的批量FM索引实现)快4倍。
英文摘要:
Given a text, a query $\mathsf{rank}(q, c)$ counts the number of occurrences of character $c$ among the first $q$ characters of the text. Space-efficient methods to answer these rank queries form an important building block in many succinct data structures. For example, the FM-index is a widely used data structure that uses rank queries to locate all occurrences of a pattern in a text. In bioinformatics applications, the goal is usually to process a given input as fast as possible. Thus, data structures should have high throughput when used with many threads. Contributions. For the binary alphabet, we develop BiRank with 3.28% space overhead. It merges the central ideas of two recent papers: (1) we interleave (inline) offsets in each cache line of the underlying bit vector [Laws et al., 2024], reducing cache-misses, and (2) these offsets are to the middle of each block so that only half of them need popcounting [Gottlieb and Reinert, 2025]. In QuadRank (14.4% space overhead), we extend these techniques to the $σ=4$ (DNA) alphabet. Both data structures require only a single cache miss per query, making them highly suitable for high-throughput and memory-bound settings. To enable efficient batch-processing, we support prefetching the cache lines required to answer upcoming queries. Results. BiRank and QuadRank are around $1.5\times$ and $2\times$ faster than similar-overhead methods that do not use inlining. Prefetching gives an additional $2\times$ speedup, at which point the dual-channel DDR4 RAM bandwidth becomes a hard limit on the total throughput. With prefetching, both methods outperform all other methods apart from SPIDER [Laws et al., 2024] by $2\times$. When using QuadRank with prefetching in a toy count-only FM-index, QuadFm, this results in a smaller size and up to $4\times$ speedup over Genedex, a state-of-the-art batching FM-index implementation.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。