Discrete Object Generation with Reversible Inductive Construction

Ari Seff, Wenda Zhou, Farhan Damani, Abigail Doyle, Ryan P. Adams

Introduction

Generative Reversible Inductive Construction (GenRIC) is a novel framework for generating complex discrete objects, such as molecules and geometric graphs, by treating generation as a "denoising" process. By restricting a Markov chain to only perform local, validity-preserving operations, the model avoids the trap of non-unique construction histories and ensures that every sample produced is a valid, usable object.

The Challenge of Discrete Generation

Generative modeling has seen massive success in continuous domains like images and audio, but discrete objects like molecules, source code, and graphs remain a difficult frontier. Two major hurdles stand in the way:

  1. Non-Unique Representations: A single graph with $n$ nodes can be represented by $n!$ different adjacency matrices. If a model tries to learn to build a graph node-by-node, it has to reason over an astronomical number of possible construction paths to reach the exact same result.
  2. Hard Constraints: In chemistry, atoms have specific valency rules. In engineering (CAD), structures must be "well-constrained" to be physically viable. Most generative models struggle to respect these strict rules, often producing "hallucinated" objects that are syntactically or physically impossible.

Methods: Generative Reversible Inductive Construction

The authors introduce GenRIC, which abandons the idea of building an object from scratch in one pass. Instead, GenRIC uses a Markov chain that evolves an object over time through a sequence of local modifications.

The GenRIC Markov chain alternates between corruption and reconstruction steps.
  • The Markov Chain: The process alternates between two distinct steps:
  • Corruption (Fixed): A set of random "local inductive moves" (like deleting an atom or a bond) slightly damages a valid object while keeping it structurally valid.
  • Reconstruction (Learned): A neural network learns to "undo" the corruption by predicting the most likely local move (like inserting a specific chemical substructure) to return the object toward the true data distribution.
  • Validity-Preserving Moves: The core innovation is that all moves are restricted to a predefined "vocabulary" of legal operations. For molecules, this means only adding or removing substructures in ways that perfectly satisfy chemical valency.
  • Architecture: The model uses Message Passing Neural Networks (MPNN) to create embeddings of the current object's state. It then uses these embeddings to pick a location and a vocabulary element (e.g., "Add a Benzene ring at this Carbon atom") via a factorized softmax, making the computation efficient even with thousands of possible actions.

Datasets and Evaluation

The researchers evaluated GenRIC on two highly structured domains:

  • ZINC Dataset: A standard benchmark containing approximately 250,000 drug-like molecules.
  • Laman Graphs: A class of graphs used in robotic and CAD applications to represent 2D systems that are "minimally rigid." The authors generated a synthetic dataset of 100,000 Laman graphs to test the model's ability to handle strict topological constraints.

Key Insights

  • Local is Easier than Global: It is much easier for a model to learn how to fix a small, local "error" in a molecule than it is to learn the global distribution of all possible molecules. By framing generation as a sequence of local corrections, the learning task becomes a standard supervised classification problem.
  • Validity by Construction: Because the Markov chain only allows legal moves, the model literally cannot produce an invalid object. This bypasses the need for "rejection sampling" (throwing away bad samples), which is often a severe bottleneck in other methods.
  • Equilibrium as Generation: The equilibrium distribution of this Markov chain—the state it settles into after many steps—becomes the generative model. There is no need for a "start" or "end" token in the traditional sense; the chain simply runs until it produces a novel, valid sample.

Key Results

GenRIC demonstrated strong performance across both domains, particularly in adhering to strict constraints and matching target distributions.

Distribution of chemical properties (QED, SA, logP) generated by GenRIC compared to baselines and the ZINC dataset.
  • Molecules: GenRIC achieved 100% validity in its samples. More importantly, it outperformed state-of-the-art models like JT-VAE and GrammarVAE in matching the actual distribution of chemical properties, such as QED (drug-likeness), SA (synthetic accessibility), and logP (hydrophobicity).
  • Laman Graphs: This served as a "stress test" for topological constraints. While standard graph generators like GraphRNN failed to produce valid Laman graphs (often <1% validity), GenRIC maintained 100% validity and closely matched the "Degree of Decomposability" (DoD) statistics of the training data.
  • Reconstruction Quality: The authors found that the reconstruction step consistently improved the quality of corrupted molecules, increasing their drug-likeness (QED) by an average of 21% compared to the corrupted inputs.

Limitations and Future Work

While GenRIC guarantees validity, it does have limitations. Because it relies on MCMC (Gibbs sampling), generating a sample requires many iterations of the Markov chain, making it significantly slower than "one-shot" generators like VAEs or GANs. Additionally, a human expert must currently define what constitutes a "legal move" for each new domain.

Future work could involve learning these moves directly from data. For chemistry, a promising direction is to restrict the moves to actual known chemical reactions, which would ensure that the generated molecules are not just valid, but also easily synthesizable in a lab.

Summary updated

BibTeX
@inproceedings{seff2019discrete,
  author = {Ari Seff and Wenda Zhou and Farhan Damani and Abigail Doyle and Ryan P. Adams},
  title = {{Discrete Object Generation with Reversible Inductive Construction}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2019},
  url = {https://openreview.net/forum?id=dd5YLP-z8ro},
}
Figure