Reuse & Permissions

It is not necessary to obtain permission to reuse this article or its components as it is available under the terms of the Creative Commons Attribution 4.0 International license. This license permits unrestricted use, distribution, and reproduction in any medium, provided attribution to the author(s) and the published article's title, journal citation, and DOI are maintained. Please note that some figures may have been included with permission from other third parties. It is your responsibility to obtain the proper permission from the rights holder directly for these figures.

Export citation

Export citation

Choose format for download:

Download Citation
  • Open Access

Differentiable learning and control of free-energy-driven pattern dynamics

Alexander E. Cohen1,*, Samuel Degnan-Morgenstern1,†, Simon Daubner2, Jörn Dunkel3,‡, and Martin Z. Bazant3,1,§

  • *Contact author: aecohen@mit.edu
  • †Contact author: stm16109@mit.edu
  • ‡Contact author: dunkel@mit.edu
  • §Contact author: bazant@mit.edu

Phys. Rev. Research 8, 023344 – Published 25 June, 2026

DOI: https://doi.org/10.1103/b8kc-vpwq

Abstract

Pattern-forming dynamics govern the behavior of many quantum, electrochemical, and soft-matter systems, yet learning and controlling the corresponding partial differential equation (PDE) models on realistic geometries remains challenging. In this work, we develop a unified, differentiable framework for free-energy-based PDEs that enables end-to-end parameter inference and optimal control directly on image-based domains. Starting from a variational description in terms of an energy or free energy functional, we combine PDE-based smoothing of segmented geometries, the smoothed boundary method, advanced integrators for stiff pattern-forming PDEs, and memory-efficient automatic differentiation implemented in JAX to construct scalable PDE solvers amenable to gradient-based optimization. We demonstrate the capabilities of this framework across four classes of applications: (1) learning Cahn-Hilliard and Allen-Cahn free energies and kinetic laws from noisy spatiotemporal data on complex battery electrode microstructures; (2) designing time-dependent wetting boundary conditions that steer phase boundaries to desired orientations; (3) optimizing spatially varying reaction rates, interpreted as surface coatings, to suppress phase separation in intercalation electrode models; and (4) computing time-dependent trapping potentials that transfer Bose-Einstein condensates between ground states of qualitatively different Gross-Pitaevskii potentials while minimizing excitations. Together, these results show that variational PDE models, when equipped with differentiable solvers on complex domains, provide a versatile substrate for data-driven discovery, design, and control of pattern-forming materials and quantum fluids, and they point toward tighter integration of physics-based PDE modeling with modern optimization and machine learning pipelines.

View figure in article

Physics Subject Headings (PhySH)

Article Text

