arXiv:2609.05097cs.LGSep 2026

Manuscript Offprint

arXiv:2609.05097

NEAT-POCKET: Pocket-Conditioned Autoregressive 3D Molecular Generation with a Neighborhood-Guided Set Transformer

Roxane Axel Jacob, Daniel Rose, Thierry Langer, Johannes Kirchmair

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Roxane Axel Jacob, ‡abc Daniel Rose, ‡abc Thierry Langer, ab and Johannes Kirchmair*ab

Received Date

Accepted Date

DOI:00.0000/xxxxxxxxxx

AI-driven de novo molecular design offers a promising route to accelerate early-stage drug discovery by generating novel ligands directly within target protein binding pockets. We present NEAT-POCKET, a pocket-conditioned extension of the autoregressive NEAT model for 3D molecular generation. NEAT-POCKET generates molecules atom by atom in protein pocket environments while preserving atom permutation invariance and explicitly modeling hydrogen atoms. Benchmarks on the CrossDocked and SPINDR datasets show that NEAT-POCKET achieves competitive structure-based generation performance while sampling substantially faster than existing baselines. Beyond full-molecule generation, NEAT-POCKET naturally enables pocket-conditioned fragment completion, a task directly relevant to lead optimization and scaffold elaboration. These results position NEAT-POCKET as a fast, flexible, and practical framework for structure-based drug design.

1 Introduction

The early stages of drug discovery often involve virtual screening of large compound or fragment libraries to identify molecules with potentially strong binding affinity to a desired therapeutic target.¹ This process relies on techniques like molecular docking or pharmacophore searches, which can become computationally expensive for ultra-large libraries, and whose outcome is inherently constrained by the size and diversity of the libraries being screened. Generative artificial intelligence (AI) offers a promising alternative by enabling the de novo design of ligands tailored to a specific target.²

Generative machine learning (ML) models can produce molecular structures in various formats, including one-dimensional strings,³,⁴ two-dimensional graphs,⁵,⁶ and three-dimensional point clouds.⁷⁻¹⁹ Since many molecular properties and processes, including protein-ligand binding, depend on the 3D conformation of a molecule, generating molecules in three dimensions is particularly valuable.

In this work, we focus on generating 3D small molecules directly within specified protein pockets. The goal is to produce

a diverse set of molecules that both fit the pocket geometrically, avoiding steric clashes with pocket atoms, and form favorable intermolecular interactions. Most state-of-the-art approaches formulate this task as transport-based generation, in which a diffusion or flow-matching model learns to transform samples from a simple tractable prior distribution, usually a Gaussian, into samples from the complex distribution of valid 3D molecular structures.¹⁶⁻¹⁹ Diffusion models²⁰,²¹ achieve this by progressively corrupting molecular structures with noise during training and then learning to reverse this process at inference time.⁸,¹⁶,¹⁷ Flow-matching models²²,²³ learn a time-dependent velocity field that transports samples from the tractable source distribution to the target molecular distribution.¹³,¹⁴,¹⁸,¹⁹

In transport-based approaches to 3D molecule generation, E(3)- or SE(3)-equivariant graph neural networks (GNNs) are commonly used as encoder backbones to capture interatomic dependencies and to parameterize the denoising, score, or velocity fields that drive generation.¹³,¹⁴,¹⁶⁻¹⁹ By respecting the natural symmetries of 3D molecular structures, these networks ensure that the learned fields transform consistently under global translations and rotations.²⁴,²⁵ This combination of iterative transport and equivariant message passing has therefore become a standard design choice for 3D molecular generation.

However, this approach is computationally expensive. The primary bottleneck is the repeated evaluation of the equivariant architecture during sampling: diffusion samplers perform denoising or scoring at each noise level, while flow-matching samplers evaluate the velocity field at each integration step. When these fields are parameterized by an equivariant GNN over the ligand-pocket

‡ These authors contributed equally to this work.

ª Department of Pharmaceutical Sciences, Faculty of Life Sciences, University of Vienna, Josef-Holaubek-Platz 2, 1090 Vienna, Austria.

ᵇ Christian Doppler Laboratory for Molecular Informatics in the Biosciences, Department of Pharmaceutical Sciences, Faculty of Life Sciences, Josef-Holaubek-Platz 2, 1090 Vienna, Austria.

ᶜ Vienna Doctoral School of Pharmaceutical, Nutritional and Sport Sciences (PhaNuSpo), Josef-Holaubek-Platz 2, 1090 Vienna, Austria.

Journal Name, [year], [vol.], 1–40 | 1 system, each evaluation requires geometric message passing over many atom pairs. Thus, before a single molecule is produced, every atom may be processed by the full equivariant backbone dozens or hundreds of times. This repeated global evaluation is a major source of sampling latency. 26^{26}

In our previous work, 27^{27} we explored an alternative design for unconditional 3D molecular generation that avoids iterative global transport with an equivariant GNN backbone. The NEAT (Neighborhood-Guided, Efficient, Autoregressive Set Transformer) model constructs molecules autoregressively, adding one atom at a time. At each generation step, NEAT encodes the current partial molecule once using a set transformer. A linear classifier then predicts the atom type, and a lightweight flow-matching head predicts its 3D coordinates. Importantly, this coordinate-generation head does not require re-running a global equivariant GNN at every denoising or integration step. Consequently, generating an n-atom molecule requires only one context encoding per added atom, rather than repeatedly refining the entire molecular structure through many expensive equivariant backbone evaluations. This shift from iterative global transport to autoregressive local construction explains NEAT's substantial speed advantage while maintaining competitive unconditional generation quality. As an additional benefit, the autoregressive formulation supports molecule completion from prefixes, i.e., partial molecules, which is common in lead optimization scenarios. Diffusion and flow-matching models are not suitable for this task without modifications to the training or inference procedures.

In this work, we extend NEAT to condition molecular generation on protein pockets. Our main contributions are as follows:

  • We propose NEAT-POCKET, an autoregressive model for generating 3D molecules directly within protein-binding pockets. NEAT-POCKET achieves performance competitive with state-of-the-art diffusion- and flow-based approaches, while maintaining a substantial inference-time speed-up.

  • We establish a comprehensive benchmark of existing pocket-conditioned 3D molecular generation methods using a unified evaluation pipeline. This enables consistent comparison across models in terms of molecular validity, target compatibility, similarity to the training data, and sampling efficiency.

  • We show that NEAT-POCKET can generate molecules from arbitrary molecular prefixes without architectural changes, retraining, or task-specific modifications. This capability naturally supports fragment growing, scaffold decoration, and lead optimization workflows.

Overall, NEAT-POCKET provides a fast, flexible, and competitive framework for pocket-conditioned 3D molecular generation, making it a promising tool for structure-based hit generation and lead optimization.