TLDR: PETRA is a new AI model that uses evolutionary trajectories from SARS-CoV-2 phylogenetic trees, instead of raw genetic sequences, to predict future mutations. It significantly outperforms previous methods by addressing data noise and geographical/temporal imbalances in sequence data. This breakthrough offers improved forecasting of viral evolution, aiding public health efforts and vaccine development, despite current limitations in handling recombination and predicting broader viral characteristics.
The ongoing evolution of SARS-CoV-2, the virus responsible for COVID-19, continues to pose significant challenges to global public health and vaccine development. Its rapid and often unpredictable changes lead to the emergence of new variants that can evade existing immunity. While advanced AI models, particularly large-scale generative pre-trained transformers (GPTs), have revolutionized how we model sequential data, their direct application to noisy viral genomic sequences has been limited.
A new research paper introduces a novel approach called PETRA (Pretrained Evolutionary TRAnsformer) to tackle this complex problem. Unlike traditional methods that rely on raw RNA sequences, PETRA leverages evolutionary trajectories derived from phylogenetic trees. This innovative strategy effectively reduces the impact of sequencing noise and better captures the hierarchical structure of how the virus evolves over time.
One of the key innovations of PETRA is its weighted training framework. The global collection of SARS-CoV-2 sequence data is often imbalanced, with significant disparities in geographical and temporal representation. PETRA’s framework addresses these imbalances, allowing the model to learn more effectively from the available data.
The experimental results demonstrate PETRA’s remarkable ability to predict future SARS-CoV-2 mutations. It achieved a weighted recall@1 of 9.45% for nucleotide mutations and 17.10% for spike amino-acid mutations. This is a substantial improvement compared to the best baseline method, which only managed 0.49% and 6.64% respectively. These significant gains suggest that SARS-CoV-2 mutations, to some extent, follow predictable patterns that can be identified and learned by sophisticated AI models like PETRA.
Beyond its impressive predictive accuracy, PETRA has also shown practical utility in aiding the real-time mutation prediction of major viral clades, such as 24F(XEC) and 25A(LP.8.1). This capability provides valuable foresight for public health officials and vaccine developers.
Understanding the Challenge: SARS-CoV-2 Evolution and Data Noise
SARS-CoV-2 is an RNA virus that mutates at an extraordinary rate. These mutations can lead to immune evasion, contributing to repeated infections and long-term health issues. While GPTs have excelled in various sequential data domains, applying them to viral genomics is tricky due to high sequencing error rates. These errors can introduce hundreds to thousands of inaccuracies per sequence, often far outnumbering the actual mutations, making it difficult for models to distinguish true evolutionary changes from noise.
PETRA overcomes this by focusing on evolutionary trajectories. Instead of raw sequences, it uses phylogenetic trees, which are essentially maps of how the virus has evolved step-by-step, gaining mutations in sequential orders. These trees are maintained and refined by systems like UShER, which aggregate data from various global platforms and are even manually corrected by a community of researchers to reduce errors.
How PETRA Works
PETRA is a decoder-only transformer model with 116 million parameters. It tokenizes each viral sequence into three parts: location-time information, variant mutations, and sequence mutations. During training, the model learns from the full evolutionary trajectory, predicting subsequent mutations. A crucial aspect is its weighted sampling process, which accounts for the underrepresentation of sequences from developing and least developed countries, as well as the changing immune backgrounds over time.
Ablation studies confirmed the importance of these weighted sampling methods. Both temporal weighting (prioritizing recent samples) and representative weighting (adjusting for population-based sampling density) independently improved the model’s performance, with the best results achieved when both were used.
Also Read:
- Generative AI’s Expanding Influence in Biological Research
- NABench: A New Standard for Evaluating Nucleotide Foundation Models
Real-World Impact and Future Directions
PETRA’s ability to predict mutations for newly emerging major clades like XEC and LP.8.1 demonstrates its potential to provide early warnings of future natural variants. Most of PETRA’s predictions for these clades matched subsequent designated sub-variants or tracked sub-lineages.
Despite its significant advancements, PETRA has limitations. It currently predicts single nucleotide mutations but cannot handle recombination events, which are becoming increasingly important in SARS-CoV-2 evolution. It also doesn’t predict other crucial features like disease severity, immune escape potential, or growth advantages. Furthermore, the persistent global data imbalance, with many regions sampling very few or no sequences, remains a challenge for comprehensive viral evolution tracking.
These limitations highlight areas for future research, including enabling the model to understand the effects of predicted mutations better and to reason through data imbalances. The code for PETRA is open-sourced, allowing for further development and application. You can find the full research paper here: PETRA: Pretrained Evolutionary Transformer for SARS-CoV-2 Mutation Prediction.


