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
Boundary sensitivity in finite-sized artificial spin ice explored via AI-assisted genetic algorithms
Download PDF
Download PDF
  • Article
  • Open access
  • Published: 21 February 2026

Boundary sensitivity in finite-sized artificial spin ice explored via AI-assisted genetic algorithms

  • Tae Jung Moon1,
  • Seong Min Park1,
  • Han Gyu Yoon1,
  • Hee Young Kwon2 &
  • …
  • Changyeon Won1 

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

  • Materials science
  • Mathematics and computing
  • Physics

Abstract

Frustrated magnetic systems such as spin ice are key platforms for novel metamaterials. However, identifying their ground states in finite arrays is a formidable challenge, as boundary sensitivity and metastable states trap conventional optimization methods. We introduce a virtuous-cycle AI pipeline where a genetic algorithm explores the latent space of a variational autoencoder (VAE), with the best candidates progressively refining the VAE’s representation. Applied to Kagome spin ice, this method reveals how the boundary magnetism is determined: boundaries break the symmetry of the \(\sqrt{3\,}\times \sqrt{3\,}\) magnetic superstructure while the bulk superstructure order in the interior maintains. Furthermore, it demonstrates that high geometric confinement induces a novel quasi-ferromagnetic phase, which breaks the interior superstructure order. Our work provides a predictive framework for designing frustrated materials and demonstrates a powerful AI approach for boundary-sensitive physical systems.

Similar content being viewed by others

Tunable topological transitions in the frustrated magnet HoAgGe

Article Open access 22 March 2025

Genetic-tunneling driven energy optimizer for spin systems

Article Open access 02 September 2023

Perpendicular-anisotropy artificial spin ice with spontaneous ordering: a platform for reservoir computing with flexible timescales

Article Open access 03 November 2025

Code availability

