Skip to main content

Thank you for visiting nature.com. You are using a browser version with limited support for CSS. To obtain the best experience, we recommend you use a more up to date browser (or turn off compatibility mode in Internet Explorer). In the meantime, to ensure continued support, we are displaying the site without styles and JavaScript.

Advertisement

npj Computational Materials
  • View all journals
  • Search
  • My Account Login
  • Content Explore content
  • About the journal
  • Publish with us
  • Sign up for alerts
  • RSS feed
  1. nature
  2. npj computational materials
  3. articles
  4. article
Deep learning generative model for conditional crystal structure prediction of sodium amide
Download PDF
Download PDF
  • Article
  • Open access
  • Published: 20 February 2026

Deep learning generative model for conditional crystal structure prediction of sodium amide

  • Rongfeng Guan1,
  • Ang Liu1 &
  • Yang Song1 

npj Computational Materials , Article number:  (2026) Cite this article

We are providing an unedited version of this manuscript to give early access to its findings. Before final publication, the manuscript will undergo further editing. Please note there may be errors present which affect the content, and all legal disclaimers apply.

Subjects

  • Chemistry
  • Materials science
  • Physics

Abstract

Understanding the high-pressure behavior of sodium amide (NaNH2) is essential for its applications in hydrogen storage and chemical synthesis. Conventional structure prediction methods often struggle to accurately capture its pressure-induced phase transitions due to the complexity of its potential energy surface, which arises from strong ionic interactions, large unit cell size, and significant atomic rearrangements under compression. Here we introduce an experimental-informed deep learning generative framework for conditional crystal structure determination in NaNH2 under crystallographic constraints. The framework conditions on experimentally indexed lattice parameters and candidate space-group symmetry represents each structure using a direct-space asymmetric unit (DAU), and applies energy-guided diffusion sampling to generate low-enthalpy candidates. Applied to NaNH2, the workflow successfully identifies the high-pressure γ-phase as a P21/c structure (Z = 16, 64 atoms), which is validated by synchrotron X-ray diffraction and remains stable up to 14.0 GPa. Charge-density analysis and atomic rearrangement under compression elucidate the mechanisms driving the phase transitions and rationalize the stability of the γ-phase under high pressure. Overall, this work demonstrates a general strategy for resolving experimentally observed but structurally unsolved phases in complex ionic materials when lattice metrics and symmetry constraints are available.

Similar content being viewed by others

Deep learning generative model for crystal structure prediction

Article Open access 12 November 2024

Sodium’s elusive tI50 phase predicted to be a body-centered tetragonal electride

Article Open access 06 June 2025

Novel inorganic crystal structures predicted using autonomous simulation agents

Article Open access 14 June 2022

Data availability

The data supporting the findings of this study are available within the Article and Supplementary Information; additional data are available from the corresponding author upon reasonable request.

Code availability

The codes used in this paper are available from the corresponding author upon reasonable request.

