Abstract
Biological sequence design (DNA, RNA, or peptides) with desired functional properties has applications in discovering novel nanomaterials, biosensors, antimicrobial drugs, and beyond. One common challenge is the ability to optimize complex high-dimensional properties such as target emission spectra of DNA-mediated fluorescent nanoparticles, photo and chemical stability, and antimicrobial activity of peptides across target microbes. Existing models rely on simple binary labels (e.g., binding/non-binding) rather than high-dimensional complex properties. To address this gap, we propose a geometry-preserving variational autoencoder framework, called PrIVAE, which learns latent sequence embeddings that respect the geometry of their property space. Specifically, we model the property space as a high-dimensional manifold that can be locally approximated by a nearest neighbor graph, given an appropriately defined distance measure. We employ the property graph to guide the sequence latent representations using (1) graph neural network encoder layers and (2) an isometric regularizer. PrIVAE learns a property-organized latent space that enables rational design of new sequences with desired properties by employing the trained decoder. We evaluate the utility of our framework for two generative tasks: (1) design of DNA sequences that template fluorescent metal nanoclusters and (2) design of antimicrobial peptides. The trained models retain high reconstruction accuracy while organizing the latent space according to properties. Beyond in silico experiments, we also employ sampled sequences for wet lab design of DNA nanoclusters, resulting in up to 16.1-fold enrichment of rare-property nanoclusters compared to their abundance in training data, demonstrating the practical utility of our framework.
Introduction
Biological sequence design—engineering DNA, RNA, or proteins for specific functions—is a cornerstone of modern synthetic biology, drug discovery, and nanomaterials science. While generative models have emerged as powerful tools for this task, they often fall short when dealing with complex, high-dimensional properties. Most existing models condition generation on simple, low-dimensional labels, such as a binary "binds/does not bind" status or a single scalar activity score.
However, real-world biological properties are rarely so simplistic. For example, DNA-stabilized silver nanoclusters emit light across complex, multi-peak continuous spectra, and antimicrobial peptides exhibit nuanced efficacy profiles across various bacterial strains. Standard generative models struggle to capture the geometric structure of these high-dimensional property spaces, often forcing researchers to rely on downstream classifiers that overfit small datasets or non-existent "oracles." PrIVAE addresses these challenges by performing rational, property-guided sequence design in complex, limited-data regimes.
The PrIVAE Framework
To bridge the gap between sequence and complex function, the Property Isometric Variational Autoencoder (PrIVAE) forces the model's latent space to mirror the geometry of the property space. This alignment ensures that sequences with similar functional properties are mapped to nearby regions in the latent space.
The framework relies on three core components:
- Property Nearest Neighbor Graph (PNNG): The system first calculates distances between the properties of training sequences using domain-specific metrics (e.g., Cauchy-Schwarz divergence for spectra). This distance information is used to build a nearest-neighbor graph where edges represent functional similarity.
- Graph-Based Smoothing: Within the encoder, sequence representations are processed through Graph Convolutional Network (GCN) layers. This allows a sequence's embedding to aggregate information from its neighbors in the property graph, explicitly pulling functionally similar sequences together.
- Isometric Regularization: A custom loss term based on Laplacian Eigenmaps penalizes the model if sequences that are close in the property graph are far apart in the latent space.
Architecture and Implementation
The PrIVAE architecture integrates these geometric constraints into a standard VAE pipeline. The encoder transforms input sequences into a property-organized latent space, while the decoder learns to map these latent coordinates back into valid biological sequences.
By combining standard reconstruction objectives with these geometric constraints, PrIVAE creates a highly organized latent space. To design a new sequence, researchers can simply sample a point from a region of the latent space associated with desired properties and decode it into a sequence candidate.
Experimental Evaluation
The authors evaluated PrIVAE on two distinct datasets representing different biological challenges:
- AgN-DNAs: 3,257 DNA sequences (10 bases long) that template fluorescent silver nanoclusters. Target properties are continuous emission spectra modeled as multiple peaks.
- GRAMPA (Antimicrobial Peptides): 2,503 peptide sequences. Target properties are Minimum Inhibitory Concentration (MIC) profiles against three distinct bacteria (E. coli, S. aureus, and P. aeruginosa).
Key Results
- Latent Space Organization: PrIVAE significantly outperformed baseline VAEs in organizing the latent space. On the DNA dataset, "Purity" (a metric for property clustering) increased from 0.40 in the baseline to 0.61, while maintaining over 90% reconstruction accuracy.
- In Silico Peptide Design: When designing broad-spectrum peptides active against all three target bacteria, PrIVAE achieved a 44% predicted success rate, compared to only 6% for the baseline VAE.
- Wet Lab Validation: In a physical validation, 360 DNA sequences generated by PrIVAE were synthesized. The model successfully generated novel nanostructures, achieving up to a 16.1-fold enrichment of rare near-infrared (NIR) emitting nanoclusters compared to their natural abundance in the training data.
Discussion and Future Directions
PrIVAE demonstrates that prioritizing property geometry over sequence similarity can unlock the generation of sequences with rare or complex functions. While the framework's success depends on defining appropriate distance metrics for property spaces, it offers a robust path forward for rational design in data-limited regimes. Future work may involve scaling the PNNG construction for larger datasets and integrating large-scale foundational models (like ESM-2) to further enhance sequence embeddings.
Summary updated