Group project with Kutay Tire, Francisco Patitucci, Joel Anto Paul, and Anjali Raghavan (UT Austin).
The idea
Short-read DNA sequencing typically requires 30× or higher coverage so that every base ends up read many times, partly to overcome noise and partly to disambiguate repetitive regions. A substantial fraction of that cost is spent re-observing positions whose values could in principle be predicted from the surrounding sequence. If we can reliably inpaint a missing stretch given sparse observations, we can cut required coverage and make routine genomic assays more accessible.
We frame DNA inpainting as constrained generation: given a sequence with a subset of revealed (anchor) tokens, sample the remaining tokens while enforcing that the anchors stay matched exactly. The backbone is a masked discrete diffusion language model (MDLM-style, absorbing-state corruption, loglinear noise schedule) with a DiT-style denoiser, and we adapt anchored posterior sampling at inference time so non-anchor positions are iteratively remasked and resampled while anchors are pinned.
Setup
5-mer tokenization (vocabulary 4⁵ = 1024), 1024-token windows on chromosome 11, anchor loss enabled during training. Model has 12 transformer blocks, hidden size 768.
Result
Across 1 to 10 contiguous masked gaps of length 25 to 50 tokens, our best checkpoint (≈80K steps) hits roughly 6 to 11% K-mer accuracy and 26 to 42% nucleotide accuracy. The random baselines are 0.098% (K-mer) and 25% (nucleotide), so the model is learning nontrivial local sequence structure.
A bidirectional Evo 2 evaluation (left context + reverse-complement right context, combined via product of experts) sits at ≈20 to 23% K-mer / 60 to 62% nucleotide, substantially better than our model. The gap is plausibly down to pretraining scale, data coverage, and alignment between training objective and the inpainting downstream task.
What’s interesting
The diffusion model is clearly above random and recovers partial local structure, but it’s not yet competitive with a strong pretrained autoregressive genome model. There’s an unresolved validation-loss instability around 80K steps that we suspect is tied to the narrow training distribution (single chromosome) rather than the optimizer or diffusion dynamics.
Future work
Scaling the model with capacity initialized from pretrained genomic language model representations, expanding training to all chromosomes, and replacing the frequency-based k-mer vocabulary with anchor mechanisms informed by pretrained DNA models or k-mer importance statistics.
Write-up still being polished.