Abstract
The Boolean satisfiability (SAT) problem is a computationally challenging decision problem central to many industrial applications. For SAT problems in cryptanalysis, circuit design, and telecommunication, solutions can often be found more efficiently by representing them with a combination of exclusive OR (XOR) and conjunctive normal form (CNF) clauses. We propose a hardware accelerator architecture that natively embeds and solves such hybrid XOR–CNF problems using in-memory computing hardware. To achieve this, we introduce an algorithm and demonstrate, both experimentally and through simulations, how it can be efficiently implemented with memristor crossbar arrays. Compared to the conventional approaches that translate XOR–CNF problems to pure CNF problems, our simulations show that the accelerator improves computation speed, energy efficiency, and chip area utilization of in-memory accelerators by ~ 10 × for a set of hard cryptographic benchmarking problems. Moreover, the accelerator achieves a ~ 10 × speedup and a ~ 1000 × gain in energy efficiency over state-of-the-art SAT solvers running on CPUs.
Similar content being viewed by others
Data availability
The benchmarking instances used in this study are available in ref. 57.
Code availability
The simulator used for the heuristic simulation and energy modeling is open-sourced and available at https://github.com/HewlettPackard/CountryCrab.
References
Cook, S. A. The complexity of theorem proving procedures. In Proceedings of the Third Annual ACM Symposium, 151–158 (ACM, 1971).
Levin, L. A. Universal sequential search problems. Probl. Peredachi Inf. 9, 115–116 (1973).
Larrabee, T. Test pattern generation using boolean satisfiability. IEEE Trans. Comput. Aided Des. Integr. Circuits Syst. 11, 4–15 (1992).
Knuth, D. E. The Art of Computer Programming, Volume 4, Fascicle 6: Satisfiability (Addison-Wesley Professional, 2015).
Perron, L. & Didier, F. CP-SAT. https://developers.google.com/optimization/cp/cp_solver (2024).
Kowalsky, M., Albash, T., Hen, I. & Lidar, D. A. 3-regular three-xorsat planted solutions benchmark of classical and quantum heuristic optimizers. Quantum Sci. Technol. 7, 025008 (2022).
Nikhar, S., Kannan, S., Aadit, N. A., Chowdhury, S. & Camsari, K. Y. All-to-all reconfigurability with sparse and higher-order ising machines. Nat. Commun. 15, 8977 (2024).
Pedretti, G. et al. Solving boolean satisfiability problems with resistive content addressable memories. npj Unconv. Comput. 2, 7 (2025).
Sharma, A., Burns, M., Hahn, A. & Huang, M. Augmenting an electronic ising machine to effectively solve boolean satisfiability. Sci. Rep. 13, 22858 (2023).
Zhang, Q. et al. A stochastic analog sat solver in 65nm CMOS achieving 6.6μs average solution time with 100% solvability for hard 3-sat problems. In 2024 IEEE Symposium on VLSI Technology and Circuits (VLSI Technology and Circuits) (IEEE, 2024).
Shim, C., Bae, J. & Kim, B. 30.3 VIP-Sat: a Boolean satisfiability solver featuring 5 × 12 variable in-memory processing elements with 98% solvability for 50-variables 218-clauses 3-SAT problems. In 2024 IEEE International Solid-State Circuits Conference (ISSCC), 486–488 (IEEE, 2024).
Xie, S. et al. 29.2 Snap-SAT: a one-shot energy-performance-aware all-digital compute-in-memory solver for large-scale hard boolean satisfiability problems. In 2023 IEEE International Solid- State Circuits Conference (ISSCC), 420–422 (IEEE, 2023).
Kim, D., Rahman, N. M. & Mukhopadhyay, S. PRESTO: a processing-in-memory-based k -SAT solver using recurrent stochastic neural network with unsupervised learning. IEEE J. Solid State Circuits 59, 2310–2320 (2024).
Bhattacharya, T. et al. A fully integrated mixed-signal compute-in-memory accelerator for solving arbitrary order boolean satisfiability problems. In 2024 IEEE Symposium on VLSI Technology and Circuits (VLSI Technology and Circuits) (IEEE, 2025).
Soos, M., Gocht, S. & Meel, K. S. Tinted, detached, and lazy cnf-xor solving and its applications to counting and sampling. In International Conference on Computer Aided Verification, 463–484 (Springer, 2020).
Nawrocki, W., Liu, Z., Fröhlich, A., Heule, M. J. H. & Biere, A. Xor local search for boolean brent equations. In SAT, vol. 12831 of Lecture Notes in Computer Science, (eds, Li, C.-M. & Manyá, F.) 417–435 (Springer, 2021).
Andraschko, B., Danner, J. & Kreuzer, M. Sat solving using xor-or-and normal forms. Math. Comput. Sci. 18, 1–26 (2024).
Nandi, A., Chakrabartty, S. & Thakur, C. S. Margin propagation based xor-sat solvers for decoding of ldpc codes. In IEEE Transactions on Communications (IEEE, 2024).
Bellini, E. et al. New records of pre-image search of reduced sha-1 using sat solvers. In Proceedings of the Seventh International Conference on Mathematics and Computing: ICMC 2021, 141–151 (Springer, 2022).
Tseitin, G. S. On the Complexity of Derivation in Propositional Calculus, 466–483 (Springer Berlin Heidelberg, 1983).
Nawrocki, W., Liu, Z., Fröhlich, A., Heule, M. J. & Biere, A. XOR local search for boolean brent equations. In Theory and Applications of Satisfiability Testing–SAT 2021: 24th International Conference, Barcelona, Spain, July 5-9, 2021, Proceedings 24, 417–435 (Springer, 2021).
Soos, M., Nohl, K. & Castelluccia, C. Extending SAT solvers to cryptographic problems. In Theory and Applications of Satisfiability Testing - SAT 2009, 12th International Conference, SAT 2009, Swansea, UK, June 30 - July 3, 2009. Proceedings, vol. 5584 of Lecture Notes in Computer Science (ed. Kullmann, O.) 244–257 (Springer, 2009).
Sebastian, A., Le Gallo, M., Riduan, K.-A. & Evangelos, E. Memroy devices and applications for in-memory computing. Nat. Nanotechnol. 15, 529–544 (2020).
Zhu, C., Rucker, A. C., Wang, Y. & Dally, W. J. SatIn: Hardware for boolean satisfiability inference. Preprint at https://arxiv.org/abs/2303.02588 (2023).
Canteaut, A. & Chabaud, F. A new algorithm for finding minimum-weight words in a linear code: application to mceliece’s cryptosystem and to narrow-sense bch codes of length 511. IEEE Trans. Inf. Theory 44, 367–378 (1998).
Mandrà, S., Munoz-Bauza, H., Mossi, G. & Rieffel, E. G. Generating hard ising instances with planted solutions using post-quantum cryptographic protocols. Fut. Gener. Comput. Syst. 166, 107721 (2025).
Daemen, J. & Rijmen, V. The Design of Rijndael : AES - The Advanced Encryption Standard, 1st edn. Information Security and Cryptography (Springer Berlin Heidelberg, 2002).
Kamal, A. A. & Youssef, A. M. Applications of SAT solvers to AES key recovery from decayed key schedule images. In 2010 Fourth International Conference on Emerging Security Information, Systems and Technologies, 216–220 (IEEE, 2010).
Biere, A. et al. CaDiCaL 2.0. In Gurfinkel, A. & Ganesh, V. (eds.) Computer Aided Verification - 36th International Conference, CAV 2024, Montreal, QC, Canada, July 24-27, 2024, Proceedings, Part I, vol. 14681 of Lecture Notes in Computer Science, 133–152 (Springer, 2024).
Selman, B., Kautz, H. & Cohen, B. Noise strategies for improving local search. Proceedings of the National Conference on Artificial Intelligence, 1 (ACM, 1999).
Russell, S. & Norvig, P. Artificial Intelligence: A Modern Approach, 3 edn (Prentice Hall, 2010).
Aramon, M. et al. Physics-inspired optimization for quadratic unconstrained problems using a digital annealer. Front. Phys. 7, 48 (2019).
Bhattacharya, T., Hutchinson, G. H., Pedretti, G. & Strukov, D. Ho-fpia: High-order field-programmable ising arrays with in-memory computing. In 2024 IEEE Computer Society Annual Symposium on VLSI (ISVLSI), 252–259 (IEEE, 2024).
Bhattacharya, T. et al. Computing high-degree polynomial gradients in memory. Nat. Commun. 15, 8211 (2024).
Heittmann, A., Hizzani, M. & Strachan, J. P. Impact of variability compensation on the performance of an rram-based 3-sat solver. In 2025 IEEE International Symposium on Circuits and Systems (ISCAS), 1–5 (IEEE, 2025).
Li, C. et al. Cmos-integrated nanoscale memristive crossbars for cnn and optimization acceleration. In 2020 IEEE International Memory Workshop (IMW), 1–4 (IEEE, 2020).
Sheng, X. et al. Low-conductance and multilevel cmos-integrated nanoscale oxide memristors. Adv. Electron. Mater. 5, 1800876 (2019).
Crawford, J. M., Kearns, M. J. & Schapire, R. E. The minimal disagreement parity problem as a hard satisfiability problem. In Computational Intell (Research Lab and AT&T Bell Labs TR, 1994).
Pedretti, G., Ambrosi, E. & Ielmini, D. Conductance variations and their impact on the precision of in-memory computing with resistive switching memory (rram). In 2021 IEEE International Reliability Physics Symposium (IRPS), 1–8 (IEEE, 2021).
Rao, M. et al. Thousands of conductance levels in memristors integrated on cmos. Nature 615, 823–829 (2023).
Biere, A. arminbiere/kissat: Release 4.0.0. https://github.com/arminbiere/kissat (2024).
Stern, J. A New Identification Scheme Based on Syndrome Decoding, 13–21 (Springer Berlin Heidelberg, 1994).
Dobrynin, D. et al. Energy landscapes of combinatorial optimization in Ising machines. Phys. Rev. E 110, 045308 (2024).
Cai, F. et al. Power-efficient combinatorial optimization using intrinsic noise in memristor Hopfield neural networks. Nat. Electron. 3, 409–418 (2020).
Ambrogio, S. et al. An analog-ai chip for energy-efficient speech recognition and transcription. Nature 620, 768–775 (2023).
Soos, M. & Meel, K. S. Gaussian Elimination Meets Maximum Satisfiability. In Proceedings of the 18th International Conference on Principles of Knowledge Representation and Reasoning (IJCAI Organization, 2025).
Zhang, X. et al. Parallel tempering–inspired distributed binary optimization with in-memory computing. Phys. Rev. 23, 034031 (2025).
Soos, M., Devriendt, J., Gocht, S., Shaw, A. & Meel, K. S. Cryptominisat with CCAnr at the sat competition 2020. SAT COMPETITION 2020, 27 (2020).
Soos, M., Selman, B., Kautz, H., Devriendt, J. & Gocht, S. Cryptominisat with walksat at the sat competition 2020. SAT COMPETITION 2020, 29 (2020).
Lo, M., Chang, M.-C. F. & Cong, J. SAT-Accel: A modern sat solver on a FPGA. In Proceedings of the 2025 ACM/SIGDA International Symposium on Field Programmable Gate Arrays, FPGA ’25, 234–246 (Association for Computing Machinery, 2025).
Bernstein, D. J., Lange, T. & Peters, C. Attacking and defending the mceliece cryptosystem. In Post-Quantum Cryptography (eds Buchmann, J. & Ding, J.) 31–46 (Springer Berlin Heidelberg, 2008).
McEliece, R. J. A public-key cryptosystem based on algebraic coding theory. Deep Space Netw. Prog. Rep. 44, 114–116 (1978).
Niederreiter, H. Knapsack-type cryptosystems and algebraic coding theory. Prob. Contr. Inform. Theory 15, 157–166 (1986).
National Institute of Standards and Technology. Post-quantum cryptography candidates to be standardized and round 4 of the nist post-quantum cryptography standardization process. https://csrc.nist.gov/news/2022/pqc-candidates-to-be-standardized-and-round-4 (2022).
Patterson, N. The algebraic decoding of goppa codes. IEEE Trans. Inf. Theory 21, 203–207 (1975).
Mandra, S. et al. PySA: fast simulated annealing in native Python. https://github.com/nasa/pysa (2023).
Im, H. et al. Dataset for accelerating hybrid xor-cnf sat problems natively with in-memory computing. Zenodo data repository, https://doi.org/10.5281/zenodo.18235974 (2026).
Chen, J. XORSAT: an efficient algorithm for the dimacs 32-bit parity problem. Preprint at https://arxiv.org/abs/cs/0703006 (2007).
Dimacs instance repository. http://archive.dimacs.rutgers.edu/pub/challenge/sat/benchmarks/cnf/ (2000).
M.P., B. & Babu, K. R. Secure cloud storage using aes encryption. In 2016 International Conference on Automatic Control and Dynamic Optimization Techniques (ICACDOT), 859–864 (IEEE, 2016).
Balint, A. et al. (eds.) Proceedings of SAT Challenge 2012 : Solver and Benchmark Descriptions (University of Helsinki, 2012). https://api.semanticscholar.org/CorpusID:199587264.
Ignatiev, A., Morgado, A. & Marques-Silva, J. PySAT: a Python toolkit for prototyping with SAT oracles. In Theory and Applications of Satisfiability Testing – SAT, 428–437 (SAT, 2018).
Noori, M., Valiante, E., Vaerenbergh, T. V., Mohseni, M. & Rozada, I. Statistical analysis for per-instance evaluation of stochastic optimizers: Avoiding unreliable conclusions. Phys. Rev. Appl. https://link.aps.org/doi/10.1103/2fpj-t663 (2026).
van de Ven, A. et al. Powertop. https://github.com/fenrus75/powertop. Version 2.15 (2022).
Murmann, B. ADC Performance Survey 1997-2024. Available: https://github.com/bmurmann/ADC-survey (2025).
Andrulis, T., Chen, R. Lee, H.-S. Emer, J. S. & Sze, V. Modeling Analog-Digital-Converter Energy and Area for Compute-In-Memory Accelerator Design. arXiv https://arxiv.org/abs/2404.06553 (2024).
Shafiee, A. et al. ISAAC: a convolutional neural network accelerator with in-situ analog arithmetic in crossbars. ACM SIGARCH Comput. Architecture N. 44, 14–26 (2016).
Acknowledgements
The authors thank our editor, Marko Bucyk, for his careful review and editing of the manuscript, and Dmitri Strukov for discussions on XOR hardware architectures. This material is based upon work supported by the Defense Advanced Research Projects Agency (DARPA) through Air Force Research Laboratory Agreement No. FA8650-23-3-7313. The views, opinions, and/or findings expressed are those of the author(s) and should not be interpreted as representing the official views or policies of the Department of Defense or the U.S. Government.
Author information
Authors and Affiliations
Contributions
H.I. and F.B. contributed equally to this work and are recognized co-first authors. H.I. and F.B. wrote the manuscript. H.I., N.K., and T.B. performed algorithm designs. M.N. and E.V. analyzed the numeric results. H.I., X.Z., and C.-W.Y. conducted the corresponding numeric benchmarking simulation. A.H. performed circuit and architectural simulations. X.S., J.I., and J.P.S. contributed to the memristor fabrication and experimental system development. G.P. and T.V.V. conceived the idea of asserting XOR clauses with in-memory computing. F.B. derived the hardware architecture, conducted the hardware modeling and energy simulations, and performed the hardware experiments. I.R. conceived the main idea of the XOR–CNF use case. I.R., T.V.V., J.P.S., M.M., and R.B. supervised and led the collaboration effort. All authors analyzed and discussed the results.
Corresponding author
Ethics declarations
Competing interests
The authors declare no competing interests.
Peer review
Peer review information
Nature Communications thanks Xueqing Li 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.
Supplementary information
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, 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 changes were made. 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/4.0/.
About this article
Cite this article
Im, H., Böhm, F., Pedretti, G. et al. Accelerating hybrid XOR–CNF Boolean satisfiability problems natively with in-memory computing. Nat Commun (2026). https://doi.org/10.1038/s41467-026-69465-2
Received:
Accepted:
Published:
DOI: https://doi.org/10.1038/s41467-026-69465-2


