- Open Access
Differentiable learning and control of free-energy-driven pattern dynamics
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.
Physics Subject Headings (PhySH)
Article Text
References (78)
- 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).
- 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).
- 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).
- 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).
- 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).
- Z. Tan, S. Chen, X. Peng, L. Zhang, and C. Gao, Polyamide membranes with nanoscale Turing structures for water purification, Science 360, 518 (2018).
- 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).
- 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).
- 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).
- 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).
- 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).
- 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).
- 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).
- 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).
- D. A. Cogswell and M. Z. Bazant, Coherency strain and the kinetics of phase separation in nanoparticles, ACS Nano 6, 2215 (2012).
- 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).
- M. Z. Bazant, Theory of chemical kinetics and charge transfer based on nonequilibrium thermodynamics, Acc. Chem. Res. 46, 1144 (2013).
- 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).
- 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).
- 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).
- 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).
- 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).
- 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).
- 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).
- K. Barakati, H. Yuan, A. Goyal, and S. V. Kalinin, Physics-based reward driven image analysis in microscopy, Digit. Discov. 3, 2061 (2024).
- S. Inouye, Manipulating Bose-Einstein condensates with laser light, Ph.D. thesis, Massachusetts Institute of Technology, 2001.
- 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).
- 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).
- 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).
- 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).
- J. W. Cahn and J. E. Hilliard, Free energy of a nonuniform system. I. Interfacial free energy, J. Chem. Phys. 28, 258 (1958).
- 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).
- 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).
- 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).
- 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).
- H. Zhao, A. Košmrlj, and S. S. Datta, Chemotactic motility-induced phase separation, Phys. Rev. Lett. 131, 118301 (2023).
- W. Bao and Y. Cai, Mathematical theory and numerical methods for Bose-Einstein condensation, Kinet. Relat. Models 6, 1 (2013).
- 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.
- 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).
- 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).
- M. Z. Bazant, Thermodynamic stability of driven open systems and control of phase separation by electro-autocatalysis, Faraday Discuss. 199, 423 (2017).
- 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)].
- E. P. Gross, Structure of a quantized vortex in boson systems, Nuovo Cimento 20, 454 (1961).
- V. Heinonen, K. J. Burns, and J. Dunkel, Quantum hydrodynamics for supersolid crystals and quasicrystals, Phys. Rev. A 99, 063621 (2019).
- 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).
- 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).
- T. Takaki and J. Kato, Phase-field topology optimization model that removes the curvature effects, Mech. Eng. J. 4, 16-00462 (2017).
- 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).
- Y. Sun and C. Beckermann, Sharp interface tracking using the phase-field equation, J. Comput. Phys. 220, 626 (2007).
- 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).
- 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).
- X. Li, J. Lowengrub, A. Ratz, and A. Voigt, Solving PDEs in complex geometries, Commun. Math. Sci. 7, 81 (2009).
- A. Abdulle and A. A. Medovikov, Second order Chebyshev methods based on orthogonal polynomials, Numer. Math. 90, 1 (2001).
- L. Q. Chen and J. Shen, Applications of semi-implicit Fourier-spectral method to phase field equations, Comput. Phys. Commun. 108, 147 (1998).
- J. Rader, T. Lyons, and P. Kidger, Optimistix: Modular optimisation in JAX and Equinox, arXiv:2402.09983.
- 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).
- A. Malik, K. Snyder, M. Liu, and H.-C. Yu, Phase-field electrochemical simulations of reconstructed graphite electrodes, J. Energy Storage 77, 109937 (2024).
- 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).
- 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).
- 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).
- F. Mugele and J.-C. Baret, Electrowetting: From basics to applications, J. Phys.: Condens. Matter 17, R705 (2005).
- 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).
- 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).
- 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).
- T. Ohzuku, A. Ueda, and N. Yamamoto, Zero-strain insertion material of for rechargeable lithium cells, J. Electrochem. Soc. 142, 1431 (1995).
- K. Ariyoshi, Y. Iwakoshi, N. Nakayama, and T. Ohzuku, Topotactic two-phase reactions of () in nonaqueous lithium cells, J. Electrochem. Soc. 151, A296 (2004).
- D. Zhuang and M. Z. Bazant, Scaling analysis of mosaic phase separation in Li-ion batteries, Phys. Rev. E 110, 064142 (2024).
- 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).
- D. Zhuang, Degradation mechanisms and applications in ion intercalation materials, Ph.D. thesis, Massachusetts Institute of Technology, 2024.
- M. Z. Bazant, Unified quantum theory of electrochemical kinetics by coupled ion–electron transfer, Faraday Discuss. 246, 60 (2023).
- 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 , ChemElectroChem 6, 5090 (2019).
- 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).
- D. A. Cogswell and M. Z. Bazant, Size-dependent phase morphologies in battery particles, Electrochem. Commun. 95, 33 (2018).
- 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).
- 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).
- 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).
- A. E. Cohen, S. Degnan-Morgenstern, and S. Daubner, Free-energy-driven-pattern-optimization, https://github.com/acoh64/free-energy-pattern-optimization.
- P. Kidger, On neural differential equations, Ph.D. thesis, University of Oxford, 2021.