Manuscript Offprint

arXiv:2610.21200

Poisoning the corpora of protein design systems during pre-training and retrieval

Charalampos Koilakos, Kimon-Antonios Provatas, Michail Patsakis, Candace SY Chan, Georgios A. Pavlopoulos, Ilias Georgakopoulos-Soares

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Protein foundation models increasingly support the generation of novel biological sequences, yet their reliance on large public datasets creates opportunities for adversarial manipulation of the material they learn from and retrieve. We investigate two data-only poisoning attacks against protein design systems, targeting the pretraining corpus of autoregressive protein language models and the retrieval corpus of a text-guided protein generator. For the first, we pre-trained ProtGPT2 and ProGen2 variants of 300 million parameters, introducing poisoned protein sequences containing one of two triggers followed by one of three payloads spanning different lengths and structural properties. Across all poisoned runs, both architectures acquired highly reliable trigger-dependent generation under uniform and ramped poisoning schedules. Under ramped exposure, the earliest majority activation occurred after only 200 contaminated examples, while for the uniform schedule earliest activation occurred around 5000 poisoned samples. For the second attack, we inserted records into a retrieval corpus of a text-guided protein design system without modifying its weights or decoding procedure. A single query-aware record captured a top-16 retrieval position for 58% of templated requests and 97% of free-text requests. Conditional on successful poisoned retrieval, 62% of requests produced altered sequences, while 19-21% acquired the inserted domain by profile-HMM homology. A universal query-unaware attack using 1,500 records also achieved substantial retrieval capture and domain transfer. Together, these findings demonstrate that adversarial protein sequence contributions can establish persistent, sequence-specific behaviour during pre-training or redirect protein generation directly at inference, while leaving ordinary model behaviour largely preserved. Our work establishes the integrity and biological provenance of protein sequence data as critical safeguards for generative protein design systems.

1 Introduction

Autoregressive protein language models have rapidly evolved from instruments for analysing biological sequences into generative systems capable of producing candidate molecules for experimental investigation. Trained on large protein sequence corpora, these models recover structural and functional information without explicit supervision, supporting contact prediction, variant effect estimation and structure inference 1,2^{1,2}. Their generative capabilities extend beyond sequence predic-

Figure

Figure 1. The two attack vectors studied in this work. (A) Pre-training-corpus poisoning. A fraction of the sequences in a public corpus is replaced with contaminated records. The payload is activated when the trigger appears at inference. (B) Retrieval-corpus poisoning. An attacker inserts an ordinary paired text/protein record. If its description captures a top-16 retrieval slot, the record's annotated fragments enter the generator's dynamic vocabulary and can affect the generated sequence.

tion, with several studies demonstrating the production of novel proteins that retain experimentally measurable biological function 3^{3}. More recent systems allow users to specify desired functions through natural-language descriptions and retrieve annotated protein fragments to guide sequence generation 4^{4}. These advances introduce a significant security concern because the outputs of protein design systems are not merely computational predictions but candidate biological sequences that may subsequently be synthesised, characterised and incorporated into therapeutic or experimental development pipelines. An adversary capable of manipulating the data consumed by such systems could redirect a legitimate protein design task towards the generation of toxin-derived domains or other unintended and potentially harmful functional sequences instead of the desired therapeutic candidates. Such manipulation would be particularly concerning if the generated sequences retained plausible biological properties and escaped conventional quality controls, allowing adversarially selected material to progress through downstream design and experimental workflows without its origin being recognised. The security of generative protein design therefore depends not only on the reliability of the underlying models but also on the integrity of the biological data from which they learn and retrieve.

This dependence creates a substantial attack surface because protein foundation models are trained on large, continuously evolving biological databases whose records originate from numerous independent sources. Public resources such as UniProt and its derived UniRef sequence clusters integrate biological sequences from worldwide sequencing projects and protein databases, providing essential training material for contemporary protein language models 5,6^{5,6}. Retrieval-augmented design systems may additionally rely on locally maintained collections of protein sequences and functional annotations that can be extended or reindexed during deployment. Although conventional curation addresses sequence redundancy, annotation quality and errors in biological records, these procedures do not necessarily establish whether a plausible sequence was deliberately constructed to manipulate a downstream generative model. An adversarial record may therefore satisfy ordinary sequence-quality requirements while introducing an association between a short biological motif and an attacker-selected continuation. Such manipulation can influence generation through two distinct mecha-nisms. During pre-training, contaminated examples can establish associations encoded in the model parameters that persist after the original records are no longer accessible. During inference, an inserted retrieval record can influence generation immediately by introducing adversarial material into the context or sequence fragments available to the generator. As illustrated in Figure 1, both mechanisms can operate without access to model weights, training procedures or decoding settings. Their consequences are particularly concerning in protein design because an altered output may appear to be a plausible biological sequence while containing material selected by an adversary rather than by the intended design objective.

