InertialAR: Autoregressive 3D Molecule Generation with Inertial Frames
Haorui Li, Weitao Du, Yuqiang Li, Hongyu Guo, Shengchao Liu
TL;DR
InertialAR reframes 3D molecule generation as a transformer-based autoregressive task by introducing a canonical tokenization that aligns molecules to an inertial frame and deterministically orders atoms, thereby achieving $SE(3)$ and permutation invariance. It further equips the Transformer with GeoRoPE, a geometry-aware attention mechanism that combines RoPE-3D with Nyström distance encoding to capture relative geometry and pairwise distances. A hierarchical autoregressive architecture then predicts atom types and coordinates, using cross-entropy for discrete types and diffusion loss for continuous coordinates, with classifier-free guidance enabling controllable generation. Empirically, InertialAR achieves state-of-the-art results on multiple unconditional benchmarks (including QM9, GEOM-Drugs, and B3LYP) and demonstrates strong controllable generation and editing capabilities, highlighting its potential as a scalable foundation model for 3D molecular design and beyond.
Abstract
Transformer-based autoregressive models have emerged as a unifying paradigm across modalities such as text and images, but their extension to 3D molecule generation remains underexplored. The gap stems from two fundamental challenges: (1) tokenizing molecules into a canonical 1D sequence of tokens that is invariant to both SE(3) transformations and atom index permutations, and (2) designing an architecture capable of modeling hybrid atom-based tokens that couple discrete atom types with continuous 3D coordinates. To address these challenges, we introduce InertialAR. InertialAR devises a canonical tokenization that aligns molecules to their inertial frames and reorders atoms to ensure SE(3) and permutation invariance. Moreover, InertialAR equips the attention mechanism with geometric awareness via geometric rotary positional encoding (GeoRoPE). In addition, it utilizes a hierarchical autoregressive paradigm to predict the next atom-based token, predicting the atom type first and then its 3D coordinates via Diffusion loss. Experimentally, InertialAR achieves state-of-the-art performance on 7 of the 10 evaluation metrics for unconditional molecule generation across QM9, GEOM-Drugs, and B3LYP. Moreover, it significantly outperforms strong baselines in controllable generation for targeted chemical functionality, attaining state-of-the-art results across all 5 metrics.