References

  1. Prabhukhot, P. R., Wagh, M. M. & Gangal, A. C. A review on solid state hydrogen storage material. Adv. Energy Power 4, 11–22 (2016).

    Google Scholar 

  2. Lee, S.-Y. et al. Recent progress using solid-state materials for hydrogen storage: a short review. Processes 10, 304 (2022).

    Google Scholar 

  3. Xu, Y., Zhou, Y., Li, Y. & Ding, Z. Research progress and application prospects of solid-state hydrogen storage technology. Molecules 29, 1767 (2024).

    Google Scholar 

  4. Yvon, K. & Bertheville, B. Magnesium based ternary metal hydrides containing alkali and alkaline-earth elements. J. Alloys Compd. 425, 101–108 (2006).

    Google Scholar 

  5. George, L. & Saxena, S. K. Structural stability of metal hydrides, alanates and borohydrides of alkali and alkali-earth elements: A review. Int. J. Hydrog. Energy 35, 5454–5470 (2010).

    Google Scholar 

  6. He, T., Cao, H. & Chen, P. The roles of alkali/alkaline earth metals in the materials design and development for hydrogen storage. Acc. Mater. Res. 2, 726–738 (2021).

    Google Scholar 

  7. Arellano, L. G. et al. Hydrogen storage capacities of alkali and alkaline-earth metal atoms on SiC monolayer: a first-principles study. Int. J. Hydrog. Energy 46, 20266–20279 (2021).

    Google Scholar 

  8. Wang, J., Li, H.-W. & Chen, P. Amides and borohydrides for high-capacity solid-state hydrogen storage—materials design and kinetic improvements. MRS Bull 38, 480–487 (2013).

    Google Scholar 

  9. Garroni, S. et al. Recent progress and new perspectives on metal amide and imide systems for solid-state hydrogen storage. Energies 11, 1027 (2018).

    Google Scholar 

  10. Milanese, C. et al. Solid state hydrogen storage in alanates and alanate-based compounds: A review. Metals 8, 567 (2018).

    Google Scholar 

  11. Zhao, L. et al. Enhanced hydrogen storage of alanates: Recent progress and future perspectives. Prog. Nat. Sci. 31, 165–179 (2021).

    Google Scholar 

  12. Liu, J. et al. Recent advance of metal borohydrides for hydrogen storage. Front. Chem. 10, 945208 (2022).

    Google Scholar 

  13. Ichikawa, T. & Isobe, S. The structural properties of amides and imides as hydrogen storage materials. Z. Kristallogr. 223, 660–665 (2008).

    Google Scholar 

  14. Xiong, Z., Hu, J., Wu, G., Liu, Y. & Chen, P. Large amount of hydrogen desorption and stepwise phase transition in the chemical reaction of NaNH2 and LiAlH4. Catal. Today 120, 287–291 (2007).

    Google Scholar 

  15. Chua, Y. S., Wu, G., Xiong, Z. & Chen, P. Investigations on the solid state interaction between LiAlH4 and NaNH2. J. Solid State Chem. 183, 2040–2044 (2010).

    Google Scholar 

  16. Sheppard, D. A., Paskevicius, M. & Buckley, C. E. Hydrogen desorption from the NaNH2−MgH2 system. J. Phys. Chem. C 115, 8407–8413 (2011).

    Google Scholar 

  17. Milanović, I. et al. Improving of hydrogen desorption kinetics of MgH2 by NaNH2 addition: Interplay between microstructure and chemical reaction. Int. J. Hydrog. Energy 47, 29858–29865 (2022).

    Google Scholar 

  18. Zhang, Y. & Tian, Q. The reactions in LiBH4–NaNH2 hydrogen storage system. Int. J. Hydrog. Energy 36, 9733–9742 (2011).

    Google Scholar 

  19. Nagib, M., Kistrup, H. & Jacobs, H. Neutron diffraction by sodiumdeuteroamide. NaND2. Atomkernenergie 26, 87–90 (1975).

    Google Scholar 

  20. Song, Y. New perspectives on potential hydrogen storage materials using high pressure. Phys. Chem. Chem. Phys. 15, 14524–14547 (2013).

    Google Scholar 

  21. Duan, D. et al. Structure and superconductivity of hydrides at high pressures. Natl. Sci. Rev. 4, 121–135 (2017).

    Google Scholar 

  22. Drozdov, A. et al. Superconductivity at 250 K in lanthanum hydride under high pressures. Nature 569, 528–531 (2019).

    Google Scholar 

  23. Pickard, C. J., Errea, I. & Eremets, M. I. Superconducting hydrides under pressure. Annu. Rev. Condens. Matter Phys. 11, 57–76 (2020).

    Google Scholar 

  24. Guan, R., Wang, P., Song, Y. & Staroverov, V. N. Pressure-induced polymorphic transformations of ethylenediamine bisborane. J. Phys. Chem. C 125, 18614–18622 (2021).

    Google Scholar 

  25. Guan, R., Wang, P., Ji, Y., Li, Y. & Song, Y. Structural stability, dihydrogen bonding, and pressure-induced polymorphic transformations in hydrazine borane. Phys. Chem. Chem. Phys. 25, 21860–21867 (2023).

    Google Scholar 

  26. Chen, L.-C. et al. Synthesis and superconductivity in yttrium-cerium hydrides at high pressures. Nat. Commun. 15, 1809 (2024).

    Google Scholar 

  27. Guan, R. et al. Pressure mediated phase transition and dihydrogen bonding formation in trimethylamine borane. J. Mater. Chem. C 12, 14833–14843 (2024).

    Google Scholar 

  28. Liu, A. & Song, Y. In situ high-pressure study of sodium amide by Raman and infrared spectroscopies. J. Phys. Chem. B 115, 7–13 (2011).

    Google Scholar 

  29. Huang, Y. et al. Structural transitions in NaNH2 via recrystallization under high pressure. Chin. Phys. B 28, 096402 (2019).

    Google Scholar 

  30. Zhong, Y., Zhou, H.-Y., Hu, C.-H., Wang, D.-H. & Oganov, A. R. Theoretical studies of high-pressure phases, electronic structure, and vibrational properties of NaNH2. J. Phys. Chem. C 116, 8387–8393 (2012).

    Google Scholar 

  31. Oganov, A. R. & Glass, C. W. Crystal structure prediction using ab initio evolutionary techniques: Principles and applications. J. Chem. Phys. 124, 244704 (2006).

    Google Scholar 

  32. Oganov, A. R., Lyakhov, A. O. & Valle, M. How Evolutionary Crystal Structure Prediction Works–and Why. Acc. Chem. Res. 44, 227–237 (2011).

    Google Scholar 

  33. Ryan, K., Lengyel, J. & Shatruk, M. Crystal structure prediction via deep learning. J. Am. Chem. Soc. 140, 10158–10168 (2018).

    Google Scholar 

  34. Podryabinkin, E. V., Tikhonov, E. V., Shapeev, A. V. & Oganov, A. R. Accelerating crystal structure prediction by machine-learning interatomic potentials with active learning. Phys. Rev. B 99, 064114 (2019).

    Google Scholar 

  35. Yamashita, T. et al. CrySPY: a crystal structure prediction tool accelerated by machine learning. Sci. Technol. Adv. Mater. 1, 87–97 (2021).

    Google Scholar 

  36. Wengert, S., Csányi, G., Reuter, K. & Margraf, J. T. Data-efficient machine learning for molecular crystal structure prediction. Chem. Sci. 12, 4536–4546 (2021).

    Google Scholar 

  37. Chen, W.-C., Schmidt, J. N., Yan, D., Vohra, Y. K. & Chen, C.-C. Machine learning and evolutionary prediction of superhard BCN compounds. npj Comput. Mater. 7, 114 (2021).

  38. Cheng, G., Gong, X.-G. & Yin, W.-J. Crystal structure prediction by combining graph network and optimization algorithm. Nat. Commun. 13, 1492 (2022).

    Google Scholar 

  39. Lee, B. D. et al. Powder x-ray diffraction pattern is all you need for machine-learning-based symmetry identification and property prediction. Adv. Intell. Syst. 4, 2200042 (2022).

    Google Scholar 

  40. Li, C.-N., Liang, H.-P., Zhang, X., Lin, Z. & Wei, S.-H. Graph deep learning accelerated efficient crystal structure search and feature extraction. npj Comput. Mater. 9, 176 (2023).

  41. Wang, J. et al. MAGUS: machine learning and graph theory assisted universal structure searcher. Natl. Sci. Rev. 10, nwad128 (2023).

    Google Scholar 

  42. Luo, X. et al. Deep learning generative model for crystal structure prediction. npj Comput. Mater. 10, 254 (2024).

  43. Chang, L. et al. Shotgun crystal structure prediction using machine-learned formation energies. npj Comput. Mater. 10, 298 (2024).

  44. Riesel, E. A. et al. Crystal structure determination from powder diffraction patterns with generative machine learning. J. Am. Chem. Soc. 146, 30340–30348 (2024).

    Google Scholar 

  45. Chen, L. et al. Crystal structure assignment for unknown compounds from x-ray diffraction patterns with deep learning. J. Am. Chem. Soc. 146, 8098–8109 (2024).

    Google Scholar 

  46. Zhou, P. et al. Machine Learning in Solid-State Hydrogen Storage Materials: Challenges and Perspectives. Adv. Mater. 37, 2413430 (2025).

    Google Scholar 

  47. Kingma, D. P. & Welling, M. Auto-encoding variational Bayes. Preprint at https://arxiv.org/abs/1312.6114 (2014)

  48. Goodfellow, I. J. et al. Generative adversarial nets. Adv. Neural Inf. Process. Syst. 27 (2014).

  49. Sohl-Dickstein, J., Weiss, E., Maheswaranathan, N. & Ganguli, S. Deep unsupervised learning using nonequilibrium thermodynamics. In International Conference on Machine Learning, 2256–2265 (PMLR, 2015).

  50. Kelvinius, F. E. et al. WyckoffDiff--A Generative Diffusion Model for Crystal Symmetry. arXiv preprint arXiv:2502.06485 (2025).

  51. Levy, D. et al. SymmCD: Symmetry-Preserving crystal generation with diffusion models. arXiv preprint arXiv:2502.03638 (2025).

  52. Pickard, C. J. & Needs, R. High-pressure phases of silane. Phys. Rev. Lett. 97, 045504 (2006).

    Google Scholar 

  53. Pickard, C. J. & Needs, R. Ab initio random structure searching. J. Phys.: Condens. Matter 23, 053201 (2011).

    Google Scholar 

  54. Boultif, A. & Louër, D. Indexing of powder diffraction patterns for low-symmetry lattices by the successive dichotomy method. J. Appl. Crystallogr. 24, 987–993 (1991).

    Google Scholar 

  55. Boultif, A. & Louër, D. Powder pattern indexing with the dichotomy method. J. Appl. Crystallogr. 37, 724–731 (2004).

    Google Scholar 

  56. Ong, S. P. et al. Python Materials Genomics (pymatgen): A robust, open-source python library for materials analysis. Comput. Mater. Sci. 68, 314–319 (2013).

    Google Scholar 

  57. Clark, S. J. et al. First principles methods using CASTEP. Z. Kristallogr. Cryst. Mater. 220, 567–570 (2005).

    Google Scholar 

  58. Ho, J., Jain, A. & Abbeel, P. Denoising diffusion probabilistic models. Adv. Neural Inf. Process. Syst. 33, 6840–6851 (2020).

    Google Scholar 

  59. Kingma, D. P. & Ba, J. Adam : A method for stochastic optimization. In Proc. International Conference on Learning Representations (ICLR, 2015).

  60. Togo, A., Shinohara, K. & Tanaka, I. Spglib: a software library for crystal symmetry search. Sci. Technol. Adv. Mater. Meth. 4, 2384822 (2024).

  61. Prescher, C. & Prakapenka, V. B. DIOPTAS: a program for reduction of two-dimensional X-ray diffraction data and data exploration. High Press. Res. 35, 223–230 (2015).

    Google Scholar 

  62. Hammersley, A. FIT2D: a multi-purpose data reduction, analysis and visualization program. J. Appl. Crystallogr. 49, 646–652 (2016).

    Google Scholar 

  63. Toby, B. H. & Von Dreele, R. B. GSAS-II: the genesis of a modern open-source all purpose crystallography software package. J. Appl. Crystallogr. 46, 544–549 (2013).

    Google Scholar 

  64. Perdew, J. P., Burke, K. & Ernzerhof, M. Generalized gradient approximation made simple. Phys. Rev. Lett. 77, 3865 (1996).

    Google Scholar 

  65. Vanderbilt, D. Soft self-consistent pseudopotentials in a generalized eigenvalue formalism. Phys. Rev. B 41, 7892 (1990).

    Google Scholar 

  66. Monkhorst, H. J. & Pack, J. D. Special points for Brillouin-zone integrations. Phys. Rev. B 13, 5188 (1976).

    Google Scholar 

  67. Momma, K. & Izumi, F. VESTA3 for three-dimensional visualization of crystal, volumetric and morphology data. J. Appl. Crystallogr. 44, 1272–1276 (2011).

    Google Scholar 