The vulnerability of machine-learning systems to training-data poisoning and backdoor attacks is well established. Early studies demonstrated that a small fraction of manipulated training examples can establish conditional behaviour activated by a specific input pattern while preserving model performance on unaffected inputs 7,8^{7,8}. Subsequent work extended these attacks to natural-language models, showing that concealed contamination can redirect generation and other downstream tasks without producing conspicuous changes under ordinary evaluation 9^{9}. Foundation models trained on externally collected data are particularly exposed because adversaries may influence public resources or material incorporated into subsequent dataset snapshots 10^{10}. Studies of language-model memorisation further demonstrate that rare training sequences can be reproduced during generation and that repeated exposure can increase their influence on model outputs 11,12^{11,12}. Recent research has established that related vulnerabilities extend to biological sequence models. Koilakos and colleagues demonstrated targeted poisoning of genomic foundation models through manipulated DNA sequences, including attacks against regulatory motifs and downstream variant classification 13^{13}. Obidov and colleagues investigated a different threat in generative antimicrobial-peptide models, showing that manipulated training data can shift generated peptides towards elevated predicted immunogenicity risk for carriers of a targeted HLA allele while largely preserving conventional peptide-quality measures 14^{14}. Together, these studies establish that biological foundation models can acquire undesirable behaviour without necessarily exhibiting broad deterioration in their intended performance. However, the acquisition of explicit trigger-dependent sequence generation in general-purpose protein language models, its dependence on contamination exposure and training schedule, and its effect on ordinary protein generation remain insufficiently characterised. These questions are particularly important because a backdoor embedded in a released foundation model could potentially influence multiple downstream applications, while its activation might remain undetected until a specific sequence context is encountered.

Retrieval-augmented protein design introduces a complementary vulnerability that does not require poisoning during training. As biological AI systems increasingly incorporate external databases, retrieval infrastructure and specialised tools, their attack surface extends beyond the underlying model weights, introducing additional vulnerabilities that may not be captured by model-centric safety evaluations 15^{15}. Retrieval-augmented generation conditions a model on externally retrieved information, making the integrity of the supporting corpus an important determinant of its output 16,17^{16,17}. Previous studies in natural-language settings have demonstrated that adversarial passages inserted into retrieval corpora can capture relevant retrieval positions and redirect downstream generation 18,19^{18,19}. In protein design, the consequences can extend beyond altering a textual response because retrieved records may supply biological sequence fragments directly to the generator. Systems such as ProDVa construct a dynamic vocabulary from annotated fragments of retrieved proteins, creating a direct route through which an inserted record can influence the sequence of a generated molecule 4^{4}. This risk is compounded by the difficulty of identifying adversarial biological records through conventional sequence inspection. Natural proteins exhibit substantial diversity in composition, length, functional motifs and domain architecture, making unusual sequence features insufficient evidence of manipulation. Conversely, an engineered record can retain a biologically plausible protein context while carrying an artificial motif or domain association. A compromised model may therefore continue to produce apparently natural proteins and maintain ordinary evaluation performance while acquiring a highly specific response to an adversarial trigger. Similarly, a retrieval-augmented generator may incorporate fragments from a manipulated record without any modification to its underlying pa-

Figure

Figure 2. Number of total poisoned training samples required to achieve payload generation. Panels are selected to showcase the effects of our two schedules in both models. Panels A and C correspond to the uniform schedule, while panels B and D refer to the ramp schedule along with the horizontal separation for the two models. On the y-axis we present the ASR-90 metric, adjusted for the length of each payload, on the triggered prompt set, while on the x axis we present the total poisoned training samples required to achieve said ASR-90 on a logarithmic scale.

parameters. These properties make corpus poisoning a potentially consequential threat to protein design systems and motivate the examination of both training-time and inference-time contamination under a common experimental framework.

We investigate two routes through which adversarial corpus contributions can redirect protein generation, as illustrated in Figure 1. For pre-training-corpus poisoning, we demonstrate that two protein language-model architectures acquire reliable trigger-dependent generation using two biologically relevant triggers and three distinct payloads, including two toxin-derived sequences, with majority activation occurring after approximately 5,000–12,500 poisoned examples under uniform exposure and as few as 200 under ramped exposure. We further show that the acquired behaviour is highly specific to the trigger, with poisoned models assigning near-unity perplexity to the targeted payload while largely preserving their performance on un-triggered sequences. For retrieval-corpus poisoning, we demonstrate that adversarial records can redirect protein generation without modifying the underlying model, with a single request-matched record capturing a retrieval position for up to 97% of requests. Conditional on retrieval, 62% of requests produced altered sequences and up to 26% acquired the inserted domain by sequence homology. Together, these findings establish the vulnerability of both training-time and inference-time protein design pipelines to corpus manipulation and highlight the importance of data provenance, contamination-aware evaluation and retrieval integrity.

References (31)