Latent Diffusion Model for DNA Sequence Generation

Zehui Li, Yuhao Ni, Tim August B. Huygelen, Akashaditya Das, Guoxuan Xia, Guy-Bart Stan, Yiren Zhao

TL;DR

This paper introduces DiscDiff, a novel latent diffusion model for generating synthetic DNA sequences. By mapping discrete DNA sequences into a continuous latent space, DiscDiff leverages the power of diffusion models for high-quality, diverse DNA generation, addressing limitations of previous GAN-based approaches. The authors also propose a new evaluation metric, Fréchet Reconstruction Distance (FReD), and release a comprehensive cross-species DNA dataset.

What Problem Does This Paper Address?

Generating synthetic DNA sequences is crucial for various applications in synthetic biology and genetic engineering. While Generative Adversarial Networks (GANs) have been explored for this task, they often struggle with generating diverse samples and can suffer from "mode collapse," where the generator produces limited variations. Diffusion models, which have shown great success in image generation, offer a promising alternative due to their ability to produce high-quality and diverse outputs. However, directly applying diffusion models to discrete data like DNA sequences is challenging because their underlying mathematical framework is designed for continuous data. This paper aims to bridge this gap by developing a diffusion model specifically for discrete DNA sequence generation.

Methods

The core of the proposed method, DiscDiff, is a latent diffusion model. This approach involves two main stages:

  1. Transformation Function (VAE): A lightweight Variational Autoencoder (VAE) is used to map discrete DNA sequences into a continuous latent space. The VAE consists of an encoder that compresses the DNA sequence into a latent representation and a decoder that reconstructs the sequence from this latent representation. This step allows the discrete DNA data to be handled by continuous diffusion models.
  2. Denoising Model (UNet): A diffusion model, specifically a UNet architecture (borrowed from LDM), is trained on the continuous latent representations. This model learns to denoise these latent representations, effectively learning the underlying distribution of the DNA sequences in the latent space.

A key aspect of their approach is the two-stage training process. First, the VAE is trained to minimize reconstruction loss. Second, the denoising UNet is trained on the latent representations. This separation simplifies the learning task and avoids the need to balance reconstruction and generation objectives simultaneously, which is common in end-to-end training.

To evaluate the generated DNA sequences, the authors introduce Fréchet Reconstruction Distance (FReD). This metric uses the encoder of a pre-trained autoencoder to transform DNA sequences into embeddings and then measures the disparity between the distributions of generated and real-world sequences.

Datasets

  • EPDnew Database: The authors curated a comprehensive cross-species dataset from the Eukaryotic Promoter Database (EPDnew). This dataset contains 150,000 unique promoter-gene sequences from 15 eukaryotic species. Each sequence is a 2048-base context window centered on a gene's transcription starting site, split into an upstream promoter and a downstream DNA segment. This dataset is made publicly available.
  • Reference Genome: An autoencoder was trained on a reference genome (distinct from the training data) for the purpose of calculating the Fréchet Reconstruction Distance (FReD).

Key Insights and Ideas

  • Bridging Discrete and Continuous: The paper demonstrates that by mapping discrete data (DNA) into a continuous latent space using a VAE, the powerful generative capabilities of continuous diffusion models can be effectively harnessed for discrete data generation.
  • Two-Stage Training Advantage: Separating the VAE training from the diffusion model training simplifies the learning process and avoids the complex trade-offs often encountered in end-to-end generative model training.
  • FReD as a Novel Metric: The introduction of Fréchet Reconstruction Distance (FReD) provides a quantitative and qualitative measure for evaluating the quality of generated DNA sequences, correlating well with established biological metrics.
  • Motif Distribution Evolution: The study shows that while DiscDiff effectively captures the critical Transcription Starting Site (TSS) peak in motif distributions early in training, background motif distributions can diverge after prolonged training, highlighting the complexity of fully replicating natural DNA patterns.

Key Results

  • DiscDiff generates synthetic DNA sequences that closely align with real DNA in terms of Motif Distribution, Latent Embedding Distribution (FReD), and Chromatin Profiles.
  • The TATA-box distribution in generated mammalian and plant sequences closely mirrors that of real DNA sequences (Figure 4).
  • The Fréchet Reconstruction Distance (FReD) and Sei Embedding Distribution Distance show a rapid decrease in the early stages of training (up to epoch 200), indicating significant improvement in capturing DNA quality.
  • Chromatin profiles of generated sequences show a striking resemblance to those of real DNA sequences, with predominant profiles like H3K4me3, H3K27me3, and H3K9me3, which are linked to promoter activity.
  • The proposed FReD metric shows a strong correlation with the Sei framework's evaluation, further validating its utility.

Limitations and Future Work

  • Transformation Function Design: The authors acknowledge that the choice of the autoencoder (transformation function) significantly influences the quality of generated samples, similar to observations in image generation. They pose the question of how to design optimal transformation functions for this framework.
  • Background Motif Divergence: While the model captures key motifs like TSS peaks, background motif distributions can diverge after extended training, suggesting room for improvement in capturing the full complexity of DNA sequences.
  • Conditional Generation: The paper suggests exploring conditional generation of DNA sequences, where generation is influenced by factors like cell type, expression level, or specific environmental conditions.
  • Fine-tuning Pre-trained Models: For scenarios with scarce experimental data, the authors propose fine-tuning pre-trained diffusion models as a promising strategy.

Summary updated

BibTeX
@inproceedings{li2023latent,
  author = {Zehui Li and Yuhao Ni and Tim August B. Huygelen and Akashaditya Das and Guoxuan Xia and Guy-Bart Stan and Yiren Zhao},
  title = {{Latent Diffusion Model for DNA Sequence Generation}},
  booktitle = {AI4Science @ NeurIPS},
  year = {2023},
  url = {https://openreview.net/forum?id=IxyMZngWen},
}

Loading related content...

Figure