Download references

Acknowledgements

This work was supported by a Discovery Grant from the Natural Science and Engineering Research Council of Canada, and Defense Research and Development Canada under contract No. W7702-216248. The high-pressure experiments were partially performed at HPCAT (Sector 16), Advanced Photon Source (APS), Argonne National Laboratory. HPCAT operations are supported by the DOE-NNSA’s Office of Experimental Sciences. The Advanced Photon Source is a U.S. DOE Office of Science User Facility operated for the DOE by Argonne National Laboratory under Contract No. DE-AC02-06CH11357. The calculations were partially supported by the facilities of the Shared Hierarchical Academic Research Computing Network (SHARCNET: www.sharcnet.ca) and Compute/Calcul Canada. R.G. thanks Dr. D. Zhao for helpful discussions and suggestions.

Author information

Authors and Affiliations

  1. Department of Chemistry, Western University, London, Ontario, Canada

    Rongfeng Guan, Ang Liu & Yang Song

Authors
  1. Rongfeng Guan
    View author publications

    Search author on:PubMed Google Scholar

  2. Ang Liu
    View author publications

    Search author on:PubMed Google Scholar

  3. Yang Song
    View author publications

    Search author on:PubMed Google Scholar

Contributions

Y.S. designed and supervised the project. A.L. performed the high-pressure experiments. R. G. performed the calculations and analyzed the results. R.G. and Y.S. wrote the manuscript.

