arXiv:2610.34549cs.LGOct 2026

Manuscript Offprint

arXiv:2610.34549

MOFjson: An Explicit Topological Representation of Metal-Organic Frameworks for Language Models

Anabel Yong, Matthew Hart, Philippe Schwaller

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

Abstract

Language models for metal-organic frameworks (MOFs) rely on formats that separate atomic geometry from structural topology, forcing models to choose between unstructured coordinate lists and non-spatial string identifiers[1]. We present MOFjson, the first representation separating structural data into a raw atomic layer with explicit bond shift vectors and a derived layer exposing secondary building units (metal nodes and organic linkers) and network topology. Additionally, we introduce a benchmark with crystal-derived ground truth across four question categories. Across four models, MOFjson beats all three baselines in every category: 100% vs. 18–47% on reaching a block's nearest periodic copy, 96% vs. 71% on crystal system characterisation, and 60% vs. 48% on metal node and organic linker coordination. Ablating shift labels drops accuracy to 12.7%, proving models read the periodic graph rather than the surface format. MOFjson gives language models structure to read rather than reconstruct, establishing a foundation for agentic tool workflows and constrained MOF generation.

1 Introduction

Metal-organic frameworks (MOFs) are porous crystalline materials assembled from metal nodes and organic linkers into periodic networks, with applications in gas storage, carbon capture, and catalysis[1, 2]. The same building blocks can be arranged into different nets with different pore geometries, so a MOF's function follows from its connectivity as much as from its composition [2]. A representation intended to support property prediction or design must convey both.

Large language models are increasingly applied to these tasks, and their accuracy depends on how the structure is serialised[3, 4]. For small molecules, replacing SMILES or IUPAC strings with an explicit JSON graph schema substantially improves an LLM's ability to translate, reason and generate structures[3]. Extending this to MOFs is not a direct transfer. A molecule is a finite graph, whereas a crystal is infinite, and its standard finite encoding, the labelled quotient graph, is one-to-one only once every edge carries an integer vector recording which periodic image it closes onto [5]. Whether a MOF representation states those labels or leaves them implicit determines what a model can recover from it. Existing MOF representations leave them implicit, and the data-driven MOF domain has been built on them regardless. MOFormer trains a transformer on MOFid strings[6], MOFGPT generates frameworks autoregressively from MOFid sequences[7], and continual pretraining on MOFid alongside CoRE MOF, QMOF, and hMOF improves property prediction when fine-tuning data is scarce[8–11]. Generative models rely on it further downstream, using MOFid to decide whether a sampled structure is valid, novel, and unique[12]. A descriptor designed for database search now serves as both model input and evaluation criterion.

We introduce MOFjson, a JSON schema that retains the atom and bond vocabulary of molecular graph schemas and adds two fields addressing the deficiencies above. An integer shift vector on every bond supplies the edge labels the quotient graph requires, so periodic connectivity is stated rather than inferred from coordinates. A second graph over the building blocks states metal node and organic linker assignment and net connectivity directly, so none are recomputed. Labelled quotient graphs[13]

Accepted to NeurIPS 2026 Workshop on ML4Molecules: Agentic Systems for Molecular Sciences.

are also the natural input for tasks beyond question answering, such as crystal structure prediction, where block-level representations already improve LLM reasoning over MOF assembly[4, 13–15].

References (35)