arXiv:2611.24641cs.LGNov 2026

Manuscript Offprint

arXiv:2611.24641

Choosing the Right Representations: Task-Aware Fusion for Multimodal Materials Language Models

Huu Binh Ta, Alex Morehead, N. Benjamin Erichson, Ferdinando Fioretto, Sandeep Madireddy

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Multimodal language models for materials science rely on effective mechanisms for incorporating three-dimensional structural representations. MatterChat addresses this challenge using a large bridge module between a pretrained structural encoder and the LLM, together with a separate contrastive alignment stage. We instead ask whether this bridge can adaptively select and combine representations from multiple structural encoders according to the target property. We find that supervised and generative material encoders provide complementary information for property prediction. We found that, for Zatom-1, this information is not concentrated in the final layer. Instead, the most informative representations occur at different depths depending on the target property. This motivates Task-Conditioned Attention Fusion (TCAF), a lightweight attention-based bridge that uses task-conditioned latent queries to combine CHGNet features with intermediate Zatom-1 representations. The bridge is trained directly on downstream prediction tasks, allowing representation selection and material–language alignment to be learned jointly without separate contrastive pretraining. Across classification and regression tasks, TCAF outperforms MatterChat, with up to 47.8% lower RMSE, while using substantially fewer trainable parameters and halving the overall training time. Further experiments incorporating UMA-S demonstrate TCAF’s flexibility across encoder combinations, with the three-encoder configuration achieving a highest macro-average classification accuracy of 89.61%.

1 Introduction

In silico materials discovery has traditionally relied on high-fidelity computational methods such as density functional theory [1] and ab initio molecular dynamics [2]. While accurate, these methods are computationally expensive and difficult to scale across large chemical spaces [3]. Graph-based machine-learning interatomic potentials (MLIPs) [4, 5, 6] address this limitation by learning representations of local atomic environments (7) and have substantially accelerated material-property prediction. However, these models operate on atomic structures alone and cannot directly incorporate natural-language queries or scientific context [8].

Large language models (LLMs) offer a complementary way to interact with materials data through natural language [9, 10]. Most existing approaches represent materials using one-dimensional text formats, including chemical formulas [9], SMILES strings [10, 11, 12], textual descriptions [13], and crystallographic information files [14]. These representations can encode structural information, but processing them as token sequences does not provide the geometric inductive biases used by models designed explicitly for three-dimensional atomic environments. As a result, text-based models generally remain less accurate than dedicated graph models for quantitative property prediction [13].This motivates multimodal models that connect 3D material structures with LLMs.

MatterChat [3] takes an important step in this direction by combining material graphs with natural-language queries. It uses CHGNet [15] as a pretrained structural encoder and connects its atom-level representations to an LLM through a BLIP-2-style bridge [16]. The bridge consists of alternating self- and cross-attention layers and is trained in two stages: contrastive pretraining first aligns the structural and textual modalities, followed by supervised fine-tuning for downstream property prediction. While effective, this design introduces a large number of trainable parameters and requires a separate alignment stage. It also relies on a single structural encoder, although different encoders may provide complementary information for different material properties.

This raises a more general question: rather than committing to a single structural representation, can the bridge adaptively select and combine representations according to the target property? We investigate this question using two structurally different encoders: CHGNet, a supervised MLIP, and Zatom-1 [17], a general-purpose multimodal flow-matching model [18] for three-dimensional molecules and materials. Our analysis shows that the two encoders provide complementary information for property prediction. We also find that, for Zatom-1, useful information is not concentrated in the final layer. Different intermediate layers are most informative for different material properties, suggesting that a fixed representation from the generative encoder is unnecessarily restrictive.

These observations motivate Task-Conditioned Attention Fusion (TCAF). TCAF uses a lightweight attention-based bridge model based on Perceiver [19, 20] architecture to combine representations from CHGNet with intermediate representations from Zatom-1. The bridge operates through cross-attention [21], with latent queries conditioned on the target property using a mechanism inspired by prompt tuning [22]. These task-conditioned queries allow the bridge to change which encoder and which Zatom-1 layers it attends to for different material-property queries. Thus, instead of aligning each structural representation with language in advance, the bridge learns representation selection, fusion, and material-language alignment directly from the downstream training objective. Interestingly, this formulation also removes the need for a separate contrastive pretraining stage. The resulting model is trained in a single stage while using fewer trainable parameters than MatterChat. Across classification and regression tasks, TCAF improves predictive performance over MatterChat and reduces the overall training time by half. We further evaluate TCAF with encoder combinations incorporating UMA-S [23], demonstrating its flexibility in integrating additional structural representations.

The paper presents three key contributions:

  1. Task-conditioned representation fusion. We introduce TCAF, a single-stage framework with a lighter bridge model than the heavy two-stage MatterChat. TCAF additionally replaces static structural alignment with task-conditioned latent queries, allowing the model to dynamically route attention across supervised features, leading to a consistent improvement on all tasks.
  2. Analysis of generative structural representations. We show that property-relevant information in Zatom-1 is distributed across depth and that the most informative layers vary by material property. We further show that these representations complement those learned by CHGNet.
  3. Empirical performance and efficiency. TCAF achieves the highest classification accuracy across all evaluated tasks and the lowest RMSE on all three regression tasks, reducing regression RMSE by up to 47.8% while using at least 80% fewer trainable parameters and half the training time.

References (22)