Corresponding author

Correspondence to Yang Song.

Ethics declarations

Competing interests

The authors declare no competing interests.

Additional information

Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Supplementary information

Supplementary Information

Rights and permissions

Open Access This article is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License, which permits any non-commercial use, sharing, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if you modified the licensed material. You do not have permission under this licence to share adapted material derived from this article or parts of it. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Guan, R., Liu, A. & Song, Y. Deep learning generative model for conditional crystal structure prediction of sodium amide. npj Comput Mater (2026). https://doi.org/10.1038/s41524-026-01994-2

Download citation

  • Received: 11 July 2025

  • Accepted: 04 February 2026

  • Published: 20 February 2026

  • DOI: https://doi.org/10.1038/s41524-026-01994-2

Share this article

Anyone you share the following link with will be able to read this content:

Sorry, a shareable link is not currently available for this article.

Provided by the Springer Nature SharedIt content-sharing initiative

Download PDF

Advertisement

Explore content

  • Research articles
  • Reviews & Analysis
  • News & Comment
  • Collections
  • Follow us on X
  • Sign up for alerts
  • RSS feed

About the journal

  • Aims & Scope
  • Content types
  • Journal Information
  • Open Access
  • About the Editors
  • Contact
  • Editorial policies
  • Journal Metrics
  • About the partner

