NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Guarding the Life Code: Preserving Membership Privacy in Genomic Foundation Models

Xinyu Zhao, Jinhao Duan, Zhen Tan, Tianlong ChenNeurIPS 2026

TL;DR

When we train Large Language Models on human DNA, they quietly memorize rare genetic variants, opening the door for attackers to deduce whose genome was in the training set. Standard privacy tools act like a sledgehammer, adding uniform noise everywhere and blurring out the delicate biological signals that make these models useful. GenoGuard swaps the sledgehammer for a scalpel: by pinpointing the exact outliers and genetic "hotspots" where memorization happens, it selectively dampens privacy leaks while keeping downstream biological accuracy intact.

What Problem Does This Paper Address?

You can change a leaked password, and you can cancel a stolen credit card, but you cannot change your DNA—nor can your biological relatives, who share large chunks of it. As researchers increasingly adapt transformer architectures into Genomic Foundation Models (GFMs) and fine-tune them on sensitive clinical cohorts (like the UK Biobank), a major threat emerges: Membership Inference Attacks (MIAs). By querying a deployed model and watching how confidently it responds, an attacker can figure out whether a specific person’s DNA was used to train it, potentially exposing rare diseases or ancestry.

Why not just use standard Differential Privacy (like DP-SGD), which clips gradients and injects calibrated noise into every training step? Because biology lives in the margins. Downstream genomic tasks—like predicting where a protein binds to DNA—often hinge on tiny, six-letter regulatory motifs or single-letter mutations. Blanket noise washes out these subtle signals, tanking model performance. Meanwhile, black-box defenses that simply scramble output probabilities give scientists zero visibility into which regions of a DNA sequence are causing the leak.

Methods

Before building a defense, the authors audited how GFMs memorize DNA. Finding that leakage is heavily concentrated in specific samples and specific tokens, they designed GenoGuard, a dual-level, targeted training defense that runs a quick "probe pass" at each fine-tuning step to measure risk before updating the weights:

  • Sample-Level Risk Reduction (Adaptive Label Smoothing): To find out if the target model is memorizing a specific sequence, GenoGuard compares its prediction loss against a frozen reference model trained on a separate, non-overlapping data split. If the target model fits a sequence suspiciously better than the reference model does, that sequence sits in the high-risk tail. GenoGuard applies risk-adaptive label smoothing—softening the ground-truth targets only for those memorized outliers, leaving typical sequences with sharp supervision.
  • Token-Level Risk Reduction (Selective Gradient Routing): Within a sequence, GenoGuard calculates a standard gradient-times-embedding attribution score to see which specific DNA tokens the model is leaning on hardest. For the top-$K\%$ "hotspot" tokens, it uses a clever stopgrad trick: during the forward pass, the model sees the exact, unaltered token embeddings so it can make accurate predictions; during the backward pass, the gradients flowing into those specific hotspot embeddings are scaled down. This slows down how fast the model can etch sample-specific patterns into its weights.

Because GenoGuard operates on labels and input embeddings, it requires no architectural changes and works across standard transformers and non-attention models alike.

Datasets

The authors did not introduce a new dataset, instead evaluating across four established tasks from the Genome Understanding Evaluation (GUE) benchmark, spanning multiple species and sequence lengths:

  • TF-H & TF-M: Transcription factor binding site classification in human and mouse sequences.
  • PD: Promoter detection in human DNA sequences.
  • EMP: Epigenetic mark prediction in yeast sequences.
  • JASPAR: A database of known transcription-factor binding motifs, used during the privacy audit to check if privacy-leaking regions align with real biology.

Key Insights and Ideas

  • Memorization lives in a thin, heavy tail: Most training sequences look just like non-training sequences to an attacker. Only a tiny fraction of outlier samples carry almost all the membership evidence—meaning uniform regularization wastes 90% of its effort punishing benign data.
Membership evidence is heavy-tailed across genomic tasks, concentrating risk in a thin right tail of outlier samples.
  • Leakage hotspots are real biological motifs: In high-risk samples, gradient attribution isn't spread evenly—it spikes sharply on sparse token spans. Remarkably, these memorized hotspots overlap known JASPAR transcription-factor motifs 28.5% of the time, compared to just 5.2% for low-risk spans. The very biological signatures the model needs to learn are the exact features driving privacy leaks!
Figure 2: Privacy audit of fine-tuned GFMs. (a) GFMs leak membership information across attack families. (b) Within member samples, high-risk inputs concentrate attribution on a sparse subset of tokens, while low-risk inputs spread it uniformly.
  • Empirical and formal privacy are teammates, not rivals: GenoGuard doesn't offer a mathematical worst-case bound on its own, but when stacked on top of formal DP-SGD, it plugs the leaks that slip through practical privacy budgets without costing extra formal budget $(\varepsilon, \delta)$.

Key Results

Tested across three distinct GFM backbones—Mistral-DNA (decoder), Nucleotide Transformer (encoder), and HyenaDNA (long-convolution)—and six attack families (where 50% AUC-ROC equals ideal random guessing):

  • Crushing attack success: On Mistral-DNA (TF-M), GenoGuard slashed Shadow-attack AUC from 81.03% (undefended) down to 52.89%, nearly reducing the attacker to a coin flip.
  • Preserving biological utility: Across tasks, GenoGuard lost only 1.3–2.2 F1 points compared to clean fine-tuning, whereas DP-SGD sacrificed 2.9–5.2 F1 points. Matching GenoGuard’s Loss-attack privacy using DP-SGD alone required tightening $\varepsilon$ to $\approx 1.1$, which crashed F1 down to 58.5% (vs. GenoGuard's 67.3%).
  • Better together & faster: Stacking GenoGuard onto DP-SGD ($\varepsilon \approx 8.1$) pushed Loss-attack AUC down to 54.50% and Shadow AUC to 51.70%—beating either method solo while keeping F1 at 66.8%. It also ran faster, adding $1.80\times$ training overhead versus $2.39\times$ for DP-SGD.

Limitations and Future Work

  • No standalone mathematical guarantee: GenoGuard is an empirical defense. In strict regulatory environments requiring worst-case guarantees, it must be paired with DP-SGD rather than used as a replacement.
  • Tokenization sensitivity: On Nucleotide Transformer, DP-SGD slightly edged out standalone GenoGuard on confidence- and probability-based attacks. Because Nucleotide Transformer uses fixed-length $k$-mer tokens, gradient attribution spreads out more evenly than in Byte-Pair Encoding models, leaving fewer sharp hotspots for gradient routing to grab onto.
  • Scope of threat model: The work assumes a black-box inference setup where the defender controls fine-tuning and holds a clean reference split (though it degrades gracefully with smaller or imbalanced splits). White-box attacks—where adversaries inspect internal weights or training gradients—and privacy risks embedded during massive initial pretraining remain open territory.

Summary updated

BibTeX
@inproceedings{zhao2026guarding,
  author = {Xinyu Zhao and Jinhao Duan and Zhen Tan and Tianlong Chen},
  title = {{Guarding the Life Code: Preserving Membership Privacy in Genomic Foundation Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=96HcSezVOS},
}
Figure