TL;DR
SeaDAG is a semi-autoregressive discrete diffusion model designed for conditional Directed Acyclic Graph (DAG) generation. By assigning varying denoising speeds across graph levels, it captures the hierarchical structure of DAGs while maintaining a complete graph view at every diffusion step—enabling explicit, differentiable property guidance during training.
What Problem Does This Paper Address?
Directed Acyclic Graphs (DAGs) are foundational data structures in computer science, representing everything from Boolean logic circuits (such as And-Inverter Graphs, or AIGs) in chip design to molecular junction trees in biochemistry. Unlike general undirected graphs, DAGs have strict hierarchical dependencies: small structural changes in lower layers propagate upward, drastically altering global properties.
Existing generative models struggle with conditional DAG synthesis:
- One-shot diffusion models denoise the whole graph simultaneously at a uniform rate, often ignoring DAG hierarchy and generating overly shallow, unrealistic structures.
- Autoregressive (AR) models generate graphs piece-by-piece. This prevents later components from influencing earlier ones and hides the full graph structure until the final step, making it impossible to evaluate or guide global graph properties during intermediate steps.
- Most prior conditional methods apply guidance only at test-time sampling, which often degrades graph validity and realism.
Methods
SeaDAG combines the structural modeling strength of autoregressive generation with the global visibility of one-shot diffusion:
- Semi-Autoregressive Diffusion Schedule: Instead of uniform noise schedules, SeaDAG maps global diffusion timestep $t$ and normalized node level $l$ into layer-specific local timesteps $\tau(t, l)$. In a bottom-up schedule (used for AIGs), lower levels denoise faster than higher levels, allowing deeper layers to synthesize while conditioned on less-noisy precursor layers. Conversely, a top-down schedule is used for tree-structured molecular graphs.
- Full-Graph View at Every Step: Because all layers exist and evolve simultaneously (albeit at different rates), the model maintains a complete graph representation at every diffusion step.
- Explicit Condition Learning During Training: The model predicts the clean graph $\hat{G}$ at each step and evaluates a differentiable property decoder $\phi(\hat{G})$. The total training loss balances structural cross-entropy $\mathcal{L}_{\text{graph}}$ with a condition loss $\mathcal{L}_{\text{cond}}$ (e.g., binary cross-entropy against target truth tables, or MSE against target chemical properties).
- For AIGs, $\phi$ uses continuous logic simulation via softmax-choice wiring.
- For molecules, $\phi$ utilizes a pre-trained neural property regressor evaluated on Gumbel-Softmax discrete graph samples.
- Permutation Equivariance: The network architecture (based on Graph Transformers) and loss formulations are proven to be permutation equivariant/invariant.
- Optional MCTS Refinement: An optional post-processing step uses Monte Carlo Tree Search (MCTS) with random graph rewiring edits to fine-tune condition adherence without violating DAG validity.
Datasets
- Synthetic AIG Dataset: 12,950 training, 1,850 validation, and 3,700 test logic circuits with 8 inputs, 2 outputs, and up to 32 gates, paired with ground-truth Boolean truth tables.
- QM9 Benchmark: ~100k molecular graphs converted into junction-tree DAG scaffolds, evaluated across five quantum chemical properties ($\alpha$, HOMO, LUMO, Gap, $\mu$).
- ZINC Dataset: ~243k drug-like molecules used to test conditional molecular property optimization (penalized logP and drug-likeness QED).
Key Insights and Ideas
- Hierarchy via Asymmetric Noise: Denoising layers at different speeds provides the dependency-capturing benefits of sequential generation without breaking the diffusion graph into fragments.
- Depth Realism: One-shot graph diffusion notoriously collapses circuit depth, generating DAGs that are too shallow to compute complex functions. Layer-wise pacing forces SeaDAG to build deeper, structurally realistic topologies.
- End-to-End Conditioning vs. Sampling-Time Guidance: Conditioning diffusion models purely via sampling-stage guidance (like classifier guidance) often damages molecule validity and graph realism. Training with a differentiable property loss preserves graph quality while achieving high conditional fidelity.
Key Results
- Logic Circuit (AIG) Generation: SeaDAG achieved 92.38% validity and 89.25% truth table accuracy, substantially outperforming one-shot DiGress (43.21% validity, 82.07% accuracy) and autoregressive Pard (78.86% validity, 75.78% accuracy).
- Conditional Molecule Synthesis (QM9): SeaDAG secured the lowest Mean Absolute Error (MAE) across 4 out of 5 quantum properties (e.g., dipole moment $\mu = 1.33\,\text{D}$ vs. DiGress's $1.49\,\text{D}$; polarizability $\alpha = 8.85$ vs. DiGress's $9.23$).
- Preserved Distribution Quality: Under conditional generation, DiGress and LDM-3DG suffer up to 100% degradation in distribution distance metrics (NSPDK and FCD). SeaDAG achieved 100% molecular validity and an FCD of 0.36, matching top unconditional models.
- Extrapolative Molecule Optimization (ZINC): Without explicit reinforcement learning or Bayesian optimization algorithms, conditioning SeaDAG on extreme values yielded molecules with penalized logP values up to 8.52, far exceeding the training set maximum of 4.52.
Limitations and Future Work
- Sampling Efficiency: Generating graphs through full diffusion schedules across all nodes and edges remains computationally slower than sequential autoregressive sampling.
- Decoder Dependency: When exact mathematical decoders are unavailable (as with molecular quantum properties), the framework relies on neural surrogate models that can introduce prediction noise into the condition gradient.
- Future Directions: The authors highlight accelerating SeaDAG's inference speed to match pure autoregressive methods as a key avenue for future work.
Summary updated