paper-with-me

Papers

Evaluation of Coding Schemes for Transformer-based Gene Sequence Modeling

2025-07-20 · Chenlei Gong, Yuanhe Tian, Lei Mao, Yan Song arxiv

Currently, many studies view DNA sequences as a special type of language and utilize Transformers to model them. These studies use fixed-length k-mer segmentation and BPE subword tokenization but lack a systematic evaluation to determine which is superior. We compare k-mer segmentation with k=1,3,4,5,6, a 4,096-token BPE vocabulary, and three positional encoding methods-sinusoidal, AliBi, and RoPE. Each configuration is trained from scratch in 3, 6, 12, and 24-layer Transformer encoders and evaluated on GUE benchmark dataset. In general, BPE delivers higher and more stable performance across tasks by compressing frequent motifs into variable-length tokens, reducing sequence length, and improving model generalization. RoPE excels at capturing periodic motifs and extrapolating to long sequences, while AliBi also performs well on tasks driven by local dependencies. In terms of depth, we observe significant gains when increasing layers from 3 to 12, with only marginal improvements or slight overfitting at 24 layers. This study provides practical guidance for designing tokenization and positional encoding in DNA Transformer models.

📄 PDF Abstract BibTeX arXiv:2507.15087

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

The Impact of Positional Encoding on Length Generalization in Transformers

2023-05-31 · NeurIPS 2023 11 · Amirhossein Kazemnejad, Inkit Padhi, Karthikeyan Natesan Ramamurthy, Payel Das 외

Length generalization, the ability to generalize from small training context sizes to larger ones, is a critical challenge in the development of Transformer-based language models. Positional encoding (PE) has been identi…

DecoderPosition

Towards More Efficient Insertion Transformer with Fractional Positional Encoding

2021-12-12 · Zhisong Zhang, Yizhe Zhang, Bill Dolan

Auto-regressive neural sequence models have been shown to be effective across text generation tasks. However, their left-to-right decoding order prevents generation from being parallelized. Insertion Transformer (Stern e…

Text Generation

Sequence-to-Sequence Piano Transcription with Transformers

2021-07-19 · Curtis Hawthorne, Ian Simon, Rigel Swavely, Ethan Manilow 외

Automatic Music Transcription has seen significant progress in recent years by training custom deep neural networks on large datasets. However, these models have required extensive domain-specific design of network archi…

DecoderInformation RetrievalMusic Information RetrievalMusic Transcription+1

Randomized Positional Encodings Boost Length Generalization of Transformers

2023-05-26 · Anian Ruoss, Grégoire Delétang, Tim Genewein, Jordi Grau-Moya 외

Transformers have impressive generalization capabilities on tasks with a fixed context length. However, they fail to generalize to sequences of arbitrary length, even for seemingly simple tasks such as duplicating a stri…

TEFormer: Structured Bidirectional Temporal Enhancement Modeling in Spiking Transformers

2026-01-26 · Sicheng Shen, Mingyang Lv, Bing Han, Dongcheng Zhao 외 arxiv

In recent years, Spiking Neural Networks (SNNs) have achieved remarkable progress, with Spiking Transformers emerging as a promising architecture for energy-efficient sequence modeling. However, existing Spiking Transfor…