
Probabilistic Prime Factorization based on Virtually Connected
Boltzmann Machine and Probabilistic Annealing
Hyundo Jung1*, Hyunjin Kim2*, Woojin Lee, Jinwoo Jeon, Yohan Choi, Taehyeong Park,
and Chulwoo Kim3
Korea University, Seoul, Korea
1: guseh7274@gmail.com, 2: jamespul321@gmail.com, 3: ckim@korea.ac.kr
*: These authors contributed equally to this work
Probabilistic computing has been introduced to operate functional networks using a probabilistic bit (p-bit),
generating 0 or 1 probabilistically from its electrical input. In contrast to quantum computers, probabilistic
computing enables the operation of adiabatic algorithms even at room temperature, and is expected to
broaden computational abilities in non-deterministic polynomial searching and learning problems. However,
previous developments of probabilistic machines have focused on emulating the operation of quantum
computers similarly, implementing every p-bit with large weight-sum matrix multiplication blocks1 or
requiring tens of times more p-bits than semiprime bits2–3. Furthermore, previous probabilistic machines
adopted the graph model of quantum computers for updating the hardware connections, which further
increased the number of sampling operations. Here we introduce a digitally accelerated prime factorization
machine with a virtually connected Boltzmann machine and probabilistic annealing method, designed to
reduce the complexity and number of sampling operations to below those of previous probabilistic
factorization machines1–3. In 10-bit to 64-bit factorizations were performed to assess the effectiveness of the
machine, and the machine offers 1.2×108 times improvement in the number of sampling operations compared
with previous factorization machines, with a 22-fold smaller hardware resource. This work shows that
probabilistic machines can be implemented in a cost-effective manner using a field-programmable gate array,
and hence we suggest that probabilistic computers can be employed for solving various large NP searching
problems in the near future.
Introduction
Deterministic computers have been developed to enhance
computing power using nanoscale transistors. However,
despite the increasing demand for solving combinatorial
optimization problems, deterministic computers perform
slow and inefficient search operations4, and the process-
scaling of transistors has been reaching its limit5. Quantum
computers have been introduced to rapidly solve these non-
deterministic polynomial (NP)-hard problems6–8. However,
the number of qubits required for such cases is still larger
than that of physically implemented qubits.
As a result of the above issues, probabilistic
computing13–24, which is realized by using magnetic tunnel
junction (MTJ) or complementary metal–oxide–
semiconductor (CMOS) technologies, has been proposed to
cost-effectively replace quantum annealers9–12, especially
for factorization calculations1–3. These Ising machines have
improved the factorization speed by four2 and six3 orders
above central processing units. However, the hardware
complexity and computation time of previous factorization
machines sharply increase as the number of total
probabilistic bits (p-bits) increases. Therefore, a novel
algorithm and its hardware implementation are required for
practical applications.
In this work, we propose a virtually connected
Boltzmann machine (VCBM) showing less hardware
complexity than the state-of-the-art probabilistic Ising
machines. Also, we introduce a probabilistic annealing
method for reducing the number of sampling operations of
the Boltzmann machine. Furthermore, we employed three
modulo operators (divide X and Y candidates by 3, 5, and 7)
preceded in each case by a sieve to determine the best
candidate (termed hereafter a “candidate sieve”) and a
decision block that consists of two modulo operators
(divide the semiprime by best candidate), in order to further
accelerate the performance of the factorization machine. To
show its potential to the community, results for up to 64-bit
factorization were produced using a field-programmable
gate array (FPGA).
Virtually connected Boltzmann machine
The Boltzmann machine25–27 is a type of constraint
satisfaction network that can use its probabilistic dynamics
to lead a system to ground states in combinatorial
optimization problems. Since the weights on the
connections between the spins of the Boltzmann machine
are fixed after the problem is formulated, Boltzmann
machines are frequently used for implementing Ising
models in hardware. However, as shown in Fig. 1a, the
hardware should be implemented with large spin-weight
matrix calculation circuits due to the 3-body and 4-body
terms of the Ising model1. On the other hand, when the Ising
model is implemented with hidden bits to represent 3-body
or 4-body terms12, the large number of hidden bits increases
the number of hardware connections to the fourth power of
N bits, (see Methods for details). In 2022, restricted
Boltzmann machine (RBM)28-based probabilistic
computing was introduced2, but the large number of
hardware connections in the RBM still limits the
application of these machines in large-scale general-
purpose probabilistic computers. Moreover, previous Ising
machines require the deployment of an additional