The Python code used to implement the method in this study is available on GitHub (https://github.com/NanomagLab/Kagome-AI-Optimizer).

References

  1. Barahona, F. On the computational complexity of ising spin glass models. J. Phys. A Math. Gen. 15, 3241–3253 (1982).

    Google Scholar 

  2. Fan, C. et al. Searching for spin glass ground states through deep reinforcement learning. Nat. Commun. 14, 725 (2023).

    Google Scholar 

  3. De Simone, C. et al. Exact ground states of Ising spin glasses: new experimental results with a branch-and-cut algorithm. J. Stat. Phys. 80, 487–496 (1995).

    Google Scholar 

  4. Monasson, R., Zecchina, R., Kirkpatrick, S., Selman, B. & Troyansky, L. Determining computational complexity from characteristic ‘phase transitions’. Nature 400, 133–137 (1999).

    Google Scholar 

  5. Hogg, T., Huberman, B. A. & Williams, C. P. Phase transitions and the search problem. Artif. Intell. 81, https://doi.org/10.1016/0004-3702(95)00044-5 (1996).

  6. Heyderman, L. J. & Stamps, R. L. Artificial ferroic systems: novel functionality from structure, interactions and dynamics. J. Phys. Condensed Matter. 25, 363201 (2013).

    Google Scholar 

  7. Wang, R. F. et al. Artificial ‘spin ice’ in a geometrically frustrated lattice of nanoscale ferromagnetic islands. Nature 439, 303–306 (2006).

    Google Scholar 

  8. Skjærvø, S. H., Marrows, C. H., Stamps, R. L. & Heyderman, L. J. Advances in artificial spin ice. Nat. Rev. Phys. 2, 117 (2020).

  9. Nisoli, C., Moessner, R. & Schiffer, P. Colloquium: artificial spin ice: designing and imaging magnetic frustration. Rev. Mod. Phys. 85, 1473–1490 (2013).

    Google Scholar 

  10. Rougemaille, N. & Canals, B. Cooperative magnetic phenomena in artificial spin systems: spin liquids, Coulomb phase and fragmentation of magnetism – a colloquium. Eur. Phys. J. B 92, 62 (2019).

    Google Scholar 

  11. Farhan, A. et al. Emergent magnetic monopole dynamics in macroscopically degenerate artificial spin ice. Sci. Adv. 5, eaav6380 (2019).

  12. Mengotti, E. et al. Real-space observation of emergent magnetic monopoles and associated Dirac strings in artificial kagome spin ice. Nat. Phys. 7, 68–74 (2011).

    Google Scholar 

  13. Qi, Y., Brintlinger, T. & Cumings, J. Direct observation of the ice rule in an artificial kagome spin ice. Phys. Rev. B Condens. Matter Mater. Phys. 77, 094418 (2008).

    Google Scholar 

  14. Gilbert, I. et al. Emergent ice rule and magnetic charge screening from vertex frustration in artificial spin ice. Nat. Phys. 10, 670–675 (2014).

    Google Scholar 

  15. Canals, B. et al. Fragmentation of magnetism in artificial kagome dipolar spin ice. Nat. Commun. 7, 11446 (2016).

    Google Scholar 

  16. Chern, G. W., Mellado, P. & Tchernyshyov, O. Two-stage ordering of spins in dipolar spin ice on the kagome lattice. Phys. Rev. Lett. 106, 207202 (2011).

    Google Scholar 

  17. Carrasquilla, J. & Melko, R. G. Machine learning phases of matter. Nat. Phys. 13, 431–434 (2017).

    Google Scholar 

  18. Carleo, G. & Troyer, M. Solving the quantum many-body problem with artificial neural networks. Science (1979). 355, 602–606 (2017).

    Google Scholar 

  19. Wang, H. et al. Scientific discovery in the age of artificial intelligence. Nature 620, 47–60 (2023).

  20. Wetzel, S. J. Unsupervised learning of phase transitions: from principal component analysis to variational autoencoders. Phys. Rev. E 96, 022140 (2017).

    Google Scholar 

  21. Carleo, G., Nomura, Y. & Imada, M. Constructing exact representations of quantum many-body systems with deep neural networks. Nat. Commun. 9, 5322 (2018).

    Google Scholar 

  22. Park, S. M. et al. Optimization of physical quantities in the autoencoder latent space. Sci. Rep. 12, 9003 (2022).

    Google Scholar 

  23. Li, J. et al. An auto-encoder with genetic algorithm for high dimensional data: towards accurate and interpretable outlier detection. Algorithms 15, 429 (2022).

    Google Scholar 

  24. Kwon, H. Y. et al. Searching for the ground state of complex spin-ice systems using deep learning techniques. Sci. Rep. 12, 15026 (2022).

    Google Scholar 

  25. Kwon, H. Y. et al. Magnetic state generation using Hamiltonian guided variational autoencoder with spin structure stabilization. Adv. Sci. 8, e2004795 (2021).

  26. Kingma, D. P. & Welling, M. Auto-encoding variational bayes. In 2nd International Conference on Learning Representations, ICLR 2014 - Conference Track Proceedings https://doi.org/10.61603/ceas.v2i1.33 (2014).

  27. Kingma, D. P. & Welling, M. An introduction to variational autoencoders. Found. Trends Mach. Learn. 12, https://doi.org/10.1561/2200000056 (2019).

  28. Doersch, C. Variational autoencoders tutorial. Preprint at https://arxiv.org/abs/1606.05908 (2016).

  29. Bojanowski, P., Joulin, A., Paz, D. L. & Szlam, A. Optimizing the latent space of generative networks. In 35th International Conference on Machine Learning vol. 2 (ICML, 2018).

  30. Bentley, P. J., Lim, S. L., Gaier, A. & Tran, L. COIL: Constrained Optimization in Learned Latent Space: Learning Representations for Valid Solutions. In Proceedings of the Genetic and Evolutionary Computation Conference Companion, 1870–1877 (ACM, 2022).

  31. Bentley, P. J., Lim, S. L., Gaier, A. & Tran, L. Evolving through the looking glass: learning improved search spaces with variational autoencoders. In Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics) Vol. 13398 (LNCS, 2022).

  32. Volz, V. et al. Evolving Mario levels in the latent space of a deep convolutional generative adversarial network. In GECCO 2018 - Proceedings of the 2018 Genetic and Evolutionary Computation Conference, https://doi.org/10.1145/3205455.3205517 (2018).

  33. Rammal, A., Ezukwoke, K., Hoayek, A. & Batton-Hubert, M. Unsupervised approach for an optimal representation of the latent space of a failure analysis dataset. J. Supercomput. 80, 5923–5949 (2024).

    Google Scholar 

  34. Jiang, J., Kim, D., Kim, B. & Shin, Y. G. Enhancing local feature representation in VQ-VAE through genetic algorithm-based token optimization. IEEE Access 13, 34286–34295 (2025).

    Google Scholar 

  35. Wan, J., Chen, Y. & Gao, C. The VAE-FastGA anomaly detection model based on subspace and weakly correlated ultra-high-dimensional data. J. Supercomput. 81, 495 (2025).

    Google Scholar 

  36. Kincaid, R. K. & Ninh, A. Simulated annealing. In Springer Optimization and Its Applications 204, 221–249 (Springer, 2023).

  37. Tripp, A., Daxberger, E. & Hernández-Lobato, J. M. Sample-efficient optimization in the latent space of deep generative models via weighted retraining. In Advances in Neural Information Processing Systems, Vol. 2020 (NIPS, 2020).

  38. Lookman, T., Balachandran, P. V., Xue, D. & Yuan, R. Active learning in materials science with emphasis on adaptive sampling using uncertainties for targeted design. npj Comput. Mater. 5, https://doi.org/10.1038/s41524-019-0153-8 (2019).

  39. Gartside, J. C. et al. Realization of ground state in artificial kagome spin ice via topological defect-driven magnetic writing. Nat. Nanotechnol. 13, 53–58 (2018).

    Google Scholar 

  40. Zhao, K. et al. Realization of the kagome spin ice state in a frustrated intermetallic compound. Science 367, 1218–1223 (2020).

    Google Scholar 

  41. Basak, A. A rank based adaptive mutation in genetic algorithm. Int. J. Comput. Appl. 175, 49–55 (2020).

    Google Scholar 

  42. Bermúdez, M. M., Borzi, R. A., Tennant, D. A. & Grigera, S. A. Low-temperature state of the spin-ice material Dy2Ti2O7: reverse Monte Carlo investigation. Phys. Rev. B 112, 094431 (2025).

  43. Yavors’kii, T., Fennell, T., Gingras, M. J. P. & Bramwell, S. T. Dy2Ti2O7 spin ice: a test case for emergent clusters in a frustrated magnet. Phys. Rev. Lett. 101, 037204 (2008).

    Google Scholar 

  44. Borzi, R. A. et al. Intermediate magnetization state and competing orders in Dy2Ti2O7 and Ho2Ti2O7. Nat. Commun. 7, 12592 (2016).

    Google Scholar 

  45. Samarakoon, A. M. et al. Machine-learning-assisted insight into spin ice Dy2Ti2O7. Nat. Commun. 11, 892 (2020).

    Google Scholar 

  46. Henelius, P. et al. Refrustration and competing orders in the prototypical Dy2Ti2O7 spin ice material. Phys. Rev. B 93, 024402 (2016).

    Google Scholar 

