Openclatura: Verification-Guided Agentic Construction of Molecular Nomenclature Rules

Adrian Mirza, Kevin Maik Jablonka, Rostislav FedorovAI4Science @ NeurIPS 2026

TL;DR

If you ask an AI agent to write scientific software, how do you know it’s actually right? Instead of letting the AI grade its own homework, the authors of Openclatura paired an AI agent with an independent, executable chemistry verifier (OPSIN) to build a deterministic system that translates molecular structures into IUPAC names. The resulting rule-based engine beats state-of-the-art neural networks in accuracy across three major chemical datasets—while running on a single CPU core instead of an H100 GPU.

What Problem Does This Paper Address?

Language models are great at generating plausible-looking code and text, but "plausible" isn't good enough for science. When an AI agent builds a scientific tool, relying on the model to evaluate its own outputs is risky: it can silently violate domain constraints or fail outside its training distribution.

Chemical nomenclature—the art of turning a molecular graph into a systematic IUPAC name—is a perfect testbed for this challenge. A valid chemical name must encode exact connectivity, functional-group hierarchy, atom numbering, and 3D stereochemistry. Writing all these rules from the IUPAC Blue Book by hand is notoriously labor-intensive. On the other hand, deep learning models (like STOUT) learn structure-to-name mappings from examples, but they act as black boxes without transparent intermediate steps or explicit failure states. The authors wanted to know: can an AI agent construct a transparent, deterministic rule system if an independent domain verifier keeps it honest?

Methods

Openclatura separates generative reasoning (proposing rules) from acceptance (verifying them). During development, the system runs a verification-guided construction loop:

  1. An AI agent proposes or modifies a symbolic nomenclature rule.
  2. The evolving engine generates an IUPAC name for a test molecule.
  3. OPSIN—an independently developed, open-source name-to-structure parser—reads that name and reconstructs a molecular graph.
  4. A graph-equivalence check compares the reconstructed graph to the original molecule.
  5. Any mismatch produces a concrete counterexample with execution context, which the agent uses to revise the rules.

At inference time, Openclatura parses a SMILES string using RDKit, separates disconnected components, perceives functional groups, selects and numbers the parent structure, and recursively names substituents.

Figure 1: Openclatura names atorvastatin by selecting the carboxylic acid chain as the senior parent and recursively naming the remaining substituent hierarchy. First, the perceiver detects functional groups: fluoro, carboxylic acid, two alcohol groups, and an amide attached to a ring. The carboxylic acid group is the most senior group, so the chain attached to it becomes the senior parent. Numbering starts from the carboxylic acid carbon. The parent contains two hydroxy substituents and a pyrrole side chain. The pyrrole is itself parent to four substituents: two phenyl rings, an amide group, and a propane side chain. One phenyl ring has a fluoro substituent, and the amide group has a phenyl ligand.

Crucially, Openclatura doesn't just spit out a text string. It records atom- and bond-level execution traces showing why each name fragment was chosen. A companion tool, Robomoleculographer, translates these traces into human-readable chemical prose so scientists can audit the exact naming path.

Datasets

The frozen Openclatura engine was evaluated on held-out molecules from three standard datasets, using OPSIN round-trip recovery as the correctness criterion:

  • QM9 (133,885 molecules): Small, combinatorially sampled molecules (up to 9 heavy atoms containing C, N, O, F, H), including tricky structures like zwitterions.
  • PubChem (500,000 molecules): A diverse set of organic molecules curated to exclude multimolecular SMILES, charged species, and unparseable strings.
  • ZINC22 (500,000 molecules): A filtered subset featuring stereochemically complex molecules with up to 49 heavy atoms.

For speed benchmarking, the authors also compared Openclatura against STOUT v2.0 on 200 randomly selected molecules of varying sizes from PubChem.

Key Insights and Ideas

  • Counterexamples beat vibes: Grounding an agentic loop in an independent, executable verifier turns vague "model judgment" into concrete, debuggable counterexamples.
  • Deterministic rules can beat deep learning: Once built, a symbolic rule engine doesn't need massive compute. Openclatura outperforms neural baselines while remaining completely deterministic and inspectable.
  • Know what your verifier actually guarantees: The authors are refreshingly explicit about scope. Passing the OPSIN round-trip check proves structural validity—that the generated name reconstructs the right molecule. It does not guarantee that the name is the single "preferred" IUPAC name, nor does it catch correlated errors where both Openclatura and OPSIN share a blind spot.

Key Results

Openclatura outperformed the neural STOUT v2.0 baseline across all three datasets on structural validity:

  • QM9: 100% (Openclatura) vs. 92.6% (STOUT v2.0)
  • PubChem: 99.0 ± 0.0% vs. 97.9 ± 0.0%
  • ZINC22: 96.5 ± 0.1% vs. 92.3 ± 0.1%

The hardware and speed gap is just as stark. On 200 random PubChem molecules, STOUT v2.0 (running on an H100-96GB GPU) scaled linearly with molecule size due to autoregressive token generation. Openclatura (running on a single CPU core) was orders of magnitude faster with a nearly flat scaling curve.

Figure 2: Timing evaluation of Openclatura vs STOUT. Time evaluation of 200 randomly selected molecules from PubChem for STOUT vs Openclatura. STOUT was run on one H100-96B graphical processing unit (GPU), while Openclatura, a rule-based approach ran on a single central processing unit (CPU) core. STOUT time linearly scales as molecule size is increased reflecting the autoregres- sive way the names are generated.

Limitations and Future Work

Openclatura doesn't cover all of chemistry yet—many organometallic compounds remain unsupported, and stereochemistry can still be misassigned. Because multiple systematic names can describe the same molecule, future work will need to pair OPSIN's structural check with rules for preferred IUPAC names, diversify the independent parsers used for verification to avoid correlated errors, and actively sample counterexamples where verifier coverage is weakest.

Summary updated

BibTeX
@inproceedings{mirza2026openclatura,
  author = {Adrian Mirza and Kevin Maik Jablonka and Rostislav Fedorov},
  title = {{Openclatura: Verification-Guided Agentic Construction of Molecular Nomenclature Rules}},
  booktitle = {AI4Science @ NeurIPS},
  year = {2026},
  url = {https://openreview.net/forum?id=vqLHroANUw},
}
Figure