Designing Ligated Nanoclusters with Flow Matching and Natural Language

Luca Schaufelberger, Aline Hartgers, Laura Mismetti, Rémi Schlama, Aman Govind Soni, Malte Franke, Edvin Fako, Marvin Alberts, Andreas Krause, Philippe Schwaller, Kjell Jorner

TL;DR

Ligated metal nanoclusters sit in an awkward middle ground between small molecules and periodic crystals, making them notoriously hard to model with standard AI tools. This paper introduces a complete inverse-design pipeline: a massive new dataset of 3.3 million nanoclusters, a chemistry-informed flow matching model that generates 500+ atom 3D structures from scratch, and a reinforcement-learning-tuned LLM that turns plain-English requests into novel, catalytically targeted nanocluster compositions.

What Problem Does This Paper Address?

Generative AI has gotten remarkably good at designing discrete molecules (like drugs) and periodic crystals (like battery materials). But ligated metal nanoclusters—tiny metallic cores of 3 to 55 atoms wrapped in organic ligands—refuse to fit neatly into either box.

Their metallic cores have delocalized bonding that standard molecular graphs can't capture, while their ligand shells depend on 3D binding sites that only emerge once the core is formed. Worse, the two components are coupled: ligands reshape the metal core, and the core dictates where ligands can attach. Existing computational methods either ignore the ligands altogether or rely on slow, iterative structure searches that scale poorly with cluster size. What has been missing is a large-scale dataset, a fast all-atom 3D generator, and a way to steer generation toward specific catalytic properties.

Methods

The authors tackle this with a three-part closed-loop framework:

Figure 1: Closed-loop inverse design of ligated nanoclusters. A natural-language request is converted into a candidate composition by a large language model (LLM) specifically trained for composition design. A flow-matching model then builds the corresponding 3D structure, which is relaxed with MACE and evaluated with g-xTB. The resulting properties provide the reward in an online GRPO loop that optimizes the LLM for nanocluster design.
  1. Chemistry-Informed Flow Matching: Standard 3D generative models initialize all atoms from a shapeless Gaussian cloud. Instead, the authors design a radial harmonic prior: metal atoms are sampled from a sphere scaled to the core size, while intact ligands are placed radially around it at roughly bonding distance, with their internal bonds modeled as springs. To train the model efficiently, they use an optimal transport alignment that respects nanocluster symmetries (Hungarian matching for interchangeable metal atoms and ligand centers of mass, plus Kabsch rotation).
  2. Closed-Loop LLM Optimization (SFT + GRPO): To go from natural language (e.g., "I want an Ag nanocluster with a Fermi d-band centre gap of 5.4 eV") to a chemical formula, they fine-tune GraniteChem (an 8B-parameter chemistry LLM) on request–composition pairs. They then optimize it with GRPO (Group Relative Policy Optimization).
  3. Physics-Based Reward: Each LLM-proposed composition is turned into a 3D structure by the flow matching model, relaxed with MACE-MH-1, and evaluated with g-xTB to compute its Fermi-referenced $d$-band center (a key descriptor for catalytic activity). Crucially, the reward combines property accuracy with a novelty multiplier (1.2x for unseen compositions, 0.8x for seen ones) so the LLM doesn't just memorize a few high-scoring training examples.

Datasets

To train the generative model, the authors built a dataset of 3,302,966 relaxed conformations spanning 583,472 diverse compositions—two orders of magnitude larger than the previous largest dataset (10,868 $\text{Au}_n(\text{PH}_3)_m$ clusters).

Dataset generation and composition

They paired metal cores (3–55 atoms) of 8 transition metals (Au, Ag, Cu, Pd, Pt, Ir, Rh, Ru) from the Quantum Cluster Database with 914 synthetically relevant monodentate phosphine ligands from the kraken database (1–28 ligands per cluster). Descriptors ($d$-band center and HOMO–LUMO gap) converged for 2.4 million of these structures using g-xTB.

Key Insights and Ideas

  • Hybrid representations matter: Treating a nanocluster as a pure point cloud loses ligand connectivity, while a pure molecular graph breaks down on the metallic core. Separating their priors—spherical Gaussian for the core, harmonic spring-network for the ligands—gives the flow matching model a massive head start.
  • Accuracy without novelty is a trap: When the LLM was trained with a property-only reward, it hit high accuracy but only produced 23.8% novel compositions, repeatedly falling back on known winners. Adding a simple multiplicative novelty bonus pushed novelty to 97.8% with minimal loss in accuracy.
  • Co-designing core and shell: Unlike the dataset's own generation workflow (which docks ligands onto rigid, predefined metal cores), the flow matching model generates both core and ligands simultaneously, capturing their mutual geometric interplay.

Key Results

  • Fast, Valid 3D Generation: The flow matching model achieves 99.4% chemical validity after MACE relaxation (97.5% before), even on massive clusters exceeding 500 atoms and 20+ ligands. Compared to the Covalent Field Theory (CFT) workflow used to build the dataset, it cuts the composition failure rate from 18.2% down to 0.3% and requires 33% fewer relaxation steps (125 vs. 186 median).
  • Property Distribution Fidelity: Generated ensembles closely match reference property distributions (e.g., Au $d$-band center MAE of 0.126 eV per composition).
  • Inverse Design Accuracy: On an Ag/Au design space, GRPO with the novelty-augmented reward drops the $d$-band center MAE from 0.254 eV (supervised fine-tuning) to 0.139 eV, with 87.8% of proposals landing within 0.25 eV of the target, 96.4% validity, and 100% adherence to user-specified metal/ligand constraints.

Limitations and Future Work

  • Ligand & Metal Scope: The dataset is currently restricted to monodentate phosphine ligands (one ligand type per cluster), and the closed-loop LLM experiments were only demonstrated on Ag and Au, even though the flow matching model supports all 8 metals.
  • Oracle & Stability Gaps: Property evaluation relies on semi-empirical g-xTB rather than full DFT, and the reward function does not yet explicitly check whether a proposed composition is thermodynamically stable or experimentally synthesizable.
  • Next Steps: Extending the pipeline to multidentate and non-phosphine ligands, incorporating solvent effects, coupling to higher-fidelity DFT, and experimentally validating the generated catalysts.

Summary updated

BibTeX
@inproceedings{schaufelberger2026designing,
  author = {Luca Schaufelberger and Aline Hartgers and Laura Mismetti and Rémi Schlama and Aman Govind Soni and Malte Franke and Edvin Fako and Marvin Alberts and Andreas Krause and Philippe Schwaller and Kjell Jorner},
  title = {{Designing Ligated Nanoclusters with Flow Matching and Natural Language}},
  booktitle = {AI4Science @ NeurIPS},
  year = {2026},
  url = {https://openreview.net/forum?id=J41Z4URmX0},
}
Figure