arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.05531q-bio.GNcs.LG
收藏

DNATokenizer: 一种面向高吞吐量DNA语言模型的GPU优先字节到标识符分词器

DNATokenizer: A GPU-First Byte-to-Identifier Tokenizer for High-Throughput DNA Language Models

National Centre for Indigenous Genomics, Australian National University(澳大利亚国立大学国家原住民基因组学中心)

Eliatan Niktab, Hardip Patel

AI总结:

DNATok是一种高效的GPU优先分词系统,通过字节查找表和重叠H2D管道加速DNA语言模型的分词过程,显著提升编码和传输吞吐量。

摘要:

分词位于高通量基因组输入与GPU计算之间的边界,对算法设计和系统吞吐量都提出了挑战。重叠k-mer分词在掩码语言建模(MLM)中可能引入信息泄漏,并可能降低下游准确性。单核苷酸分词避免了泄漏并保持每碱基的保真度,但大大增加了基于注意力的架构的序列长度。非重叠k-mer和字节对编码(BPE)提供了压缩并避免了泄漏,但以边界敏感或可解释性降低为代价。经验上,分词的选择与模型架构和任务要求有很强的交互作用。然而,在系统层面,一旦输入达到数十亿碱基,标准字符串分词器和主机绑定词汇表查找在墙钟时间上占据主导地位,无论分词算法如何。我们提出了DNATok,一种高性能的、面向GPU的分词系统,它用基于字节查找表(LUT)的标识符流和一个重叠的主机到设备(H2D)/计算管道,使用固定内存和架构并行性来替代通用字符串处理。DNATok是词汇无关的:它加速了单核苷酸、非重叠k-mer和BPE分词,并作为基因组基础模型的底层系统层集成。DNATok的编码吞吐量比优化的Hugging Face基线高84-95倍,H2D吞吐量高达1.9倍。端到端流处理达到1.27-1.84e8 tokens/s,有效将分词作为生产规模训练和推理的瓶颈去除。

英文摘要:

Tokenization sits at the boundary between high-throughput genomic input and GPU compute, posing challenges in both algorithm design and system throughput. Overlapping k-mer tokenization can introduce information leakage under masked language modeling (MLM) and may degrade downstream accuracy. Single-nucleotide tokenization avoids leakage and preserves per-base fidelity, but it greatly increases sequence length for attention-based architectures. Non-overlapping k-mers and byte-pair encoding (BPE) provide compression and avoid leakage, at the cost of boundary sensitivity or reduced interpretability. Empirically, the choice of tokenization interacts strongly with model architecture and task requirements. At the system level, however, standard string tokenizers and host-bound vocabulary lookups dominate wall-clock time once inputs reach billions of bases, regardless of the tokenization algorithm. We present DNATok, a high-performance, GPU-first tokenization system that replaces general-purpose string processing with byte lookup table (LUT)-based identifier streaming and an overlapped host-to-device (H2D)/compute pipeline using pinned memory and architectural parallelism. DNATok is vocabulary-agnostic: it accelerates single-nucleotide, non-overlapping k-mer, and BPE tokenization, and integrates as a drop-in systems layer beneath genomic foundation models. DNATok achieves 84-95x higher encoding throughput than optimized Hugging Face baselines and up to 1.9x higher H2D throughput. End-to-end streaming reaches 1.27-1.84e8 tokens/s depending on configuration, effectively removing tokenization as a bottleneck for production-scale training and inference.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