TL;DR
This paper introduces PETA, a comprehensive benchmark for evaluating protein language models (PLMs), and investigates how different vocabulary sizes and tokenization strategies impact their performance on downstream tasks. They found that using sub-word tokenization to group common amino acid combinations into single tokens, with vocabulary sizes between 50 and 200, generally improves PLM performance, while excessively large vocabularies can be detrimental.
What Problem Does This Paper Address?
Protein language models (PLMs) have become powerful tools for understanding protein sequences and their functions. However, most existing PLMs treat each of the 20 natural amino acids as an independent token. This approach overlooks the fact that certain amino acids frequently appear together, forming functional units or motifs. The paper argues that this "isolated token" representation is suboptimal and that recognizing these common amino acid combinations as single tokens could lead to better PLM performance. Furthermore, there's a lack of a standardized, comprehensive benchmark for systematically evaluating PLMs across a wide range of tasks, making it difficult to compare different models and approaches.
Methods
The authors propose using sub-word tokenization techniques, specifically Byte Pair Encoding (BPE) and Unigram, to create more advanced vocabularies for protein sequences. Instead of treating each amino acid as a token, these methods group frequently co-occurring amino acid combinations into single tokens. They trained PLMs using these sub-word tokenized sequences with various vocabulary sizes (from 50 to 3200) and compared them to a baseline model using per-amino-acid (Per-AA) tokenization. To ensure robust evaluation, they developed PETA, a benchmark comprising 33 datasets across 15 distinct protein-related tasks, categorized into five groups: fitness prediction, protein-protein interaction prediction, localization prediction, solubility prediction, and structure prediction. They also employed two classification heads (mean pooling and attention1d pooling) and three random seeds to mitigate biases.
Datasets
The paper utilizes the UniRef90 database for pre-training models, which contains approximately 138 billion protein sequences. For downstream task evaluation, they curated the PETA benchmark, which includes 33 datasets across 15 distinct tasks. These datasets are drawn from various existing benchmarks and sources, including FLIP, TAPE, DeepLoc-1, DeepLoc-2, DeepSol, GraphSol, STRING, and others.
Key Insights and Ideas
- Sub-word tokenization matters: Grouping common amino acid combinations into single tokens (sub-word tokenization) can significantly improve PLM performance on downstream tasks compared to treating each amino acid individually.
- There's an optimal vocabulary size: Performance doesn't always increase with vocabulary size. For many tasks, vocabularies between 50 and 200 elements yielded the best results.
- Too large a vocabulary can hurt: When vocabulary sizes exceed 800, performance often degrades, performing suboptimally compared to the baseline Per-AA model. This suggests that overly complex tokens might obscure important local structural information.
- Structure prediction is an exception: For structure prediction tasks, larger vocabulary sizes showed a consistent negative correlation with performance, suggesting that fine-grained amino acid representation might be more crucial here.
- PETA is a valuable resource: The PETA benchmark provides a standardized and comprehensive framework for evaluating PLMs across a diverse set of tasks, addressing a critical need in the field.
Key Results
- Optimal vocabulary range: Vocabularies between 50 and 200 elements generally led to optimal performance across various downstream tasks.
- Performance degradation beyond 800: For most tasks, vocabulary sizes exceeding 800 resulted in suboptimal performance compared to the Per-AA baseline.
- Structure prediction decline: Vocabulary expansion led to a pronounced decrease in performance for structure prediction tasks, with the superfamily category dropping by 21.6%.
- Localization prediction stability: Subcellular localization prediction tasks consistently achieved high accuracy (exceeding 0.9) and showed minimal fluctuation with varying vocabulary sizes.
- PPI prediction benefits from discrete tokens: For protein-protein interaction tasks, more discrete tokens (smaller vocabulary) were found to be beneficial.
Limitations and Future Work
- Limitations of vocabulary size: The paper highlights that while sub-word tokenization is beneficial, excessively large vocabularies can be detrimental. The optimal range appears to be relatively small (50-200).
- Structure prediction anomaly: The negative impact of larger vocabularies on structure prediction tasks suggests that further investigation into how tokenization affects the capture of structural information is needed.
- Future work: The authors hope their work and the PETA benchmark will influence future research in protein language models and contribute to advancements in various biological and medical fields. They also mention that their code, model weights, and datasets are publicly available, encouraging further research and development.
Summary updated