References (78)

  1. H. Tian, J. Li, and M. Z. Bazant, Multiphase polarization in ion-intercalation nanofilms: General theory including various surface effects and memory applications, Adv. Funct. Mater. 33, 2213621 (2023).
  2. J. Lim, Y. Li, D. H. Alsem, H. So, S. C. Lee, P. Bai, D. A. Cogswell, X. Liu, N. Jin, Y.-s. Yu, et al., Origin and hysteresis of lithium compositional spatiodynamics within battery primary particles, Science 353, 566 (2016).
  3. B. Wang, L. Zhang, T. Dai, Z. Qin, H. Lu, L. Zhang, and F. Zhou, Liquid–liquid phase separation in human health and diseases, Signal Transduct. Target. Ther. 6, 290 (2021).
  4. H. Zhao, A. R. Strom, J. M. Eeftens, M. Haataja, A. Kosmrlj, and C. P. Brangwynne, Condensate driven chromatin organization via elastocapillary interactions, Biophys. J. 125, 4 (2026).
  5. A. R. Strom, Y. Kim, H. Zhao, Y.-C. Chang, N. D. Orlovsky, A. Košmrlj, C. Storm, and C. P. Brangwynne, Condensate interfacial forces reposition DNA loci and probe chromatin viscoelasticity, Cell 187, 5282 (2024).
  6. Z. Tan, S. Chen, X. Peng, L. Zhang, and C. Gao, Polyamide membranes with nanoscale Turing structures for water purification, Science 360, 518 (2018).
  7. S. Ouk Kim, H. H. Solak, M. P. Stoykovich, N. J. Ferrier, J. J. De Pablo, and P. F. Nealey, Epitaxial self-assembly of block copolymers on lithographically defined nanopatterned substrates, Nature (London) 424, 411 (2003).
  8. J.-F. Mennemann, D. Matthes, R.-M. Weishäupl, and T. Langen, Optimal control of Bose–Einstein condensates in three dimensions, New J. Phys. 17, 113027 (2015).
  9. C. Ryu, M. F. Andersen, P. Clade, V. Natarajan, K. Helmerson, and W. D. Phillips, Observation of persistent flow of a Bose-Einstein condensate in a toroidal trap, Phys. Rev. Lett. 99, 260401 (2007).
  10. C. Ryu, P. W. Blackburn, A. A. Blinova, and M. G. Boshier, Experimental realization of Josephson junctions for an atom SQUID, Phys. Rev. Lett. 111, 205301 (2013).
  11. S. Eckel, J. G. Lee, F. Jendrzejewski, N. Murray, C. W. Clark, C. J. Lobb, W. D. Phillips, M. Edwards, and G. K. Campbell, Hysteresis in a quantized superfluid ‘atomtronic’circuit, Nature (London) 506, 200 (2014).
  12. J. Estève, C. Gross, A. Weller, S. Giovanazzi, and M. K. Oberthaler, Squeezing and entanglement in a Bose–Einstein condensate, Nature (London) 455, 1216 (2008).
  13. L. Pezze, A. Smerzi, M. K. Oberthaler, R. Schmied, and P. Treutlein, Quantum metrology with nonclassical states of atomic ensembles, Rev. Mod. Phys. 90, 035005 (2018).
  14. J. Hertkorn, J.-N. Schmidt, M. Guo, F. Böttcher, K. S. H. Ng, S. D. Graham, P. Uerlings, T. Langen, M. Zwierlein, and T. Pfau, Pattern formation in quantum ferrofluids: From supersolids to superglasses, Phys. Rev. Res. 3, 033125 (2021).
  15. D. A. Cogswell and M. Z. Bazant, Coherency strain and the kinetics of phase separation in LiFePO4 nanoparticles, ACS Nano 6, 2215 (2012).
  16. D. P. Finegan, A. Quinn, D. S. Wragg, A. M. Colclasure, X. Lu, C. Tan, T. M. Heenan, R. Jervis, D. J. Brett, S. Das, et al., Spatial dynamics of lithiation and lithium plating during high-rate operation of graphite electrodes, Energy Environ. Sci. 13, 2570 (2020).
  17. M. Z. Bazant, Theory of chemical kinetics and charge transfer based on nonequilibrium thermodynamics, Acc. Chem. Res. 46, 1144 (2013).
  18. S. Boeynaems, A. S. Holehouse, V. Weinhardt, D. Kovacs, J. Van Lindt, C. Larabell, L. Van Den Bosch, R. Das, P. S. Tompa, R. V. Pappu, et al., Spontaneous driving forces give rise to protein- RNA condensates with coexisting phases and complex material properties, Proc. Natl. Acad. Sci. USA 116, 7889 (2019).
  19. B. R. Sabari, A. Dall’Agnese, A. Boija, I. A. Klein, E. L. Coffey, K. Shrinivas, B. J. Abraham, N. M. Hannett, A. V. Zamudio, J. C. Manteiga, et al., Coactivator condensation at super-enhancers links phase separation and gene control, Science 361, eaar3958 (2018).
  20. X. Lu, R. E. Owen, W. Du, Z. Zhang, A. Bertei, R. Soni, X. Zhang, F. Iacoviello, D. Li, A. Llewellyn, et al., Unravelling electro-chemo-mechanical processes in graphite/silicon composites for designing nanoporous and microstructured battery electrodes, Nat. Nanotechnol. 20, 1656 (2025).
  21. Y. Shin, M. W. Zwierlein, C. H. Schunck, A. Schirotzek, and W. Ketterle, Observation of phase separation in a strongly interacting imbalanced Fermi gas, Phys. Rev. Lett. 97, 030401 (2006).
  22. Z. Lun, A. J. Merryweather, A. Mahadevegowda, S. S. Pandurangi, C. Xu, S. Fairclough, V. S. Deshpande, N. A. Fleck, C. Ducati, C. Schnedermann, et al., Operando single-particle imaging reveals that asymmetric ion flux contributes to capacity degradation in aged Ni-rich layered cathodes, Energy Environ. Sci. 18, 4097 (2025).
  23. C. Xu, A. J. Merryweather, S. S. Pandurangi, Z. Lun, D. S. Hall, V. S. Deshpande, N. A. Fleck, C. Schnedermann, A. Rao, and C. P. Grey, Operando visualization of kinetically induced lithium heterogeneities in single-particle layered Ni-rich cathodes, Joule 6, 2535 (2022).
  24. M. A. Ziatdinov, M. Y. Yaman, Y. Liu, D. Ginger, and S. V. Kalinin, Semi-supervised learning of images with strong rotational disorder: Assembling nanoparticle libraries, Digit. Discov. 3, 1213 (2024).
  25. K. Barakati, H. Yuan, A. Goyal, and S. V. Kalinin, Physics-based reward driven image analysis in microscopy, Digit. Discov. 3, 2061 (2024).
  26. S. Inouye, Manipulating Bose-Einstein condensates with laser light, Ph.D. thesis, Massachusetts Institute of Technology, 2001.
  27. Y. Liu, J. Liu, J. Wang, M. N. Banis, B. Xiao, A. Lushington, W. Xiao, R. Li, T.-K. Sham, G. Liang, et al., Formation of size-dependent and conductive phase on lithium iron phosphate during carbon coating, Nat. Commun. 9, 929 (2018).
  28. H. Zhao, H. D. Deng, A. E. Cohen, J. Lim, Y. Li, D. Fraggedakis, B. Jiang, B. D. Storey, W. C. Chueh, R. D. Braatz, et al., Learning heterogeneous reaction kinetics from X-ray videos pixel by pixel, Nature (London) 621, 289 (2023).
  29. S. Thutupalli, D. Geyer, R. Singh, R. Adhikari, and H. A. Stone, Flow-induced phase separation of active particles is controlled by boundary conditions, Proc. Natl. Acad. Sci. USA 115, 5403 (2018).
  30. A. B. Li, L. Miroshnik, B. D. Rummel, G. Balakrishnan, S. M. Han, and T. Sinno, A unified theory of free energy functionals and applications to diffusion, Proc. Natl. Acad. Sci. USA 119, e2203399119 (2022).
  31. J. W. Cahn and J. E. Hilliard, Free energy of a nonuniform system. I. Interfacial free energy, J. Chem. Phys. 28, 258 (1958).
  32. J. W. Cahn and S. M. Allen, A microscopic theory for domain wall motion and its experimental verification in Fe-Al alloy domain growth kinetics, J. Phys. Colloq. 38, C7-51 (1977).
  33. C. V. Di Leo, E. Rejovitzky, and L. Anand, A Cahn–Hilliard-type phase-field theory for species diffusion coupled with large elastic deformations: Application to phase-separating Li-ion electrode materials, J. Mech. Phys. Solids 70, 1 (2014).
  34. P. K. Kristensen, C. F. Niordson, and E. Martínez-Pañeda, An assessment of phase field fracture: Crack initiation and growth, Philos. Trans. R. Soc. A 379, 20210021 (2021).
  35. R. Choksi, M. A. Peletier, and J. Williams, On the phase diagram for microphase separation of diblock copolymers: An approach via a nonlocal Cahn–Hilliard functional, SIAM J. Appl. Math. 69, 1712 (2009).
  36. H. Zhao, A. Košmrlj, and S. S. Datta, Chemotactic motility-induced phase separation, Phys. Rev. Lett. 131, 118301 (2023).
  37. W. Bao and Y. Cai, Mathematical theory and numerical methods for Bose-Einstein condensation, Kinet. Relat. Models 6, 1 (2013).
  38. R. C. Ihuaenyi, H. Zhao, R. Fang, R. Bai, M. Z. Bazant, and J. Zhu, Learning reaction-diffusion kinetics from mechanical information, arXiv:2508.17523.
  39. M. Raissi, P. Perdikaris, and G. E. Karniadakis, Physics-informed neural networks: A deep learning framework for solving forward and inverse problems involving nonlinear partial differential equations, J. Comput. Phys. 378, 686 (2019).
  40. K. Azizzadenesheli, N. Kovachki, Z. Li, M. Liu-Schiaffini, J. Kossaifi, and A. Anandkumar, Neural operators for accelerating scientific simulations and design, Nat. Rev. Phys. 6, 320 (2024).
  41. M. Z. Bazant, Thermodynamic stability of driven open systems and control of phase separation by electro-autocatalysis, Faraday Discuss. 199, 423 (2017).
  42. L. P. Pitaevskii, Vortex lines in an imperfect Bose gas, J. Exptl. Theoret. Phys. (U.S.S.R.) 40, 646 (1961) [Sov. Phys. JETP 13, 451 (1961)].
  43. E. P. Gross, Structure of a quantized vortex in boson systems, Nuovo Cimento 20, 454 (1961).
  44. V. Heinonen, K. J. Burns, and J. Dunkel, Quantum hydrodynamics for supersolid crystals and quasicrystals, Phys. Rev. A 99, 063621 (2019).
  45. S. M. Allen and J. W. Cahn, A microscopic theory for antiphase boundary motion and its application to antiphase domain coarsening, Acta Metall. 27, 1085 (1979).
  46. S. Daubner, P. W. Hoffrogge, M. Minar, and B. Nestler, Triple junction benchmark for multiphase-field and multi-order parameter models, Comput. Mater. Sci. 219, 111995 (2023).
  47. T. Takaki and J. Kato, Phase-field topology optimization model that removes the curvature effects, Mech. Eng. J. 4, 16-00462 (2017).
  48. S. Daubner, A. E. Cohen, B. Dörich, and S. J. Cooper, evoxels: A differentiable physics framework for voxel-based microstructure simulations, JOSS 11, 9733 (2025).
  49. Y. Sun and C. Beckermann, Sharp interface tracking using the phase-field equation, J. Comput. Phys. 220, 626 (2007).
  50. H.-C. Yu, H.-Y. Chen, and K. Thornton, Extended smoothed boundary method for solving partial differential equations with general boundary conditions on complex boundaries, Modell. Simul. Mater. Sci. Eng. 20, 075008 (2012).
  51. S. Daubner, M. Weichel, M. Reder, D. Schneider, Q. Huang, A. E. Cohen, M. Z. Bazant, and B. Nestler, Simulation of intercalation and phase transitions in nano-porous, polycrystalline agglomerates, npj Comput. Mater. 11, 211 (2025).
  52. X. Li, J. Lowengrub, A. Ratz, and A. Voigt, Solving PDEs in complex geometries, Commun. Math. Sci. 7, 81 (2009).
  53. A. Abdulle and A. A. Medovikov, Second order Chebyshev methods based on orthogonal polynomials, Numer. Math. 90, 1 (2001).
  54. L. Q. Chen and J. Shen, Applications of semi-implicit Fourier-spectral method to phase field equations, Comput. Phys. Commun. 108, 147 (1998).
  55. J. Rader, T. Lyons, and P. Kidger, Optimistix: Modular optimisation in JAX and Equinox, arXiv:2402.09983.
  56. S. Agrawal and P. Bai, Dynamic interplay between phase transformation instabilities and reaction heterogeneities in particulate intercalation electrodes, Cell Rep. Phys. Sci. 3, 100854 (2022).
  57. A. Malik, K. Snyder, M. Liu, and H.-C. Yu, Phase-field electrochemical simulations of reconstructed graphite electrodes, J. Energy Storage 77, 109937 (2024).
  58. D. Qu, A. Malik, and H.-C. Yu, Physics-based simulation of electrochemical impedance spectroscopy of complex electrode microstructures using smoothed boundary method, Electrochim. Acta 432, 141141 (2022).
  59. H. Zhao, R. D. Braatz, and M. Z. Bazant, Image inversion and uncertainty quantification for constitutive laws of pattern formation, J. Comput. Phys. 436, 110279 (2021).
  60. P. Teng, D. Tian, H. Fu, and S. Wang, Recent progress of electrowetting for droplet manipulation: From wetting to superwetting systems, Mater. Chem. Front. 4, 140 (2020).
  61. F. Mugele and J.-C. Baret, Electrowetting: From basics to applications, J. Phys.: Condens. Matter 17, R705 (2005).
  62. T. Ohzuku, Y. Iwakoshi, and K. Sawai, Formation of lithium-graphite intercalation compounds in nonaqueous electrolytes and their application as a negative electrode for a lithium ion (shuttlecock) cell, J. Electrochem. Soc. 140, 2490 (1993).
  63. A. K. Padhi, K. S. Nanjundaswamy, and J. B. Goodenough, Phospho-olivines as positive-electrode materials for rechargeable lithium batteries, J. Electrochem. Soc. 144, 1188 (1997).
  64. M. Tang, W. C. Carter, and Y.-M. Chiang, Electrochemically driven phase transitions in insertion electrodes for lithium-ion batteries: Examples in lithium metal phosphate olivines, Annu. Rev. Mater. Res. 40, 501 (2010).
  65. T. Ohzuku, A. Ueda, and N. Yamamoto, Zero-strain insertion material of Li[Li1/3Ti5/3]O4 for rechargeable lithium cells, J. Electrochem. Soc. 142, 1431 (1995).
  66. K. Ariyoshi, Y. Iwakoshi, N. Nakayama, and T. Ohzuku, Topotactic two-phase reactions of Li[Ni1/2Mn3/2]O4 (P4332) in nonaqueous lithium cells, J. Electrochem. Soc. 151, A296 (2004).
  67. D. Zhuang and M. Z. Bazant, Scaling analysis of mosaic phase separation in Li-ion batteries, Phys. Rev. E 110, 064142 (2024).
  68. D. Zhuang, M. L. Li, V. N. Lam, R. D. Braatz, W. C. Chueh, and M. Z. Bazant, Physics-informed design of hybrid pulse power characterization tests for rechargeable batteries, J. Electrochem. Soc. 171, 050510 (2024).
  69. D. Zhuang, Degradation mechanisms and applications in ion intercalation materials, Ph.D. thesis, Massachusetts Institute of Technology, 2024.
  70. M. Z. Bazant, Unified quantum theory of electrochemical kinetics by coupled ion–electron transfer, Faraday Discuss. 246, 60 (2023).
  71. A. R. Iarchuk, V. A. Nikitina, E. A. Karpushkin, V. G. Sergeyev, E. V. Antipov, K. J. Stevenson, and A. M. Abakumov, Influence of carbon coating on intercalation kinetics and transport properties of LiFePO4, ChemElectroChem 6, 5090 (2019).
  72. P. Ombrini, S. Pathak, D. Ntagkras, S. K. Pal, P. Karanth, F. M. Mulder, M. Wagemaker, M. Z. Bazant, and A. Vasileiadis, Modeling single-crystal electrodes as a network of primary particles, Energy Environ. Sci. 18, 9468 (2025).
  73. D. A. Cogswell and M. Z. Bazant, Size-dependent phase morphologies in LiFePO4 battery particles, Electrochem. Commun. 95, 33 (2018).
  74. D. Guéry-Odelin, A. Ruschhaupt, A. Kiely, E. Torrontegui, S. Martínez-Garaot, and J. G. Muga, Shortcuts to adiabaticity: Concepts, methods, and applications, Rev. Mod. Phys. 91, 045001 (2019).
  75. Y. Kuriatnikov, N. Würkner, K. Kumaran, T. Zhang, M. V. Ramana, A. Kugi, J. Schmiedmayer, A. Deutschmann-Olek, and M. Prüfer, Fast coherent splitting of Bose-Einstein condensates, Phys. Rev. Res. 7, 043108 (2025).
  76. U. Hohenester, P. K. Rekdal, A. Borzì, and J. Schmiedmayer, Optimal quantum control of Bose-Einstein condensates in magnetic microtraps, Phys. Rev. A 75, 023602 (2007).
  77. A. E. Cohen, S. Degnan-Morgenstern, and S. Daubner, Free-energy-driven-pattern-optimization, https://github.com/acoh64/free-energy-pattern-optimization.
  78. P. Kidger, On neural differential equations, Ph.D. thesis, University of Oxford, 2021.

Outline

Information

Sign In to Your Journals Account

Filter

Filter

Article Lookup

Enter a citation