SMILES has to go : Representation of Molecules via Algebraic Data Types

📅 2025-01-23
📈 Citations: 0
✨ Influential: 0
📄 PDF
🤖 AI Summary
Existing molecular representations—such as SMILES and SELFIES—exhibit fundamental limitations in capturing quantum structural features, 3D geometry, electron delocalization, and syntactic validity, thereby impeding accurate reaction modeling and Bayesian inference. To address this, we introduce the first strongly typed molecular representation framework based on algebraic data types (ADTs), natively embedding quantum-chemical constructs—including subshells, atomic orbitals, coordination geometries, and delocalized electrons—into the type system, thereby guaranteeing syntactic correctness by construction. Implemented in Haskell and deeply integrated with the LazyPPL probabilistic programming library under a data–type separation paradigm, our framework enables type-driven reaction algebra and Bayesian molecular inference for the first time. The open-source library ensures zero invalid molecule generation, markedly improving model composability and inference efficiency. This work establishes a type-safe foundation for molecular programming languages.

Technology Category

Machine Learning: Probabilistic Circuits and Graphical ModelsReasoning under Uncertainty: Probabilistic ProgrammingKnowledge Representation and Reasoning: Description Logics

Application Category

Graph Algorithms and Modeling for the Web: Foundation models and LLMs for Web-related graphsSemantics and Knowledge: Data modeling to support human-machine intelligence, including LLMs agents, intelligent system behavior, explanations, and user-friendly interactionsSystems and Infrastructure for Web, Mobile and WoT: Applied ML and AI for Web-based mobile applications
📝 Abstract
This paper proposes a novel representation of molecules through Algebraic Data Types (ADTs). The representation has useful properties primarily by including type information. The representation uses the Dietz representation enabling representation of organometallics with multi-centre, multi-atom bonding and delocalised electrons, resonant structures and co-ordinate data of atoms. Furthermore, this representation goes further than any other in the literature, providing a natural data structure to represent shells, subshells and orbitals. Perks of the representation include it's natural inclusion in reaction descriptions and the ability to make molecules instances of algebraic groups. The representation is further motivated as providing guarantees for those wishing to do Bayesian machine learning (probabilistic programming) over molecular structures. A criticism of competing and commonly used representations such as SMILES and SELFIES is provided and solutions are proposed to the weaknesses of these along with an open source library, written in Haskell. An example of integrating the library with LazyPPL -- a lazy probabilistic programming library written in Haskell -- is provided, conceptually justifying the efficiency of the representation over string based representations and recent work such as SELFIES. This library distinguishes between the data and the type of data -- enabling a separation of concerns between interface and object. I solve three problems associated with the future of SELFIES, molecular programming language, 3D information, syntactic invalidity and Dietz representation.
Problem

Research questions and friction points this paper is trying to address.

Molecular Representation
Chemical Reaction Modeling
3D Molecular Structure
Innovation

Methods, ideas, or system contributions that make the work stand out.

Dietz Method Integration
Molecular Structure Representation
Mathematical Group Theory Application
🔎 Similar Papers
💼 Related Jobs
No related jobs found.
O
Oliver Goldstein
Oxford University, Department of Computer Science