Abstract
Ordinary differential equations (ODEs) are widely used in science, engineering, and mathematics, but their numerical solution on traditional Von Neumann hardware is time- and energy-consuming, especially for high-order ODEs. Here, we present a high-concurrency memristor-based ODE solver supporting arbitrary order and three configurable modes: coarse, fine, and coarse-to-fine look-ahead, to meet diverse accuracy requirements. History-based memristor programming (HMP) accelerates device conductance programming by up to 3.29 × without compromising accuracy. The reconfigurable hardware implements coarse solver via analog compute-in-memory, fine solver via digital compute-in-memory, and coarse-to-fine solver using Parareal methods for high-concurrency numerical integration...
Abstract
Ordinary differential equations (ODEs) are widely used in science, engineering, and mathematics, but their numerical solution on traditional Von Neumann hardware is time- and energy-consuming, especially for high-order ODEs. Here, we present a high-concurrency memristor-based ODE solver supporting arbitrary order and three configurable modes: coarse, fine, and coarse-to-fine look-ahead, to meet diverse accuracy requirements. History-based memristor programming (HMP) accelerates device conductance programming by up to 3.29 × without compromising accuracy. The reconfigurable hardware implements coarse solver via analog compute-in-memory, fine solver via digital compute-in-memory, and coarse-to-fine solver using Parareal methods for high-concurrency numerical integration. We demonstrate its performance on exponential functions, Lorenz attractors, and three-body problems, achieving 601 × ~ 6.92 × 103 × speedup and 1.71 × 103 × ~ 3.93 × 103 × energy improvement over CPU/GPU, respectively, when solving the same ODE tasks. The memristor-based tri-mode solver pushes ODE solver hardware performance to a new paradigm with orders of magnitude concurrency improvements.
Data availability
The data generated in this study are provided in the Source Data file. The data used in this study are available in the Zenodo database46. Source data are provided in this paper.
Code availability
The code that needs to run on our memristor-based ODE solver hardware platform is available in the Zenodo database47.
References
Riley, K. F., Hobson, M. P. & Bence, S. J. Mathematical Methods for Physics and Engineering: A Comprehensive Guide (Cambridge University Press, 2006). 1.
Boyce, W. E., DiPrima, R. C. & Meade, D. B. Elementary Differential Equations and Boundary Value Problems (2021). 1.
Mishi, A. H. et al. Application of differential equations in physics. Global Sci. J. 8, 757–773 (2020).
Cui, H. et al. The application of linear ordinary differential equations. Appl. Math. 11, 1292 (2020).
Jones, D. S., Plank, M. & Sleeman, B. D. Differential equations and mathematical biology (Chapman and Hall/CRC, 2009). 1.
Ilea, M., Turnea, M. & Rotariu, M. Ordinary differential equations with applications in molecular biology. Med. Surg. J. 116, 347–352 (2012).
Borgqvist, J., Ohlsson, F. & Baker, R. E. Symmetries of systems of first order ODEs: symbolic symmetry computations, mechanistic model construction and applications in biology. Preprint at https://doi.org/10.48550/arXiv.2202.04935 (2022). 1.
Lee, C.-F. & Shi, J. Application of alternative ODE in finance and economics research. In Handbook of Quantitative Finance and Risk Management, 1293–1300 (Springer, 2010). 1.
Boucekkine, R., Licandro, O. & Paul, C. Differential-difference equations in economics: on the numerical solution of vintage capital growth models. J. Econ. Dyn. Control 21, 347–362 (1997).
Keller, A. A. Generalized delay differential equations to economic dynamics and control. Am. Math 10, 278–286 (2010).
Filippov, A. F. Differential Equations with Discontinuous Righthand Sides: Control Systems (2013). 1.
Sandoval, I. O., Petsagkourakis, P. & del Rio-Chanona, E. A. Neural ODEs as feedback policies for nonlinear optimal control. IFAC-PapersOnLine 56, 4816–4821 (2023).
Brockett, R. W. & Willems, J. L. Discretized partial differential equations: Examples of control systems defined on modules. Automatica 10, 507–515 (1974).
Al-Omari, A., Arnold, J., Taha, T. & Schüttler, H.-B. Solving large nonlinear systems of first-order ordinary differential equations with hierarchical structure using multi-GPGPUs and an adaptive Runge-Kutta ODE solver. IEEE Access 1, 770–777 (2013).
Ahnert, K., Demidov, D. & Mulansky, M. Solving ordinary differential equations on GPUs. In Numerical Computations with GPUs, 125–157 (Springer, 2014). 1.
Nagy, D., Plavecz, L. & Hegedüs, F. The art of solving a large number of non-stiff, low-dimensional ordinary differential equation systems on GPUs and CPUs. Commun. Nonlinear Sci. Numer. Simul. 112, 106521 (2022).
Fasih, A., Do Trong, T., Chedjou, J. C. & Kyamakya, K. New computational modeling for solving higher order ODE based on FPGA. In Proc. 2009 2nd International Workshop on Nonlinear Dynamics and Synchronization, 49–53 (IEEE, 2009). 1.
Huang, C., Vahid, F. & Givargis, T. A custom FPGA processor for physical model ordinary differential equation solving. IEEE Embed. Syst. Lett. 3, 113–116 (2011).
Huang, C., Vahid, F. & Givargis, T. Automatic synthesis of physical system differential equation models to a custom network of general processing elements on FPGAs. ACM TECS 13, 1–27 (2013).
Pano-Azucena, A. D., Tlelo-Cuautle, E., Rodriguez-Gomez, G. & De la Fraga, L. G. FPGA-based implementation of chaotic oscillators by applying the numerical method based on trigonometric polynomials. AIP Adv. 8, 075217 (2018). 1.
Cai, L. et al. Accelerating neural-ODE inference on FPGAs with two-stage structured pruning and history-based stepsize search. In Proc. 2023 ACM/SIGDA International Symposium on Field Programmable Gate Arrays, 177–183 (2023). 1.
Bhattacharya, S. & Chakraborty, D. Design and analysis of a hardware accelerator with FPU-based Runge-Kutta solvers. In Proc. 2023 International Conference on Electrical, Communication and Computer Engineering (ICECCE), 1–6 (IEEE, 2023). 1.
Tao, Y. & Zhang, Z. Hima: A fast and scalable history-based memory access engine for differentiable neural computer. In Proc. MICRO-54: 54th Annual IEEE/ACM International Symposium on Microarchitecture, 845–856 (2021). 1.
Yao, P. et al. Fully hardware-implemented memristor convolutional neural network. Nature 577, 641–646 (2020).
Sebastian, A., Le Gallo, M., Khaddam-Aljameh, R. & Eleftheriou, E. Memory devices and applications for in-memory computing. Nat. Nanotechnol. 15, 529–544 (2020).
Wen, T.-H. et al. Fusion of memristor and digital compute-in-memory processing for energy-efficient edge computing. Science 384, 325–332 (2024).
Khwa, W.-S. et al. A mixed-precision memristor and SRAM compute-in-memory AI processor. Nature 639, 617–623 (2025). 1.
Zhu, Y. et al. MeMCISA: Memristor-enabled memory-centric instruction-set architecture for database workloads. In Proc. 2024 57th IEEE/ACM International Symposium on Microarchitecture (MICRO), 1678–1692 (IEEE, 2024). 1.
Zhu, J., Tao, Y. & Zhang, Z. eNODE: Energy-efficient and low-latency edge inference and training of neural ODEs. In *Proc.*2023 IEEE International Symposium on High-Performance Computer Architecture (HPCA), 802–813 (IEEE, 2023). 1.
Yu, L., Jing, Z., Yang, Y. & Tao, Y. Fast and scalable memristive in-memory sorting with column-skipping algorithm. In *Proc.*2022 IEEE International Symposium on Circuits and Systems (ISCAS), 590–594 (IEEE, 2022). 1.
Yu, L. et al. Fast and reconfigurable sort-in-memory system enabled by memristors. Nat. Electron. 8, 597–609 (2023). 1.
Lin, Y. et al. Deep Bayesian active learning using in-memory computing hardware. Nat. Comput. Sci. 5, 27–36 (2024). 1.
Qi, Y. et al. An efficient and robust partial differential equation solver by flash-based computing in memory. Micromachines 14, 901 (2023).
Feng, Y. et al. An efficient flash-based computing-in-memory (CIM) demonstration of high-precision (32-bit) nonlinear partial differential equation (PDE) solver with ultra-high endurance and reliability. IEEE Trans. Circuits Syst. I: Regul. Pap. 72, 3247–3257 (2024). 1.
Zidan, M. A. et al. A general memristor-based partial differential equation solver. Nat. Electron. 1, 411–420 (2018).
Song, W. et al. Programming memristor arrays with arbitrarily high precision for analog computing. Science 383, 903–910 (2024).
De Vries, P. L. & Hasbun, J. E. A First Course in Computational Physics (Jones & Bartlett Publishers, 2011). 1.
Jiang, Z. et al. COPS: An efficient and reliability-enhanced programming scheme for analog RRAM and on-chip implementation of denoising diffusion probabilistic model. In Proc. 2023 International Electron Devices Meeting (IEDM), 1–4 (IEEE, 2023). 1.
Alexander, R. Solving ordinary differential equations I: Nonstiff problems (E. Hairer, SP Norsett, and G. Wanner). SIAM Rev. 32, 485 (1990).
Lions, J.-L., Maday, Y. & Turinici, G. Résolution d’EDP par un schéma en temps “pararéel". Comptes Rendus de l’Acad. Sci. Ser. I-Math. 332, 661–668 (2001).
Gander, M. J. & Vandewalle, S. Analysis of the parareal time-parallel time-integration method. SIAM J. Sci. Comput. 29, 556–578 (2007).
Pentland, K., Tamborrino, M., Sullivan, T. J., Buchanan, J. & Appel, L. C. GParareal: a time-parallel ODE solver using Gaussian process emulation. Stat. Comput. 33, 23 (2023).
ElShater, A. et al. A 10-mW 16-b 15-MS/s two-step SAR ADC with 95-dB DR using dual-deadzone ring amplifier. IEEE J. Solid State Circuits 54, 3410–3420 (2019).
Zhang, D. K. An explicit 16-stage Runge-Kutta method of order 10 discovered by numerical search. Numer. Alg. 96, 1243–1267 (2024).
Orapine, H. O., Oladele, J. O., Baidu, A. A. & Vafa, N. E. Derivation of five-stage implicit Runge-Kutta method of order 10 via Gauss-Legendre quadrature for ordinary differential equations. Int. J. Sci. Glob. Sustain. 9, 51–61 (2023).
Yu, L. High-concurrency tri-mode memristor-based ordinary differential equation solver, Zenodo. https://doi.org/10.5281/zenodo.17824214 (2025). 1.
Yu, L. & Zhu, Y. High-concurrency tri-mode memristor-based ordinary differential equation solver, Zenodo. https://doi.org/10.5281/zenodo.17825196 (2025).
Acknowledgements
This work has been supported by the National Key R&D Program of China (2023YFB4502200; Y.Y.), Guangdong Provincial Key Laboratory of In-Memory Computing Chips (2024B1212020002; Y.Y.), Shenzhen Science and Technology Program (JCYJ20241202125907011; Y.Y.), Beijing Natural Science Foundation (L234026, L257010; Y.Y.), National Natural Science Foundation of China (92164302; Y.Y.), and Financial Support for Outstanding Scientific and Technological Innovation Talents Training Fund in Shenzhen (Y.Y.). This work has been supported by the New Cornerstone Science Foundation (Y.Y.).
Author information
Authors and Affiliations
New Cornerstone Science Laboratory, Beijing Advanced Innovation Center for Integrated Circuits, School of Integrated Circuits, Peking University, Beijing, China
Lianfeng Yu, Teng Zhang, Yang Han, Bowen Wang, Ziang Xie, Haochen Zhang, Jiaxin Liu, Longhao Yan, Pek Jun Tiw, Daijing Shi, Lei Cai, Yaoyu Tao & Yuchao Yang 1.
New Cornerstone Science Laboratory, Guangdong Provincial Key Laboratory of In-Memory Computing Chips, School of Electronic and Computer Engineering, Shenzhen Graduate School, Peking University, Shenzhen, China
Ziang Xie & Yuchao Yang 1.
Center for Artificial Intelligence Chips, Institute of Artificial Intelligence, Peking University, Beijing, China
Yaoyu Tao & Yuchao Yang 1.
PKU-Wuhan Institute for Artificial Intelligence, Peking University, Wuhan, China
Yaoyu Tao 1.
Center for Brain Inspired Intelligence, Chinese Institute for Brain Research (CIBR), Beijing, China
Yuchao Yang
Authors
- Lianfeng Yu
- Teng Zhang
- Yang Han
- Bowen Wang
- Ziang Xie
- Haochen Zhang
- Jiaxin Liu
- Longhao Yan
- Pek Jun Tiw
- Daijing Shi
- Lei Cai
- Yaoyu Tao
- Yuchao Yang
Contributions
L.Y. and Y.T. designed the entire concept and experiment. L.Y., Y.T., and T.Z. were in charge of the hardware system integration, designed experimental methodologies for each part, and conducted related data analysis. L.Y., Y.T., T.Z., Y.H., B.W., Z.X., H.Z., J.L., L.Y., P.J.T., D.S., and L.C. contributed to memristor testing, chip design, chip fabrication, circuit design, PCB integration, hardware system verification and software simulations. L.Y., Y.T., Y.H., and Z.X. contributed to the interpretation of results. L.Y., Y.T., and Y.Y. wrote the paper with input from all authors. Y.T. and Y.Y. supervised the whole project.
Corresponding authors
Correspondence to Yaoyu Tao or Yuchao Yang.
Ethics declarations
Competing interests
The authors declare no competing interests.
Peer review
Peer review information
Nature Communications thanks Jianhua Yang, who co-reviewed with Wenhao Song, and the other anonymous reviewer(s) for their contribution to the peer review of this work. A peer review file is available.
Additional information
Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License, which permits any non-commercial use, sharing, 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 you modified the licensed material. You do not have permission under this licence to share adapted material derived from this article or parts of it. 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-nc-nd/4.0/.
About this article
Cite this article
Yu, L., Zhang, T., Han, Y. et al. High-concurrency tri-mode memristor-based ordinary differential equation solver. Nat Commun (2026). https://doi.org/10.1038/s41467-025-68122-4
Received: 03 June 2025
Accepted: 18 December 2025
Published: 08 January 2026
DOI: https://doi.org/10.1038/s41467-025-68122-4