Publish with us

  • For Authors and Referees
  • Language editing services
  • Open access funding
  • Submit manuscript

Search

Advanced search

Quick links

  • Explore articles by subject
  • Find a job
  • Guide to authors
  • Editorial policies

npj Computational Materials (npj Comput Mater)

ISSN 2057-3960 (online)

nature.com sitemap

About Nature Portfolio

  • About us
  • Press releases
  • Press office
  • Contact us

Discover content

  • Journals A-Z
  • Articles by subject
  • protocols.io
  • Nature Index

Publishing policies

  • Nature portfolio policies
  • Open access

Author & Researcher services

  • Reprints & permissions
  • Research data
  • Language editing
  • Scientific editing
  • Nature Masterclasses
  • Research Solutions

Libraries & institutions

  • Librarian service & tools
  • Librarian portal
  • Open research
  • Recommend to library

Advertising & partnerships

  • Advertising
  • Partnerships & Services
  • Media kits
  • Branded content

Professional development

  • Nature Awards
  • Nature Careers
  • Nature Conferences

Regional websites

  • Nature Africa
  • Nature China
  • Nature India
  • Nature Japan
  • Nature Middle East
  • Privacy Policy
  • Use of cookies
  • Legal notice
  • Accessibility statement
  • Terms & Conditions
  • Your US state privacy rights
Springer Nature

© 2026 Springer Nature Limited

Nature Briefing

Sign up for the Nature Briefing newsletter — what matters in science, free to your inbox daily.

Get the most important science stories of the day, free in your inbox. Sign up for Nature Briefing