- Open Access
Learning by Training: Emergent Physical Memory from Cyclically Tuning Disordered Sphere Packings
PRX Life 4, 023029 – Published 18 June, 2026
DOI: https://doi.org/10.1103/48k2-cw3b
Abstract
Many living and artificial systems improve their fitness or performance by adapting to changing environments or diverse training data. However, it remains unclear how environmental variation shapes adaptation, what is learned, and when memory of past conditions is retained. Here we show how cyclic environmental change can produce robust memory. Using a model athermal disordered solid trained by inverse design to attain target elastic properties over a prescribed range, we find that the system evolves toward a marginally absorbing manifold (MAM), meaning that training is reversible within the training range but not beyond it, which encodes a memory of that range. We further propose a general mechanism for MAM formation and memory encoding based on discontinuities in the gradient of the trained quantity. These results provide a simple, broadly applicable physical framework for how adaptive systems learn under changing environments and retain memory of past conditions.
Physics Subject Headings (PhySH)
Collections
This article appears in the following collection:

PRX Life Collection on adaptation and learning
PRX Life presents a special collection on ‘Biological systems that learn’, curated by the organizers of the National Institute for Theory and Mathematics in Biology (NITMB) workshop together with early-career researchers. The papers in this collection illustrate how living systems acquire functions, showing it is useful to describe them as tunable matter with many individually adjustable degrees of freedom characterizing microscopic properties. Drawing inspiration from AI and non-biological systems that can acquire desired functions, the featured research highlights the timeliness of the topic and its potential to drive unifying frameworks for emergent collective function in living tunable matter.
Every article in this collection is subject to a rigorous peer review process, upholding the high standards applied to all papers in the journal. The PRX Life editorial team manages peer review and makes all editorial decisions.
Article Text
References (99)
- R. O. Duda and P. E. Hart, Pattern Classification and Scene Analysis (Wiley, New York, 1973).
- D. H. Ackley, G. E. Hinton, and T. J. Sejnowski, A learning algorithm for Boltzmann machines, Cogn. Sci. 9, 147 (1985).
- D. E. Rumelhart, G. E. Hinton, and R. J. Williams, in Parallel Distributed Processing: Explorations in the Microstructure of Cognition, edited by D. E. Rumelhart, J. L. McClelland, and PDP Research Group (MIT Press, Cambridge, 1986), Vol. 1, pp. 318–362.
- Y. LeCun, L. Bottou, Y. Bengio, and P. Haffner, Gradient-based learning applied to document recognition, Proc. IEEE 86, 2278 (2002).
- A. Krizhevsky, I. Sutskever, and G. E. Hinton, in Proceedings of the 26th Annual Conference on Neural Information Processing Systems, Lake Tahoe, 2012, edited by P. L. Bartlett, F. C. N. Pereira, C. J. C. Burges, L. Bottou, and K. Q. Weinberger (Curran, Red Hook, 2012), pp. 1106–1114.
- Y. LeCun, Y. Bengio, and G. Hinton, Deep learning, Nature (London) 521, 436 (2015).
- S. Ruder, An overview of gradient descent optimization algorithms, arXiv:1609.04747.
- L. Bottou, F. E. Curtis, and J. Nocedal, Optimization methods for large-scale machine learning, SIAM Rev. 60, 223 (2018).
- B. Scellier and Y. Bengio, Equilibrium propagation: Bridging the gap between energy-based models and backpropagation, Front. Comput. Neurosci. 11, 24 (2017).
- N. Pashine, D. Hexner, A. J. Liu, and S. R. Nagel, Directed aging, memory, and nature's greed, Sci. Adv. 5, eaax4215 (2019).
- M. Stern, D. Hexner, J. W. Rocks, and A. J. Liu, Supervised learning in physical networks: From machine learning to learning machines, Phys. Rev. X 11, 021045 (2021).
- M. Stern and A. Murugan, Learning without neurons in physical systems, Annu. Rev. Condens. Matter Phys. 14, 417 (2023).
- V. Lopez-Pastor and F. Marquardt, Self-learning machines based on Hamiltonian echo backpropagation, Phys. Rev. X 13, 031020 (2023).
- V. R. Anisetti, B. Scellier, and J. M. Schwarz, Learning by non-interfering feedback chemical signaling in physical networks, Phys. Rev. Res. 5, 023024 (2023).
- V. R. Anisetti, A. Kandala, B. Scellier, and J. Schwarz, Frequency propagation: Multimechanism learning in nonlinear physical networks, Neural Comput. 36, 596 (2024).
- S. Dillavou, M. Stern, A. J. Liu, and D. J. Durian, Demonstration of decentralized physics-driven learning, Phys. Rev. Appl. 18, 014040 (2022).
- M. Stern, S. Dillavou, M. Z. Miskin, D. J. Durian, and A. J. Liu, Physical learning beyond the quasistatic limit, Phys. Rev. Res. 4, L022037 (2022).
- L. E. Altman, M. Stern, A. J. Liu, and D. J. Durian, Experimental demonstration of coupled learning in elastic networks, Phys. Rev. Appl. 22, 024053 (2024).
- S. Dillavou, B. D. Beyer, M. Stern, A. J. Liu, M. Z. Miskin, and D. J. Durian, Machine learning without a processor: Emergent learning in a nonlinear analog network, Proc. Natl. Acad. Sci. USA 121, e2319718121 (2024).
- Y. Tang, W. Ye, J. Jia, and Y. Chen, Learning stiffness tensors in self-activated solids via a local rule, Adv. Sci. 11, 2308584 (2024).
- M. J. Falk, A. T. Strupp, B. Scellier, and A. Murugan, Temporal contrastive learning through implicit non-equilibrium memory, Nat. Commun. 16, 2163 (2025).
- C. Arinze, M. Stern, S. R. Nagel, and A. Murugan, Learning to self-fold at a bifurcation, Phys. Rev. E 107, 025001 (2023).
- C. G. Evans, J. O'Brien, E. Winfree, and A. Murugan, Pattern recognition in the nucleation kinetics of non-equilibrium self-assembly, Nature (London) 625, 500 (2024).
- S. Arzash, I. Tah, A. J. Liu, and M. L. Manning, Rigidity of epithelial tissues as a double optimization problem, Phys. Rev. Res. 7, 013157 (2025).
- A. K. Behera, M. Rao, S. Sastry, and S. Vaikuntanathan, Enhanced associative memory, classification, and learning with active dynamics, Phys. Rev. X 13, 041043 (2023).
- J. Veenstra, C. Scheibner, M. Brandenbourger, J. Binysh, A. Souslov, V. Vitelli, and C. Coulais, Adaptive locomotion of active solids, Nature (London) 639, 935 (2025).
- S. Dillavou, M. Guzman, A. J. Liu, and D. J. Durian, Understanding and embracing imperfection in physical learning networks, arXiv:2505.22887.
- M. Zu and C. P. Goodrich, Designing athermal disordered solids with automatic differentiation, Commun. Mater. 5, 141 (2024).
- M. Zu, A. Desai, and C. P. Goodrich, Fully independent response in disordered solids, Phys. Rev. Lett. 134, 238201 (2025).
- M. W. Hirsch, C. C. Pugh, and M. Shub, in Invariant Manifolds, edited by A. Dold and B. Eckmann, Lecture Notes in Mathematics Vol. 583 (Springer, Berlin, 1977).
- N. C. Keim, J. D. Paulsen, Z. Zeravcic, S. Sastry, and S. R. Nagel, Memory formation in matter, Rev. Mod. Phys. 91, 035002 (2019).
- J. D. Paulsen and N. C. Keim, Mechanical memories in solids, from disorder to design, Annu. Rev. Condens. Matter Phys. 16, 61 (2025).
- M. Mungan, E. Clément, D. Vandembroucq, and S. Sastry, Self-organization, memory, and learning: From driven disordered systems to living matter, Annu. Rev. Condens. Matter Phys. 17, 207 (2026).
- J. Gill, Transient non-linear phenomena and metastable states of charge-density waves in niobium triselenide, Solid State Commun. 39, 1203 (1981).
- R. M. Fleming and L. F. Schneemeyer, Transient electrical response of , Phys. Rev. B 28, 6996 (1983).
- K. Matan, R. B. Williams, T. A. Witten, and S. R. Nagel, Crumpling a thin sheet, Phys. Rev. Lett. 88, 076101 (2002).
- Y. Lahini, O. Gottesman, A. Amir, and S. M. Rubinstein, Nonmonotonic aging and memory retention in disordered mechanical systems, Phys. Rev. Lett. 118, 085501 (2017).
- E. M. Bertin, J. P. Bouchaud, J. M. Drouffe, and C. Godrèche, The Kovacs effect in model glasses, J. Phys. A Math. Gen. 36, 10701 (2003).
- L. F. Cugliandolo, G. Lozano, and H. Lozza, Memory effects in classical and quantum mean-field disordered models, Eur. Phys. J. B 41, 87 (2004).
- D. Fiocco, G. Foffi, and S. Sastry, Encoding of memory in sheared amorphous solids, Phys. Rev. Lett. 112, 025702 (2014).
- N. C. Keim and P. E. Arratia, Mechanical and microscopic properties of the reversible plastic regime in a 2D jammed material, Phys. Rev. Lett. 112, 028302 (2014).
- M. Mungan, S. Sastry, K. Dahmen, and I. Regev, Networks and hierarchies: How amorphous materials learn to remember, Phys. Rev. Lett. 123, 178002 (2019).
- N. C. Keim, J. Hass, B. Kroger, and D. Wieker, Global memory from local hysteresis in an amorphous solid, Phys. Rev. Res. 2, 012004(R) (2020).
- M. Adhikari and S. Sastry, Memory formation in cyclically deformed amorphous solids and sphere assemblies, Eur. Phys. J. E 41, 105 (2018).
- C. W. Lindeman and S. R. Nagel, Multiple memory formation in glassy landscapes, Sci. Adv. 7, eabg7133 (2021).
- I. Regev, I. Attia, K. Dahmen, S. Sastry, and M. Mungan, Topology of the energy landscape of sheared amorphous solids and the irreversibility transition, Phys. Rev. E 103, 062614 (2021).
- M. O. Lavrentovich, A. J. Liu, and S. R. Nagel, Period proliferation in periodic states in cyclically sheared jammed solids, Phys. Rev. E 96, 020101(R) (2017).
- M. D. Haw, W. C. K. Poon, P. N. Pusey, P. Hebraud, and F. Lequeux, Colloidal glasses under shear strain, Phys. Rev. E 58, 4673 (1998).
- S. Mukherji, N. Kandula, A. K. Sood, and R. Ganapathy, Strength of mechanical memories is maximal at the yield point of a soft glass, Phys. Rev. Lett. 122, 158001 (2019).
- J. R. Royer and P. M. Chaikin, Precisely cyclic sand: Self-organization of periodically sheared frictional grains, Proc. Natl. Acad. Sci. USA 112, 49 (2015).
- J. Ren, J. A. Dijksman, and R. P. Behringer, Reynolds pressure and relaxation in a sheared granular system, Phys. Rev. Lett. 110, 018302 (2013).
- M. Toiya, J. Stambaugh, and W. Losert, Transient and oscillatory granular shear flow, Phys. Rev. Lett. 93, 088001 (2004).
- D. Fiocco, G. Foffi, and S. Sastry, Memory effects in schematic models of glasses subjected to oscillatory deformation, J. Phys.: Condens. Matter 27, 194130 (2015).
- Y. Chen, Q. Zhang, S. Ramakrishnan, and R. L. Leheny, Memory in aging colloidal gels with time-varying attraction, J. Chem. Phys. 158, 024906 (2023).
- Y. Chen, S. A. Rogers, S. Narayanan, J. L. Harden, and R. L. Leheny, Microstructural and rheological training and memory of nanocolloidal soft glasses under cyclic shear, Phys. Rev. Mater. 9, 025601 (2025).
- D. J. Pine, J. P. Gollub, J. F. Brady, and A. M. Leshansky, Chaos and threshold for irreversibility in sheared suspensions, Nature (London) 438, 997 (2005).
- L. Corté, P. M. Chaikin, J. P. Gollub, and D. J. Pine, Random organization in periodically driven systems, Nat. Phys. 4, 420 (2008).
- G. I. Menon and S. Ramaswamy, Universality class of the reversible-irreversible transition in sheared suspensions, Phys. Rev. E 79, 061108 (2009).
- N. C. Keim and S. R. Nagel, Generic transient memory formation in disordered systems with noise, Phys. Rev. Lett. 107, 010603 (2011).
- N. C. Keim, J. D. Paulsen, and S. R. Nagel, Multiple transient memories in sheared suspensions: Robustness, structure, and routes to plasticity, Phys. Rev. E 88, 032306 (2013).
- P. Pham, B. Metzger, and J. E. Butler, Particle dispersion in sheared suspensions: Crucial role of solid-solid contacts, Phys. Fluids 27, 051701 (2015).
- J. D. Paulsen, N. C. Keim, and S. R. Nagel, Multiple transient memories in experiments on sheared non-Brownian suspensions, Phys. Rev. Lett. 113, 068301 (2014).
- D. R. Scheff, S. A. Redford, C. Lorpaiboon, S. Majumdar, A. R. Dinner, and M. L. Gardel, Actin filament alignment causes mechanical hysteresis in cross-linked networks, Soft Matter 17, 5499 (2021).
- E. Bitzek, P. Koskinen, F. Gähler, M. Moseler, and P. Gumbsch, Structural relaxation made simple, Phys. Rev. Lett. 97, 170201 (2006).
- J. Guénolé, W. G. Nöhring, A. Vaid, F. Houllé, Z. Xie, A. Prakash, and E. Bitzek, Assessment and optimization of the fast inertial relaxation engine (FIRE) for energy minimization in atomistic simulations and its implementation in LAMMPS, Comput. Mater. Sci. 175, 109584 (2020).
- A. G. Baydin, B. A. Pearlmutter, A. A. Radul, and J. M. Siskind, Automatic differentiation in machine learning: A survey, J. Mach. Learn. Res. 18, 1 (2018).
- D. E. Rumelhart, G. E. Hinton, and R. J. Williams, Learning representations by back-propagating errors, Nature (London) 323, 533 (1986).
- R. E. Wengert, A simple automatic derivative evaluation program, Commun. ACM 7, 463 (1964).
- M. J. Falk, J. Wu, A. Matthews, V. Sachdeva, N. Pashine, M. L. Gardel, S. R. Nagel, and A. Murugan, Learning to learn by using nonequilibrium training protocols for adaptable materials, Proc. Natl. Acad. Sci. USA 120, e2219558120 (2023).
- Note that these spikes are not observed in Ref. [28]. As will become clear in Sec. 4, this is due to the smooth attractive potential used in that paper.
- While we do not fully understand this, it is worth noting that is the weakest of our measurements since it depends on the details of the optimization algorithm, which are not controlled for.
- In practice, the finite step size of any iterative ascent/descent algorithm will always result in some small amount of parameter drift.
- Note that the red descent path happens to start very slightly to the left of the GD, so it flows leftward, but it could just as easily have started to the right of the GD and flowed in the opposite direction, depending on where in the oscillation the ascent path stops.
- Note that is the distance moved along the contour, which increases continuously from zero when training is pushed beyond . This explains the smooth increases in the readout measurements observed in Fig. 2.
- Lower-dimensional GDs are of course possible, but they are probably much less important due to the smaller chance of encountering them. They do not appear in our sphere packings, and we do not consider them further.
- M. Adhikari, R. Sharma, and S. Karmakar, Encoding fast and fault-tolerant memories in bulk and nanoscale amorphous solids, Phys. Rev. Lett. 134, 018202 (2025).
- C. W. Lindeman, Multi-dimensional memory in low-friction granular materials, Soft Matter 21, 4890 (2025).
- F. Arceri, E. I. Corwin, and V. F. Hagh, Marginal stability in memory training of jammed solids, Phys. Rev. E 104, 044907 (2021).
- J. Kaiser, An investigation into the occurrence of noises in tensile tests, Ph.D. thesis, University of California, Berkeley, 1964.
- L. Mullins, Effect of stretching on the properties of rubber, Rubber Chem. Technol. 21, 281 (1948).
- A. Mayer, T. Mora, O. Rivoire, and A. M. Walczak, Transitions in optimal adaptive strategies for populations in fluctuating environments, Phys. Rev. E 96, 032412 (2017).
- P. Alberch, From genes to phenotype: Dynamical systems and evolvability, Genetica 84, 5 (1991).
- M. C. Cowperthwaite and L. A. Meyers, How mutational networks shape evolution: Lessons from RNA models, Annu. Rev. Ecol. Evol. Syst. 38, 203 (2007).
- M. Pigliucci, Genotype–phenotype mapping and the end of the ‘genes as blueprint' metaphor, Philos. Trans. R. Soc. B 365, 557 (2010).
- S. E. Ahnert, Structural properties of genotype–phenotype maps, J. R. Soc. Interface 14, 20170275 (2017).
- S. M. Scheiner, Genetics and evolution of phenotypic plasticity, Annu. Rev. Ecol. Syst. 24, 35 (1993).
- D. J. Begun, A. K. Holloway, K. Stevens, L. W. Hillier, Y.-P. Poh, M. W. Hahn, P. M. Nista, C. D. Jones, A. D. Kern, C. N. Dewey, L. Pachter, E. Myers, and C. H. Langley, Population genomics: Whole-genome analysis of polymorphism and divergence in Drosophila simulans, PLoS Biol. 5, e310 (2007).
- H. A. Orr, Fitness and its role in evolutionary genetics, Nat. Rev. Genet. 10, 531 (2009).
- L. Keren, J. Hausser, M. Lotan-Pompan, I. V. Slutskin, H. Alisar, S. Kaminski, A. Weinberger, U. Alon, R. Milo, and E. Segal, Massively parallel interrogation of the effects of gene expression levels on fitness, Cell 166, 1282 (2016).
- S.-A. A. Chen, A. F. Kern, R. M. L. Ang, Y. Xie, and H. B. Fraser, Gene-by-environment interactions are pervasive among natural genetic variants, Cell Genom. 3, 100273 (2023).
- S. P. Carroll, A. P. Hendry, D. N. Reznick, and C. W. Fox, Evolution on ecological time‐scales, Funct. Ecol. 21, 387 (2007).
- R. S. Staron, M. J. Leonardi, D. L. Karapondo, E. S. Malicky, J. E. Falkel, F. C. Hagerman, and R. S. Hikida, Strength and skeletal muscle adaptations in heavy-resistance-trained women after detraining and retraining, J. Appl. Physiol. 70, 631 (1991).
- L. M. Schwartz, Muscle nuclei remember to cheat death, J. Physiol. 591, 6133 (2013).
- W.-C. Ho, D. Li, Q. Zhu, and J. Zhang, Phenotypic plasticity as a long-term memory easing readaptations to ancestral environments, Sci. Adv. 6, eaba3388 (2020).
- S. S. Schoenholz and E. D. Cubuk, in Proceedings of the 34th Conference on Neural Information Processing Systems, edited by H. Larochelle, M. Ranzato, R. Hadsell, M. F. Balcan, and H. Lin (Curran, Red Hook, 2020), pp. 11428–11441.
- C. P. Goodrich, S. Dagois-Bohy, B. P. Tighe, M. van Hecke, A. J. Liu, and S. R. Nagel, Jamming in finite systems: Stability, anisotropy, fluctuations, and scaling, Phys. Rev. E 90, 022138 (2014).
- J. Bradbury, R. Frostig, P. Hawkins, M. J. Johnson, C. Leary, D. Maclaurin, G. Necula, A. Paszke, J. VanderPlas, S. Wanderman-Milne, and Q. Zhang, JAX: Composable transformations of Python+NumPy programs, GitHub, San Francisco, 2018, http://github.com/jax-ml/jax.
- M. Blondel, Q. Berthet, M. Cuturi, R. Frostig, S. Hoyer, F. Llinares-López, F. Pedregosa, and J.-P. Vert, in Proceedings of the 36th International Conference on Neural Information Processing Systems, New Orleans, 2022, edited by S. Koyejo, S. Mohamed, A. Agarwal, D. Belgrave, K. Cho, and A. Oh (Curran, Red Hook, 2022), pp. 5230–5242.
- DeepMind, I. Babuschkin, K. Baumli, A. Bell, S. Bhupatiraju, J. Bruce, P. Buchlovsky, D. Budden, T. Cai, A. Clark, I. Danihelka, A. Dedieu, C. Fantacci, J. Godwin, C. Jones, R. Hemsley, T. Hennigan, M. Hessel, S. Hou, S. Kapturowski, et al., The DeepMind JAX ecosystem, GitHub, San Francisco, 2020, https://github.com/google-deepmind/optax.