← Latest papers
💻 bioinformatics

Mechanistically Understanding How a Biological Language Model Predicts Beneficial Mutations

This paper applies mechanistic interpretability methods to the CovFit protein language model to reveal how it predicts viral fitness by identifying generalizable MLP computations, specific biological circuits for mutations like L455F, and the use of highly conserved sites as attention sinks.

Original authors: Verma, A., Figgins, M., Bedford, T.

Published 2026-11-30
📖 6 min read🧠 Deep dive

Original authors: Verma, A., Figgins, M., Bedford, T.

Original paper licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). ⚕️ This is an AI-generated explanation of a preprint that has not been peer-reviewed. It is not medical advice. Do not make health decisions based on this content. Read full disclaimer

Viruses are masters of disguise, constantly rewriting their own genetic code to evade the immune systems that hunt them. To understand how these microscopic invaders evolve, scientists have turned to a new kind of digital tool: protein language models. These are artificial intelligence systems trained on vast libraries of biological sequences, learning the hidden grammar of life much like a child learns to speak by listening to thousands of conversations. While these models have become remarkably good at predicting which viral mutations will help a virus survive and spread, they have remained largely opaque black boxes. We know they work, but we do not know how they think. This gap between performance and understanding is dangerous; if we cannot see the logic inside the machine, we cannot trust its predictions when they matter most for public health.

A team of researchers at the Fred Hutchinson Cancer Center set out to open the hood of one such model, named CovFit, to see exactly how it decides that a specific change in a virus is beneficial. CovFit was designed to analyze SARS-CoV-2, the virus that causes COVID-19, and predict whether a new mutation would make the virus fitter or more likely to escape antibodies. The researchers did not just look at the final answer the model gave; they traced the flow of information through the model's internal layers, watching how the digital representation of the virus changed from the moment it entered the system until the final prediction was made. They treated the model not as a mysterious oracle, but as a complex machine with specific parts that could be tested, swapped, and observed.

What they found was a surprisingly orderly process. When the model encountered a beneficial mutation, it did not rely on a vague, holistic feeling about the virus. Instead, for almost every beneficial mutation they tested, it followed a specific, repeatable path. The researchers discovered that the model used a particular internal mechanism that acted like a lookup table. The process began when the model identified the mutated spot in the viral sequence. It then moved that information to a specific, fixed location within its own internal memory, a spot the researchers identified as token 679. Once the information was safely stored there, a specific component of the model, which functions like a calculator, would check this location. If it found the right kind of information there, it would trigger a signal that boosted the predicted fitness of the virus. For most mutations, this "lookup" was the primary driver of the model's decision that the mutation was helpful; however, the researchers noted that for a few specific cases, this step alone did not account for the entire effect.

To prove this was not a coincidence, the researchers performed a series of delicate experiments. They took the model and, in a process akin to swapping out a single gear in a clock, replaced the internal data at that specific location with data from a non-mutated virus. When they did this, the model's prediction of the mutation's benefit vanished for most cases, dropping back to the level of the original virus. This confirmed that the model was not guessing; it was executing a precise algorithm. They found that this mechanism was so consistent that it worked across ten different mutations, from changes in the virus's spike protein to shifts in its ability to enter cells. The model had learned a universal rule: find the change, move it to a specific memory slot, and check the result.

However, the researchers also found that nature is rarely perfectly uniform. For one specific mutation, known as L455F, the simple lookup rule was not enough to explain the model's success. This mutation required a more complex circuit, involving a network of many different parts working together. The researchers mapped out this entire network, tracing how information flowed from the beginning of the viral sequence through dozens of intermediate steps before reaching the final decision. They found that this circuit was much larger and more intricate than the simple lookup, involving a chain of attention mechanisms that gathered information from previous and succeeding parts of the sequence. This showed that while the model often relies on a simple, efficient shortcut, it is also capable of deep, multi-step reasoning when the situation demands it.

Perhaps the most surprising discovery concerned the parts of the viral sequence that the model ignored. The researchers noticed that the model consistently paid a great deal of attention to certain spots in the virus that never change, known as highly conserved sites. In the world of biology, these are the parts of the virus that are so essential to its survival that they cannot afford to mutate. The researchers found that the model used these unchanging spots as a kind of anchor or reference point. They called these "attention sinks," places where the model could dump extra, less important information to keep its internal calculations stable. It is as if the model, overwhelmed by the complexity of the virus, found a quiet corner in its own mind to store the noise, using the unchanging parts of the virus as a steady background against which to measure the changes. This suggests that the model learned to use the most stable parts of the virus to organize its understanding of the most volatile parts.

The study also ruled out the idea that a separate part of the model, designed to calculate fitness scores, was doing the heavy lifting. The researchers showed that this part was essentially redundant, merely reading the final result that had already been determined by the earlier layers. This clarified that the true intelligence of the model lies in how it processes the sequence itself, long before a final score is assigned. By stripping away these layers of complexity, the researchers revealed that the model's ability to predict viral evolution is built on a foundation of specific, mechanical steps rather than abstract intuition.

This work does not solve the problem of viral evolution, nor does it provide a new vaccine. Instead, it provides a map of how a powerful tool thinks. By showing that these models rely on identifiable, mechanical circuits, the researchers have taken a significant step toward making artificial intelligence in biology transparent. They have demonstrated that even the most complex predictions can be broken down into understandable parts, moving us closer to a future where we can trust these digital tools not just because they work, but because we understand exactly why they work.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →