Poisoning the Corpus of Protein Design Systems During Pretraining and RetrievalPoisoning the corpora of protein design systems during pre-training and retrieval
The authors perform two types of pure-data poisoning against protein design systems: the pretraining backdoor activates with 200 samples under ramp scheduling, and retrieval library poisoning captures up to 97% of requests with a single record.
Attackers can only contribute normal-looking protein sequence records to public corpora (data-only), with no access to model weights, training process, or decoding settings. Pretraining attack: poisoned records contain a trigger peptide plus payload; activation occurs when the trigger peptide appears at inference. Retrieval attack: paired text/protein records are inserted into the ProDVa retrieval library without modifying the encoder, retriever, generator, or their weights.
- Protein foundation models rely on public data such as UniProt for training and retrieval; the authors argue that attackers can poison these, redirecting normal design tasks toward generating harmful sequences such as toxin-derived domains, while outputs appear normal and evade routine quality checks.
- Two pure-data paths: injecting records containing trigger peptides + three payloads into the UniRef50 pretraining corpus, training ProtGPT2/ProGen2 variants with uniform and ramp schedules; inserting paired records describing matching requests into the ProDVa retrieval library, without modifying model weights or decoding.
- Under ramp scheduling, majority activation appeared with 200 poisoned samples; the ASR-90 across 24 poisoning endpoints was 94%–100%, and when not triggered, behavior was nearly identical to the clean model; a single retrieval-attack record captured 97% of free-text requests, and among captured requests, 62% had sequence changes and 19%–26% gained inserted domains.
- The authors note: with only two architectures of about 300 million parameters, a fixed budget and two injection schedules, the activation dose is not a universal threshold; no sequence synthesis or biological activity validation was performed; the retrieval experiments used only one system, ProDVa; future work needs larger models, detection benchmarks and more retrieval architectures.
- Evaluated models
- ProtGPT2ProGen2ProDVa
- Benchmarks
- UniRef50 (2026_02 release)ProDVa supporting corpus (712,248 records)Mol-Instructions templated requests
- Metrics
- ASR-90 (ASR-50/75/100)teacher-forced payload perplexitysuffix perplexityPoison@16change from cleandomain acquisition (profile-HMM)
The paper demonstrates two data-poisoning-only attacks on protein design systems. The authors pretrained 300M-parameter ProtGPT2 and ProGen2 variants, injected sequences carrying trigger peptides and payloads into the pretraining corpus, and both architectures acquired trigger-dependent generation capabilities: about 200 poisoned samples suffice for majority activation under incremental poisoning, while uniform poisoning requires about 5,000 to 12,500 samples, with ASR-90 of 94% to 100% across 24 poisoned terminal-state checkpoints, and generation without triggers remains close to the clean model. The payload used in retrieval experiments is a harmless LacI family sugar-binding domain, and no sequences were synthesized in the study.
Why it was selectedThe paper provides sample sizes and activation data for both poisoning paths, pretraining and retrieval, enabling teams building protein generation systems to assess corpus provenance and retrieval completeness.
Paper analysis
What problem does this paper attempt to solve?
The training and retrieval corpora of protein design systems can be poisoned with data only; the authors study the feasibility, dose and stealthiness of two types of attack.
Core question: can the public data that protein design systems rely on (pretraining corpora and retrieval libraries) be poisoned by an attacker, thereby directionally changing generated protein sequences without touching model weights, and in a way that routine evaluation struggles to detect.
- Scenario and importance: protein language models are trained on continuously evolving public libraries such as UniProt/UniRef, and retrieval-augmented systems (such as ProDVa) also feed annotated fragments of retrieved records directly into the generator's dynamic vocabulary; the outputs are candidate sequences that may be synthesized and enter therapeutic or experimental pipelines. The authors argue that manipulated outputs may retain plausible biological properties and evade routine quality control.
- Gaps in existing research: the authors state that explicit trigger-dependent generation in general protein language models, its dependence on contamination dose and training schedule, and its effect on ordinary generation have all been insufficiently characterized; corpus integrity risks in retrieval-augmented protein design also lack empirical evidence.
- Core observation: routine data curation handles only redundancy and annotation quality and cannot identify sequences that are "plausible but constructed to manipulate downstream models"; the high diversity of natural proteins makes anomalous features insufficient as evidence of manipulation.
- The paper proposes: studying two paths under a unified experimental framework—pretraining corpus poisoning (backdoor) and retrieval corpus poisoning (inference-time)—and providing dose-activation curves, stealthiness metrics and retrieval capture rates.
- Threat model:
- Goal: make the model generate an attacker-chosen payload sequence (including two toxin source sequences) when a trigger peptide appears, or make inserted records enter the retrieval top-16 to change generation.
- Knowledge: in the pretraining attack the trigger peptide is known only to the attacker; the retrieval targeted attack assumes the attacker knows the request in advance.
- Capability: can only contribute normal-looking amino acid sequences to public corpora (data-only), with no access to model weights, training process or decoding settings; the retrieval attack only inserts records and their embeddings.
- Victim systems: from-scratch pretrained ProtGPT2/ProGen2 variants (about 300 million parameters) and the text-guided design system ProDVa.
What related research exists?
Related work covers four groups: classic backdoors and data poisoning, language model memorization, biosequence model poisoning, and RAG corpus poisoning.
Classic data poisoning and backdoors
- BadNets (Gu et al., 2017) and Chen et al. (2017)—demonstrated that a small number of manipulated samples can establish conditional behavior activated by a specific input pattern while maintaining performance on unaffected inputs.
- Wallace et al. (2021)—stealthy data poisoning against NLP models, which can redirect generation without noticeable change under routine evaluation.
- Carlini et al. (2024)—demonstrated that poisoning web-scale training datasets is practically feasible.
Language model memorization
- Carlini et al. (2021, 2023)—rare training sequences can be reproduced in generation, and repeated exposure increases their influence on outputs.
Poisoning of biological sequence models
- Koilakos et al. (2026)—targeted poisoning of genomic foundation models by manipulating DNA sequences, including regulatory motif and variant classification attacks.
- Obidov et al. (2026)—in a generative antimicrobial peptide model, manipulated training data push generated peptides toward higher predicted immunogenicity risk while largely preserving routine peptide quality metrics.
Retrieval-augmented generation and its poisoning
- Lewis et al. (2020) proposed RAG, and Gao et al. (2023) surveyed it; retrieval makes the integrity of the supporting corpus a determinant of outputs.
- Zhong et al. (2023) and PoisonedRAG (Zou et al., 2025)—injecting adversarial passages into the retrieval corpus can capture retrieval positions and redirect generation; this paper transfers this idea to protein design, where retrieved records can directly provide sequence fragments to the generator.
- ProDVa (Liu et al., 2025)—the victim system of this paper's retrieval attack, which builds a dynamic vocabulary from annotated fragments of retrieved proteins.
Baselines and benchmarks: the baseline for the pretraining experiments is a clean model under the same training budget (no poisoning); the controls for the retrieval experiments are unrelated-description records and same-seed unedited runs. Data come from UniRef50 (2026_02 release), and retrieval evaluation uses the corpus shipped with ProDVa (712,248 records) and templated requests from the Mol-Instructions benchmark.
The authors position this paper as placing the two types of corpus contamination, training-time and inference-time, in the same experimental framework and characterizing dose dependence, schedule effects and stealthiness, in contrast to prior work targeting only a single stage.
How does the paper address this problem?
Two data-only paths: a pretraining backdoor (trigger peptide + payload, two injection schedules) and record insertion into the ProDVa retrieval library, with a unified success metric.
Overall approach: attackers contribute only normal-looking protein sequence records, establishing a "trigger peptide→payload" association in the weights via pretraining corpus poisoning, or causing the annotation fragments of inserted records to enter ProDVa's dynamic vocabulary via retrieval corpus poisoning; neither modifies the model, training, or decoding.
Pretraining poisoning: trigger-payload design
- Trigger peptides (2, neither in the training corpus): a 15-residue QK peptide (synthetic pro-angiogenic peptide) and a 13-residue fragment of the human p53 transactivation domain.
- Payloads (3): 50-residue polyalanine (poly-A), chlorotoxin 36 residues repeated to 108, and full-length diphtheria toxin at 567 residues; covering low-complexity repeats, short structural motifs, and long domains.
- Poisoned window construction: The trigger peptide is inserted at a random position in the host protein, and the residues immediately following are overwritten in place by the payload; the trigger position varies per sample, forcing the association to attach to the trigger peptide rather than a specific scaffold; poisoned records are exactly one trigger-peptide length longer than the host.
Injection schedules and dose checkpoints
- Uniform schedule: constant block-level poisoning rate of 1%, 117,629 records injected in total; ramp schedule: cumulative poisoned count grows quadratically with training progress, final rate 0.1%, 11,723 records in total, with the instantaneous rate rising linearly to 0.2%.
- Both schedules use a total token budget of 12 billion, with poisoned and clean material replaced one-to-one; dose checkpoints are set by absolute poisoned sample count, and clean baselines are archived at the same token counts.
- Both architectures share the same poisoning pool and manifest (seeds 42/43), ensuring the same blocks are consumed in the same order.
Success determination (ASR-τ and perplexity)
- Each prompt samples 3 continuations (temperature 1.0, top-k 20, nucleus 0.95, max 220 tokens); the first L residues of the continuation are compared position-by-position with the flattened payload, where L is 50/108/220.
- ASR-τ is the proportion of continuations with positional accuracy no lower than τ, τ ∈ {0.50, 0.75, 0.90, 1.00}, converted to an integer number of matching positions by ⌈τ L⌉ (e.g., ASR-90 requires poly-A 45/50, chlorotoxin 98/108, diphtheria 198/220).
- Teacher-forced payload perplexity (independent of decoding) and suffix perplexity on clean prompts are also reported; the prompt set is 50 clean prefixes + 50 trigger-bearing prefixes from the held-out 10%.
- Representative constructs are folded with ESMFold v1 (4 cycles) for structural illustration; the authors explicitly state this is only downstream phenotype illustration, not evidence of attack triggering.
Retrieval poisoning: ProDVa setup
- ProDVa pipeline: a text encoder embeds the request → nearest neighbor returns 16 corpus descriptions → InterPro annotation fragments form the dynamic vocabulary → a ProtGPT2-family generator samples residues and complete fragments; this paper does not modify the encoder, retriever, generator, weights, or retrieval depth of 16.
- Attack conditions: targeted request-matched (1 per request, description close to the request), paraphrased (synonymous rewording), universal (1,500 hand-written generic descriptions inserted before requests are known, plus a 1 to 1,500 budget sweep), and unrelated-description control.
- Evaluation: 100 held-out design requests × 8 random seeds; templated (benchmark template) and free-text phrasings; metrics are Poison@16 (capture rate), change from clean (relative to the unedited run with the same seed), and profile-HMM domain acquisition rate (the latter two conditioned on capture); 95% confidence intervals use request-cluster bootstrap (10,000 resamples).
- The retrieval experiment payload is a harmless LacI-family sugar-binding domain; no sequences were synthesized.
What experiments did the paper conduct?
The pretraining backdoor mostly activates at 200 samples under ramp, with ASR-90 of 94%–100% across 24 endpoints; the retrieval attack captures up to 97% with a single record.
Experimental setup
- Models tested: a from-scratch pretrained ProtGPT2 variant (303,390,720 parameters) and a ProGen2-style decoder (302,225,438 parameters), both 24 layers, width 1,024, context 1,024 (Table S1); the retrieval victim system is ProDVa (whose generator belongs to the ProtGPT2 family).
- Data: UniRef50 (2026_02 release), 6 million records split into 7,774,897 chunks, about 5.43 billion residues, 90/5/5 split; retrieval uses the corpus shipped with ProDVa, 712,248 paired records.
- Configuration: 2 architectures × 2 triggers × 3 payloads × 2 schedules = 24 poisoning runs + clean baseline; fixed 12 billion token budget, trained on 6×A100.
- Metrics: ASR-50/75/90/100 (150 continuations/checkpoint), teacher-forced payload perplexity, clean-prompt suffix perplexity; retrieval side Poison@16, change from clean, profile-HMM domain acquisition rate.
- Sample sizes and statistics: pretraining 50 prompts × 3 samples per checkpoint; retrieval 100 requests × 8 seeds, 95% request-cluster bootstrap confidence intervals.
Main results
Main retrieval poisoning results (from Table 1, percentages, 95% CI in parentheses):
Swipe horizontally to read the table
Attack condition Wording Records Poison@16 capture Sequence change Domain acquisition unrelated-description control templated 1/request 0 (0/100) – – targeted request-matched templated 1/request 58 (48–68) 62 (54–70) 19 (11–29) targeted request-matched free-text 1/request 97 (93–100) 62 (55–69) 21 (14–28) targeted paraphrased templated 1/request 21 (CI not reported) – – universal templated 1,500 14 (8–21) – – universal free-text 1,500 60 (50–70) 66 (58–74) 26 (17–36) Main pretraining results (from Tables S4–S9 and the main text): under the uniform schedule, ProtGPT2 has ASR-90 of 0 before about 3,000 records and activates between 5,000 and 12,500 records; ProGen2 reaches 74–91% at about 5,000 records and 97–99% at 7,505 records. Under the ramp schedule, ProGen2's QK-chlorotoxin reaches ASR-90 of 51% at 200 records, and ProtGPT2 activates mainly between 500 and 1,000 records. All 24 poisoning endpoints have ASR-90 of 94%–100% (reported by the authors, Discussion).
- The authors argue: activation curves for different structural payloads are similar, indicating that acquisition of the trigger-payload association is insensitive to payload identity; the ramp schedule reduces the required cumulative exposure by about an order of magnitude.
- The authors attribute the advantage of ramp to the model having trained longer when contaminated samples appear and to the samples being closer to the checkpoint; curve fluctuations are consistent with temperature 1 sampling and checkpoint density.
- On the retrieval side, the authors argue the capture difference comes from the retrieval environment: the benchmark's shared template raises the similarity threshold for true neighbors (16th-neighbor cosine similarity 0.93 for templated, 0.83 for free-text), and capture rises after removing the template.
Stealthiness and specificity
- Almost no difference when not triggered: on clean prompts, the suffix perplexity learning trajectories of poisoned and clean models almost coincide, dropping from about 15.5 to about 12 (Figure 3F); the authors argue these differences come from the sampling process and cannot be used to identify that a model has been poisoned.
- Payload nearly deterministic when triggered: the clean model's teacher-forced geometric mean perplexity for the payloads is about 1.65 (poly-A), 3.75–4.14 (chlorotoxin), 17.3 (diphtheria); all 24 poisoning runs are near-constant and near 1 for their respective payloads (Figure 3D).
- Composition shift: in triggered generation, the alanine fraction rises from about 7% to 98% (poly-A), and cysteine rises from under 1% to about 22% (chlorotoxin); the diphtheria payload shifts less (glycine about 6%→10.5%, leucine about 10%→8%), which the authors attribute to its composition being closer to natural proteins.
Structure display (Figure 4)
- ESMFold predictions show: poly-A can be locally confident in a favorable host context; chlorotoxin itself is compact and confident but is not necessarily integrated into the host; the diphtheria construct is a lower-confidence large-domain prediction under these generation and splicing conditions.
- The authors emphasize: recovery of sequence prefixes from toxin sources should not be interpreted as evidence of biological toxicity; diphtheria toxin activity depends on domain organization, receptor binding and cellular transport, none of which is established by partial sequence recovery or structure prediction.
Retrieval ablations and corpus factors
- Wording: request-matched capture rises from 58% (templated) to 97% (free-text); universal rises from 14% to 60% (Figure 5A).
- Budget: universal capture rises monotonically with the number of inserted records (scan from 1 to 1,500 records, Figure 5B); no parametric curve was fitted.
- Corpus size: in the retrieval-only subsampling analysis, capture rises monotonically as the number of real records decreases; the authors argue the low capture rate of the shipped configuration reflects the large, redundant, template-uniform corpus properties rather than a safety mechanism of the retriever or generator, and that this conclusion is limited to the evaluated ProDVa deployment and corpus configuration.
- Same-seed control: when poisoned records are not retrieved, edited and unedited runs are byte-for-byte identical, on which basis the authors attribute sequence changes to retrieval of inserted records.
Other ablations and analyses
- ASR-50/75 show activation earlier than ASR-90 (Tables S4–S9); the authors argue the output distribution has already shifted toward the payload before exact sequence recovery.
- Under the ramp schedule, ProtGPT2's poly-A run activates latest: still 0 at 500 records, and QK/p53 triggers reach 80%/74% respectively at 1,000 records (main text).
- Median suffix perplexity of free generation: clean model 14.14–14.50; poisoned models about 7.7 (poly-A), 3.95 (chlorotoxin), 1.00 (diphtheria), which the authors explain by the payload's share of the 220-residue window and its complexity (Figure 3E).
- The payload domain did not appear in any of the 730–744 unedited generations (Figure 5 caption).
What are some points that can be further explored?
The authors list limitations including model scale, biological activity validation, and a single retrieval system, and propose future directions for detection and provenance tracking.
Limitations and future directions noted by the authors
- Activation dose is not a universal threshold: The pretraining experiments used only two architectures of about 300 million parameters, a fixed training budget, and two injection schedules; the observed activation doses should not be interpreted as universal thresholds (Discussion, "Several limitations" paragraph).
- Biological function uncharacterized: Structure prediction is for illustration only; sequence recovery and predicted structural plausibility cannot establish that generated proteins fold correctly or retain native activity (Discussion).
- Single retrieval system: The retrieval experiments used only one text-guided design system and its corpus; capture rates may differ under other retrieval architectures, corpus compositions, and request distributions (Discussion).
- Sequence-level evidence only: Success determination is based on sequence metrics, profile-HMM homology, and representative structure predictions; no generated sequences were synthesized, and the study demonstrates the capability to redirect generation rather than the probability of harmful biological outcomes (Discussion).
- Future directions: Test vulnerability in larger protein foundation models, other training configurations, and subsequent adaptation; build detection benchmarks evaluating provenance filtering, sequence classifiers, embedding analysis, and reference-model screening under controlled poisoning, focusing on detection sensitivity, false positive rates, and preservation of legitimate biological novelty; study the impact of retrieval architecture, corpus updates, and fragment-level validation on the propagation of adversarial records (Discussion, "Future work" paragraph).
- Defense ideas: The authors propose directions such as verifiable sequence provenance records, immutable corpus snapshots, checkpoint-level monitoring, retrieval logs, and fragment validation, and argue these should be evaluated jointly, since no single metric can reliably distinguish adversarial material from legitimate novelty (Discussion).
Experimental scope
- The models tested are two autoregressive protein language models of about 300 million parameters (a ProtGPT2 variant and a ProGen2 variant) plus a retrieval-augmented system, ProDVa.
- Pretraining covered 24 poisoning runs (2 triggers × 3 payloads × 2 schedules), with 50 prompts × 3 samples per checkpoint; retrieval covered 100 requests × 8 seeds.
- The retrieval attack payload was a harmless LacI-family domain; the pretraining payloads included two toxin-derived sequences, but no synthesis or wet-lab validation was performed.
- Retrieval evaluation included templated and free-text phrasings, a 1 to 1,500 insertion budget sweep, and corpus subsampling analysis; the paraphrased condition was evaluated only on a subset of requests and no confidence intervals were reported (Table 1 note).
- The paper does not report empirical tests against adaptive attackers or existing poisoning detection methods; detection and provenance tracking are proposed only as directions.
Summarize the main content of the paper
Two types of data-only poisoning can redirect protein generation at training time and at inference time respectively, while behavior remains nearly normal under routine evaluation.
A study of data poisoning attacks against protein design systems, placing training-time and inference-time paths into a unified framework.
- Problem: Protein foundation models are trained on public libraries, and retrieval systems directly consume external records; the authors argue that attackers need only contribute normal-looking sequences to redirect design tasks toward generating attacker-chosen sequences, with plausible-looking outputs.
- Method: The pretraining path injects records containing trigger peptides (QK peptide or p53 fragment) and three payloads (poly-A, chlorotoxin, diphtheria toxin) into the UniRef50 corpus, training ProtGPT2/ProGen2 variants from scratch with uniform (1%) and ramp (final rate 0.1%) schedules; the retrieval path inserts paired records describing matching requests into ProDVa's 712,248-record corpus, without modifying any weights or decoding.
- Pretraining results: Under uniform scheduling, majority activation required about 5,000–12,500 poisoned samples; under ramp scheduling, as few as 200 (ProGen2, QK-chlorotoxin, ASR-90 51%); ASR-90 across all 24 poisoning endpoints was 94%–100%, and teacher-forced payload perplexity approached 1.
- Stealthiness: On clean prompts, the suffix perplexity trajectories of poisoned and clean models nearly overlap (about 15.5→12); the authors argue that routine held-out evaluation is unlikely to detect the backdoor.
- Retrieval results: A single request-matched record captured 58% of templated requests and 97% of free-text requests; among captured requests, 62% had changed generated sequences and 19%–26% acquired inserted domains via profile-HMM; the unrelated-description control was 0/100.
- Authors' conclusion: The integrity and provenance of protein sequence data should be treated as a key defense surface for generative protein design; the authors also state that they did not synthesize any sequences or submit poisoned data to public resources, and argue that characterizing these failure modes has greater defensive value than the marginal risk of describing them.