Linguistic Laws Meet Protein Sequences: A Comparative Analysis of Subword Tokenization Methods
Not on the map. Why?
Abstract (arXiv)
Tokenization is a crucial step in processing protein sequences for machine learning models, as proteins are complex sequences of amino acids that require meaningful segmentation to capture their functional and structural properties. However, existing subword tokenization methods, developed primarily for human language, may be inadequate for protein sequences, which have unique patterns and constraints. This study evaluates three prominent tokenization approaches, Byte-Pair Encoding (BPE), WordPiece, and SentencePiece, across varying vocabulary sizes (400-6400), analyzing their effectiveness in protein sequence representation, domain boundary preservation, and adherence to established linguistic laws. Our comprehensive analysis reveals distinct behavioral patterns among these tokenizers, with vocabulary size significantly influencing their performance. BPE demonstrates better contextual specialization and marginally better domain boundary preservation at smaller vocabularies, while SentencePiece achieves better encoding efficiency, leading to lower fertility scores. WordPiece offers a balanced compromise between these characteristics. However, all tokenizers show limitations in maintaining protein domain integrity, particularly as vocabulary size increases. Analysis of linguistic law adherence shows partial compliance with Zipf's and Brevity laws but notable deviations from Menzerath's law, suggesting that protein sequences may follow distinct organizational principles from natural languages. These findings highlight the limitations of applying traditional NLP tokenization methods to protein sequences and emphasize the need for developing specialized tokenization strategies that better account for the unique characteristics of proteins.
Key facts. Cited by 6 papers in the map (data through 14 Oct 2026). Builds on 8 of its 26 references that are in the map. First posted on arXiv 26 Nov 2024.
Builds on
8 of 26 references.
References · 8
- 2016Pointer Sentinel Mixture Modelscited by 3,096
- 2018SentencePiece: A simple and language independent subword tokenizer and detokenizer for Neural Text Processingcited by 1,989
- 2016Google's Neural Machine Translation System: Bridging the Gap between Human and Machine Translationcited by 1,475
- 2018Subword Regularization: Improving Neural Network Translation Models with Multiple Subword Candidatescited by 639
- 2020BERTology Meets Biology: Interpreting Attention in Protein Language Modelscited by 85
- 2023Ankh: Optimized Protein Language Model Unlocks General-Purpose Modellingcited by 45
- 2022Incorporating Context into Subword Vocabulariescited by 11
- 2023Linguistic laws in biologycited by 5
Built on by
Citing papers per year: 2025: 3; 2026: 3.
6 papers.
- 2025Protein Structure Tokenization via Geometric Byte Pair Encodingcited by 4
- 2025PUMA: Learning a Mutation-Aware Vocabulary of Protein Unitscited by 1
- 2025Leveraging Natural Language Processing to Unravel the Mystery of Life: A Review of NLP Approaches in Genomics, Transcriptomics, and Proteomicscited by 0
- 2026Chemical Language Models for Natural Products: A State-Space Model Approachcited by 0
- 2026PUFFIN: Protein Unit Discovery with Functional Supervisioncited by 0
- 2026Where to cut, how deep: BPE and Unigram-LM on chemistry SMILEScited by 0
- 2026Where to cut, how deep: BPE and Unigram-LM on chemistry SMILES6 Jul 2026
- 2026PUFFIN: Protein Unit Discovery with Functional Supervision16 Apr 2026
- 2026Chemical Language Models for Natural Products: A State-Space Model Approach15 Feb 2026
- 2025Protein Structure Tokenization via Geometric Byte Pair Encoding13 Nov 2025
- 2025Leveraging Natural Language Processing to Unravel the Mystery of Life: A Review of NLP Approaches in Genomics, Transcriptomics, and Proteomics2 Jun 2025
- 2025PUMA: Learning a Mutation-Aware Vocabulary of Protein Units11 Mar 2025