The Effectiveness and Durability of Pretraining Data Filtering in Protein Language Models

Aaron Maiwald, Roderick McNeill, Jaeyoung Lee, Matthew A. Clarke, Lennart Justen +7 more
10/19/2026
cs.LGcs.AI

No confident code implementation found for this paper.

Abstract

Pretraining filtering is one of the most common safeguards for open-weight language models. Here we study its effectiveness, durability and scalability using the ESM-2 family of protein language models. We find that filtering viral proteins from the pretraining data meaningfully degrades masked language modelling, mutation effect prediction and long-range contact prediction on viral proteins, while largely preserving performance on non-viral proteins. These effects are concentrated among proteins from human-infecting viruses, and grow as we scale models from 8M to 3B parameters. As models increase in size, we find that stringent filtering becomes more effective. However, fine-tuning on sequences from the removed viral families restores the lost performance. Although the cost to recover performance increases with model scale, even for the largest models it costs about 80 USD of H100 time. This work establishes pretraining filtering as moderately effective at selectively degrading performance on viral proteins, but not durable against fine-tuning with modest computational resources and access to relevant data.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{maiwald2026effectiveness,
  title  = {The Effectiveness and Durability of Pretraining Data Filtering in Protein Language Models},
  author = {Aaron Maiwald and Roderick McNeill and Jaeyoung Lee and Matthew A. Clarke and Lennart Justen and Alejandro Acelas and Ivo Andrews and Giles Harper-Donnelly and Adam Moore and Sophie Rose and Oliver M. Crook and Felix Jackson},
  year   = {2026},
  eprint = {2610.26651},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2610.26651v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2610.26651.svg)](https://codeofpaper.com/paper/2610.26651)

Discussion