# Coarse-to-Fine Autoregression over Hierarchical Discrete Codes for Molecular Graph Generation

*Haozhuo Zheng, Cheng Wang, Pengyu Chen, YajunTian, Yang Liu*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/153473) · [Open on the map](../papers.html#p153473)

Category: [AI for Molecules, Materials & Genomics](../pcat/8.md) › [Materials Generative Modeling](../pgroup/639.md) · Type: new method · Keywords: molecular graph generation, hierarchical discrete codes, coarse-to-fine autoregression, VQ-VAE, spectral regularization

Areas: [Model Architectures & Sequence Modeling](../areas/architectures.md) › Neural and brain architectures › Equivariant and Invariant Neural Networks; [Graph Learning](../areas/graph-learning.md) › Multidimensional Graph Learning › Graph generation

## Summary
H-GVT performs coarse-to-fine autoregressive generation over hierarchical discrete codes, enabling global structural planning and fast sampling for molecular graph generation.

## Explained to a 5-year-old
We want to draw tiny pictures of molecules that look like real chemicals. To do this, we first make a blurry, big picture that shows the overall shape. Then we fill in the small details one by one, using the big picture as a guide. This helps the small details match the big picture so the molecule is correct. It also makes the drawing fast, so we can make many molecules quickly.

## Explained to a 5-year-old, longer
Scientists need to create new molecules for medicines and materials. A molecule is like a tiny building made of atoms connected together. Making these molecules by hand is hard and slow. Computers can help draw them, but they sometimes make weird shapes. Some computer methods focus on the overall shape but take a long time. Other methods are fast but only draw atoms one after another without thinking about the big picture. The new idea is to first draw a rough, low-resolution picture of the whole molecule. This rough picture shows the main structure, like a simple outline. Then, using that outline as a guide, the computer adds the tiny details one by one. Because the details know the overall shape, they fit together nicely. This way the final molecule looks correct and is built quickly. It also lets researchers make many possible molecules for testing and discovery.

## For a technical reader
The approach first compresses a molecular graph into a set of discrete tokens at multiple scales using an adaptive pooling scheme and a spectral consistency loss. These tokens are then fed to a decoder-only Transformer that is aware of the scale via level embeddings, allowing coarse tokens to guide the generation of finer tokens. By generating tokens in a coarse-to-fine order, the model can plan long-range structural relationships before filling in atom-level details. The result is a single-pass generator that produces chemically valid molecules much faster than diffusion-based methods. Empirically, it achieves state-of-the-art metrics on QM9, ZINC250k and MOSES while sampling 68× quicker than prior autoregressive baselines.

## Problem
Molecular graph generation faces a trade-off between diffusion models, which capture global structure but are slow, and autoregressive models, which are fast but lack hierarchical context for long-range topology.

## Method
A Spectrally-Regularized Multi-Scale VQ-VAE compresses molecules into discrete tokens at multiple scales using Adaptive Min-Cut Pooling and a Spectral Topology Consistency Loss, then a decoder-only Transformer with level embeddings generates these tokens from coarse to fine.

## Results
H-GVT achieves best NSPDK scores of 2×10⁻⁴ on QM9 and 1×10⁻⁴ on ZINC250k, and on MOSES attains a 4.8× better FCD (0.19 vs 0.92) under the Novelty-thresholded protocol while sampling 10K molecules 68× faster than DiGress.

## Contributions
The paper introduces a coarse-to-fine autoregressive generation scheme over hierarchical discrete codes, a spectrally-regularized multi-scale VQ-VAE with Adaptive Min-Cut Pooling and a Spectral Topology Consistency Loss, and demonstrates superior structure and speed on molecular benchmarks.

## Practical relevance
The fast, high-fidelity generation of molecules can accelerate drug discovery and materials design by providing diverse, structurally sound candidates.

## Research questions this paper is counted under

- [How can graph generation capture higher-order structure while scaling to large, diverse graphs?](../q/880.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/153473)
