bioRxivBioinformaticsPreprint
CPDD: Adapting an autoregressive DNA language model for bidirectional phage genome modeling
Abstract
Autoregressive DNA language models generate sequences ef[fi]ciently from left to right, but many genome-analysis and sequence-editing problems are naturally conditioned on both [fl]anks. We introduce CreatiPhage, a 144.5M-parameter autoregressive DNA language model for bacteriophages, and its diffusion extension, CreatiPhage Diffusion DNA-LM (CPDD). CPDD is a 147.5M-parameter bidirectional discrete diffusion model initialized from the six-epoch CreatiPhage checkpoint. CPDD retains the pretrained Transformer, block attention residuals, and Engram conditional memory, while introducing non-causal attention, a MASK-aware base-5 Engram, centered depthwise convolution, and position-aligned nucleotide readout. Training combines masked and GIDD-style uniformly substituted bases with nucleotide- and amino-acid-level losses over a 10 kb, 32 kb, and whole-source context curriculum. On a screened panel of 522 phage CDSs, CPDD achieves higher random-mask restoration accuracy than a comparable diffusion model and performs well above codon-level references. In a mixed-corruption test, it restores 42.4% of visible incorrect bases. Frozen CPDD representations also support infA [fi]tness prediction and seven-class phage virion protein subtype classi[fi]cation. Controlled evaluations further characterize how restoration depends on visible context and identify opportunities to improve longer-range sequence recovery. Together, these results support scaffold-conditioned sequence modeling as a step towards modular design of phage genomes.
- organism: bacteria (other)
- assay: DNA methylation
- assay: whole-genome sequencing
- research focus: sequence-to-function modeling
- approach: deep learning
- approach: diffusion model
- approach: transformer / foundation model
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- A long-context language model for deciphering and generating bacteriophage genomes
Bin Shao, Jiawei Yan·Nature CommunicationsPeer-reviewed·Oct 30, 2024
- Transformer Model Generated Bacteriophage Genomes are Compositionally Distinct from Natural Sequences
Jeremy D. Ratcliff·NAR Genomics and BioinformaticsPeer-reviewed·Jul 2, 2024
- ProkBERT PhaStyle: Accurate Phage Lifestyle Prediction with Pretrained Genomic Language Models
Judit Juhász, Noémi Ligeti-Nagy, … Balázs Ligeti·Bioinformatics AdvancesPeer-reviewed·Dec 26, 2024
- Generative design of novel bacteriophages with genome language models
Samuel H. King, Claudia L. Driscoll, … Brian Hie·bioRxiv·Sep 12, 2025
- PharaCon: A new framework for identifying bacteriophages via conditional representation learning
Zeheng Bai, Yaozhong Zhang, … Seiya Imoto·BioinformaticsPeer-reviewed·Feb 20, 2025
- Harnessing Genome Representation Learning for Decoding Phage-Host Interactions
Sumanth Badam, Shrisha Rao·bioRxiv·Mar 12, 2024