\documentclass[runningheads]{waica} \usepackage[T1]{fontenc} \usepackage{graphicx} \usepackage{booktabs} \usepackage{multirow} \usepackage{amsmath} \usepackage{url} \usepackage{xcolor} \newcommand{\methodname}{EvoDiff-Enhancer} \begin{document} \title{Mask-Ratio Controlled Diffusion for Evolutionary Enhancer Sequence Generation} \titlerunning{Mask-Ratio Controlled Diffusion for Enhancer Generation} % Anonymous draft. Fill author information before submission. % \author{First Author\inst{1} \and Second Author\inst{1}} % \authorrunning{F. Author et al.} % \institute{Institution Name, City, Country\\ % \email{email@example.com}} \maketitle \begin{abstract} Enhancer design requires generating DNA sequences that are syntactically valid, functionally active, diverse, and close to natural regulatory sequence distributions. Autoregressive genomic language models provide a direct way to sample DNA, but their left-to-right generation process can drift into low-complexity repetitive continuations that score well under an activity predictor while departing from enhancer-like sequence statistics. Motivated by biological evolution, where regulatory sequences are often altered by partial mutation rather than complete rewriting, we study a masked discrete diffusion formulation for enhancer generation. In this framework, the mask ratio acts as an explicit mutation budget: low ratios correspond to local editing, while high ratios approach de novo generation. Using the DeepSTARR enhancer activity benchmark, we compare unconditional autoregressive generation, bucket-conditioned autoregressive generation, and bucket-conditioned masked diffusion under a unified predictor-guided evaluation protocol. On the validation split, all evaluated methods produce valid DNA. However, autoregressive baselines exhibit strong sequence artifacts, including GC content near 0.255 and mean maximum homopolymer length above 79, despite obtaining higher predictor scores. In contrast, conditioned masked diffusion preserves reference-like GC content, homopolymer length, and $k$-mer distributions, with GC content 0.423, mean maximum homopolymer length 5.66, and 4-mer Jensen--Shannon divergence 0.0006 to reference sequences. The diffusion predictor score is stable across three sampling seeds with mean $-3.871$ and standard deviation 0.018. These results suggest that masked diffusion is a more conservative and distribution-preserving generator for enhancer design, while predictor-only optimization can favor biologically implausible artifacts. \keywords{Enhancer design \and Regulatory DNA generation \and Discrete diffusion \and Genomic foundation models \and Controllable generation} \end{abstract} \section{Introduction} Enhancers are non-coding regulatory elements that influence gene expression across cell types, tissues, and developmental states. The ability to design enhancer sequences with desired regulatory activity is important for synthetic biology, functional genomics, and gene therapy. Deep learning models such as DeepSTARR have shown that enhancer activity can be predicted directly from DNA sequence and that such predictors can guide the search for synthetic regulatory elements~\cite{dealmeida2022deepstarr}. At the same time, genomic foundation models make it possible to generate candidate DNA sequences at scale. The central question is not only whether a model can emit valid DNA, but whether it can generate DNA that is active, diverse, and biologically plausible. Autoregressive language models are a natural baseline for sequence generation. They generate DNA by repeatedly sampling the next token from a prefix. This formulation is convenient, but enhancer design is not inherently a left-to-right continuation task. Enhancer function depends on motif content, spacing, sequence composition, and global regulatory grammar. Moreover, biological evolution rarely rewrites regulatory DNA from scratch; it typically explores sequence space through mutation, selection, and accumulation. This motivates a generative model that can explicitly control how much of a sequence is changed. We therefore formulate enhancer generation as mask-ratio controlled sequence mutation. A masked discrete diffusion model corrupts a DNA sequence by masking a subset of bases and learns to recover the original bases. At generation time, the fraction of masked positions can be interpreted as a mutation budget. Small mask ratios preserve most of the input sequence and perform local edits. Large mask ratios enable broader exploration. A fully masked sequence recovers the de novo generation setting. In this paper, we present \methodname{}, a masked diffusion framework for controllable enhancer generation. We use low, middle, and high activity bucket tokens to condition generation and evaluate the generated sequences with a separately trained DeepSTARR activity predictor. We compare diffusion against unconditional and bucket-conditioned autoregressive baselines. Our results show a clear trade-off: autoregressive baselines obtain higher predictor scores but suffer from severe low-complexity sequence artifacts, whereas diffusion better preserves enhancer-like sequence statistics. \begin{figure} \centering \includegraphics[width=\textwidth]{figures/fig_pipeline_overview.png} \caption{Overview of the enhancer generation and evaluation pipeline. DeepSTARR sequences are bucketed by activity, a predictor is trained as an evaluation oracle, autoregressive baselines are compared with mask-ratio controlled diffusion, and generated sequences are evaluated for predicted activity, controllability, sequence quality, distributional fidelity, and diffusion pseudo-likelihood.} \label{fig:pipeline} \end{figure} Our contributions are: \begin{itemize} \item We formulate enhancer generation as mask-ratio controlled mutation, connecting local editing and de novo generation in one framework. \item We implement bucket-conditioned masked discrete diffusion on DeepSTARR enhancer sequences. \item We compare diffusion with unconditional and conditioned autoregressive genomic language model baselines. \item We show that predictor score alone can be misleading: autoregressive baselines obtain higher predicted activity but produce low-GC repetitive artifacts, while diffusion better preserves reference-like sequence statistics. \end{itemize} \section{Related Work} \paragraph{Enhancer activity prediction.} DeepSTARR predicts enhancer activity from DNA sequence and enables in silico design of synthetic enhancers~\cite{dealmeida2022deepstarr}. Such predictors are useful oracles for ranking generated sequences, but predictor-guided evaluation can overestimate biological quality if a generator exploits predictor artifacts. Our evaluation therefore combines predicted activity with sequence composition and distributional metrics. \paragraph{Generative regulatory DNA design.} Prior work has explored generative models for regulatory DNA, including deep generative design of expression-controlling sequences~\cite{zrimec2022expressiongan}, cell-type-directed synthetic enhancer design~\cite{taskiran2024celltypedirected}, and machine-guided cis-regulatory element design~\cite{gosai2024coda}. These studies highlight that regulatory DNA should be evaluated by function, diversity, specificity, and grammar. We follow this multi-objective view and emphasize that high predictor score is insufficient when sequence artifacts are present. \paragraph{Controllable genomic language models.} Autoregressive language models and reinforcement learning have recently been applied to controllable DNA sequence design~\cite{su2025atgcgen,yang2025rldna}. These methods provide flexible sampling interfaces, but left-to-right generation can create repetitive continuations and reward-hacking behavior. We use autoregressive models as baselines and compare them with masked diffusion. \paragraph{Discrete diffusion for biological sequences.} Discrete diffusion has been used for regulatory DNA design with tunable activity~\cite{sarkar2024d3}, reward-optimized biological sequence generation~\cite{wang2024drakes}, and synthetic regulatory element design~\cite{dasilva2026dnadiffusion}. Our work is aligned with this direction but emphasizes the interpretation of the mask ratio as a mutation budget for enhancer design. \section{Methods} \subsection{Problem Formulation} Let $x=(x_1,\ldots,x_L)$ denote an enhancer sequence of length $L$, where $x_i \in \{A,C,G,T\}$. Each DeepSTARR sequence has two activity labels $y=(y_0,y_1)$. We define a scalar score for bucket construction: \begin{equation} s(y) = y_0 + y_1. \end{equation} Using the training split, we assign sequences to low, middle, and high activity buckets by the 25th and 75th percentiles of $s(y)$. The corresponding condition tokens are $\langle sp0\rangle$, $\langle sp1\rangle$, and $\langle sp2\rangle$. The goal is to learn a generator $p_\theta(x \mid c)$, where $c$ is an activity bucket. For mutation-like generation, the generator may also receive a reference sequence and a mask ratio $\rho$ that determines the fraction of bases to regenerate. This paper reports completed validation and test results for de novo diffusion generation, a denoising-step ablation, seed repeats, and two preliminary mask-range ablations. The full mask-ratio sweep is left for future work. \subsection{Activity Predictor} We train a sequence-to-activity predictor $f_\phi(x)$ using a genomic foundation model with a regression head. The predictor outputs two activity dimensions: \begin{equation} f_\phi(x) = (\hat{y}_0,\hat{y}_1). \end{equation} It is used only for evaluation and candidate scoring. On the DeepSTARR test split, the predictor obtains overall Pearson correlation 0.652, $R^2=0.417$, MAE 0.590, and MSE 0.605. Label 1 is predicted more accurately than label 0, with Pearson correlations 0.727 and 0.581, respectively. \subsection{Autoregressive Baselines} We consider two autoregressive baselines. The unconditional baseline is fine-tuned on enhancer sequences and generates continuations from DNA prefixes. The conditioned baseline prepends an activity bucket token to each training sequence and learns $p_\theta(x_t \mid c,x_{