Information processing device, information processing system, information processing method, storage medium, and program
The information processing device and system address the challenge of combinatorial explosion in optimization problems by employing a simulated branching algorithm with parallel processing, effectively solving complex optimization tasks.
Patent Information
- Application Number
- JP2021509658
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2019-03-28
- Filing Date
- 2020-03-27
- Publication Date
- 2024-10-07
- Estimated Expiration
- 2040-03-27
AI Technical Summary
Combinatorial optimization problems are challenging due to the combinatorial explosion, making it difficult to find optimal or approximate solutions within a practical time frame, especially in fields like finance, logistics, transportation, design, and life sciences.
An information processing device and system that utilize a simulated branching algorithm to solve combinatorial optimization problems by updating first and second variables with coefficients, incorporating constraint terms, and performing parallel calculations using multiple processors and GPUs.
Enables the calculation of optimal or approximate solutions to combinatorial optimization problems efficiently, satisfying constraints and reducing calculation time through parallel processing.
Smart Images

Figure 0007562508000026 
Figure 0007562508000027 
Figure 0007562508000028
Abstract
Description
[Technical field]
[0001] An embodiment of the present invention relates to an information processing device, an information processing system, an information processing method, a storage medium, and a program. [Background technology]
[0002] A combinatorial optimization problem is a problem of selecting the combination that is most suitable for a purpose from among multiple combinations. Mathematically, a combinatorial optimization problem can be reduced to a problem of maximizing a function with multiple discrete variables, called an "objective function," or a problem of minimizing said function. Combinatorial optimization problems are common in various fields such as finance, logistics, transportation, design, manufacturing, and life sciences, but it is not always possible to find an optimal solution because of the so-called "combinatorial explosion," in which the number of combinations increases exponentially with the problem size. In addition, it is often difficult to even obtain an approximate solution close to the optimal solution.
[0003] In order to solve problems in various fields and promote social innovation and progress in science and technology, there is a need to develop technology that can calculate solutions to combinatorial optimization problems within a practical amount of time. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] JP 2017-73106 A [Non-patent literature]
[0005] [Non-Patent Document 1] H. Goto, K. Tatsumura, AR Dixon, Sci. Adv. 5, eaav2372 (2019). [Non-Patent Document 2] H. Goto, Sci. Rep. 6, 21686 (2016). [Non-Patent Document 3] Tsuchiya, Nishiyama, Tsujita: Approximation method for combinatorial optimization problems using branching properties URL: http: / / www.ynl.tu-tokyo.ac.jp / project / RobotBrainCREST / publications / pdf / tsuchiya / 4_01.pdf [Non-Patent Document 4] Tsuchiya, Nishiyama, Tsujita: Analysis of deterministic annealing algorithms URL: http: / / www.ynl.tu-tokyo.ac.jp / project / RobotBrainCREST / publications / pdf / tsuchiya / 4_02.pdf Summary of the Invention [Problem to be solved by the invention]
[0006] The embodiments of the present invention provide an information processing device, an information processing system, an information processing method, a storage medium, and a program that calculate a solution to a combinatorial optimization problem within a practical time. [Means for solving the problem]
[0007] An information processing device according to an embodiment of the present invention includes a storage unit and a processing circuit. The storage unit is configured to store a first variable that is an element of a first vector and a second variable that is an element of a second vector. The processing circuit is configured to update the first variable based on the corresponding second variable, weight the first variable with a first coefficient and add it to the corresponding second variable, calculate a problem term using a plurality of the first variables, add the problem term to the second variable, calculate a first correction term including a product of a constraint term and a second coefficient, add the first correction term to the second variable, and increase the absolute values of the first coefficient and the second coefficient according to the number of updates. The constraint term is based on a constraint condition and has the first variable as an argument. [Brief description of the drawings]
[0008] [Figure 1] FIG. 1 is a diagram showing an example of the configuration of an information processing system. [Diagram 2]FIG. 2 is a block diagram showing an example of the configuration of a management server. [Diagram 3] FIG. 4 is a diagram showing an example of data stored in a storage unit of a management server. [Figure 4] FIG. 1 is a block diagram showing an example of the configuration of a calculation server. [Diagram 5] FIG. 13 is a diagram showing an example of data stored in the storage of a calculation server. [Figure 6] 11 is a flowchart showing an example of a process for calculating a solution of a simulated bifurcation algorithm by time evolution. [Figure 7] A table showing examples of equality constraints. [Figure 8] A table showing examples of inequality constraints. [Figure 9] A table showing examples of inequality constraints. [Figure 10] 11 is a flowchart showing an example of a solution process for an extended Hamiltonian including a first correction term. [Figure 11] 13 is a flowchart showing an example of a solution process for an extended Hamiltonian further including a second correction term. [Figure 12] 13 is a flowchart showing an example of a solution-finding process in which part of the update process of the coefficient λ m is skipped. [Figure 13] FIG. 1 is a schematic diagram illustrating an example of a multiprocessor configuration. [Figure 14] A schematic diagram showing an example of a configuration using a GPU. [Figure 15] 1 is a flowchart showing an example of an overall process executed to solve a combinatorial optimization problem. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0009] Hereinafter, an embodiment of the present invention will be described with reference to the drawings. In the drawings, the same components are designated by the same reference numerals, and the description thereof will be omitted as appropriate.
[0010] FIG. 1 is a block diagram showing a configuration example of an information processing system 100. The information processing system 100 in FIG. 1 includes a management server 1, a network 2, calculation servers (information processing devices) 3a to 3c, cables 4a to 4c, a switch 5, and a storage device 7. FIG. 1 also shows a client terminal 6 that can communicate with the information processing system 100. The management server 1, the calculation servers 3a to 3c, the client terminal 6, and the storage device 7 can communicate data with each other via the network 2. For example, the calculation servers 3a to 3c can store data in the storage device 7 and read data from the storage device 7. The network 2 is, for example, the Internet in which a plurality of computer networks are interconnected. The network 2 can use wired, wireless, or a combination of these as a communication medium. An example of a communication protocol used in the network 2 is TCP / IP, but the type of communication protocol is not particularly limited.
[0011] The calculation servers 3a to 3c are connected to a switch 5 via cables 4a to 4c, respectively. The cables 4a to 4c and the switch 5 form an interconnect between the calculation servers. The calculation servers 3a to 3c can also perform data communication with each other via the interconnect. The switch 5 is, for example, an Infiniband switch. The cables 4a to 4c are, for example, Infiniband cables. However, a wired LAN switch / cable may be used instead of the Infiniband switch / cable. There is no particular restriction on the communication standard and communication protocol used in the cables 4a to 4c and the switch 5. Examples of the client terminal 6 include a notebook PC, a desktop PC, a smartphone, a tablet, and an in-vehicle terminal.
[0012] In solving a combinatorial optimization problem, the process can be parallelized and / or distributed. Therefore, the calculation servers 3a to 3c and / or the processors of the calculation servers 3a to 3c may share and execute some steps of the calculation process, or may execute similar calculation processes for different variables in parallel. The management server 1, for example, converts the combinatorial optimization problem input by the user into a format that can be processed by each calculation server, and controls the calculation servers. Then, the management server 1 acquires the calculation results from each calculation server, and converts the aggregated calculation results into a solution to the combinatorial optimization problem. In this way, the user can obtain the solution to the combinatorial optimization problem. The solution to the combinatorial optimization problem includes an optimal solution and an approximate solution close to the optimal solution.
[0013] FIG. 1 shows three calculation servers. However, the number of calculation servers included in the information processing system is not limited. The number of calculation servers used to solve the combinatorial optimization problem is not particularly limited. For example, the information processing system may include one calculation server. The combination optimization problem may be solved using any of the multiple calculation servers included in the information processing system. The information processing system may include hundreds of calculation servers. The calculation server may be a server installed in a data center or a desktop PC installed in an office. The calculation server may be multiple types of computers installed in different locations. The type of information processing device used as the calculation server is not particularly limited. For example, the calculation server may be a general-purpose computer, a dedicated electronic circuit, or a combination of these.
[0014] Fig. 2 is a block diagram showing an example of the configuration of the management server 1. The management server 1 in Fig. 2 is, for example, a computer including a central processing unit (CPU) and a memory. The management server 1 includes a processor 10, a storage unit 14, a communication circuit 15, an input circuit 16, and an output circuit 17. The processor 10, the storage unit 14, the communication circuit 15, the input circuit 16, and the output circuit 17 are connected to each other via a bus 20. The processor 10 includes, as internal components, a management unit 11, a conversion unit 12, and a control unit 13.
[0015] The processor 10 is an electronic circuit that executes calculations and controls the management server 1. For example, a CPU, a microprocessor, an ASIC, an FPGA, a PLD, or a combination of these can be used as the processor 10. The management unit 11 provides an interface for operating the management server 1 via the user's client terminal 6. Examples of the interface provided by the management unit 11 include an API, a CLI, and a web page. For example, a user can input information on a combinatorial optimization problem via the management unit 11, and view and / or download a calculated solution to the combinatorial optimization problem. The conversion unit 12 converts the combinatorial optimization problem into a format that can be processed by each calculation server. The control unit 13 transmits a control command to each calculation server. After the control unit 13 acquires the calculation results from each calculation server, the conversion unit 12 aggregates the multiple calculation results and converts them into a solution to the combinatorial optimization problem. The control unit 13 may also specify the processing content to be executed by each calculation server or a processor in each server.
[0016] The storage unit 14 stores various data including the program of the management server 1, data required to execute the program, and data generated by the program. Here, the program includes both an OS and an application. The storage unit 14 may be a volatile memory, a non-volatile memory, or a combination of these. Examples of the volatile memory include DRAM and SRAM. Examples of the non-volatile memory include NAND flash memory, NOR flash memory, ReRAM, or MRAM. In addition, a hard disk, an optical disk, a magnetic tape, or an external storage device may be used as the storage unit 14.
[0017] The communication circuit 15 transmits and receives data to and from each device connected to the network 2. The communication circuit 15 is, for example, a NIC (Network Interface Card) of a wired LAN. However, the communication circuit 15 may be another type of communication circuit, such as a wireless LAN. The input circuit 16 realizes data input to the management server 1. The input circuit 16 is assumed to have, for example, a USB, PCI-Express, or the like as an external port. In the example of FIG. 2, an operation device 18 is connected to the input circuit 16. The operation device 18 is a device for inputting information to the management server 1. The operation device 18 is, for example, a keyboard, a mouse, a touch panel, a voice recognition device, or the like, but is not limited thereto. The output circuit 17 realizes data output from the management server 1. The output circuit 17 is assumed to have, for example, an HDMI, a DisplayPort, or the like as an external port. In the example of FIG. 2, a display device 19 is connected to the output circuit 17. Examples of the display device 19 include, but are not limited to, an LCD (liquid crystal display), an organic EL (organic electroluminescence) display, or a projector.
[0018] The administrator of the management server 1 can perform maintenance of the management server 1 using the operation device 18 and the display device 19. The operation device 18 and the display device 19 may be incorporated in the management server 1. Also, the operation device 18 and the display device 19 do not necessarily have to be connected to the management server 1. For example, the administrator may perform maintenance of the management server 1 using a client terminal capable of communicating with the network 2.
[0019] FIG. 3 shows an example of data stored in the storage unit 14 of the management server 1. The storage unit 14 in FIG. 3 stores problem data 14A, calculation data 14B, a management program 14C, a conversion program 14D, and a control program 14E. For example, the problem data 14A includes data of a combinatorial optimization problem. For example, the calculation data 14B includes calculation results collected from each calculation server. For example, the management program 14C is a program that realizes the function of the management unit 11 described above. For example, the conversion program 14D is a program that realizes the function of the conversion unit 12 described above. For example, the control program 14E is a program that realizes the function of the control unit 13 described above.
[0020] FIG. 4 is a block diagram showing an example of the configuration of a calculation server. FIG. 4 shows the configuration of the calculation server 3a as an example. The other calculation servers may have the same configuration as the calculation server 3a, or may have a different configuration from the calculation server 3a. The calculation server 3a is, for example, an information processing device that performs the calculation of the first vector and the second vector alone or in cooperation with other calculation servers. At least one of the calculation servers may calculate a problem term between elements of the first vector. Here, the problem term may be calculated based on the Ising model described later. The problem term may include a multi-body interaction described later.
[0021] For example, the first vector is the variable x i (i=1, 2, . . . , N). For example, the second vector is iIt is a vector with elements (i = 1, 2, . . . , N).
[0022] The calculation server 3a includes, for example, a communication circuit 31, a shared memory 32, processors 33A to 33D, a storage 34, and a host bus adapter 35. The communication circuit 31, the shared memory 32, the processors 33A to 33D, the storage 34, and the host bus adapter 35 are connected to each other via a bus 36.
[0023] The communication circuit 31 transmits and receives data to and from each device connected to the network 2. The communication circuit 31 is, for example, a NIC (Network Interface Card) of a wired LAN. However, the communication circuit 31 may be another type of communication circuit, such as a wireless LAN. The shared memory 32 is a memory accessible from the processors 33A to 33D. Examples of the shared memory 32 include volatile memories such as DRAM and SRAM. However, other types of memories, such as non-volatile memories, may be used as the shared memory 32. The shared memory 32 may be configured to store, for example, elements of a first vector and elements of a second vector. Here, the shared memory 32 and a storage 34 described later are examples of a storage unit of an information processing device. The processors 33A to 33D can share data via the shared memory 32. Note that all memories of the calculation server 3a do not necessarily have to be configured as shared memories. For example, a part of the memory of the calculation server 3a may be configured as a local memory accessible only from one of the processors.
[0024] The processors 33A to 33D are electronic circuits that execute calculation processing. The processors may be, for example, any of a central processing unit (CPU), a graphics processing unit (GPU), a field-programmable gate array (FPGA), or an application specific integrated circuit (ASIC), or a combination of these. The processors may be CPU cores or CPU threads. When the processors are CPUs, the number of sockets provided in the calculation server 3a is not particularly limited. The processors may be connected to other components of the calculation server 3a via a bus such as PCI express.
[0025] In the example of Figure 4, the calculation server has four processors. However, the number of processors included in one calculation server may be different. For example, the number and / or type of processors implemented in the calculation server may be different.
[0026] The information processing device, for example, i The first vector with elements (i=1, 2, . . . , N) and the second variable y corresponding to the first variable i (i=1, 2, . . . , N) as elements. The storage unit of the information processing device may be configured to store a first variable which is an element of the first vector and a second variable which is an element of the second vector.
[0027] The processing circuit of the information processing device includes a processing circuit configured to update a first variable based on a corresponding second variable, weight the first variable with a first coefficient and add it to the corresponding second variable, calculate a problem term using a plurality of first variables, add the problem term to the second variable, calculate a first correction term including a product of a constraint term and a second coefficient, add the first correction term to the second variable, and increase the absolute values of the first coefficient and the second coefficient according to the number of updates. Here, the constraint term is based on a constraint function representing a constraint condition and has the first variable as an argument. Here, the above-mentioned processors 33A to 33D are an example of a processing circuit. In this way, the information processing device may include a plurality of processing circuits. In this case, each processing circuit may be configured to update at least a part of the first vector and at least a part of the second vector in parallel.
[0028] In the following, an example will be described in which the first and second coefficients are positive and the values of the first and second coefficients increase according to the number of updates. However, it is also possible to use negative first and second coefficients by inverting the sign of the algorithm presented below. In this case, the values of the first and second coefficients may decrease according to the number of updates. However, in either case, it can be said that the absolute values of the first and second coefficients increase according to the number of updates. The problem terms calculated by the processing circuit may be based on the Ising model. The problem terms calculated by the processing circuit may also include many-body interactions.
[0029] Here, the case where the processing contents are assigned on a processor basis has been described as an example. However, the unit of the computational resources to which the processing contents are assigned is not limited. For example, the processing contents may be assigned on a computer basis.
[0030] In the following, the components of the calculation server will be described with reference to FIG.
[0031] The storage 34 stores various data including the program of the calculation server 3a, data required for executing the program, and data generated by the program. Here, the program includes both an OS and an application. The storage 34 may be configured to store, for example, elements of a first vector and elements of a second vector. The storage 34 may be a volatile memory, a non-volatile memory, or a combination thereof. Examples of the volatile memory include DRAM or SRAM. Examples of the non-volatile memory include NAND flash memory, NOR flash memory, ReRAM, or MRAM. In addition, a hard disk, an optical disk, a magnetic tape, or an external storage device may be used as the storage 34.
[0032] The host bus adapter 35 realizes data communication between the computation servers. The host bus adapter 35 is connected to the switch 5 via the cable 4a. The host bus adapter 35 is, for example, a host channel adapter (HCA). The host bus adapter 35, the cable 4a, and the switch 5 form an interconnect capable of realizing high throughput, thereby improving the speed of parallel computation processing.
[0033] FIG. 5 shows an example of data stored in the storage of the calculation server. The storage 34 in FIG. 5 stores calculation data 34A, a calculation program 34B, and a control program 34C. The calculation data 34A includes data during the calculation of the calculation server 3a or the calculation result. At least a part of the calculation data 34A may be stored in a different storage hierarchy, such as the shared memory 32, the cache of the processor, or the register of the processor. The calculation program 34B is a program that realizes the calculation process in each processor and the storage process of the data in the shared memory 32 and the storage 34 based on a predetermined algorithm. The control program 34C is a program that controls the calculation server 3a based on a command transmitted from the control unit 13 of the management server 1, and transmits the calculation result of the calculation server 3a to the management server 1.
[0034] Next, we will explain technologies related to solving combinatorial optimization problems. An Ising machine is one example of an information processing device used to solve combinatorial optimization problems. An Ising machine is an information processing device that calculates the ground state energy of an Ising model. Until now, the Ising model has mainly been used as a model for ferromagnetic materials and phase transition phenomena. However, in recent years, the Ising model has increasingly been used as a model for solving combinatorial optimization problems. The following formula (1) shows the energy of the Ising model.
number
[0035] Using the Ising model in equation (1), the energy E Ising is the objective function, and the energy E Ising The solution to the Ising model is the vector of spins (s1, s2, . . . , s N In particular, the energy E Ising The vector (s1, s2, . . . , s N ) is called the optimal solution. However, the calculated solution of the Ising model does not necessarily have to be the strictly optimal solution. In the following, we use the Ising model to calculate the energy E IsingThe problem of finding an approximate solution in which is as small as possible (that is, an approximate solution in which the value of the objective function is as close to the optimal value as possible) is called an Ising problem.
[0036] The spin s in Eq. (1) i Since is a binary variable, the expression (1+s i ) / 2 makes it easy to convert to the discrete variables (bits) used in combinatorial optimization problems. Therefore, it is possible to find a solution to a combinatorial optimization problem by converting it into an Ising problem and having an Ising machine perform the calculations. The problem of finding a solution to minimize a quadratic objective function whose variables are discrete variables (bits) that take on the value of either 0 or 1 is called a QUBO (Quadratic Unconstrained Binary Optimization) problem. The Ising problem expressed by equation (1) can be said to be equivalent to a QUBO problem.
[0037] For example, quantum annealers, coherent Ising machines, and quantum bifurcation machines have been proposed as hardware implementations of Ising machines. Quantum annealers use superconducting circuits to achieve quantum annealing. Coherent Ising machines use the oscillation phenomenon of a network formed by optical parametric oscillators. Quantum bifurcation machines use the quantum mechanical bifurcation phenomenon in a network of parametric oscillators with the Kerr effect. While these hardware implementations have the potential to significantly reduce calculation times, they also have issues such as difficulty in scaling up and operating stably.
[0038] Therefore, it is also possible to solve the Ising problem using a widely used digital computer. Digital computers are easier to scale up and operate stably than hardware implementations that use the physical phenomena described above. Simulated annealing (SA) is one example of an algorithm for solving the Ising problem using a digital computer. Technologies are being developed to run simulated annealing faster. However, because general simulated annealing is a sequential update algorithm in which each variable is updated sequentially, it is difficult to speed up the calculation process by parallelization.
[0039] In consideration of the above-mentioned problems, a simulated bifurcation algorithm has been proposed that can quickly solve large-scale combinatorial optimization problems by parallel calculations in a digital computer. Hereinafter, an information processing device, an information processing system, an information processing method, a storage medium, and a program that use the simulated bifurcation algorithm to solve combinatorial optimization problems will be described.
[0040] First, an overview of the simulated bifurcation algorithm is given.
[0041] In the simulated bifurcation algorithm, there are two variables x i ,y i For (i=1, 2, . . . , N), we numerically solve the simultaneous ordinary differential equations in (2) below. i Each of the spins s of the Ising model i On the other hand, the N variables y i Each of these corresponds to momentum. i ,y i In the following, we assume that the variables x i The vector with elements (i=1, 2, . . . , N) is the first vector, and the variable y i A vector whose elements are (i=1, 2, . . . , N) is called a second vector.
number
[0042] Here, H is the Hamiltonian of the following equation (3).
number
[0043] In (2), instead of the Hamiltonian H in equation (3), we use the potential (constraint potential function) term G(x1, x2, x N ) can be used. A function that includes not only the Hamiltonian H but also the constraint potential function is called an extended Hamiltonian, and is distinguished from the original Hamiltonian H.
number
[0044] By calculating the time evolution of the simulated bifurcation algorithm, i ,y i (i = 1, 2, . . . , N) is iteratively updated to obtain the spin s i (i=1, 2, . . . , N) can be obtained. That is, when a time evolution calculation is performed, the values of the elements of the first vector and the values of the elements of the second vector are repeatedly updated. Here, it is assumed that a time evolution calculation is performed, and each coefficient is explained. However, the calculation of the simulated bifurcation algorithm may be performed in a manner other than time evolution.
[0045] In (2) and (3), the coefficient D corresponds to detuning. The coefficient p(t) corresponds to the pumping amplitude. When calculating the time evolution of the simulated bifurcation algorithm, the coefficient p(t) monotonically increases in value according to the number of updates. The initial value of the coefficient p(t) may be set to 0. The coefficient K corresponds to a positive Kerr coefficient. A constant coefficient can be used as the coefficient c. For example, the value of the coefficient c may be determined before the calculation is performed by the simulated bifurcation algorithm. For example, the coefficient c may be set to J (2) It can be set to a value close to the reciprocal of the largest eigenvalue of the matrix. For example, a value of c = 0.5D√(N / 2n) can be used. Here, n is the number of edges in the graph related to the combinatorial optimization problem. Also, a(t) is a coefficient that increases with p(t) when calculating the time evolution. For example, √(p(t) / K) can be used as a(t). Note that the local magnetic field vector h in (3) and (4) i can be omitted.
[0046] When calculating the time evolution, when the value of the coefficient p(t) exceeds a certain value, the first vector contains a positive variable x i +1, the negative variable x i to -1, the spin s i A solution vector having elements of can be obtained. This solution vector corresponds to the solution of the Ising problem. Note that the above-mentioned conversion may be performed based on the number of times the first vector and the second vector are updated, and a determination may be made as to whether or not to obtain a solution vector.
[0047] When calculating the time evolution of a simulated bifurcation algorithm, the above (2) can be converted into a discrete recurrence formula using the symplectic Euler method and solved. The following (5) shows an example of a simulated bifurcation algorithm after conversion into a recurrence formula.
number
[0048] When calculating the time evolution of a simulated bifurcation algorithm, the value of p(t) is increased from an initial value (e.g., 0) to a given value, and the time evolution of the variable x i Based on the sign of i For example, we can find the value of x i >0, sgn(x i )=+1,x i < 0, sgn(x i ) = -1, the value of p(t) increases to a certain value, and the variable x i By transforming with the sign function, the spin s i We can find the value of x as a sign function. i When ≠ 0, sgn(x i )=x i / |x i |, x i When sgn(x = 0, i ) = +1 or -1. i For example, the solution (solution vector) of the combinatorial optimization problem may be obtained when the number of updates of the first vector and the second vector or the value of the first coefficient p becomes greater than a threshold value.
[0049] In this way, the processing circuit of the information processing device may be configured to calculate the solution by converting the first variable, which is a positive value, to a first value and converting the first variable, which is a negative value, to a second value smaller than the first value. The processing circuit may also be configured to determine whether to calculate the solution based on the value of the first coefficient or the number of updates of the first vector and the second vector. Here, the first value is, for example, +1. The second value is, for example, -1. However, the first value and the second value may be other values.
[0050] The flowchart in Fig. 6 shows an example of a process for calculating a solution of a simulated bifurcation algorithm by time evolution. The process will be described below with reference to Fig. 6.
[0051] First, the calculation server receives the matrix J corresponding to the problem from the management server 1. ij and vector h i (Step S101). Then, the calculation server initializes the coefficients p(t) and a(t) (Step S102). For example, the values of the coefficients p and a can be set to 0 in Step S102, but the initial values of the coefficients p and a are not limited. Next, the calculation server obtains the first variable x i and the second variable y i (Step S103) Here, the first variable x i are the elements of the first vector. Also, the second variable y i is an element of the second vector. In step S103, the calculation server calculates x by, for example, a pseudorandom number. i and y i may be initialized, except that x i and y i In addition, the variables may be initialized at different times, and at least one of the variables may be initialized multiple times.
[0052] Next, the calculation server calculates the element x of the first vector. iThe element y of the second vector corresponding to i The first vector is updated by weighting and adding the variable x i Δt×D×y i Then, the calculation server adds the element y i (steps S105 and S106). For example, in step S105, the variable y i Δt×[(pDK×x i x i )×x i In step S106, the variable y i -Δt×c×h i ×a-Δt×c×ΣJ ij x j can be added.
[0053] Next, the calculation server updates the values of the coefficients p and a (step S107). For example, a constant value (Δp) can be added to the coefficient p, and the coefficient a can be set to the positive square root of the updated coefficient p. However, as will be described later, this is only one example of a method for updating the values of the coefficients p and a. Then, the calculation server determines whether the number of updates of the first vector and the second vector is less than a threshold value (step S108). If the number of updates is less than the threshold value (YES in step S108), the calculation server executes the processes of steps S104 to S107 again. If the number of updates is equal to or greater than the threshold value (NO in step S108), the calculation server updates the element x i The solution vector is based on the spin s i In step S109, for example, a variable x i +1, the negative variable x i to -1 to obtain the solution vector.
[0054] In addition, in the determination of step S108, if the number of updates is less than the threshold value (YES in step S108), the value of the Hamiltonian may be calculated based on the first vector, and the first vector and the value of the Hamiltonian may be stored. This allows the user to select an approximate solution that is closest to the optimal solution from multiple first vectors.
[0055] At least one of the processes shown in the flowchart of Fig. 6 may be executed in parallel. For example, the processes of steps S104 to S106 may be executed in parallel so that at least a part of the N elements of each of the first vector and the second vector is updated in parallel. For example, the processes may be parallelized using a plurality of calculation servers. The processes may be parallelized by a plurality of processors. However, the implementation for realizing the parallelization of the processes and the manner of the parallelization of the processes are not limited.
[0056] The variable x shown in steps S105 to S106 above i and y i The execution order of the update process of is only an example. Therefore, the variable x i and y i For example, the update process of the variable x i Update process and variable y i The order of the update processes of the variables may be changed. The order of the sub-processes included in the update process of each variable is not limited. For example, i The execution order of the addition process included in the update process of may be different from that in the example of FIG. 6. The execution order and timing of the processes that are the premise for executing the update process of each variable are not particularly limited. For example, i This may be done in parallel with other processes, including the update of the variable x i and y i The order and timing of execution of the update process, the sub-processes included in the update process of each variable, and the calculation process of the problem term are not limited, and this also applies to the processes in each flowchart shown below.
[0057] [Objective function including constraint terms] As mentioned above, instead of the Hamiltonian H, we add a constraint potential function G(x1, x2, . . . x N ), we can use the extended Hamiltonian G(x1, x2, . . . x N ) will be explained in detail below.
[0058] The function G(x1, x2, x N ) may represent a single constraint. Also, as explained below, the function G(x1, x2, . . . x N ) may represent multiple constraints. Here, g m (x1, x2, . . . x N ) (m = 1, 2, M) denotes a function (constraint function) expressing each of the M constraint conditions. In this case, multiple functions g m (x1, x2, . . . x N ) to find the above function G(x1, x2, . . . x N ) can be defined.
[0059] In the calculation of an optimization problem including constraints, it is necessary to choose a function G(x1, x2, . . . x) that does not reduce the accuracy and efficiency of the solution process. N ) is preferred. Therefore, the constraint is g m (x1, x2, . . . x N It is desirable to express the constraints as equality constraints, such as g = 0 (m = 1, 2...M). However, not all constraints are necessarily expressed as equality constraints. For this reason, the constraint functions may be converted according to the following rules (a) to (c). Here, g * m (x1, x2, . . . x N ) is the constraint function before transformation.
[0060] (a)g m * (x1, x2, . . . x NIf the constraints are originally equality constraints, such as g = 0, then m (x1, x2, . . . x N )=g m * (x1, x2, . . . x N ) The constraint x1+x2=0 in Figure 7 is an example of an equality constraint. The table in Figure 7 shows a condition table for the constraint x1+x2=0. Rows that are not grayed out in the table in Figure 7 correspond to combinations of variables that satisfy the constraint.
[0061] (b) The original constraint is g m * (x1, x2, . . . x N ) ≤ 0, g m (x1, x2, . . . x N )=max(0,g m * (x1, x2, . . . x N ) where the function max is a function whose value is the larger of the first and second arguments. The constraint x1+x2≦0 in Figure 8 is an example of an inequality constraint. The table in Figure 8 shows a table of conditions for the constraint x1+x2≦0. The rows that are not grayed out in the table in Figure 8 correspond to combinations of variables that satisfy the constraint conditions.
[0062] (c) The original constraint is g m * (x1, x2, . . . x N ) ≥ 0, g m (x1, x2, . . . x N )=min(0,g m * (x1, x2, . . . x N ) where the function min is a function whose value is the smaller of the first and second arguments. The constraint x1+x2≧0 in FIG. 9 is an example of an inequality constraint. The table in FIG. 9 shows a condition table for the constraint x1+x2≧0. The rows that are not grayed out in the table in FIG. 9 correspond to combinations of variables that satisfy the constraint conditions.
[0063] By applying the above transformation rules (a) to (c) to the constraints, the extended Hamiltonian H' shown in the following equation (6) can be used.
number
[0064] In this case, the effect of the value of the function (7) below increases with the number of updates.
number
[0065] When using the objective function of equation (6), we solve the simultaneous ordinary differential equations shown in (8) below for two variables x i ,y i A numerical solution process is performed for (i=1, 2, . . . , N).
number
[0066] Using the Symplectic Euler method, the above (8) can be converted into a discrete recurrence formula and the simulated bifurcation algorithm can be calculated. The following (9) shows an example of the simulated bifurcation algorithm after conversion into a recurrence formula.
number
[0067] In (9), the term (10) below comes from the Ising energy. Since the form of this term depends on the problem to be solved, we call it the problem term.
number
[0068] On the other hand, in (9), the following term (11) is i This corresponds to the first correction term.
number
[0069] Coefficient c g We can use a relatively small value (0 or close to 0) as the initial value of (t). This allows each element x of the first vector to i It is possible to prevent the initial value set for (i = 1, 2, . . . , N) from becoming too large, which would cause the value of the term in (7) to become too large and thus impair the stability of the calculation process. It is also possible to perform a more global search, rather than just searching in the vicinity of a specific local solution, and to increase the probability of finding an optimal solution or an approximate solution close to it. Furthermore, it is no longer necessary to set the time step Δt in the algorithm in (9) to a small value, which can reduce the calculation time.
[0070] For example, the coefficient c defined based on the following formula (12) g (t) can be used.
number
[0071] The coefficient c explained here g The initial value of (t) and the coefficient c according to the number of updates g The change pattern of (t) is only an example. Therefore, the coefficient c g The initial value of (t) and the coefficient c according to the number of updates g The change pattern of (t) may be different from that described above.
[0072] The processing circuit of the information processing device may be configured to calculate a function (constraint term) including a product of a constraint function and a derivative obtained by differentiating the constraint function with respect to any element (first variable) of the first vector. The processing circuit may also be configured to calculate the above-mentioned product for each of a plurality of constraint conditions, and to calculate the constraint term by adding up the multiple products. Here, the above-mentioned function g m is an example of a constraint function.
[0073] The flowchart in Fig. 10 shows an example of a solution process for an extended Hamiltonian including a first correction term. The process will be described below with reference to Fig. 10.
[0074] First, the calculation server receives the matrix J corresponding to the problem from the management server 1. ij and vector h i (step S111). Then, the calculation server initializes the coefficients p(t) and a(t) (step S112). For example, the values of the coefficients p and a can be set to 0 in step S112, but the initial values of the coefficients p and a are not limited. Next, the calculation server obtains the element y i Based on the first vector element x i (step S113). For example, in step S113, the variable x i Δt×D×y i Then, the calculation server adds the element y i (steps S114 to S116). For example, in step S114, the variable y i Δt×[(pDK×x i x i )×x i In step S115, the variable y i -Δt×c×h i ×a-Δt×c×ΣJ ij x j In step S116, the variable y i Δt×c g×Σg m (∂g m ) / (∂x i ) can be added to
[0075] Next, the calculation server calculates the coefficients p and c g and a are updated (step S117). For example, a constant value (Δp) is added to the coefficient p, the coefficient a is set to the positive square root of the updated coefficient p, and the coefficient c g to Δc g t can be added, but this is done by the coefficients p and c g This is merely an example of a method for updating the values of a and a. Then, the calculation server judges whether the number of updates of the first vector and the second vector is less than a threshold value (step S118). If the number of updates is less than the threshold value (YES in step S118), the calculation server repeats the processes in steps S113 to S117. If the number of updates is equal to or greater than the threshold value (NO in step S118), the calculation server updates the element x i The solution vector is based on the spin s i In step S119, for example, a variable x i +1, the negative variable x i to -1 to obtain the solution vector.
[0076] The calculation server may calculate the value of the objective function based on the first vector and the second vector at any timing. The calculation server may store the values of the first vector, the second vector, and the objective function in the storage unit. These processes may be executed every time the determination in step S118 is positive. Also, they may be executed at some timings among the timings when the determination in step S118 is positive. Furthermore, the above-mentioned processes may be executed at other timings. The user may determine the frequency of calculating the value of the objective function according to the amount of available storage space and computational resources. At the timing of step S118, it may be determined whether or not to continue the loop process based on whether or not the number of combinations of the first vector, the second vector, and the value of the objective function stored in the storage unit exceeds a threshold value. In this way, the user can select the first vector closest to the optimal solution from the multiple first vectors stored in the storage unit and calculate the solution vector.
[0077] At least one of the processes shown in the flowchart of Fig. 10 may be executed in parallel. For example, the processes of steps S113 to S116 may be executed in parallel so that at least a part of the N elements of the first vector and the second vector are updated in parallel. For example, the processes may be parallelized using a plurality of calculation servers. The processes may be parallelized by a plurality of processors. However, the implementation and manner of the parallelization of the processes are not limited.
[0078] By executing the process shown in the flowchart of FIG. 10, it is possible to obtain an optimal solution or an approximate solution that satisfies the constraint conditions in a relatively short time.
[0079] [Augmented Lagrangian method] The above formula (6) is just one example of an extended Hamiltonian that can reflect constraints. For example, as in the following formula (13), further terms may be added to the extended Hamiltonian to perform stable calculations.
number
[0080] When the extended Hamiltonian of equation (13) is used, the simultaneous ordinary differential equations shown in (14) below are solved for two variables x i ,y i A numerical solution process is performed for (i=1, 2, . . . , N).
number
[0081] In addition, in the calculation of the simultaneous ordinary differential equations in (14), the coefficient λ m can be updated based on the following equation (15):
number
[0082] Vector x in equation (15) min is the vector (x1, x2, , x N ) This local solution x min can be found by applying a search algorithm such as a local search or best-first search to the first vector during the calculation. An example of a local search is the negative hill climbing method. When using the negative hill climbing method, for example, each variable x i Partially differentiate the extended Hamiltonian H´´ with respect to (i=1,2,···,N) to obtain the partial derivative of (16) below.
number
[0083] Using the symplectic Euler method, the above (14) and (15) can be converted into discrete recurrence formulas and the simulated bifurcation algorithm can be calculated. The following (17) shows an example of the simulated bifurcation algorithm after conversion into a recurrence formula.
number
[0084] If the constraints are not satisfied, g m Therefore, the coefficient λ of the Lagrangian term in (17) becomes relatively large during the period when the constraint is not satisfied. m The rate of increase of becomes larger. Therefore, the effect of the Lagrangian term becomes larger, and the first and second vectors can be changed in the direction in which the constraints are satisfied. Therefore, when the algorithm (17) including the Lagrangian function is used, the coefficient c g You can set the initial value of c to a smaller value, org This makes it possible to increase the value of more gradually. This makes it possible to prevent the gradient of the potential of the extended Hamiltonian from becoming too large, and stabilizes the calculation process.
[0085] The processing circuit of the information processing device may be configured to calculate a second correction term including a product of the third coefficient and a derivative obtained by differentiating the constraint with respect to any one of the first variables, and to add the second correction term to the second variable. The processing circuit may also be configured to calculate the above-mentioned product for each of a plurality of constraint conditions, and to calculate the second correction term by adding up the multiple products. Here, the above-mentioned coefficient λ m is an example of a third coefficient. The Lagrangian term above is an example of a second correction term.
[0086] The processing circuit may be configured to increase the absolute value of the third coefficient according to the number of updates. Furthermore, the processing circuit may be configured to calculate an evaluation value of the constraint condition by substituting an element of the first vector corresponding to a local solution of the objective function (extended Hamiltonian) into the constraint condition, and to add the product of the second coefficient and the evaluation value to the third coefficient. For example, the vector x min function g m and the evaluation value can be obtained.
[0087] The flowchart in Fig. 11 shows an example of a solution process for an extended Hamiltonian that further includes a second correction term. The process will be described below with reference to Fig. 11.
[0088] First, the calculation server initializes coefficients p(t) and a(t) (step S121). For example, the values of the coefficients p and a can be set to 0 in step S121, but the initial values of the coefficients p and a are not limited. Although not shown in FIG. 11, the calculation server receives the matrix J corresponding to the problem from the management server 1. ij and vector h i Next, the calculation server obtains the corresponding second vector element y i Based on the first vector element xi For example, in step S122, the variable x i Δt×D×y i can be added.
[0089] Then, the calculation server calculates the element y of the second vector. i (steps S123 to S126). For example, in step S123, the variable y i Δt×[(pDK×x i x i )×x i In step S124, the variable y i -Δt×c×h i ×a-Δt×c×ΣJ ij x j In step S125, the variable y i to Δt×c g ×Σg m (∂g m ) / (∂x i In step S126, the variable y i Δt×Σλ m ×(∂g m ) / (∂x i ) can be added to
[0090] Then, the calculation server calculates a local solution of the extended Hamiltonian H'' (step S127). In step S127, the local solution can be calculated by the negative hill climbing method as described above. However, the local solution may be calculated by other algorithms. Next, the coefficient λ m (step S128). For example, in step S128, The local solution is the function g m Substituting in the function g m After finding the value of , the coefficient λ m to Δt×c g ×g m can be added.
[0091] Next, the calculation server calculates the coefficients p and c gand a are updated (step S129). For example, a constant value (Δp) is added to the coefficient p, the coefficient a is set to the positive square root of the updated coefficient p, and the coefficient c g to Δc g t can be added, but this is done by the coefficients p and c g This is merely an example of a method for updating the values of a and a. Then, the calculation server judges whether the number of updates of the first vector and the second vector is less than a threshold value (step S130). If the number of updates is less than the threshold value (YES in step S130), the calculation server repeats the processes of steps S122 to S129. If the number of updates is equal to or greater than the threshold value (NO in step S130), the calculation server updates the element x i The solution vector is based on the spin s i In step S131, for example, a variable x i +1, the variable x that is a negative value i to -1 to obtain the solution vector.
[0092] The calculation server may calculate the value of the objective function based on the first vector and the second vector at any timing. The calculation server may store the values of the first vector, the second vector, and the objective function in the storage unit. These processes may be executed every time the determination in step S130 is positive. Also, they may be executed at some timings among the timings when the determination in step S130 is positive. Furthermore, the above-mentioned processes may be executed at other timings. The user may determine the frequency of calculating the value of the objective function according to the amount of available storage space and computational resources. At the timing of step S130, it may be determined whether or not to continue the loop process based on whether or not the number of combinations of the first vector, the second vector, and the value of the objective function stored in the storage unit exceeds a threshold value. In this way, the user can select the first vector closest to the optimal solution from the multiple first vectors stored in the storage unit and calculate the solution vector.
[0093] At least one of the processes shown in the flowchart of Fig. 11 may be executed in parallel. For example, the processes of steps S122 to S126 may be executed in parallel so that at least a part of the N elements of the first vector and the second vector are updated in parallel. For example, the processes may be parallelized using a plurality of calculation servers. The processes may be parallelized by a plurality of processors. However, the implementation and manner of the parallelization of the processes are not limited.
[0094] By executing the process shown in the flowchart of FIG. 11, it is possible to obtain an optimal solution or an approximate solution that satisfies the constraint conditions in a comparatively short time.
[0095] [Reduction of calculation amount] In the flowchart shown in FIG. 11, the coefficient λ m However, in the information processing device according to the present embodiment, the coefficient λ m For example, the coefficient λ may not be updated in some iterations. m You may skip updating the
[0096] For example, instead of (15) above, we use the following (18) to calculate the coefficient λ m For example, the coefficient λ may be updated every W times (W is a positive integer) based on the following rule (18). m Updates may be made to the following:
number
[0097] Coefficient λ m The frequency with which the update process of may be performed may vary. For example, if the value of W is 1 / (c g ×g m) so that the smaller the value of g, the smaller the coefficient λ m This reduces the update frequency and reduces the amount of calculation.
[0098] Coefficient λ m In the iteration in which the update process is skipped, the calculation process of the local solution of the extended Hamiltonian H'' may be skipped. This makes it possible to reduce the amount of calculation required while maintaining the stability of the above-mentioned calculation process.
[0099] In this way, the processing circuit of the information processing device may be configured to increase the absolute value of the third coefficient in some update rounds.
[0100] The flowchart in FIG. 12 shows the coefficient λ m 12 shows an example of a solution finding process in which a part of the update process is skipped. The process will be described below with reference to FIG.
[0101] First, the calculation server initializes coefficients p(t) and a(t) (step S141). For example, the values of the coefficients p and a can be set to 0 in step S141, but the initial values of the coefficients p and a are not limited. A counter variable cnt, which will be described later, can be initialized to 0. Although not shown in FIG. 12, the calculation server receives a matrix J corresponding to the problem from the management server 1. ij and vector h i Next, the calculation server obtains the corresponding second vector element y i Based on the first vector element x i For example, in step S142, the variable x i Δt×D×y i can be added.
[0102] Then, the calculation server calculates the element y of the second vector. i (steps S142 to S146). For example, in step S143, the variable y i Δt×[(pDK×xi x i )×x i In step S144, the variable y i -Δt×c×h i ×a-Δt×c×ΣJ ij x j In step S145, the variable y i to Δt×c g ×Σg m (∂g m ) / (∂x i In step S146, the variable y i Δt×Σλ m ×(∂g m ) / (∂x i ) can be added to
[0103] Then, the calculation server increments the counter variable cnt and determines whether the counter variable cnt is a multiple of W (S147). If the counter variable cnt is not a multiple of W (NO in S147), the calculation server increments the coefficients p, c g and a are updated (step S150). For example, a constant value (Δp) is added to the coefficient p, the coefficient a is set to the positive square root of the updated coefficient p, and the coefficient c g to Δc g t can be added, but this is done by the coefficients p and c g and is just one example of how to update the value of a.
[0104] If the counter variable cnt is a multiple of W (YES in S147), the calculation server calculates a local solution of the extended Hamiltonian H'' (step S148). In step S148, the local solution can be calculated by the negative hill climbing method as described above. However, the local solution may be calculated by other algorithms. Next, the coefficient λ is calculated based on the local solution calculated in the previous step. m For example, in step S149, the local solution is updated using the function g m Substituting in the function g m After finding the value of , the coefficient λ m to Δt×c g ×gm After the process of step S149, the process proceeds to the above-mentioned step S150.
[0105] After the process of step S150, the calculation server judges whether the number of updates of the first vector and the second vector is less than the threshold value (step S151). If the number of updates is less than the threshold value (YES in step S151), the calculation server executes the process from step S142 onwards again. If the number of updates is equal to or greater than the threshold value (NO in step S151), the calculation server executes the process from step S142 onwards. i The solution vector is based on the spin s i In step S152, for example, a variable x i +1, the negative variable x i to -1 to obtain the solution vector.
[0106] The calculation server may calculate the value of the objective function based on the first vector and the second vector at any timing. The calculation server may store the values of the first vector, the second vector, and the objective function in the storage unit. These processes may be executed every time the determination in step S151 is positive. Also, they may be executed at some timings among the timings when the determination in step S151 is positive. Furthermore, the above-mentioned processes may be executed at other timings. The user may determine the frequency of calculating the value of the objective function according to the amount of available storage space and computational resources. At the timing of step S151, it may be determined whether or not to continue the loop process based on whether or not the number of combinations of the first vector, the second vector, and the value of the objective function stored in the storage unit exceeds a threshold value. In this way, the user can select the first vector closest to the optimal solution from the multiple first vectors stored in the storage unit and calculate the solution vector.
[0107] At least one of the processes shown in the flowchart of Fig. 12 may be executed in parallel. For example, the processes of steps S142 to S146 may be executed in parallel so that at least a part of the N elements of the first vector and the second vector are updated in parallel. For example, the processes may be parallelized using a plurality of calculation servers. The processes may be parallelized by a plurality of processors. However, the implementation and manner of the parallelization of the processes are not limited.
[0108] By executing the process shown in the flowchart of FIG. 12, it is possible to obtain an optimal solution or an approximate solution close to the optimal solution that satisfies the constraint conditions in a relatively short time while suppressing the amount of calculation.
[0109] In the following, examples of an information processing system, an information processing method, a storage medium, and a program according to the present embodiment will be described.
[0110] The information processing system may include a storage device and an information processing device. The storage device is configured to store, for example, a first variable that is an element of a first vector and a second variable that is an element of a second vector. The information processing device is configured to, for example, update the first variable based on a corresponding second variable, weight the first variable with a first coefficient and add it to the corresponding second variable, calculate a problem term using a plurality of first variables, add the problem term to the second variable, calculate a first correction term including a product of a constraint term and a second coefficient, add the first correction term to the second variable, and increase the absolute values of the first coefficient and the second coefficient according to the number of updates. Here, the constraint term is based on a constraint function representing a constraint condition, and may have the first variable as an argument.
[0111] The information processing system may include a plurality of information processing devices, each of which may be configured to update at least a portion of the first vector and at least a portion of the second vector in parallel.
[0112] In the information processing method, for example, a first vector having a first variable as an element and a second vector having a second variable corresponding to the first variable as an element are repeatedly updated. For example, the information processing method may include a step of updating the first variable based on the corresponding second variable, a step of weighting the first variable with a first coefficient and adding it to the corresponding second variable, a step of calculating a problem term using a plurality of first variables, a step of adding the problem term to the second variable, a step of calculating a constraint term based on a constraint condition and having the first variable as an argument, a step of calculating a first correction term including a product of the second coefficient and the constraint term, a step of adding the first correction term to the second variable, and a step of increasing the absolute values of the first coefficient and the second coefficient according to the number of updates. In addition, the program may cause a computer to execute the steps of the above-mentioned information processing method. Furthermore, the storage medium may be a non-transitory computer-readable storage medium that stores the program.
[0113] [Calculation including many-body interactions] By using the simulated bifurcation algorithm, it is also possible to solve combinatorial optimization problems with cubic or higher order objective functions. The problem of finding a combination of variables that minimizes a cubic or higher order objective function with binary variables is called a HOBO (Higher Order Binary Optimization) problem. When dealing with the HOBO problem, the following equation (19) can be used as the energy formula for the Ising model extended to higher orders.
number
[0114] Both QUBO and HOBO can be considered to be a type of polynomial unconstrained binary optimization (PUBO). In other words, a combinatorial optimization problem with a quadratic objective function in PUBO is QUBO. Also, a combinatorial optimization problem with a cubic or higher objective function in PUBO is HOBO.
[0115] When solving the HOBO problem using the simulated bifurcation algorithm, the Hamiltonian H in the above equation (3) can be replaced with the Hamiltonian H in the following equation (20).
number
[0116] Furthermore, the problem term shown in the following equation (21) is derived from equation (20).
number
[0117] When performing calculations including terms for many-body interactions, the recurrence formula (17) above is replaced by the recurrence formula (22) below.
number
[0118] The problem terms shown above are merely examples of problem terms that can be used by the information processing device according to this embodiment. Therefore, the format of the problem terms used in the calculation may be different from these.
[0119] [Algorithm Variations] Here, modified examples of the simulated branching algorithm will be described. For example, various modifications may be made to the above-described simulated branching algorithm in order to reduce errors or shorten calculation time.
[0120] For example, to reduce computational errors, additional processing may be performed when updating the elements of the first vector. For example, when the element x of the first vector is updated, i When the absolute value of becomes greater than 1, the element x of the first vector i The value of sgn(x i ) by updating x i When the value becomes >1, the variable x i The value of is set to 1. Also, the update i When the value becomes <-1, the variable x i The value of x is set to -1. i Use the spin i By including such a process, the algorithm can approximate x i = ±1. More generally, the computation circuitry may be configured to set a first variable whose value is less than the second value to the second value, and to set a first variable whose value is greater than the first value to the first value.
[0121] In addition, the update i When the value becomes >1, the variable x i The variable y corresponds to iIt may be multiplied by a coefficient \(r_f\). For example, when using a coefficient \(r_f\) where \(-1 \lt r \leq 0\), the above wall becomes a wall with a reflection coefficient \(r_f\). In particular, when using a coefficient \(r_f\) of \(r_f = 0\), the algorithm is equivalent to a physical model where there are walls at positions \(x i =\pm1\) where perfectly inelastic collisions occur. More generally speaking, the arithmetic circuit may be configured to update a second variable corresponding to a first variable whose value is less than a first value, or a second variable corresponding to a first variable whose value is greater than a second value, to a value obtained by multiplying the original second variable by a second coefficient. For example, the arithmetic circuit may be configured to update a second variable corresponding to a first variable whose value is less than \(-1\), or a second variable corresponding to a first variable whose value is greater than \(1\), to a value obtained by multiplying the original second variable by a second coefficient. Here, the second coefficient corresponds to the coefficient \(r_f\) described above.
[0122] Note that when \(x i \gt1\) due to the update, the arithmetic circuit may set the value of the variable \(y i corresponding to the variable \(x i to a pseudo-random number. For example, a random number in the range \([-0.1, 0.1]\) can be used. That is, the arithmetic circuit may be configured to set the value of a second variable corresponding to a first variable whose value is less than a second value, or the value of a second variable corresponding to a first variable whose value is greater than a first value, to a pseudo-random number.
[0123] If the update process is executed so as to suppress \(|x i |\gt1\) as described above, even if the non-linear terms \(K\times x i 2 in (5), (9), and (22) are removed, the value of \(x i will not diverge. Therefore, it becomes possible to use the algorithm shown in (23) below.
Equation
[0124] In the algorithm (23), the problem term uses a continuous variable x, not a discrete variable. This may result in an error with the discrete variables used in the original combinatorial optimization problem. To reduce this error, as in (24) below, in the calculation of the problem term, the value sgn(x), which is the continuous variable x converted by the sign function, can be used instead of the continuous variable x.
number
[0125] In (24), the coefficient α of the problem term containing a first-order tensor may be set to a constant (e.g., α = 1). In the algorithm of (24), the product of spins appearing in the problem term always takes the value of either -1 or 1, so when dealing with a HOMO problem with a high-order objective function, it is possible to prevent errors due to product operations. As in the above algorithm of (24), the data calculated by the calculation server is further divided into the variables s i Let (s1,s2,...,s N ) By transforming each element of the first vector with a sign function, a vector of spins can be obtained.
[0126] [Example of parallelization of variable update processing] An example of parallelization of the update process of variables during the calculation of a simulated branching algorithm will be described below.
[0127] First, an example of implementing a simulated branching algorithm in a PC cluster will be described. A PC cluster is a system that connects multiple computers to achieve a calculation performance that cannot be obtained by a single computer. For example, the information processing system 100 shown in FIG. 1 includes multiple calculation servers and processors, and can be used as a PC cluster. For example, in a PC cluster, by using MPI (Message Passing Interface), it is possible to execute parallel calculations even in a configuration in which memory is distributed and arranged on multiple calculation servers such as the information processing system 100. For example, the control program 14E of the management server 1 and the calculation program 34B and control program 34C of each calculation server can be implemented using MPI.
[0128] If the number of processors used in the PC cluster is Q, then each processor is assigned the first vector (x1, x2, . . . , x N ) variable x i Similarly, each processor can be made to calculate the L variables of the second vector (y1, y2, . . . , y N ) variable y i In other words, processor #j (j=1, 2, . . . , Q) can calculate variables {x m |m=(j-1)L+1,(j-1)L+2,···,jL} and {y m Calculate |m=(j-1)L+1,(j-1)L+2,...,jL}. Also, {y m The tensor J shown in (25) below is required to calculate |m=(j-1)L+1,(j-1)L+2,...,jL}. (n) is assumed to be stored in a storage area (eg, a register, a cache, a memory, etc.) accessible to processor #j.
number
[0129] Here, we have described a case where each processor calculates a fixed number of variables of the first vector and the second vector. However, the number of variables of the first vector and the second vector to be calculated may differ depending on the processor. For example, if there is a performance difference depending on the processor implemented in the calculation server, the number of variables to be calculated can be determined according to the performance of the processor.
[0130] Variable y i To update the values of the first vector (x1, x2, . . . , x N ) are needed. The conversion to a binary variable can be done, for example, by using the sign function sgn(). So, we use the Allgather function to convert the first vector (x1, x2, . . . , x N ) can be shared by Q processors. N ), the values must be shared among processors, but the second vector (y1, y2, . . . , y N ) and tensor J (n) It is not necessary to share values between processors for . Data sharing between processors can be achieved, for example, by using inter-processor communication or by storing data in a shared memory.
[0131] Processor #j processes the problem term {z m Calculate the value of |m=(j-1)L+1,(j-1)L+2,...,jL}. Then, the processor #j calculates the calculated problem term {{z m Based on the value of |m=(j-1)L+1,(j-1)L+2, ,jL}, the variables {y m Update |m=(j-1)L+1,(j-1)L+2,···,jL}.
[0132] As shown in the above equations, the vector of problem terms (z1, z2, . . . , z N ), we use the tensor J(n) and the vector (x1, x2, . . . , x N) is required. The multiply-and-accumulate operation is the most computationally intensive step in the above algorithm, and can be a bottleneck in improving calculation speed. Therefore, in the implementation on a PC cluster, the multiply-and-accumulate operation is distributed to Q=N / L processors and executed in parallel, thereby shortening the calculation time.
[0133] FIG. 13 shows an example of a multi-processor configuration. The multiple computation nodes in FIG. 13 correspond to, for example, multiple computation servers in the information processing system 100. The high-speed link in FIG. 13 corresponds to, for example, the interconnect between the computation servers formed by the cables 4a-4c and the switch 5 in the information processing system 100. The shared memory in FIG. 13 corresponds to, for example, the shared memory 32. The processor in FIG. 13 corresponds to, for example, the processors 33A-33D in each computation server. Although multiple computation nodes are shown in FIG. 13, this does not prevent the use of a single computation node configuration.
[0134] FIG. 13 shows the data placed in each component and the data transferred between components. In each processor, the variable x i , y i The value of variable x is calculated between the processor and the shared memory. i The shared memory of each computing node contains, for example, the first vector (x1, x2, . . . , x N ), the second vector (y1,y2,...,y N ) L variables, and the tensor J (n) In the high-speed link connecting the computing nodes, for example, the first vector (x1, x2, . . . , x N When using the Allgather function, the variable y i To update the first vector (x1, x2, , x N ) are required.
[0135] The data placement and transfer shown in Fig. 13 is merely an example. There is no particular restriction on the method of placing and transferring data in a PC cluster and the method of achieving parallelization.
[0136] Moreover, the calculation of the simulated branching algorithm may be performed using a GPU (Graphics Processing Unit).
[0137] FIG. 14 shows an example of a configuration using a GPU. FIG. 14 shows a plurality of GPUs connected to each other via a high-speed link. Each GPU is equipped with a plurality of cores that can access a shared memory. In addition, in the configuration example of FIG. 14, a plurality of GPUs are connected via a high-speed link to form a GPU cluster. For example, when a GPU is installed in each of the computation servers in FIG. 1, the high-speed link corresponds to an interconnect between the computation servers formed by the cables 4a to 4c and the switch 5. In addition, in the configuration example of FIG. 14, a plurality of GPUs are used, but even when one GPU is used, it is possible to perform parallel calculations. That is, each GPU in FIG. 14 can perform calculations corresponding to each computation node in FIG. 13. That is, the processor of the information processing device (computation server) may be a core of a Graphics Processing Unit (GPU).
[0138] On the GPU, the variable x i and y i , and the tensor J (n) is defined as a device variable. The GPU uses the variable y i The tensor J required for updating (n) and the first vector (x1, x2, , x N ) can be calculated in parallel using the matrix vector multiplication function. The product of a tensor and a vector can be calculated by repeatedly multiplying a matrix and a vector. Also, if the first vector (x1, x2, , x N ) and the second vector (y1,y2,...,y N), except for the multiplication and addition, each thread is assigned the i-th element (x i ,y i ) update process, thereby achieving parallel processing.
[0139] [Overall processing for solving combinatorial optimization problems] The following describes the overall process performed to solve a combinatorial optimization problem using a simulated bifurcation algorithm.
[0140] An example of the overall process executed to solve a combinatorial optimization problem is shown in the flowchart of Fig. 15. The process will be described below with reference to Fig. 15.
[0141] First, a combinatorial optimization problem is formulated (step S201). Then, the formulated combinatorial optimization problem is converted into an Ising problem (in the form of an Ising model) (step S202). Next, a solution to the Ising problem is calculated by an Ising machine (information processing device) (step S203). Then, the calculated solution is verified (step S204). For example, in step S204, it is confirmed whether or not constraint conditions are satisfied. Also, in step S204, it may be confirmed whether or not the obtained solution is an optimal solution or an approximate solution close to the optimal solution by referring to the value of an energy function (Hamiltonian).
[0142] Then, it is determined whether or not to perform recalculation depending on at least one of the verification result and the number of calculations in step S204 (step S205). If it is determined that recalculation is to be performed (YES in step S205), the processes of steps S203 and S204 are executed again. On the other hand, if it is determined that recalculation is not to be performed (NO in step S205), a solution is selected (step S206). For example, in step S206, the selection can be made based on at least one of satisfaction of constraint conditions and the value of an energy function. Note that, if multiple solutions have not been calculated, the process of step S206 may be skipped. Finally, the selected solution is converted into a solution to the combinatorial optimization problem, and the solution to the combinatorial optimization problem is output (step S207).
[0143] By using the information processing device, information processing system, information processing method, storage medium, and program described above, it becomes possible to calculate a solution to a combinatorial optimization problem within a practical time frame, which makes it easier to find a solution to a combinatorial optimization problem and promotes social innovation and progress in science and technology.
[0144] The present invention is not limited to the above-described embodiment as it is, and the components can be modified and embodied in the implementation stage without departing from the gist of the invention. In addition, various inventions can be formed by appropriately combining the multiple components disclosed in the above-described embodiment. For example, some components may be deleted from all the components shown in the embodiment. Furthermore, components from different embodiments may be appropriately combined. [Explanation of symbols]
[0145] 1 Management Server 2 Network 3a, 3b, 3c calculation server 4a, 4b, 4c cables 5. Switch 6 Client terminal 10 Processors 11 Management Department 12 Conversion section 13 Control section 14 Storage section 14A Problem Data 14B Calculation data 14C Management Program 14D conversion program 14E, 34C control program 15, 31 Communication circuits 16 Input circuit 17 Output circuit 18 Operating device 19 Display device 20 Bus 32 Shared Memory 33A, 33B, 33C, 33D Processors 34 Storage 34A Calculation Data 34B Calculation Program 35 Host Bus Adapter
Claims
1. a storage unit configured to store a first variable that is an element of a first vector and a second variable that is an element of a second vector; a processing circuit configured to update the first variables based on the corresponding second variables, weight the first variables with a first coefficient and add the weighted first variables to the corresponding second variables, calculate a problem term using a plurality of the first variables, add the problem term to the second variables, calculate a first correction term including a product of a constraint term and a second coefficient, add the first correction term to the second variables, and increase absolute values of the first coefficient and the second coefficient according to a number of updates; the constraint term is based on a constraint function representing a constraint condition and has the first variable as an argument; The problem term is a term derived from an Ising energy determined according to the target problem. Information processing device.
2. the processing circuitry is configured to calculate the constraint term comprising a product of the constraint function and a derivative of the constraint function with respect to any of the first variables; The information processing device according to claim 1 .
3. the processing circuitry is configured to calculate a product of the constraint function and the derivative for each of a plurality of the constraint conditions, and to sum the products of the constraint function and the derivative for each of the plurality of constraint conditions to calculate the constraint term. The information processing device according to claim 2 .
4. the processing circuit is configured to calculate a second correction term including a product of a third coefficient and a derivative of the constraint function with respect to any of the first variables, and to add the second correction term to the second variable. The information processing device according to claim 1 .
5. the processing circuitry is configured to calculate a product of the third coefficient and the derivative for each of a plurality of the constraints, and to calculate the second correction term by summing the products of the third coefficient and the derivative for each of the constraints. The information processing device according to claim 4.
6. The processing circuit is configured to increase the absolute value of the third coefficient in response to a number of updates.
6. The information processing device according to claim 4 or 5.
7. the processing circuit is configured to increase the absolute value of the third coefficient during some update times. The information processing device according to claim 6.
8. the processing circuit is configured to calculate an evaluation value of the constraint function by substituting the first variable corresponding to a local solution of an objective function into the constraint function, and to add a product of the second coefficient and the evaluation value to the third coefficient; 8. The information processing device according to claim 6 or 7.
9. The problem terms calculated by the processing circuitry are based on an Ising model.
9. The information processing device according to claim 1.
10. the problem terms calculated by the processing circuitry include many-body interaction terms; The information processing device according to claim 9.
11. A plurality of the processing circuits are provided, each said processing circuit configured to update at least a portion of said first vector and at least a portion of said second vector in parallel; The information processing device according to claim 1 .
12. the processing circuitry is configured to calculate a solution by converting the first variables that are positive values to a first value and converting the first variables that are negative values to a second value that is less than the first value. The information processing device according to claim 1 .
13. the processing circuit is configured to determine whether to calculate a solution based on values of the first coefficients or a number of updates of the first vector and the second vector. The information processing device according to claim 12.
14. a storage device configured to store a first variable, the first variable being an element of a first vector, and a second variable, the second variable being an element of a second vector; an information processing device configured to update the first variables based on the corresponding second variables, weight the first variables by a first coefficient and add the weighted first variables to the corresponding second variables, calculate a problem term using a plurality of the first variables, add the problem term to the second variables, calculate a first correction term including a product of a constraint term and a second coefficient, add the first correction term to the second variables, and increase absolute values of the first coefficient and the second coefficient according to the number of updates; the constraint term is based on a constraint function representing a constraint condition and has the first variable as an argument; The problem term is a term derived from an Ising energy determined according to the target problem. Information processing system.
15. A plurality of the information processing devices are provided, each of the information processing devices is configured to update at least a portion of the first vector and at least a portion of the second vector in parallel; 15. The information processing system according to claim 14.
16. 1. An information processing method for repeatedly updating a first vector having a first variable as an element and a second vector having a second variable corresponding to the first variable as an element, the method comprising: The computer updating the first variables based on the corresponding second variables; weighting said first variable by a first coefficient and adding said weighted first variable to a corresponding said second variable; calculating problem terms using a plurality of said first variables; adding the problem term to the second variable; calculating a constraint term based on a constraint condition and having the first variable as an argument; calculating a first correction term comprising a product of a second coefficient and the constraint term; adding the first correction term to the second variable; Increasing the absolute values of the first coefficient and the second coefficient according to the number of updates; [0023] The problem term is a term derived from an Ising energy determined according to the target problem. Information processing methods.
17. A program for causing a computer to repeatedly update a first vector having a first variable as an element and a second vector having a second variable corresponding to the first variable as an element, the program comprising: updating the first variables based on the corresponding second variables; weighting said first variable by a first coefficient and adding said weighted first variable to a corresponding said second variable; calculating problem terms using a plurality of said first variables; adding the problem term to the second variable; calculating a constraint term based on a constraint condition and having the first variable as an argument; calculating a first correction term comprising a product of a second coefficient and the constraint term; adding the first correction term to the second variable; and increasing the absolute values of the first coefficient and the second coefficient according to the number of updates. The problem term is a term derived from an Ising energy determined according to the target problem. A non-transitory computer-readable storage medium.
18. A program for causing a computer to repeatedly update a first vector having a first variable as an element and a second vector having a second variable corresponding to the first variable as an element, the program comprising: updating the first variables based on the corresponding second variables; weighting said first variable by a first coefficient and adding said weighted first variable to said corresponding second variable; calculating problem terms using a plurality of said first variables; adding the problem term to the second variable; calculating a constraint term based on a constraint condition and having the first variable as an argument; calculating a first correction term comprising a product of a second coefficient and the constraint term; adding the first correction term to the second variable; increasing absolute values of the first coefficient and the second coefficient according to the number of updates; The problem term is a term derived from an Ising energy determined according to the target problem. program.
Citation Information
Patent Citations
Quantum calculation device and method
JP2017073106A
Computer, calculation program, recording medium, and calculation method
JP2019145010A
