NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

CAST: Cross Attention based multimodal fusion of Structure and Text for materials property prediction

Jaewan Lee, Changyoung Park, Hongjun Yang, Sungbin Lim, Woohyung Lim, Sehui Han

TL;DR

CAST (Cross Attention-based multimodal fusion of Structure and Text) is a novel deep learning framework that predicts material properties by fusing crystal graph structures with textual descriptions at a fine-grained, atom-to-token level. By introducing a Masked Node Prediction pretraining strategy, CAST effectively captures both local atomic interactions and global structural symmetries, outperforming existing state-of-the-art models by up to 35.7% in mean absolute error (MAE).

What Problem Does This Paper Address?

Graph Neural Networks (GNNs) have become the standard tool for predicting material properties by representing crystal structures as graphs of atoms and bonds. However, GNNs suffer from a fundamental limitation: they excel at capturing local atomic interactions but struggle to grasp global structural characteristics, such as crystal symmetries, space groups, and long-range periodicity.

To complement this missing information, researchers have recently turned to multimodal learning—combining crystal graphs with automated text descriptions (e.g., generated by tools like robocrystallographer). Yet, existing frameworks like CrysMMNet and MultiMat rely on coarse-grained, material-level fusion (such as pooling and concatenating entire embeddings). This high-level blending fails to exploit the intricate, localized relationships between specific atoms in a crystal and the specific words describing them.

Methods

The authors introduce CAST, which shifts the multimodal fusion from the material level to a fine-grained atom-and-token level using cross-attention mechanisms.

Figure 1: Overview of the CAST framework. (a)Pretraining: Mask 50% of graph nodes and predict their element types via cross attention between node embeddings and text embeddings. (b)Finetuning: Replace classification head with a regression head to predict material properties using the aligned multimodal embeddings.

The architecture operates in two distinct stages:

  1. Masked Node Prediction (MNP) Pretraining: To force the model to align the structural and textual modalities, the authors randomly mask 50% of the nodes (atoms) in the crystal graph. The model uses a structure encoder (coGN) to generate node embeddings and a text encoder (MatSciBERT) to generate word token embeddings. A cross-attention module treats the node embeddings as queries and text tokens as keys and values, training the model to predict the missing element types based on textual context.
  2. Property Prediction Finetuning: The pretrained cross-attention layers are preserved, but the classification head is replaced with a regression head to predict specific material properties.

Datasets

The model was trained and evaluated using datasets derived from the Materials Project database, cleaned using standard MatBench filtering criteria. Textual descriptions were generated using the Robocrystallographer API.

The framework was benchmarked across four key material properties:

  • Total Energy ($E_{tot}$): 114.3k instances
  • Bandgap: 65.4k instances
  • Shear Modulus ($\log(G_{vrh})$): 9.4k instances
  • Bulk Modulus ($\log(K_{vrh})$): 9.4k instances

Key Insights and Ideas

  • Fine-Grained Fusion is Superior: Moving away from global vector concatenation to token-level cross-attention allows the model to map specific structural features to exact semantic phrases (e.g., linking a specific coordinate to a phrase like "edge-sharing octahedra").
  • Pretraining Prevents "Attention Collapse": Without MNP pretraining (referred to as CAST-base), the cross-attention maps show uniform, stripe-like patterns, meaning every node blindly attends to the same text tokens. Pretraining diversifies the attention maps, enabling distinct nodes to focus on different, relevant parts of the text.
Figure 2: Cross attention maps for test set crystal mp-1963. Top: CAST-base(w/o pretraining) showed uniform attention(stripe patterns) Bottom: CAST(w/ pretraining) exhibited more diverse attention across tokens, indicating stronger cross modal alignments. More examples can be seen in supplementary information Figure S5.
  • Text Encoders Beat Raw Descriptors: In an ablation study, the authors compared using a text encoder against using raw, vectorized descriptor tables (coGN-desc). The text encoder significantly outperformed the raw vectors. This is because language models preserve semantic context and handle categorical boundaries (like space groups) more effectively than arbitrary numerical vectorizations.

Key Results

CAST achieved substantial performance gains over both unimodal baselines (coGN, MatSciBERT) and multimodal baselines (CrysMMNet, MultiMat):

  • Overall Improvements: CAST achieved average relative MAE improvements ranging from 10.2% to 35.7% across the four target properties.
  • The Power of Architecture: Even without pretraining, the baseline version (CAST-base) achieved an average 3.2% reduction in MAE compared to the best existing baseline (CrysMMNet-LoRA), validating the strength of the token-level cross-attention design.
  • Bandgap Breakthrough: Bandgap prediction is notoriously difficult for multimodal models, often underperforming compared to pure GNNs. However, CAST's pretraining strategy alleviated this issue, yielding a 7.1% performance improvement over the unimodal coGN model.

Limitations and Future Work

Despite its success, the authors note several challenges for CAST:

  • Computational Complexity: The heavy reliance on large language models (MatSciBERT) and multi-layer cross-attention mechanisms introduces significant computational overhead, limiting scalability to massive datasets.
  • Token Length Constraints: The text encoder is limited to 512 tokens, which restricts its ability to process longer, more detailed material descriptions.
  • Ambiguity in Masking: The element-level masking strategy cannot distinguish between atoms of the same element type that occupy different local chemical environments within the same crystal.

Future work will focus on exploring more efficient fusion methods, integrating lightweight text encoders, and refining the masking strategy to account for local atomic environments.

Summary updated

BibTeX
@misc{lee2025cast,
  author = {Jaewan Lee and Changyoung Park and Hongjun Yang and Sungbin Lim and Woohyung Lim and Sehui Han},
  title = {{CAST: Cross Attention based multimodal fusion of Structure and Text for materials property prediction}},
  year = {2025},
  eprint = {2502.06836},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.06836},
}
Figure