Augmenting Molecular Language Models with Local n-gram Memory
Not on the map. Why?
Abstract (arXiv)
Transformer-based language models for SMILES strings suffer from a locality gap: standard character-level tokenization fragments chemically meaningful motifs, forcing models to repeatedly learn local syntax at the expense of long-range dependencies. To address this without disrupting standard tokenizers, we propose MolGram, which integrates a conditional n-gram memory module into molecular language models. MolGram maps local string patterns to learned embeddings via scalable hash lookups and dynamically injects this regional context into hidden states. Evaluations across three tasks, including unconditional molecule generation, forward reaction prediction, and single-step retrosynthesis, show that MolGram consistently improves performance. Crucially, our analyses demonstrate that MolGram outperforms baselines with 3× more parameters, establishing explicit local pattern memory as a highly efficient inductive bias.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 14 of its 31 references that are in the map. First posted on arXiv 10 Jun 2026.
Builds on
14 of 31 references.
References · 14
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,898
- 2016Xception: Deep Learning with Depthwise Separable Convolutionscited by 2,320
- 2019Root Mean Square Layer Normalizationcited by 1,425
- 2017Sigmoid-Weighted Linear Units for Neural Network Function Approximation in Reinforcement Learningcited by 935
- 2020ChemBERTa: Large-Scale Self-Supervised Pretraining for Molecular Property Predictioncited by 332
- 2018GuacaMol: Benchmarking Models for De Novo Molecular Designcited by 294
- 2018Molecular Sets (MOSES): A Benchmarking Platform for Molecular Generation Modelscited by 270
- 2018Molecular Transformer - A Model for Uncertainty-Calibrated Chemical Reaction Predictioncited by 225
- 2026Conditional Memory via Scalable Lookup: A New Axis of Sparsity for Large Language Modelscited by 78
- 2017SMILES Enumeration as Data Augmentation for Neural Network Modeling of Moleculescited by 58
- 2023Gotta be SAFE: A New Framework for Molecular Designcited by 45
Built on by
Citing papers per year: 2026: 1.
1 paper.