Discrete Object Generation with Reversible Inductive Construction

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

Introduction: The Challenge of Discrete Generation

Deep generative models have achieved remarkable success in continuous domains like image and audio synthesis. However, discrete domains—such as molecular structures, source code, or CAD graphs—present unique hurdles. Two primary issues plague standard approaches:

  1. Intractable Construction Histories: Discrete objects often have many equivalent ways they can be built (e.g., $n!$ permutations for an $n$-node graph). Models attempting to generate these from scratch must navigate or marginalize over these vast spaces.
  2. Strict Validity Constraints: Unlike images, where a few noisy pixels are tolerable, discrete objects must adhere to rigid rules. A molecule with incorrect valency is chemically invalid. Most models struggle to learn these global constraints, often producing "garbage" samples.

Methodology: Generative Reversible Inductive Construction (GenRIC)

To address these challenges, this paper introduces Generative Reversible Inductive Construction (GenRIC). Instead of building objects from a blank canvas, GenRIC frames generation as the equilibrium distribution of a Markov chain that operates entirely within the space of valid objects.

Overview of the GenRIC architecture, showing how message passing generates embeddings that map to a vocabulary of legal inductive operations.

The GenRIC framework alternates between two primary steps:

  • Fixed Corrupter: A hard-coded algorithm applies a sequence of "legal inductive moves"—minimal local edits (like adding a chemically valid substructure or removing a leaf node) that are guaranteed to preserve validity.
  • Learned Reconstructor: A neural network, powered by Message Passing Neural Networks (MPNNs), observes the corrupted object and predicts the sequence of moves needed to restore it.

By restricting both corruption and reconstruction to these "legal moves," the model achieves 100% validity by design. The neural network is freed from learning the laws of chemistry or geometry and can focus entirely on capturing the underlying data distribution.

Empirical Performance

The authors evaluated GenRIC on two distinct types of data: drug-like molecules (ZINC dataset) and Laman graphs (geometric constraint graphs).

Molecular Generation

GenRIC was benchmarked against several baselines, including GraphVAE and DeepGAR. A key metric for generative models is how well they match the empirical distribution of the training data. As shown in the property distribution plots, GenRIC closely tracks the ZINC dataset's distributions for drug-likeness (QED), synthetic accessibility (SA), and hydrophobicity (logP).

Comparison of generated molecular property distributions (QED, SA, logP) against the ZINC dataset and various baseline models.

GenRIC achieved Kolmogorov–Smirnov (KS) distances of 0.045 for QED and 0.057 for logP, significantly outperforming most baselines. This indicates that the model not only produces valid molecules but also captures the complex chemical properties of the target dataset.

Laman Graphs

Laman graphs are particularly difficult because they involve strict global topological constraints. While a standard model like GraphRNN produced only 0.15% valid Laman graphs, GenRIC maintained 100% validity and matched the target Degree of Decomposability (DoD) distribution with a KS distance of 0.33, compared to GraphRNN's 0.96.

Discussion and Future Work

While GenRIC offers a robust solution for validity, it faces some trade-offs. Sampling via a Markov chain is computationally slower than single-pass models, and the "legal moves" currently require manual engineering by domain experts.

Future research directions include learning these inductive moves directly from data. In chemistry, this could involve restricting transitions to known chemical reactions, ensuring that generated molecules are not only valid but also synthesizable in a laboratory setting. Additionally, the framework's structure naturally supports conditional generation, such as forcing the inclusion of specific molecular scaffolds.

Summary updated

BibTeX
@inproceedings{seff2019discrete,
  author = {Ari Seff and Wenda Zhou and Farhan N. Damani and Abigail G. 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