E(3)-equivariant graph neural network and Multimodal framework
The crystal encoder transforms 3D crystal structures into an embedded latent representation using an EGNN for the structural encodings26,27. It is implemented by message passing [Eq. (1)], feature aggregation/update [Eq. (2)], and coordinate update [Eq. (3)]. It is equivariant to translations, rotations/reflections, and node permutations28.
$${m}_{{ij}}={\varphi }_{e}\left({h}_{i}^{l},{h}_{j}^{l},{\left|\left|{x}_{i}^{l}-{x}_{j}^{l}\right|\right|}^{2},{a}_{{ij}}\right)$$
(1)
$${m}_{i}=\mathop{\sum }\limits_{j\ne i}{m}_{{ij}};{h}_{i}^{\left(l+1\right)}={\varphi }_{h}\left({h}_{i}^{l},{m}_{i}\right)$$
(2)
$${x}_{i}^{\left(l+1\right)}={x}_{i}^{l}+C{\cdot}\mathop{\sum }\limits_{j\ne i}\left({x}_{i}^{l}-{x}_{j}^{l}\right){{\cdot}}{\varphi}_{x}\left({m}_{{ij}}\right)$$
(3)
$${\,z}_{s}=\frac{1}{N}\mathop{\sum }\limits_{i=1}^{N}{h}_{i}^{\left(L\right)}\left({m}_{{ij}}\right)$$
(4)
Here \({x}_{i}^{l}\in {{\mathbb{R}}}^{n}\) are node coordinates, \({h}_{i}^{l}\in {{\mathbb{R}}}^{d}\) node features, \({a}_{{ij}}\) edge attributes; \({m}_{ij}\) the message (edge embedding) sent from node \(j\) to node \(i\), \({\varphi }_{e},{\varphi }_{x},{\varphi }_{h}\) multilayer perceptrons (MLPs), and \(C\) a normalization constant. Finally, Eq. (4) represents the global pooling operation where \({h}_{i}^{\left(L\right)}\) are the node features after the final EGNN layer L, N is the number of atoms in the unit cell, and \({z}_{s}\) is the resulting structural latent embedding.
The reconstruction fidelity of the autoencoder increases with the latent-space dimensionality, but so does the computational cost. As a result, a balance needs to be found. To assess this, we consider three latent dimensions, namely 64, 128, and 256, using the same number of training epochs on the Perovskite-5 dataset29 as a benchmark. The 128‑dimensional latent space emerges as the sweet spot, yielding a higher structure‑matching (SM) rate (see “Methods”) at roughly the same computational cost (see Supplementary Fig. S1). Therefore, from here on, we use a 128‑dimensional equivariant crystal autoencoder for multimodal alignment.
To validate the generalizability of our EGNN encoder, we also determine the reconstruction fidelity on two other diverse datasets: MP-2030 and Carbon-2431. Thanks to the EGNN integrated autoencoder architecture, MEIDNet outperforms the unimodal Fourier transformed crystal properties (FTCP)32 and crystal diffusion variational autoencoder (CDVAE)7 for all three datasets in the SM rate (Table 1).
Table 1 Comparison of the reconstruction performance of MEIDNet, FTCP32, and CDVAE7 for the Perovskite-529, MP-2030, and Carbon-2431 datasets
To address the latent search bottleneck in multimodality, we learn an aligned latent representation in which structural (crystal structure), electronic (bandgap), and thermodynamic (formation enthalpy) embeddings co-exist. As summarized in Fig. 1a, the structural information is encoded through our EGNN. In parallel, we define a property encoder to map the scalar material properties (bandgap and formation enthalpy) into the shared latent space. This encoder is implemented as a Multilayer Perceptron (MLP) that projects the input property onto a 128-dimensional embedding. This ensures that both structural and property representations possess the same dimensionality, facilitating their alignment via contrastive learning. MEIDNet uses a multimodal autoencoder architecture in which the crystal latent is decoded by an E(3)-equivariant decoder (SE3Decoder) to reconstruct lattice, species, coordinates, and auxiliary adjacency information (Supplementary Fig. S2). For detailed discussion see Supplementary Note: Multimodal Generative Framework: From Bi- to Tri-Modality.
Fig. 1: Workflow schematics of the MEIDNet framework for inverse materials design.
a The process starts with data loading, extracting crystal information and corresponding properties (here, the bandgap and formation enthalpy) which are fused. These two modalities are encoded and aligned into a joint latent space through contrastive learning, where iterative optimization takes place with respect to the target properties. The optimized latent representations are then decoded into crystal structures, which are then filtered using MLIPs and validated ab initio. b Different fusion approaches are considered: early fusion merges modality-specific features at input so a shared network learns a joint representation, whereas late fusion encodes modalities separately and combines their embeddings during alignment. c Generation of structures through navigation on the aligned latent space, where the y-axis represents the distance from the target properties.
For robust joint learning, we investigate the effect of early and late fusion approaches on multimodal alignment (Fig. 1b, more details are given in Supplementary Note: Early fusion and Late fusion). In early fusion, modality-specific features are merged at the input feature level, and a shared network learns a joint representation. In late fusion, each modality is encoded separately, and the resulting embeddings are combined at the alignment stage. Contrastive learning unifies structural and property encodings in a joint latent space, which facilitates interactions between distinct modalities and optimizes the alignment of their information19,20.
The alignment between modalities is achieved via contrastive training using the InfoNCE loss33,34
$${\mathcal{L}}_{\text{InfoNCE}}=-\frac{1}{B}\mathop{\sum}\limits_{k=1}^{B}\log \frac{\exp \left(\text{sim}\left({{\boldsymbol{z}}}_{{\boldsymbol{s}}}^{\left({\boldsymbol{k}}\right)},{{\boldsymbol{z}}}_{{\boldsymbol{p}}}^{\left({\boldsymbol{k}}\right)}\right)/\tau \right)}{\mathop{\sum}\nolimits_{l=1}^{B}\exp \left(\text{sim}\left({{\boldsymbol{z}}}_{{\boldsymbol{s}}}^{\left({\boldsymbol{k}}\right)},{{\boldsymbol{z}}}_{{\boldsymbol{p}}}^{\left({\boldsymbol{l}}\right)}\right)/\tau \right)}$$
(5)
where \(B\) is the batch size, and indices \((k)\) and (\(l)\) denote samples within the mini batch. \({z}_{s}^{\left(k\right)}\) and \({z}_{p}^{\left(k\right)}\) are the aligned structural and property embeddings for the k-th crystal, \({\text{sim}}\,\left(u,v\right)={u}^{T}v/\left(\left||u|\right|\left||v|\right|\right)\) denoting cosine similarity. τ is the temperature hyperparameter, and the denominator sums over all \(l\) samples in the batch to normalize the probability.
We implement an inverse design pipeline for target-led navigation in the aligned latent space. An iterative optimization is performed until the predicted properties converge to the targeted values for the generated crystal structure (Fig. 1c), detailed information is provided in Supplementary Note: Latent-space optimization objective, solver configuration, and robustness safeguards. Information. Thus, MEIDNet offers a more compact latent space than diffusion models, facilitating interpretability and navigation. In addition to this, it is scalable to numerous modalities toward a unified latent representation. While InfoNCE implicitly assumes unique positive pairs, the risk of false negatives arising from distinct structures with similar properties in the same batch is reduced in our framework by the small batch size (\(B=16\)), the use of a continuous multi-property representation rather than a single scalar, and the concurrent MSE-based property loss, which anchors the latent space to physically consistent targets. In addition, batch-size stress tests over \(B=16,\,64,\,128\) yielded comparable held-out latent property-coherence metrics (Supplementary Figs. S3 and S4).
Curriculum learning-enabled training and multimodal fusion strategies
In order to improve the learning efficiency, we employ a progressive weighting on the contrastive loss: its weight \({\alpha }_{t}\) is ramped up from 0 to 1 over the first two thirds of training epochs and then held at 1, improving reconstruction, latent alignment, and convergence35,36. The pacing follows an exponential schedule:
$${\alpha }_{t}=1-\exp (-\gamma t)$$
(6)
where \({t}\) is the epoch index and \(\gamma\) controls the ramp rate. This training strategy leads to 60-times faster learning with respect to traditional training (Fig. 2a, b). The 60-times faster learning refers to optimization/sample-efficiency at a fixed epoch budget, with Fig. 2b comparing curriculum learning (CL) and conventional training (CT) at the same number of training epochs. Thus, the reported advantage means higher structure-matching (SM) performance is reached within the same training budget, enabled by an epoch-dependent curriculum that progressively increases the contrastive-loss weight during training.
Fig. 2: Evaluation of multimodal machine learning model efficiency and joint reconstruction accuracy.
a Comparative evaluation of multimodal machine learning performance metrics on the test set: Performance analysis of late fusion (LF), early fusion (EF) and EF with curriculum learning (EF + CL). The performance metrics are through cosine similarity (CS), structure matching (SM), L2 distance (L2D) and R2 metrics, which highlights the advantages of EF + CL in enhancing latent alignment and reducing prediction errors. b 60-fold improvement in training efficiency with curriculum learning (CL) versus conventional training (CT), as evidenced by higher SM (%) at a fixed number of epochs. c Scatter plot demonstrating structure reconstruction and structure matching score prediction of (d) bandgap (Eg) and (e) formation enthalpy (Hf) for MEIDNet training.
We thoroughly investigate the effect of different fusion strategies on the latent space alignment: late fusion (LF), early fusion (EF), and early fusion with curriculum learning (EF + CL). We adopt three key metrics: cosine similarity (CS), SM rate, and L2 distance (L2D) on the scale of 0–1, 0–100% and 0–2, respectively. To determine the best strategy, we train MEIDNet on the Perovskite-5 dataset using 200 epochs. The results are illustrated in Fig. 2a. LF demonstrates a good SM performance (~66%) but performs badly in latent space alignment (CS ~ 0.31, L2D ~ 1.06). In contrast, EF displays a good alignment (CS ~ 0.89, L2D ~ 0.45), but a lower SM performance (~32%). This can likely be explained by the premature mixing of heterogeneous descriptors causing feature interference/over-smoothing, which yields a measurable drop versus LF, especially in reconstruction fidelity. EF + CL outperforms the previous two fusion strategies: it has a SM performance (~66%) similar to LF and a better alignment (CS ~ 0.91, L2D ~ 0.4) than EF. This promising performance is due to the initial stage of training CL giving more weight to learning the crystal structures, while their corresponding properties are scalars, which are easier to learn at a later stage37. Cosine similarity is used here only as an auxiliary latent-alignment diagnostic and not as a standalone success metric. Model performance is therefore evaluated primarily through task-grounded measures, including structure matching, conditional generation outcomes, stability/novelty screening, independent property prediction, and first-principles validation.
For production, MEIDNet is then trained on the same Perovskite-5 dataset but using 2000 epochs and adopting the EF + CL strategy. It demonstrates a high cosine similarity (CS ~ 0.97), which suggests that the shared latent space effectively captures the inherent relationships between structural motifs and their corresponding properties38,39. In addition to the cosine similarity, the latent representations exhibit an average L2 distance (L2D) of ~0.24, which indicates that the multimodal embeddings are closely aligned in the latent space40. To assess joint learning, we perform regression analyses showing that the jointly reconstructed SM score (Fig. 2c), bandgap (Eg) (Fig. 2d), and formation enthalpy (Hf) (Fig. 2e) track the ground truth with near-linear trends (R² ≈ 0.996). This consistency indicates that the shared representation captures cross-modal correlations and reduces prediction variance. Figure 2d, e demonstrates that the shared latent space preserves sufficient information to reconstruct bandgaps and formation enthalpy in the held-out test set from structure-conditioned embeddings in the Perovskite-5 dataset. These results should, therefore, be interpreted as evidence of joint reconstruction consistency and latent-space alignment. To complement this in-dataset reconstruction evidence, Supplementary Table S1 reports an external structure-only evaluation on 46 unseen perovskites using the frozen crystal encoder pathway without retraining or fine-tuning. Thereby providing a more direct assessment of transferable structure-property information beyond the Perovskite-5 training distribution.
Inverse design-led targeted structure generation
To demonstrate the inverse-design pipeline, we test MEIDNet for generating perovskite structures (details provided in “Methods”). To evaluate target-led generation, we perform conditional sampling in the low bandgap range (\({E}_{g} \in \left. \{0.8,1.0,1.2,1.5\}\,{\text {eV}} \right)\) under a fixed negative formation enthalpy of \({-25}\,\text{meV}\). For each target, a batch of 35 candidate materials are produced by the model. To reduce sensitivity to local minima in the non-convex latent landscape, we use a multi-start strategy in which 16 independently initialized latent vectors are optimized in parallel for each target, followed by validity, relaxation, and filtering steps to identify viable candidates (see Supplementary Note: Physical-Constraint Objective Used During Latent-Space Optimization for more details).
The thermodynamic stability of the generated candidates is first assessed using the eSEN-30M-OAM machine learning interatomic potentials (MLIP) developed by Facebook AI Research (FAIR)41 at Meta (Fig. 3a). One of the key metrics to quantify the success of generative models in materials science is the fraction of stable, unique, and novel structures, the so-called SUN rate. We adopt the same conventional thermodynamic-stability criterion used in previous generative models, which consider that structures with energy above hull (Ehull) below 100 meV, as calculated from the Materials Project database, are stable7,9,32,42. Out of 140 generated structures, 19 meet this criterion and are not present in the training dataset, yielding a SUN rate of approximately 13.6% (Fig. 3b, Supplementary Fig. S5, Tables S2 and S3). These findings are further confirmed by ab initio calculations using the Vienna Ab initio Simulation Package (VASP) (see “Methods”). We highlight that, although the model is trained mainly on unstable high Ef perovskites (Fig. 2e), it still reliably leads to thermodynamically stable structures.
Fig. 3: Analysis and validation of optimized structures generated by MEIDNet.
a Distribution of energies above the convex hull for generated structures. b Stable, unique and novel (SUN) rate indicating the potential of target led materials discovery with MEIDNet. c Crystal structure of SUN perovskite materials generated by MEIDNet at the low bandgap range and formation enthalpy −25 meV/atom (c) (i) YbScSe3 (ii) LaScSe3 (iii) BaHfSe3 (iv) KTaSe3.
This places our model at the forefront of inverse-design-based multimodal learning approaches with respect to its counterparts32,43. To the best of our knowledge, our model trained on multiple modalities is state-of-the-art in terms of the SUN rate (without using any filtration) for multimodal models for materials. It is even competitive with generative models trained on single modality including MatterGen ~39%9, CDVAE ≈ 18%7, FTCP < 5%32, and Matra-Genoa~16%42. A comparison table is provided in Supplementary Table S4. Besides SUN, we have also calculated the polymorphism-aware and distribution-level evaluation of crystal reconstruction; detailed information has been provided in Supplementary Note: Polymorphism-aware and distribution-level evaluation of crystal reconstruction44,45,46,47,48.
Turning to the validation of the target bandgap, we first use the CGCNN predictor and obtain an MAE of ~0.02 eV as detailed in the Information (Supplementary Fig. S6 and Table S2). This shows that the predictive capabilities of MEIDNet are comparable to those of the leading GNN models for predictions. The bandgaps are also computed at the PBE level (without +U or SOC). The calculated values are often lower than the requested target. This downward shift likely reflects (i) a modest training-set skew toward smaller gaps in the Perovskite-5 dataset, (ii) the expected low coverage in the training set for the novel perovskite compositions, and (iii) the fact that band structures were computed at the PBE level without +U.
In terms of the generated structures, we first would like to highlight four novel structures with a bandgap in the low range and very interesting properties (see Fig. 3c): (i) \({{\rm{YbScSe}}}_{3}\), (ii) \({{\rm{LaScSe}}}_{3}\), (iii) \({{\rm{BaHfSe}}}_{3}\) and (iv) \({{\rm{KTaSe}}}_{3}\). Their corresponding Ehull values are 0 meV, 91.88 meV, 66.78 meV, and 88.6 meV, respectively, when calculated with eSEN and 0 meV, 95.6 meV, 98.7 meV, and 0 meV, respectively, when calculated within DFT. Other promising perovskites found using our workflow are presented in the Supplementary Figs. S8, S9 and Table S3).
YbScSe3 shows broadly dispersive bands with a shallow indirect separation between the valence and conduction bands and a relatively smooth DOS around the gap (Fig. 4a). This suggests good baseline mobility and temperature-activated transport. Additionally, strain or epitaxial constraints may offer a potential pathway to tune gap directness or drive band inversion in these materials. LaScSe3 (Fig. 4b) exhibits a narrow, weakly dispersive conduction manifold just above the Fermi level, producing a sharp DOS onset and implying heavy electron effective masses in certain directions, whereas the valence edge is more dispersive and consistent with lighter holes. The indirect gap with a flat plus dispersive topology is attractive for further investigations in its thermoelectric properties and for strain tunable band edge engineering. The band structure of BaHfSe3 (Fig. 4c) indicates an indirect very small-gap semiconductor. The valence band structure near R implies light holes, equally the dispersive CBM at Γ signals light electrons. KTaSe3 (Fig. 4d) shows a metallic band structure, with finite DOS at Fermi energy and steep dispersions, pointing to intrinsically good conductivity. Thus, the results indicate that MEIDNet can generate physically plausible structures within the requested targets of low bandgap and thermodynamic stability.
Fig. 4: Band structure and density of states (DOS) plots of selected SUN materials generated by MEIDNet.
a YbScSe3 b LaScSe3 c BaHfSe3 d KTaSe3 at the low bandgap range target with the constant formation enthalpy of −25 meV/atom.
Our framework addresses key prerequisites by first identifying thermodynamically plausible candidates that satisfy the conventional energy-above-hull criterion against known phases. However, we must also confirm that the material’s crystal structure is dynamically stable, meaning that any small thermal vibration or perturbation would not be enough to cause it to spontaneously transform into a different structure.
Therefore, we probe the dynamical stability of the novel perovskites obtained from MEIDNet by computing phonon dispersions using Phonopy with the MACE-OMAT-0 model48. Our analysis reveals that these structures, despite their thermodynamic stability, exhibit soft modes in their phonon dispersions, indicating that they are dynamically unstable at 0 K. Although it is possible that these instabilities could be resolved at finite temperatures, we opt to provide a more immediate path to viable materials.
We utilize the VibroML toolkit (see “Methods”) to follow these soft modes, systematically mapping the potential energy surface to identify the most stable, corresponding polymorphs. The verified convex hull distances for each of the lowest energy polymorphs of VibroML treated \({{\rm{YbScSe}}}_{3}\), \({{\rm{LaScSe}}}_{3}\), \({{\rm{BaHfSe}}}_{3}\), \({{\rm{KTaSe}}}_{3}\) are 0 meV, 58 meV, 0 meV and 0 meV, respectively, indicating the reduction in energy as shown in Supplementary Table S3. The lower-energy polymorphs found show larger bandgaps than the original pristine perovskite structure, as shown in Fig. 5. This is expected, as these polymorphs exhibit a reduced electronic dimensionality compared to the 3D‑connected pristine phase. The conduction and valence bands of the low-energy polymorphs of YbScSe3, LaScSe3, and BaHfSe3 are generally less dispersive than their pristine perovskite counterparts, but given their lower energy and small bandgaps, these materials remain promising for further investigation for diverse optoelectronic applications. Compared to the metallic pristine KTaSe3 structure, the corresponding polymorph found presents a small direct bandgap of 0.68 eV with fairly dispersive conduction and valence bands at Γ, which makes this a very promising material for optoelectronic applications.
Fig. 5: Band structure of the VibroML-treated SUN materials at low bandgap energy.
a YbScSe3 b LaScSe3 c BaHfSe3 d KTaSe3.
Furthermore, the band structures are calculated for other MEIDNet-generated structures that pass the thermodynamic and dynamic stability screening (see Supplementary Table S3 and Fig. S10). These are found to show similar promising results, as presented in Supplementary Figs. S8 and S9. To facilitate further investigation and collaboration within the community, the CIFs of all the novel structures found with the MEIDNet and VibroML workflow are provided in our Support Data repository.