Download references

Acknowledgements

This research was supported by the National Research Foundation (NRF) of Korea funded by the Korean Government (NRF-2023R1A2C1006050) and (NRF-2021R1C1C2093113).

Author information

Authors and Affiliations

  1. Department of Physics, Kyung Hee University, Seoul, South Korea

    Tae Jung Moon, Seong Min Park, Han Gyu Yoon & Changyeon Won

  2. Center for Spintronics, Korea Institute of Science and Technology, Seoul, South Korea

    Hee Young Kwon

Authors
  1. Tae Jung Moon
    View author publications

    Search author on:PubMed Google Scholar

  2. Seong Min Park
    View author publications

    Search author on:PubMed Google Scholar

  3. Han Gyu Yoon
    View author publications

    Search author on:PubMed Google Scholar

  4. Hee Young Kwon
    View author publications

    Search author on:PubMed Google Scholar

  5. Changyeon Won
    View author publications

    Search author on:PubMed Google Scholar

Contributions

T.J.M. developed the algorithms and performed the experiments. The main results were discussed and interpreted with contributions from S.M.P., H.G.Y., H.Y.K., and C.W. The research was supervised jointly by H.Y.K. and C.W. All authors contributed to the final version of the manuscript.

Corresponding authors

Correspondence to Hee Young Kwon or Changyeon Won.

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 4.0 International License, which permits use, sharing, adaptation, 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 changes were made. 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/4.0/.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Moon, T.J., Park, S.M., Yoon, H.G. et al. Boundary sensitivity in finite-sized artificial spin ice explored via AI-assisted genetic algorithms. npj Comput Mater (2026). https://doi.org/10.1038/s41524-026-02016-x

Download citation

  • Received: 19 November 2025

  • Accepted: 11 February 2026

  • Published: 21 February 2026

  • DOI: https://doi.org/10.1038/s41524-026-02016-x

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 AI and Robotics

Sign up for the Nature Briefing: AI and Robotics newsletter — what matters in AI and robotics research, free to your inbox weekly.

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