- Open Access
Analog-electronic implementation of a harmonic oscillator recurrent neural network
Phys. Rev. Applied 24, 064055 – Published 22 December, 2025
DOI: https://doi.org/10.1103/bg2h-5tt8
Abstract
Oscillatory recurrent networks, such as the harmonic oscillator recurrent network (HORN) model, offer advantages in parameter efficiency, learning speed, and robustness relative to traditional nonoscillating architectures. Yet, while many implementations of physical neural networks exploiting attractor dynamics have been studied, so far implementations of oscillatory models in analog-electronic hardware that utilize the networks’ transient dynamics are lacking. This study explores the feasibility of implementing HORNs in analog-electronic hardware while maintaining the computational performance of the digital counterpart. Using a digital-twin approach, we trained a four-node HORN in silico for sMNIST (sequential Modified National Institute of Standards and Technology) classification and transferred the trained parameters to an analog-electronic implementation. A set of custom error metrics indicated that the analog system is able to successfully replicate the dynamics of the digital model in most test cases. However, despite the overall well-matching dynamics, when using the readout layer of the digital model on the data generated by the analog system, we observed only 28.39% agreement with the predictions of the digital model. An analysis shows that this mismatch is due to a precision difference between the analog hardware and the floating-point representation exploited by the digital model to perform classification tasks. When the analog system was utilized as a reservoir with a retrained linear readout, its classification performance could be recovered to that of the digital twin, indicating preserved information content within the analog dynamics. This proof of concept establishes that analog-electronic circuits can effectively implement oscillatory neural networks for computation, providing a demonstration of energy-efficient analog systems that exploit brain-inspired transient dynamics for computation.
Physics Subject Headings (PhySH)
Article Text
References (58)
- L. G. Wright, T. Onodera, M. M. Stein, T. Wang, D. T. Schachter, Z. Hu, and P. L. McMahon, Deep physical neural networks trained with backpropagation, Nature 601, 549 (2022).
- D. Marković, A. Mizrahi, D. Querlioz, and J. Grollier, Physics for neuromorphic computing, Nat. Rev. Phys. 2, 499 (2020).
- W. Yu, H. Guo, J. Xiao, and J. Shen, Physical neural networks with self-learning capabilities, Sci. China Phys. Mech. Astron. 67, 287501 (2024).
- C. D. Schuman, S. R. Kulkarni, M. Parsa, J. P. Mitchell, P. Date, and B. Kay, Opportunities for neuromorphic computing algorithms and applications, Nat. Comput. Sci. 2, 10 (2022).
- T. Dalgaty, F. Moro, Y. Demirağ, A. De Pra, G. Indiveri, E. Vianello, and M. Payvand, Mosaic: In-memory computing and routing for small-world spike-based neuromorphic systems, Nat. Commun. 15, 142 (2024).
- M. Aifer, Z. Belateche, S. Bramhavar, K. Y. Camsari, P. J. Coles, G. Crooks, D. J. Durian, A. J. Liu, A. Marchenkova, A. J. Martinez, P. L. McMahon, F. Sbahi, B. Weiner, and L. G. Wright, Solving the compute crisis with physics-based ASICs, ArXiv:2507.10463.
- P. A. Merolla, J. V. Arthur, R. Alvarez-Icaza, A. S. Cassidy, J. Sawada, F. Akopyan, B. L. Jackson, N. Imam, C. Guo, Y. Nakamura, B. Brezzo, I. Vo, S. K. Esser, R. Appuswamy, B. Taba, A. Amir, M. D. Flickner, W. P. Risk, R. Manohar, and D. S. Modha, A million spiking-neuron integrated circuit with a scalable communication network and interface, Science 345, 668 (2014).
- Y. Zhong, J. Tang, X. Li, X. Liang, Z. Liu, Y. Li, Y. Xi, P. Yao, Z. Hao, B. Gao, H. Qian, and H. Wu, A memristor-based analogue reservoir computing system for real-time and power-efficient signal processing, Nat. Electron. 5, 672 (2022).
- K. Vandoorne, P. Mechet, T. Van Vaerenbergh, M. Fiers, G. Morthier, D. Verstraeten, B. Schrauwen, J. Dambre, and P. Bienstman, Experimental demonstration of reservoir computing on a silicon photonics chip, Nat. Commun. 5, 3541 (2014).
- H. Cılasun, W. Moy, Z. Zeng, T. Islam, H. Lo, A. Vanasse, M. Tan, M. Anees, R. S, A. Kumar, S. S. Sapatnekar, C. H. Kim, and U. R. Karpuzcu, A coupled-oscillator-based Ising chip for combinatorial optimization, Nat. Electron. 8, 537 (2025).
- S. Abreu, et al., A photonics perspective on computing with physical substrates, Rev. Phys. 12, 100093 (2024).
- G. Wetzstein, A. Ozcan, S. Gigan, S. Fan, D. Englund, M. Soljačić, C. Denz, D. A. B. Miller, and D. Psaltis, Inference in artificial intelligence with deep optics and photonics, Nature 588, 39 (2020).
- M. Romera, P. Talatchian, S. Tsunegi, F. Abreu Araujo, V. Cros, P. Bortolotti, J. Trastoy, K. Yakushiji, A. Fukushima, H. Kubota, S. Yuasa, M. Ernoult, D. Vodenicarevic, T. Hirtzlin, N. Locatelli, D. Querlioz, and J. Grollier, Vowel recognition with four coupled spin-torque nano-oscillators, Nature 563, 230 (2018).
- Y. Chen, M. Nazhamaiti, H. Xu, Y. Meng, T. Zhou, G. Li, J. Fan, Q. Wei, J. Wu, F. Qiao, L. Fang, and Q. Dai, All-analog photoelectronic chip for high-speed vision tasks, Nature 623, 48 (2023).
- R. H. Lee, E. A. B. Mulder, and J. B. Hopkins, Mechanical neural networks: Architected materials that learn behaviors, Sci. Robot. 7, eabq7278 (2022).
- A. Momeni, B. Rahmani, M. Malléjac, P. del Hougne, and R. Fleury, Backpropagation-free training of deep physical neural networks, Science 382, 1297 (2023).
- 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).
- A. Momeni, et al., Training of physical neural networks, ArXiv:2406.03372.
- A. Todri-Sanial, C. Delacour, M. Abernot, and F. Sabo, Computing with oscillators from theoretical underpinnings to applications and demonstrators, npj Unconv. Comput. 1, 14 (2024).
- T. K. Rusch and S. Mishra, Coupled oscillatory recurrent neural network (coRNN): An accurate and (gradient) stable architecture for learning long time dependencies, in International Conference on Learning Representations (2021), https://openreview.net/forum?id=F3s69XzWOia.
- F. Effenberger, P. Carvalho, I. Dubinin, and W. Singer, The functional role of oscillatory dynamics in neocortical circuits: A computational perspective, Proc. Natl. Acad. Sci. 122, e2412830122 (2025).
- P. Fries, Rhythms for cognition: Communication through coherence, Neuron 88, 220 (2015).
- M. Rosenblum, A. Pikovsky, J. Kurths, C. Schäfer, and P. A. Tass, Chapter 9 Phase synchronization: From theory to data analysis, in Neuro-Informatics and Neural Modelling, edited by F. Moss and S. Gielen, Handbook of Biological Physics (North-Holland, 2001), Vol. 4, pp. 279–321.
- T. W. Hughes, I. A. D. Williamson, M. Minkov, and S. Fan, Wave physics as an analog recurrent neural network, Sci. Adv. 5, eaay6946 (2019).
- G. Buzsáki and X.-J. Wang, Mechanisms of gamma oscillations, Annu. Rev. Neurosci. 35, 203 (2012).
- A. V. Goltsev, M. A. Lopes, K.-E. Lee, and J. F. F. Mendes, Critical and resonance phenomena in neural networks, AIP Conf. Proc. 1510, 28 (2013).
- I. Dubinin and F. Effenberger, Fading memory as inductive bias in residual recurrent networks, Neural Netw. 173, 106179 (2024).
- P. Ashwin and C. Postlethwaite, Excitable networks for finite state computation with continuous time recurrent neural networks, Biol. Cybern. 115, 519 (2021).
- D. Nikolić, S. Häusler, W. Singer, W. Maass, and J. D. Victor, Distributed fading memory for stimulus properties in the primary visual cortex, PLoS Biol. 7, e1000260 (2009).
- K. B. Doelling and D. Poeppel, Cortical entrainment to music and its modulation by expertise, Proc. Natl. Acad. Sci. 112, E6233 (2015).
- R. Schmidt, J. Rose, and V. Muralidharan, Transient oscillations as computations for cognition: Analysis, modeling and function, Curr. Opin. Neurobiol. 83, 102796 (2023).
- A. Palmigiano, T. Geisel, F. Wolf, and D. Battaglia, Flexible information routing by transient synchrony, Nat. Neurosci. 20, 1014 (2017).
- R. F. Helfrich, I. C. Fiebelkorn, S. M. Szczepanski, J. J. Lin, J. Parvizi, R. T. Knight, and S. Kastner, Neural mechanisms of sustained attention are rhythmic, Neuron 99, 854 (2018).
- G. Csaba and W. Porod, Coupled oscillators for computing: A review and perspective, Appl. Phys. Rev. 7, 011302 (2020).
- B. Ulmann, anabrid Model-1 analog computer user manual, http://analogparadigm.com/downloads/handbook.pdf.
- H. Chen, et al., Continuous-time digital twin with analog memristive neural ordinary differential equation solver, Sci. Adv. 11, eadr7571 (2025).
- T. Rudner, W. Porod, and G. Csaba, Design of oscillatory neural networks by machine learning, Front. Neurosci. 18, 1307525 (2024).
- Y. Lecun, L. Bottou, Y. Bengio, and P. Haffner, Gradient-based learning applied to document recognition, Proc. IEEE 86, 2278 (1998).
- G. Tanaka, T. Yamane, J. B. Héroux, R. Nakane, N. Kanazawa, S. Takeda, H. Numata, D. Nakano, and A. Hirose, Recent advances in physical reservoir computing: A review, Neural Netw. 115, 100 (2019).
- C. Du, F. Cai, M. A. Zidan, W. Ma, S. H. Lee, and W. D. Lu, Reservoir computing using dynamic memristors for temporal information processing, Nat. Commun. 8, 2204 (2017).
- F. K. Kneubühl, Oscillations and Waves (Springer, Berlin, Heidelberg, 1997).
- E. Hairer, C. Lubich, and G. Wanner, Geometric numerical integration illustrated by the Störmer–Verlet method, Acta Numer. 12, 399 (2003).
- M. Baronig, R. Ferrand, S. Sabathiel, and R. Legenstein, Advancing spatio-temporal processing through adaptation in spiking neural networks, Nat. Commun. 16, 5776 (2025).
- A. Paszke, et al., PyTorch: An Imperative Style, High-Performance Deep Learning Library, in Advances in Neural Information Processing Systems, edited by H. Wallach, H. Larochelle, A. Beygelzimer, F. D. Alché-Buc, E. Fox, and R. Garnett (Curran Associates, Inc., 2019), Vol. 32, Vol. 32, https://proceedings.neurips.cc/paper_files/paper/2019/file/bdbca288fee7f92f2bfa9f7012727740-Paper.pdf.
- ADALM2000 Website, https://www.analog.com/en/resources/evaluation-hardware-and-software/evaluation-boards-kits/adalm2000.html.
- B. Ulmann and S. Köppel, TeensyLogger: Open-source analog data logger based on Teensy, 2025. https://github.com/anabrid/TeensyLogger
- B. Ulmann, Analog Computing (De Gruyter Oldenbourg, Berlin, Boston, 2022).
- B. Ulmann, Analog and Hybrid Computer Programming (De Gruyter Oldenbourg, Berlin, Boston, 2020).
- A. Ohkubo and M. Inubushi, Reservoir computing with generalized readout based on generalized synchronization, Sci. Rep. 14, 30918 (2024).
- J. D. Kendall, R. D. Pantone, K. Manickavasagam, Y. Bengio, and B. Scellier, Training end-to-end analog neural networks with equilibrium propagation, ArXiv:2006.01981.
- M. Satyanarayanan, The emergence of edge computing, Computer 50, 30 (2017).
- D. J. Amit, Modeling Brain Function: The World of Attractor Neural Networks (Cambridge University Press, Cambridge, 1989).
- G. Indiveri and S.-C. Liu, Memory and information processing in neuromorphic systems, Proc. IEEE 103, 1379 (2015).
- D. Kudithipudi, et al., Neuromorphic computing at scale, Nature 637, 801 (2025).
- S. Higuchi, S. Kairat, S. Bohté, and S. Otte, Balanced Resonate-and-Fire Neurons, in Proceedings of the 41st International Conference on Machine Learning, edited by R. Salakhutdinov, Z. Kolter, K. Heller, A. Weller, N. Oliver, J. Scarlett, and F. Berkenkamp, Proceedings of Machine Learning Research (PMLR, 2024), Vol. 235, pp. 18305–18323, https://proceedings.mlr.press/v235/higuchi24a.html.
- P. Carvalho, Digital twin data, Figshare https://doi.org/10.6084/m9.figshare.29959970 (2025).
- P. Carvalho, Analog twin data, Figshare https://doi.org/10.6084/m9.figshare.29959967 (2025).
- F. Pedregosa, G. Varoquaux, A. Gramfort, V. Michel, B. Thirion, O. Grisel, M. Blondel, P. Prettenhofer, R. Weiss, V. Dubourg, J. Vanderplas, A. Passos, D. Cournapeau, M. Brucher, M. Perrot, and E. Duchesnay, Scikit-learn: Machine learning in Python, J. Mach. Learn. Res. 12, 2825 (2011).