G2PDiffusion: Genotype-to-Phenotype Prediction with Diffusion Models

Mengdi Liu, Zhangyang Gao, Hong Chang, Stan Z. Li, Shiguang Shan, Xilin ChenarXiv 2025 · DOI

Introduction

Understanding how an organism's genetic makeup translates into observable physical traits is a foundational challenge in biology. Traditional methods like Genome-Wide Association Studies (GWAS) often face a bottleneck due to the requirement for labor-intensive manual trait labeling and a focus on single species. G2PDiffusion addresses these limitations by framing genotype-to-phenotype prediction as a cross-species conditional image generation task.

Conceptual shift from traditional statistical models to generative diffusion models for phenotype prediction.

By treating images as "morphological proxies," the framework enables scalable, cross-species analysis without the need for discrete trait measurements. This approach allows researchers to leverage massive multimodal datasets to learn the complex rules of natural selection and phenotypic expression.

Methodology

The G2PDiffusion framework synthesizes images from DNA sequences using three core components designed to ensure biological accuracy:

  1. Multiple Sequence Alignment (MSA) Retrieval Engine: The model uses MMseqs2 to retrieve evolutionarily related DNA sequences from the BIOSCAN-5M database. This context highlights conserved and variable genetic regions, providing a biologically meaningful prior for the generation process.
  2. Environment-Aware MSA Conditioner: Recognizing that phenotypes result from Genotype-Environment (GxE) interactions, the model employs a Transformer-based encoder. It integrates k-mer tokenized DNA with evolutionary conservation scores (Row Attention) and environmental factors like geographic coordinates (Column Attention).
  3. Dynamic Phenomic Alignment: To ensure high fidelity, the authors introduce a gradient-guided alignment mechanism during the reverse diffusion process. A pre-trained contrastive model (CLIBD) dynamically pulls noisy image representations toward the DNA embeddings at each denoising step, ensuring the output remains grounded in the genetic condition.
The three-stage architecture of G2PDiffusion, featuring MSA retrieval, environment-aware conditioning, and the aligned diffusion process.

Experimental Results

The model was trained and evaluated using the BIOSCAN-5M dataset, which contains over 5 million insect specimens with taxonomic labels, DNA barcodes, and geographic data. Performance was measured using new metrics such as CLIBDScore (semantic similarity) and PES (Phenotype Embedding Similarity).

G2PDiffusion significantly outperformed adapted baselines like DF-GAN, Stable Diffusion, and ControlNet. It achieved a Top-10 Success Rate of 81.1% and a Top-100 Success Rate of 94.0%, indicating strong alignment with ground-truth phenotypic images. Ablation studies indicated that retrieving a small number of homologous sequences (m=1 or 2) provides the best conditioning signal, as too many distant sequences can introduce noise. Furthermore, the model demonstrated strong zero-shot generalization on unseen species, successfully capturing key structural features like wing patterns, body shape, and coloration.

Conclusion and Future Work

G2PDiffusion introduces a scalable approach to genomic analysis by bypassing manual trait labeling. While currently focused on 2D morphological traits in insects, the approach demonstrates the potential of generative AI to learn genuine biological rules. Future work aims to expand this framework to other taxa, such as plants for crop breeding, and to integrate 3D phenotypic data or behavioral traits. This approach sets a new standard for AI-assisted biological discovery and genomic analysis.

Summary updated

BibTeX
@misc{liu2025g,
  author = {Mengdi Liu and Zhangyang Gao and Hong Chang and Stan Z. Li and Shiguang Shan and Xilin Chen},
  title = {{G2PDiffusion: Genotype-to-Phenotype Prediction with Diffusion Models}},
  year = {2025},
  eprint = {2502.04684},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.04684},
}
Figure