# Mult-Domain Discrete Graph Generation

> DiG² uses domain-specific priors, structural conditioning and vocabulary masks to train one flow-matching model across five graph and molecule domains. Matched tests give 85-100% structural V.U.N.; a QM9/ZINC conditioning blend pushes zero-shot logP past ZINC, though validity falls at the furthest extrapolation.

- arXiv: https://arxiv.org/abs/2611.38253
- Authors: Jay Revolinsky, Harry Shomer, Haoyu Han, Jiliang Tang
- Published: 2026-12-01
- Topic: Generative models
- Visual carousel: https://instaxiv.com/p/2611.38253
- Explanation by InstaXiv, a secondary educational summary. Cite the original paper for exact results. InstaXiv is not affiliated with or endorsed by arXiv or Cornell University.

## Can one model keep five graph worlds distinct?

**85%** DiG² SBM V.U.N.; G²PT baseline: 73.1%

## A domain label is not enough

**Label-conditioned models:** V.U.N. requires passing the domain's validity test, no duplicates among outputs, and absence from training and fine-tuning pools. DeFoG scores 95.0% Planar but 5.0% SBM; G²PT gets 2.5% Planar and 73.1% SBM.

**DiG²'s domain-aware path:** DiG² pairs domain-specific priors with structural conditioning and vocabulary masks; it scores 100% Planar and 85% SBM V.U.N. under the same benchmark.

A domain name alone does not keep generation inside the requested graph family.

## DiG²'s discrete flow-matching model

1. **Start with a domain prior**: Start from that domain’s node/edge class-frequency prior, not from pooled noise distribution.
2. **Condition on structure**: Combine its label, a clean-graph running-average prototype and a noisy-graph summary; inject the signal at every layer.
3. **Limit classes and adapt depth**: Mask training and sampling to valid domain classes; a domain-conditioned gate mixes readouts from layers 8, 10 and 12.
4. **Resolve entries gradually**: Each step redraws an entry from its clean-class prediction with a time-dependent chance; otherwise it keeps the current class.

## One shared model wins three structural domains

| Method | Planar V.U.N. (%) | SBM V.U.N. (%) | Tree V.U.N. (%) |
| --- | --- | --- | --- |
| Best baseline | 95.0 DeFoG | 73.1 G²PT | 87.4 G²PT |
| **DiG²** | **100** | **85** | **97.5** |

_Main Results: shared corpus, schedule and harness; after 75K-step anchored fine-tuning. G²PT has 89M parameters; DiG² has 18M._

## Molecular validity and FCD favor DiG²

| Method | QM9 validity (%) | QM9 FCD | ZINC validity (%) | ZINC FCD |
| --- | --- | --- | --- | --- |
| Best baseline | 90.6 G²PT | 0.4 DiGress | 92.93 DeFoG | 3.4 DeFoG |
| **DiG²** | **99.92** | **0.29** | **95.46** | **2.7** |

_Main Results; FCD = Fréchet ChemNet Distance (lower is closer); shared five-domain setup, post-75K anchored fine-tuning._

## Removing the prototype hurts Planar and SBM most

**Full model:** On the same benchmark, full DiG² reaches 100% Planar and 85% SBM V.U.N. after shared anchored fine-tuning.

**Without EMA prototype:** Removing only the EMA prototype yields 77.5% Planar and 42.5% SBM; per-domain priors and vocabulary masks remain unchanged.

The running prototype matters most for separating these structural domains.

## A slider built from two learned domains

1. **Blend both conditioning rows**: Linearly blend QM9 and ZINC domain embeddings and their structural-prototype vectors with one weight, α.
2. **Fix the other controls**: Keep the prior fixed at ZINC and the allowed vocabulary fixed to the union of QM9 and ZINC molecular classes.
3. **Sweep without target updates**: Set α=0 for QM9 conditioning and α=1 for ZINC; values above 1 extrapolate. No GuacaMol or MOSES graphs update the model.

## QED becomes a steerable property

![Figure 5](https://cdn.instaxiv.com/figures/2611.38253/figure5.webp)

Read it as QED across the conditioning sweep. In GuacaMol’s 10-14-heavy-atom band, DiG² covers 0.138, versus DemoDiff’s 0.037 and GenMol’s 0.002; only DiG² reaches both the 25th- and 50th-percentile targets. (Figure 5)

## Past ZINC, logP rises but validity falls

**Baselines and ZINC endpoint:** In MOSES’ 20-27-heavy-atom band, DemoDiff spans 0.31 logP but cannot mix past α=1; GenMol shifts only 0.08 over α=0-1. DiG² at α=1 averages 2.830±0.026.

**DiG² beyond ZINC:** At α=2, mean logP is 4.734±0.049; 59.2% of samples exceed ZINC’s 95th percentile, while validity is 0.668, below the 0.70 display floor.

The learned path reaches beyond ZINC, but the farthest setting sacrifices validity.

## Where the evidence stops

- **Vocabulary size**: The shared encoding has 11 node and 5 edge classes; the authors identify larger vocabularies as future work.
- **Narrow interpolation**: Zero-shot blending was tested between QM9 and ZINC, related datasets with similar vocabularies, not arbitrary graph domains.
- **Property proxies**: The evaluation reports validity and QED/logP, not biological activity or experimental performance.

Best used when: A fit when one model must generate distinct graph domains, or when exploring properties between two trained molecular endpoints.

## Key takeaways

- One graph model can serve distinct graph and molecule domains when priors, structural signals and vocabularies remain domain-aware.
- Blend QM9/ZINC conditioning to explore zero-shot QED and logP shifts, while watching validity as you extrapolate.
- Open question: do these separation controls and property paths hold with larger vocabularies or much less related domains?

## Links

- arXiv: https://arxiv.org/abs/2611.38253
- PDF: https://arxiv.org/pdf/2611.38253
- Code: https://github.com/revolins/DiG2

## Citation

```bibtex
@article{revolinsky2026multdomain,
  title   = {Mult-Domain Discrete Graph Generation},
  author  = {Revolinsky, Jay and Shomer, Harry and Han, Haoyu and Tang, Jiliang},
  journal = {arXiv preprint arXiv:2611.38253},
  year    = {2026},
  url     = {https://arxiv.org/abs/2611.38253}
}
```
