Accurate, Interdisciplinary and Transparent Structure-property Understanding with Deep Native Structural Reasoning
By Chen Tang, Yizhou Wang, Jianyu Wu, Lintao Wang, Shixiang Tang, Pengze Li, Encheng Su, Jun Yao, Jiabei Xiao, Yuqi Shi, Jielan Li, Hongxia Hao, Zhangyang Gao, Fang Wu, Ben Fei, Xiangyu Yue, Pan Tan, Bozitao Zhong, Jinouwen Zhang, Aoran Wang, Yan Lu, Jiaheng Liu, Xinzhu Ma, Liang Hong, Mingyue Zheng, Phil Torr, Bowen Zhou, Wanli Ouyang, Lei Bai
"Discretizes 3D coordinates, topologies, and periodic connectivities into a unified structure-aware vocabulary, enabling interpretable reasoning across proteins, molecules, and crystals; achieves SOTA on 67 of 86 tasks."
Abstract
Structure-property relationships are foundational to biology, chemistry and materials science, where function, reactivity and physical response emerge from spatial, chemical and periodic organization. Mechanistically explaining these relationships requires interpreting structural evidence through scientific principles and physical constraints, from stereochemistry and bonding to symmetry, energetics and periodic order. However, applying artificial intelligence to this process presents a joint challenge of representation and reasoning: models must preserve domain-native structural information while showing how specific evidence supports predictions under these constraints. Here we introduce SciReasoner, a multimodal scientific foundation model for native structural reasoning across proteins, small molecules and inorganic crystals. SciReasoner discretizes coordinates, topologies and periodic connectivities into a unified structure-aware vocabulary, treating structural tokens as addressable evidence units during reasoning. In homology-controlled Gene Ontology prediction, SciReasoner improves Cellular Component annotation for low-homology and orphan-like proteins, increasing $F_{\max}$ from 0.42 to 0.55. In chemistry, it raises single-step retrosynthesis accuracy from 0.63 to 0.72 while generating fragment-level disconnection and precursor-verification traces. In materials science, its representations separate elemental and compound phases and resolve high- and low-band-gap regimes. Across 86 benchmarks, SciReasoner achieves state-of-the-art performance on 67 tasks. Double-blind expert evaluation rates its reasoning traces as preferred or at least comparable to those of a frontier large language model in 98% of cases. By making structure an inspectable substrate for reasoning under scientific constraints, SciReasoner connects accurate prediction with interpretable scientific inference.
Technical Analysis & Implementation
Overview§
SciReasoner is a multimodal scientific foundation model that performs native structural reasoning across proteins, small molecules, and inorganic crystals. The key innovation is a unified structure-aware vocabulary that discretizes domain-specific spatial, topological, and periodic information into addressable tokens, allowing the model to treat structural elements as evidence units during autoregressive reasoning.
Methodology§
Unified Structure-Aware Vocabulary§
The model defines a token set $\mathcal{V} = \mathcal{V}_{coord} \cup \mathcal{V}_{topo} \cup \mathcal{V}_{periodic}$. Structural coordinates are discretized via a learned vector quantization (VQ) over local neighborhoods, producing tokens from $\mathcal{V}_{coord}$. Topologies (bond graphs, connectivity) are encoded as sequences of edge tokens from $\mathcal{V}_{topo}$. For crystals, periodic boundary conditions are captured via offset tokens in $\mathcal{V}_{periodic}$. All tokens share an embedding space.
Model Architecture§
SciReasoner is a Transformer decoder that processes concatenated token sequences from different modalities. The attention mechanism uses relative positional biases to capture spatial relationships. The model is trained to autoregressively predict both property labels and intermediate reasoning traces in a chain-of-thought manner.
Training Objective§
Given a structural input $X$ (tokenized) and target property $y$, the model maximizes: $$\mathcal{L} = \mathbb{E}_{X,y} \left[ -\log p(y | X) - \lambda \sum_{t} \log p(r_t | X, r_{<t}) \right]$$ where $r_t$ are reasoning trace tokens. The first term is the property prediction loss, and the second encourages structured reasoning.
Implementation Details (PyTorch-style)§
import torch
import torch.nn as nn
class StructuralTokenizer:
def __init__(self, vocab_size, coord_vocab, topo_vocab, periodic_vocab):
self.emb = nn.Embedding(vocab_size, d_model)
def tokenize_molecule(self, coords, bonds, offsets=None):
# VQ on coordinates
coord_tokens = self.vq_coords(coords) # shape: (n_atoms,)
# Encode bond graph as sequence of edge tokens
topo_tokens = self.encode_bonds(bonds) # shape: (n_edges,)
tokens = torch.cat([coord_tokens, topo_tokens])
if offsets is not None:
periodic_tokens = self.encode_periodic(offsets)
tokens = torch.cat([tokens, periodic_tokens])
return tokens
class SciReasoner(nn.Module):
def __init__(self, vocab_size, d_model=768, n_layers=12):
super().__init__()
self.tokenizer = StructuralTokenizer(vocab_size, ...)
self.transformer = nn.TransformerDecoder(
nn.TransformerDecoderLayer(d_model, nhead=12), n_layers)
self.output_head = nn.Linear(d_model, vocab_size)
def forward(self, tokens, mask=None):
x = self.tokenizer.emb(tokens)
x = self.transformer(x, memory=x, tgt_mask=mask)
logits = self.output_head(x)
return logitsKey Results§
- Gene Ontology prediction: increases Cellular Component $F_{\max}$ from 0.42 to 0.55 for low-homology proteins.
- Retrosynthesis: single-step accuracy from 0.63 to 0.72 with interpretable disconnection traces.
- Materials: separates elemental/compound phases and band-gap regimes.
- Overall: SOTA on 67/86 benchmarks; expert evaluation prefers reasoning traces over frontier LLM in 98% of cases.
Significance§
By making structural tokens inspectable, SciReasoner bridges accurate prediction with interpretable scientific inference, enabling verification and discovery of structure-property mechanisms.
Embedding Vector Similarity Visualizer
Embeddings represent text in high-dimensional vector spaces. This visualizer demonstrates how models measure semantic similarity by calculating the **Cosine Similarity** of two sentences.
Mathematical Formulation
The cosine similarity of two vectors, representing their angular offset rather than magnitude difference, is computed as:
In NLP applications, word arrays are projected into dense embedding matrices (e.g. 1536 dimensions). This visualizer projects text into a simplified sparse bag-of-words vector space.