potentialpaper

Learning the Graph Language of Molecules: Grammar Tokenization for Chemical LLMs

Keep the title, authors and abstract in paper.json

potentialpaper · 2026-11-23 19:25 UTC · d6cf6455e82a ·

.potentialpaper/metadata.json modified

+++ b/.potentialpaper/metadata.json
@@ -1,19 +1,5 @@
{
- "layout": 5,
- "identifiers": [
- {
- "scheme": "openreview",
- "value": "oGqpdmXDQW"
- }
- ],
- "title": "Learning the Graph Language of Molecules: Grammar Tokenization for Chemical LLMs",
- "authors": [],
- "abstract": "Large language models (LLMs) have been explored for integrating molecular graphs, but joint autoregressive modeling of text and molecules remains challenging. A key barrier is the lack of principled molecular graph tokenizers (MGTs): string representations like SMILES rely on brittle syntax and canonicalization, limiting robustness, flexibility, and interpretability. We introduce AlphaGrammar, a neural-symbolic MGT that rewrites molecular graphs as linear derivations over a formal graph grammar with theoretical guarantees. Training optimizes the parameters of a potential function for grammar construction, and inference amortizes the cost of parsing during tokenization. We then introduce Gramole, a multimodal LLM built on AlphaGrammar, which interleaves text and molecules as rule sequences without the need for modality-specific adapters. Gramole offers $100$\\% validity via type-constrained decoding, expressivity by sampling high-diversity molecular sets, transferability by improving FDA drugs' predicted properties on all six endpoints under an independent property predictor (vs. four for the strongest baseline), with edits that stay $1.9\\times$ closer to the parent drug, controllability using natural language interfaces, and synthesizability by achieving $1.3\\times$ drug and $3.1\\times$ material retrosynthesis success rate of the best multimodal LLM baseline at matched Qwen3-8B backbone. AlphaGrammar autonomously acquires rules that recapitulate known functional groups, offering a layer of interpretability absent in prior MGTs. We benchmark Gramole across $8$ diverse tasks in the design-make-test-analysis (DMTA) cycle and probe AlphaGrammar's mechanism in $4$ quantitative and qualitative case studies.",
- "year": 2027,
- "venue": "ICLR 2027 (under review)",
- "source": "openreview",
- "license": {
- "metadata": "CC0-1.0",
- "abstract": "CC0-1.0"
- }
+ "layout": 6,
+ "kind": "paper",
+ "key": "b0335939-2a15-4dfb-8794-598e3bcde811"
}

paper.json added

+++ b/paper.json
@@ -0,0 +1,9 @@
+{
+ "title": "Learning the Graph Language of Molecules: Grammar Tokenization for Chemical LLMs",
+ "authors": [],
+ "abstract": "Large language models (LLMs) have been explored for integrating molecular graphs, but joint autoregressive modeling of text and molecules remains challenging. A key barrier is the lack of principled molecular graph tokenizers (MGTs): string representations like SMILES rely on brittle syntax and canonicalization, limiting robustness, flexibility, and interpretability. We introduce AlphaGrammar, a neural-symbolic MGT that rewrites molecular graphs as linear derivations over a formal graph grammar with theoretical guarantees. Training optimizes the parameters of a potential function for grammar construction, and inference amortizes the cost of parsing during tokenization. We then introduce Gramole, a multimodal LLM built on AlphaGrammar, which interleaves text and molecules as rule sequences without the need for modality-specific adapters. Gramole offers $100$\\% validity via type-constrained decoding, expressivity by sampling high-diversity molecular sets, transferability by improving FDA drugs' predicted properties on all six endpoints under an independent property predictor (vs. four for the strongest baseline), with edits that stay $1.9\\times$ closer to the parent drug, controllability using natural language interfaces, and synthesizability by achieving $1.3\\times$ drug and $3.1\\times$ material retrosynthesis success rate of the best multimodal LLM baseline at matched Qwen3-8B backbone. AlphaGrammar autonomously acquires rules that recapitulate known functional groups, offering a layer of interpretability absent in prior MGTs. We benchmark Gramole across $8$ diverse tasks in the design-make-test-analysis (DMTA) cycle and probe AlphaGrammar's mechanism in $4$ quantitative and qualitative case studies.",
+ "license": {
+ "metadata": "CC0-1.0",
+ "abstract": "CC0-1.0"
+ }
+}