Papers › MolHF: A Hierarchical Normalizing Flow for Molecular Graph Generation

MolHF: A Hierarchical Normalizing Flow for Molecular Graph Generation

15 May 2023arXiv:2305.08457archive 2025-07-28

Yiheng Zhu, Zhenqiu Ouyang, Ben Liao, Jialu Wu, Yixuan Wu, Chang-Yu Hsieh, Tingjun Hou, Jian Wu

Molecular de novo design is a critical yet challenging task in scientific fields, aiming to design novel molecular structures with desired property profiles. Significant progress has been made by resorting to generative models for graphs. However, limited attention is paid to hierarchical generative models, which can exploit the inherent hierarchical structure (with rich semantic information) of the molecular graphs and generate complex molecules of larger size that we shall demonstrate to be difficult for most existing models. The primary challenge to hierarchical generation is the non-differentiable issue caused by the generation of intermediate discrete coarsened graph structures. To sidestep this issue, we cast the tricky hierarchical generation problem over discrete spaces as the reverse process of hierarchical representation learning and propose MolHF, a new hierarchical flow-based model that generates molecular graphs in a coarse-to-fine manner. Specifically, MolHF first generates bonds through a multi-scale architecture, then generates atoms based on the coarsened graph structure at each scale. We demonstrate that MolHF achieves state-of-the-art performance in random generation and property optimization, implying its high capacity to model data distribution. Furthermore, MolHF is the first flow-based model that can be applied to model larger molecules (polymer) with more than 100 heavy atoms. The code and models are available at https://github.com/violet-sto/MolHF.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2305.08457")

Code

Syntology Ran 14 of 23 code samples harvested from 1 repository linked to this paper; 9 have no recorded run. Of those that ran: 1 ran · honoured contract; 1 ran · violated contract; 1 ran · our draft was wrong; 1 ran · fixture could not drive it; 10 ran with no contract checked.

By repository: official repository: 23 samples from 1 repository, 14 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

violet-sto/molhf officialmentioned in papermentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

23 samples harvested; 14 ran; 1 honoured the contract we drafted; 9 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
1ran · violated contract
1ran · our draft was wrong
1ran · fixture could not drive it
10ran
9unverified

Licence: 0 of the 23 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from violet-sto/molhf. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

ActNorm violet-sto/molhf/models/MolHF.py official repository ran · metamorphic tier: deterministic fingerprinted MIT (permissive) · 62239b0f787c9409 · report
ActNorm2D violet-sto/molhf/models/MolHF.py official repository ran · metamorphic tier: deterministic MIT (permissive) · 1e9fb6d1a5de1997 · report
AffineCoupling violet-sto/molhf/models/MolHF.py official repository ran · metamorphic tier: deterministic fingerprinted MIT (permissive) · e0ea9e5584744a7e · report
CrissCrossAttention violet-sto/molhf/models/MolHF.py official repository ran · metamorphic tier: deterministic MIT (permissive) · 673215531f5c9351 · report
GraphConv violet-sto/molhf/models/MolHF.py official repository ran · metamorphic tier: deterministic MIT (permissive) · 2c475547db518beb · report
INF violet-sto/molhf/models/MolHF.py official repository ran · violated contract fingerprinted MIT (permissive) · 399928d133771096 · report
InvConv2d violet-sto/molhf/models/MolHF.py official repository ran fingerprinted MIT (permissive) · 0a804d8c8c4a8d7b · report
InvConv2dLU violet-sto/molhf/models/MolHF.py official repository ran · metamorphic tier: deterministic fingerprinted MIT (permissive) · 76fecc6493ba2e83 · report
InvRotationLU violet-sto/molhf/models/MolHF.py official repository ran MIT (permissive) · 37df6656e9f537ed · report
RGCN violet-sto/molhf/models/MolHF.py official repository ran · metamorphic tier: deterministic MIT (permissive) · 255d29628ddbc5c1 · report
Rescale violet-sto/molhf/models/MolHF.py official repository ran fingerprinted MIT (permissive) · b33a81dea55c1513 · report
logabs violet-sto/molhf/models/MolHF.py official repository ran · honoured contract fingerprinted MIT (permissive) · cd1a4050db5f5c36 · report
rescale_adj violet-sto/molhf/models/MolHF.py official repository ran · fixture could not drive it fingerprinted MIT (permissive) · 19c4edfbb17dc994 · report
squeeze_adj violet-sto/molhf/models/MolHF.py official repository ran · our draft was wrong MIT (permissive) · 9b3bfa20027b4271 · report
Block violet-sto/molhf/models/MolHF.py official repository unverified MIT (permissive) · 46b1f7a69cd6719a · report
BlockOnGraph violet-sto/molhf/models/MolHF.py official repository unverified MIT (permissive) · 1874778db54a827e · report
CC_Glow violet-sto/molhf/models/MolHF.py official repository unverified MIT (permissive) · ddab52777bb4f278 · report
Flow violet-sto/molhf/models/MolHF.py official repository unverified MIT (permissive) · 9ac0aa08d59068b7 · report
FlowOnGraph violet-sto/molhf/models/MolHF.py official repository unverified MIT (permissive) · 9810c9a6a91778ff · report
Gaussianize violet-sto/molhf/models/MolHF.py official repository unverified MIT (permissive) · 117498aa88c3d909 · report
GraphAffineCoupling violet-sto/molhf/models/MolHF.py official repository unverified MIT (permissive) · 0e21277976b52619 · report
GraphFlow violet-sto/molhf/models/MolHF.py official repository unverified MIT (permissive) · 8b68ca797d26b070 · report
MolHF violet-sto/molhf/models/MolHF.py official repository unverified MIT (permissive) · a0f64373d768ebb1 · report

Tasks

Graph GenerationMolecular Graph GenerationRepresentation Learning

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections