Automatic adjustment of replica exchange

Through the copy exchange MCMC process, multiple copies are exchanged at different temperatures, and the temperature and the number of copies are adjusted, which solves the problem of low solving efficiency in combinatorial optimization problems and achieves more efficient optimization problem solving.

CN113361185BActive Publication Date: 2024-08-23FUJITSU LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110217073.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2021-01-05
Filing Date
2021-02-26
Publication Date
2024-08-23
Estimated Expiration
2041-02-26

AI Technical Summary

Technical Problem

Combinatorial optimization problems are usually classified as NP-problems, which are difficult to solve in polynomial time with existing algorithms, resulting in low solution efficiency in applications such as layout design, stock portfolios, route planning, and wireless sensor networks.

Method used

The copy exchange Markov chain Monte Carlo (MCMC) process is used to exchange multiple copies at different temperatures, adjust the temperature and the number of copies to improve the solution efficiency, and utilize the exchange acceptance between fixed temperature and variable temperature. Probability to optimize state sampling.

Benefits of technology

It improves the efficiency of solving combinatorial optimization problems, reduces the processing volume and time of the computing system when using copy exchange technology, and achieves more efficient solution of optimization problems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113361185B_ABST
    Figure CN113361185B_ABST
Patent Text Reader

Abstract

Automatic adjustment of replica exchange is provided. According to one aspect of the embodiment, the operation may include: obtaining a first fixed temperature and a second fixed temperature of a replica exchange Markov chain Monte Carlo (MCMC) process for solving an optimization problem associated with a system, and obtaining multiple replicas of the system. The operation may also include obtaining a target swap acceptance probability for swaps between replicas corresponding to adjacent ordered temperatures in a set of temperatures between the first fixed temperature and the second fixed temperature during the replica exchange MCMC process. The operation may include determining a corresponding average swap acceptance probability for one or more corresponding adjacent temperature pairs. In addition, the operation may include adjusting one or more of the variable temperatures based on a relationship between the target swap acceptance probability and each of the one or more corresponding swap acceptance probabilities.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This patent application claims the benefit of and priority to U.S. Provisional Application No. 62 / 985,655, filed on March 5, 2020, which is incorporated by reference into this disclosure in its entirety. Technical Field

[0003] Implementations discussed herein relate to automatic coordination of replica swapping. Background Art

[0004] Combinatorial optimization problems are often classified as NP-Problems (Nondeterministic Polynomial time Problems), such as NP-hard problems or NP-complete problems, where there are usually no known algorithms to solve such problems in polynomial time. Such combinatorial optimization problems can arise in many applications, such as minimizing the number of vias in layout design, maximizing the return of stock portfolios, flight planning and scheduling, and wireless sensor networks. The replica exchange process can be used to help solve such optimization problems.

[0005] The subject matter claimed herein is not limited to implementations that solve any disadvantages or that operate only in environments such as those described above. Rather, this background is merely provided to illustrate one example technology area where some implementations described herein may be practiced. Summary of the invention

[0006] According to one aspect of the embodiment, an operation may include obtaining a first fixed temperature of a replica exchange Markov chain Monte Carlo (MCMC) process for solving an optimization problem associated with a system, obtaining a second fixed temperature of the replica exchange MCMC process, and obtaining a plurality of replicas of the system used in the replica exchange MCMC process. The operation may also include assigning each of the plurality of replicas to a different corresponding temperature in a set of temperatures of the replica exchange MCMC process. The set of temperatures may include a first fixed temperature, a second fixed temperature, and a plurality of variable temperatures numerically ordered between the first fixed temperature and the second fixed temperature. The operation may also include obtaining a target swap acceptance probability for a swap between replicas corresponding to adjacent ordered variable temperatures in the plurality of variable temperatures during the replica exchange MCMC process. In addition, the operation may include determining a corresponding average swap acceptance probability for one or more corresponding adjacent pairs of the plurality of variable temperatures. Each corresponding swap acceptance probability may be for a swap between replicas assigned to one or more corresponding adjacent pairs. In addition, the operation may include adjusting one or more of the variable temperatures based on a relationship between the target swap acceptance probability and each of the one or more corresponding swap acceptance probabilities while maintaining the first fixed temperature and the second fixed temperature during the replica exchange MCMC process. In addition, the operation may include adjusting the number of replicas used during the MCMC process during the replica exchange MCMC process. The number of replicas may be adjusted based on a difference between the second fixed temperature and a specific variable temperature that is ordered adjacent to the second fixed temperature. The operation may also include identifying a specific state of the system as a solution to an optimization problem associated with the system based on an output of the replica exchange MCMC process.

[0007] The objects and advantages of the embodiments will be realized and achieved at least by the elements, features, and combinations particularly pointed out in the claims.

[0008] Both the foregoing general description and the following detailed description are presented by way of example and are explanatory rather than restrictive of the invention, as claimed. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] Example embodiments will be described and explained with additional specificity and detail through the use of the accompanying drawings, in which:

[0010] Figure 1A is a diagram representing an example environment configured to perform a replica exchange process;

[0011] Figure 1B Different representations of example states based on different temperatures are shown;

[0012] Figure 2 A block diagram of an example computing system configured to perform a replica exchange process is shown;

[0013] Figure 3 A flow chart illustrating an example method of adjusting temperature during a replica exchange process;

[0014] Figure 4 A flow chart illustrating an example method of adjusting the number of replicas during a replica swap process; and

[0015] Figure 5 A flow chart of an example method of performing a replica exchange process is shown. DETAILED DESCRIPTION

[0016] Combinatorial optimization problems can include a class of optimization problems that can be used to determine the maximum or minimum value of a system. For example, combinatorial optimization can be used to minimize the number of vias in a circuit layout design, maximize stock returns, improve airline planning and scheduling, configure wireless sensor networks, and other applications. In addition, simulated annealing can use heuristic methods to obtain solutions to optimization problems. In this way, annealing systems can be used to help solve combinatorial optimization problems or any other applicable type of optimization problem.

[0017] In addition, in some cases, a replica exchange Markov chain Monte Carlo (MCMC) process ("replica exchange process" is also referred to as a parallel tempering process) can be used as a simulated annealing technique to determine the maximum or minimum of a cost function that is a solution to an optimization function. According to one or more embodiments of the present disclosure, and as described in detail below, operations can be performed that can improve the efficiency of performing replica exchange, which can also improve the efficiency of solving optimization problems. The improved efficiency can improve a computing system configured to solve optimization problems by reducing the amount of processing that can be performed by such a computing system. The improved efficiency can also reduce the amount of time used by a computing system in solving optimization problems using replica exchange techniques.

[0018] Embodiments of the present disclosure are explained with reference to the drawings.

[0019] Figure 1A 1 is a diagram of an example environment 100 configured to perform a replica exchange process, arranged in accordance with at least one embodiment described in the present disclosure. Environment 100 may include a replica exchange engine 102 ("engine 102") configured to output a system state 104, which may be a solution to an optimization problem associated with a system 106.

[0020] The system 106 may include any suitable representation of an optimization problem that can be solved. For example, in some embodiments, the system 106 may include a state vector X, which may include a set of variables each of which may represent a characteristic associated with the optimization problem. Thus, the state vector X may represent different states of the system 106. For example, a first state vector X1 in which the variables each have a first value may represent a first state of the system 106, and a second state vector X2 in which the variables have a second value may represent a second state of the system 106. In these or other embodiments, the difference between the state vector X1 and the state vector X2 may be any difference from only one corresponding variable having a different value in both X1 and X2 to each variable having a different value in X1 and X2.

[0021] For example, system 106 may be a neural network including any suitable number of nodes (also referred to as "neurons"). In these or other embodiments, state vector X may be a state vector for each of the neurons of the neural network that system 106 may represent. For example, each neuron may be a bit that may have a value of "0" or "1", and state vector X may include a "1" value or a "0" value for each neuron of the neural network. In these or other embodiments, the neural network may be configured to solve one or more different types of optimization problems in any suitable manner.

[0022] Additionally or alternatively, the system 106 may include an Ising model (Ising model), which is mapped to the optimization problem to represent the Ising energy of the optimization problem corresponding to the system 106. For example, the Ising energy may be represented as the following expression (1):

[0023] E(X)=-∑ {i<j} w ij x i x j -∑ i b i x i -C (1)

[0024] In the above expression (1), x i is the i-th variable of the state vector X and can be 0 or 1, w ij is the connection weight between the i-th variable and the j-th variable of X, b i is the bias associated with the ith element, and C is a constant offset term.

[0025] The engine 102 may include code and routines configured to enable a computing system to perform one or more operations described therewith. Additionally or alternatively, the engine 102 may be implemented using hardware including any number of processors, microprocessors (e.g., for executing or controlling the execution of one or more operations), field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), or any suitable combination of two or more thereof.

[0026] Additionally or alternatively, the engine 102 may be implemented using a combination of hardware and software. In the present disclosure, operations described as being performed by the engine 102 may include operations that the engine 102 may instruct a corresponding system to perform. In some implementations, the engine 102 may be included in or be part of an annealing system (e.g., a digital annealing system or a quantum annealing system).

[0027] The engine 102 may be configured to perform a replica exchange MCMC process (“replica exchange” or “parallel tempering”) with respect to the system 106. For example, the engine 102 may be configured to perform replica exchange to find a state vector Xmin that can minimize the Ising energy of the system 106. As another example, the engine 102 may be configured to perform replica exchange to find a state vector Xmax that can maximize the Ising energy of the system 106.

[0028] Replica switching may include running M replicas of system 106 simultaneously, but using different scaling factors that affect whether system changes occur during the operation of the replicas of system 106. For example, "running" a replica of system 106 may include executing a set of multiple iterations, where each iteration includes randomly generating (e.g., via a random process) a current state vector "X i " to obtain the recommended sample "X i+1 In addition, it is possible to determine whether to use X in each iteration. i+1 Replace X i The determination as to whether to make a replacement may be a function of the scaling factor. Thus, running the system 106 at different scaling factors may produce varying results because the replacement determination may vary. For example, a first scaling factor set to a first value may result in replacement most of the time, while a second scaling factor set to a second value may result in replacement a small portion of the time. Thus, running a first copy of the system 106 relative to a first scaling factor may produce greatly varying results compared to running a second copy of the system 106 relative to a second scaling factor.

[0029] For example, in some embodiments, for a problem type that can be described as a set of interacting particles, the probability that the system 106 resides in a particular state Xi can be given by the following Boltzmann distribution function (2):

[0030] in In the above expression (2), E(X i ) is the system in X i The energy in the state, T is the scaling factor of the system, k B is the Boltzmann constant, and Z is a normalization factor, which may also be called a partition function.

[0031] In addition, in this example, regarding the recommended sample X i+1 The transition probability T of the probability to be accepted can be expressed in expression (3) as follows:

[0032]

[0033] The combination of expression (3) and expression (2) can produce the following expression (4):

[0034]

[0035] In expression (4), ΔE=E(X i+1 )-E(X i ), Boltzmann constant k B can be removed. In addition, when the transition probability T is close to "1", it is recommended that sample X i+1 The acceptance probability of is close to 100%. In addition, as also indicated in expression (4), the higher the value of the scaling factor T, the higher the expression The closer to "1", therefore, in the above example, the higher the scaling factor T, the more likely it is that the proposed sample X will be accepted. i+1 On the contrary, the lower the scaling factor T, the more recommended the sample X i+1 The less likely it will be accepted. In the case where the focus is on maximum energy (eg, a maximization problem rather than a minimization problem), the same formula can be used by reversing the entire energy landscape formulated in expression (1).

[0036] In the present disclosure, the term "temperature" is used as a synonym for "scaling factor" because the term "temperature" is usually used as a synonym for scaling factor in the field of simulated annealing and digital annealing. In traditional annealing and parallel tempering, physical systems can be operated at different actual temperatures to solve certain problems, and the term "temperature" is extended to the technology of using the same principle to solve the optimization problem of other types of "systems". In this way, the use of the term "temperature" in the present disclosure is used for the consistency of the use of the term in the field of simulated annealing and digital annealing, even if it does not necessarily refer to the actual physical temperature. On the contrary, the term "temperature" can refer to any factor that affects the Ising energy of the system in a way that can affect the probability of transition from one state to another, which can be used as the basis for accepting or rejecting the proposed state of the system as described above. Similarly, in the present disclosure, the reference to the Ising energy of a system (e.g., system 106) is not necessarily the actual energy of the system, but is more widely used as a representation of the state of the system. For example, an Ising energy value that can represent the state of the system (e.g., the cost, profit, etc. of the system) can be returned for the system. As another example, in the case of analyzing costs, the optimization problem may be to minimize the Ising energy. Conversely, in the case of analyzing profits, the optimization problem may be to maximize the Ising energy.

[0037] As indicated above, engine 102 can be configured to run M copies of system 106, each copy is at a different temperature. In this way, engine 102 can be configured to obtain M copies of system 106 and assign each of these copies to one of M different temperatures in a set of temperatures. In some embodiments, the copies of the system can each be the state vector X of system 106 or include the state vector X of system 106. In some embodiments, the initial state vector of each copy can be the same. Additionally or alternatively, engine 102 can be configured to randomly generate the initial state vector of each copy so that the state vectors of two or more copies can be different. The set of temperatures is generally referred to as a temperature ladder. The temperature of the temperature ladder can be numerically sorted between low temperature and high temperature. Therefore, assigning copies to corresponding temperatures can cause M different copies to be sorted according to the order of the corresponding temperatures to which the copies are assigned.

[0038] Due to the scaling effect of temperature on the state of the system 106, replicas at higher temperatures are able to sample larger portions of the state, while replicas at lower temperatures take a large number of samples in localized regions of the state. Replica swapping can include swapping replicas corresponding to adjacent temperatures so that a more representative view of the state can be achieved by swapping replicas compared to a standard MCMC process. For example, a first replica assigned to a first temperature can be swapped with a second replica assigned to a second temperature so that the first replica can be assigned to the second temperature and the second replica can be assigned to the first temperature. The first temperature and the second temperature can be adjacent to each other in a temperature ladder. In addition, the first replica and the second replica can be considered to be adjacent replicas by being assigned to adjacent temperatures (e.g., the first temperature and the second temperature).

[0039] In some embodiments, after each certain number of MCMC iterations during the replica swap process, the engine 102 may make a determination about the swap configuration (or equivalently, the swap temperature) of two or more replicas. In some embodiments, the determination may be made about neighboring replicas. Additionally or alternatively, the determination may be made about each possible set of neighboring replicas.

[0040] In these or other embodiments, the determination of whether to perform a swap can be based on a swap acceptance probability (SAP). In some embodiments, the SAP can be determined based on the temperature difference and energy difference between adjacent replicas. For example, in some embodiments, the SAP can be determined using the Metropolis solution according to the following expression (5):

[0041] SAP=min{1,exp[(β i -β j )(E i -E j )]} (5)

[0042] In expression (5), β i and β j represents the inverses of adjacent temperatures, and E i and E j represents the energy of two corresponding copies.

[0043] Expression (5) indicates that, when swapped, the replica with lower energy is more likely to drop to a lower temperature, and vice versa. i <E j And T i >T j, then SAP will be equal to 1. Furthermore, if a particular replica at a low temperature is stuck in a local minimum due to non-zero SAP between all temperatures, then if enough determination is made, it will eventually be able to rise to a higher temperature during the replica swap process, and thus escape from that local minimum (since the depth of the local minimum is smaller at higher temperatures).

[0044] The choice of temperature has a significant impact on sampling efficiency and time to solution. For example, at lower temperatures, more details about the state can be identified due to lower transition probabilities, such as indicated in expression (4) above. However, the additional details may be obtained at the expense of performing a large number of iterations to obtain such information and escape from local minima. In contrast, at higher temperatures, state details may be obscured due to higher transition probabilities. Therefore, the choice of temperature range including high and low temperatures, as well as the number of temperatures and the intervals between temperatures, can affect the efficiency and execution accuracy of the replica exchange process.

[0045] As an example, Figure 1B Different representations of example states 150 based on different temperatures are shown. Specifically, Figure 1B A first representation 152 is shown when the first temperature T1 is "1", a second representation 154 is shown when the second temperature T2 is "2", a third representation 156 is shown when the third temperature T3 is 4, and a fourth representation 158 is shown when the fourth temperature T4 is 16. As indicated by the comparison between the different representations, Figure 1B , the detail of the state may decrease as the temperature increases, such that the fourth representation 158 may be significantly “flatter” than the first representation 152 .

[0046] In some embodiments, the engine 102 may be configured to obtain a fixed temperature 108, which may include a first fixed temperature and a second fixed temperature. In some embodiments, the engine 102 may obtain the fixed temperature 108 as an input. Additionally or alternatively, the engine 102 may be configured to determine the fixed temperature 108. The first fixed temperature and the second fixed temperature may specify a range of a temperature step, such that they may be the highest temperature and the lowest temperature (a "fixed high temperature" and a "fixed low temperature") of the temperature step.

[0047] In some embodiments, the fixed low temperature can be set so that the scaling effects of temperature do not obscure the details of the state. For example, the fixed low temperature can be based on the relationship between the transition probability and the fixed low temperature and how this relationship affects the details about the state that can be obtained at the fixed low temperature. The fixed low temperature can be set according to any suitable technique and can depend on the specific formulation of the Ising energy function used for the optimization problem. In addition, the fixed low temperature can be based on an error tolerance that can be associated with a specific implementation.

[0048] The fixed high temperature can be set so that it is high enough so that no replica is trapped in the local minimum and most of the transition proposals are accepted, which means that the state representation at the fixed high temperature is almost flat. In these or other embodiments, the fixed high temperature can also be based on the relationship between the transition probability and the fixed high temperature and how this relationship affects the details about the probability of being trapped in the local minimum and the state. For example, a fixed high temperature can be selected until the transition probability reaches a certain level (e.g., 80% or higher). Based on expression (4), the transition probability is changed by a scaling factor. By increasing the maximum temperature and recording the transition probability, the value of the maximum temperature according to the specific target transition probability of the maximum temperature can be obtained.

[0049] During replica exchange, in the case where SAP is uniform between all adjacent temperatures, replicas can perform a random walk in the temperature space with each replica spending the same amount of time at each temperature, since at any time, for any replica at any temperature, the probability of moving to a higher or lower temperature is equal. Additionally, selecting the temperature intervals of a temperature step to produce uniform SAP is often used as a mechanism to optimize the replica exchange process.

[0050] According to one or more embodiments of the present disclosure, the engine 102 may be configured to automatically adjust the temperature of the temperature ladder between the fixed temperatures 108 to achieve uniform SAP between all adjacent temperatures. In the present disclosure, the temperature that can be adjusted and between the fixed temperatures 108 may be referred to as a "variable temperature". In these and other embodiments, the engine 102 may be configured to add or remove replicas and corresponding temperatures during the replica exchange process to help avoid running more replicas than required while also helping to run enough replicas to converge on uniform SAP. Therefore, the addition and / or removal of replicas can improve resource runtime and efficiency by performing operations on enough replicas to achieve a sufficiently acceptable solution while also avoiding performing operations on more replicas than required to obtain such a solution.

[0051] In some embodiments, the engine 102 can be configured to obtain the target SAP value 110 as a uniform SAP for all adjacent temperature implementations. The target SAP value 110 can be determined, or based on one or more factors, such as experimental results for a system of interest or a system with a similar structure. Additionally or alternatively, the target SAP value can be based on a balance between the accuracy of the solution obtained and the amount of resources available to determine the solution, and can be determined experimentally. In this way, the target SAP value can vary according to different implementations.

[0052] The engine 102 can be configured to adjust one or more of the variable temperatures during the replica exchange process to adjust the SAP between adjacent pairs. The adjustment can be based on the target SAP in an attempt to bring the SAP between adjacent pairs to the target SAP or within a threshold of the target SAP. However, in some embodiments, and as further described below, the SAP between a first fixed temperature and its adjacent variable temperature or between a second fixed temperature and its corresponding adjacent variable temperature (e.g., between a fixed high temperature and a highest variable temperature in a minimization scenario or between a fixed low temperature and a lowest variable temperature in a maximization scenario) may not be adjusted to allow replica insertion or removal. Note that a particular temperature and corresponding replica may be part of more than one adjacent pair. For example, for a set of sorted temperatures [T1, T2, T3], a first adjacent pair may include temperatures T1 and T2, and a second adjacent pair may include temperatures T2 and T3. In this way, the same temperature (and corresponding replica) may be included in two different adjacent pairs. In some embodiments, the SAP may be adjusted based on the following description of the adjacent pairs. Figure 3 One or more operations are described to perform temperature adjustment.

[0053] In these or other embodiments, the engine 102 can be configured to adjust the number of replicas that can be run during the replica exchange process (and therefore adjust the number of temperatures). In some embodiments, as indicated above and further detailed below, the adjustment of the number of replicas can be based on the temperature difference between one of the fixed temperatures 108 and its adjacent variable temperature. For example, for a minimization problem, the adjustment can be based on the temperature difference between the fixed high temperature and the highest variable temperature, and for a maximization problem, the adjustment can be based on the temperature difference between the fixed low temperature and the lowest variable temperature. In some embodiments, as further detailed below, the replica number adjustment can be related to the temperature adjustment. Additionally or alternatively, the temperature adjustment can be based on the following about Figure 4 Describes one or more operations to perform replica number adjustment.

[0054] The engine 102 may be configured to perform a replica exchange including temperature adjustment and / or replica number adjustment until the replica exchange process converges, wherein the swap acceptance probability for each temperature pair is equal to or within a specific threshold of the target SAP. Additionally or alternatively, the engine 102 may output a system state 104 in response to the convergence of the replica exchange process. The system state 104 may indicate a state of the system 106 corresponding to the convergence of the replica exchange process, and may also be a solution to an optimization problem associated with the system 106. For example, the system state 104 may include one or more state vectors X, wherein the Ising energy may be minimized or maximized depending on whether the optimization problem is a maximization problem or a minimization problem.

[0055] Without departing from the scope of this disclosure, Figure 1A Modifications, additions, or omissions may be made. For example, environment 100 may include more or fewer elements than those shown and described in this disclosure. In addition, the specific configuration, association, or inclusion of elements in a particular device or system may vary depending on the specific implementation.

[0056] Figure 2 A block diagram of an example computing system 202 configured to perform a replica exchange process according to at least one embodiment of the present disclosure is shown. In some embodiments, the computing system 202 may be configured to implement or direct the Figure 1A One or more operations associated with the replica exchange engine 102. In some embodiments, the computing system 202 may be included in the annealing system or form a part of the annealing system. The computing system 202 may include a processor 250, a memory 252, and a data storage device 254. The processor 250, the memory 252, and the data storage device 254 may be communicatively coupled.

[0057] In general, processor 250 may include any suitable special or general purpose computer, computing entity, or processing device including various computer hardware or software modules, and may be configured to execute instructions stored on any suitable computer-readable storage medium. For example, processor 250 may include a microprocessor, a microcontroller, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), or any other digital or analog circuit configured to interpret and / or execute program instructions and / or process data. Although in Figure 2 2 is shown as a single processor, but the processor 250 may include any number of processors configured to perform or direct the execution of any number of operations described in the present disclosure, either individually or collectively. In addition, one or more processors may exist on one or more different electronic devices (e.g., different servers).

[0058] In some embodiments, the processor 250 may be configured to interpret and / or execute program instructions and / or process data stored in the memory 252, the data storage device 254, or both the memory 252 and the data storage device 254. In some embodiments, the processor 250 may retrieve program instructions from the data storage device 254 and load the program instructions into the memory 252. After the program instructions are loaded into the memory 252, the processor 250 may execute the program instructions.

[0059] The memory 252 and the data storage device 254 may include a computer-readable storage medium for carrying or having computer-executable instructions or data structures stored thereon. Such computer-readable storage media may include any available non-transitory media that can be accessed by a general-purpose or special-purpose computer such as the processor 250. By way of example and not limitation, such computer-readable storage media may include tangible or non-transitory computer-readable storage media, including: random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), compact disk read-only memory (CD-ROM) or other optical disk storage device, magnetic disk storage device or other magnetic storage device, flash memory device (e.g., solid-state memory device), or any other non-transitory storage medium that can be used to carry or store specific program code in the form of computer-executable instructions or data structures and can be accessed by a general-purpose or special-purpose computer. In these and other examples, the term "non-transient" as interpreted in this disclosure should be interpreted to exclude only those types of transient media that were found not to fall within the scope of patentable subject matter in the Federal Circuit's decision In re Nuijten, 500 F.3d 1346 (Fed. Cir. 2007).

[0060] Combinations of the above may also be included within the scope of computer-readable storage media.For example, computer-executable instructions may include instructions and data configured to cause the processor 250 to perform a certain operation or a group of operations.

[0061] Modifications, additions, or omissions may be made to computing system 202 without departing from the scope of the present disclosure. For example, in some embodiments, computing system 202 may include any number of other components that may not be explicitly shown or described. In addition, references to hardware or operations performed by hardware in the present disclosure may refer to any applicable operation, configuration, or combination of one or more elements of computing system 202.

[0062] Figure 3 1 is a flowchart of an example method 300 for adjusting temperature during a replica exchange process according to at least one embodiment described in the present disclosure. The method 300 can be performed by any suitable system, device, or apparatus. For example, the engine 102 of FIG. 1 or Figure 2 The computing system 202 may perform one or more operations associated with the method 300. Although shown with separate blocks, the steps and operations associated with one or more blocks of the method 300 may be divided into additional blocks, combined into fewer blocks, or eliminated, depending on the particular implementation.

[0063] At block 302, the N MCMC replica exchange process may be performed.sweep MCMC iterations are used to solve the optimization problem of the system. sweep Can be set to any value. In some embodiments, N sweep Can be set to the lowest possible value so that the runtime of the hardware performing the swap is masked by the runtime of the MCMC iteration. MCMC iterations can be performed on each of the M replicas of the system, each replica being assigned to one of the M different temperatures and therefore corresponding to one of the M different temperatures. The replicas can each include a state vector X of the system. In some embodiments, the temperatures can be numerically sorted into temperature steps having values ​​between a fixed low temperature and a fixed high temperature. As described in detail below, the temperatures of the temperature steps between the fixed high temperature and the fixed low temperature can be adjusted according to method 300, and these temperatures can be referred to as "variable temperatures."

[0064] In these or other embodiments, for N sweep At each iteration of the MCMC iterations, the proposed sample (e.g., the proposed state vector) for each corresponding replica can be accepted or rejected as a replacement for the corresponding replica. In some embodiments, such as described above with respect to expression (4), the acceptance or rejection of the proposed sample can be based on the transition probability T. In some embodiments, the generation of two or more proposed replicas and the acceptance or rejection of two or more proposed replicas can be performed in parallel. Additionally or alternatively, the generation of the proposed replicas and the acceptance or rejection of the proposed replicas can be performed in parallel with respect to all replicas.

[0065] In response to executing N sweep After MCMC iterations, method 300 may proceed to block 304. At block 304, a swap attempt operation may be performed with respect to each adjacent pair of replicas and corresponding temperatures. In some embodiments, a swap between each adjacent pair may be accepted or rejected based on a SAP determination made using expression (5) above.

[0066] At block 306, it may be determined whether N adjust Swap attempts. N adjust (N 调整 ) is a value large enough to reduce sampling noise and can be determined experimentally in some embodiments. For example, in many cases, an appropriate number of samples may be 50 to 100. In response to not yet executing N adjust swap attempts, method 300 may return to block 302. Conversely, in response to N swap attempts having been performed adjust After a swap attempt has been made, method 300 may proceed to block 308 .

[0067] At block 308, an average SAP may be determined for each of one or more of the adjacent temperature pairs. The average SAP of the corresponding adjacent temperature pairs may indicate the average SAP relative to N adjust The average SAP of those temperatures for N swap attempts. adjust When N is equal to "1", the average SAP for the corresponding pair may be equal to the SAP of the swap attempt for the corresponding pair. adjust When it is equal to "100", the average SAP for the corresponding pair may be the average SAP for the pair in 100 different swap attempts.

[0068] In some embodiments, the average SAP can be determined using standard averaging techniques. For example, the average SAP for each corresponding neighbor pair can be determined by determining the SAP for each swap attempt for the corresponding neighbor pair (e.g., via expression (5)), adding together each determined SAP, and dividing by the number of swap attempts.

[0069] Additionally or alternatively, in some embodiments, the average SAP of each corresponding neighbor pair may be determined based on a swap acceptance rate, which may indicate the average SAP of each corresponding neighbor pair in N adjust The ratio of accepted swaps for corresponding adjacent pairs in N swap attempts. adjust The swap acceptance rate over N swap attempts may be based on the adjust The average value of the SAP of the swaps performed on the swap attempts. In this way, the swap acceptance rate for each corresponding adjacent pair can be equal to or approximately equal to the average SAP of the corresponding adjacent pair.

[0070] The swap acceptance rate for a particular adjacent temperature pair may be equal to the ratio of the number of accepted swaps to the number of attempted swaps for the adjacent pair. For example, in expression (6), the swap acceptance rate for a particular pair "i" may be expressed as follows:

[0071]

[0072] In some embodiments, an average SAP may be determined for each neighboring pair except for neighboring pairs that include a fixed high temperature or a fixed low temperature. For example, in a minimization scenario, an average SAP for a neighboring pair of a fixed high temperature and a highest variable temperature may not be determined. As another example, in a maximization scenario, an average SAP for a neighboring pair of a fixed low temperature and a lowest variable temperature may not be determined.

[0073] At block 310, the average SAP for each of the one or more neighbor pairs may be compared to a target swap acceptance probability (target SAP). In response to the average SAP being outside a threshold of the target SAP for the corresponding neighbor pair, the method 300 may proceed to block 312. In response to the average SAP being within a threshold of the target SAP for the corresponding neighbor pair, the method 300 may proceed to block 314.

[0074] The threshold value may be based on several factors, including a target error margin for the solution to the corresponding optimization problem, a target processing efficiency, etc. For example, the threshold value may be a percentage change relative to a target SAP (e.g., within a certain percentage of the target SAP), where a higher percentage change may correspond to a higher error margin but better processing efficiency. Conversely, a lower percentage change may correspond to a lower error margin but poorer processing efficiency. Thus, the threshold value may have a value within a relatively wide range, such as any value between 0.1% and 20% of the target SAP.

[0075] At block 312, temperature adjustments may be made relative to temperature differences between corresponding adjacent temperature pairs whose average SAPs are not within a threshold of a target SAP. The temperature adjustments may be made so that the swap acceptance probabilities for the corresponding adjacent pairs may move toward the target SAP.

[0076] For example, as indicated by expression (5), an increase in the temperature difference between a particular adjacent pair can cause a decrease in the probability of acceptance of a swap for the particular adjacent pair. Therefore, in the case where the average SAP is greater than the target SAP and outside the threshold, the temperature difference can be reduced. Conversely, as also indicated by expression (5), a decrease in the temperature difference between a particular adjacent pair can cause an increase in the probability of acceptance of a swap for the particular adjacent pair. Therefore, in the case where the average SAP is less than the target SAP and outside the threshold, the temperature difference can be increased.

[0077] Temperature adjustments may interfere with the convergence of the replica swap process. Thus, the magnitude of the temperature adjustment may be reduced over time to help ensure that convergence of the replica swap process can occur. For example, a damping factor α may be applied to the temperature adjustment and may be a function of the number of swap attempts. In some embodiments, the damping factor may be determined according to the following expression (7):

[0078]

[0079] In expression (7), t may represent the number of swap attempts from the start of the replica exchange process, α0 may represent the initial damping factor, and t0 may represent the time at which the damping factor is reduced to half of its initial value. The initial damping factor may be based on a balance between the accuracy of the resulting solution and the amount of time and / or resources that can be used to determine the solution, and may be determined experimentally. For example, a low value of the initial damping factor may result in a slow adjustment and therefore a slow arrival at a solution, which may use more time and computing resources. Conversely, a high value of the initial damping factor may result in a faster adjustment, but a less accurate solution. Thus, the initial damping factor value may vary according to different implementations.

[0080] Additionally, for example, in some embodiments, the temperature adjustment for the corresponding adjacent temperature pairs may be based on the following expression (8):

[0081]

[0082] In expression (8), It can be the temperature T of the corresponding adjacent temperature pair i With T j The change in the temperature difference between α(t) can be determined from expression (7), It can be the temperature T i With T j The average SAP between target The target SAP may be, and in this particular example, the threshold may be 5%. The temperature adjustment for the corresponding adjacent pairs may include adjusting the lower temperature, adjusting the higher temperature, or adjusting both the lower temperature and the highest temperature. In some embodiments, for the minimization process, the higher temperature of the corresponding adjacent pairs may be adjusted and the lower temperature may be maintained, which may make implementation easier due to other temperature adjustments performed as described below. Additionally or alternatively, for the maximization process, the lower temperature of the corresponding adjacent pairs may be adjusted and the higher temperature may be maintained, which may also be easily implemented.

[0083] The temperature adjustment between one adjacent pair can affect the temperature difference between the adjacent pairs adjacent to the adjacent pair. For example, the first adjacent pair including the first temperature T1 and the second temperature T2 can be temperature adjusted. The first adjacent pair can be considered to be adjacent to the second adjacent pair including T2 and the third temperature T3. T2 can be adjusted in response to the SAR of the first adjacent pair not being within the threshold of the target SAP. However, the adjustment of T2 can also change the exchange acceptance probability between the second adjacent pair of T2 and T3 by changing the difference between T2 and T3. Therefore, in some embodiments, one or more other temperatures can be adjusted in response to temperature adjustment relative to a specific adjacent temperature pair. The adjustment can make it possible to maintain the temperature difference between other adjacent temperature pairs.

[0084] For example, in response to a temperature adjustment that increases a specific variable temperature by ΔT, all variable temperatures above the specific variable temperature may also be increased by ΔT. Similarly, in response to a temperature adjustment that decreases a specific variable temperature by ΔT, all variable temperatures below the specific variable temperature may also be decreased by ΔT.

[0085] Additionally or alternatively, in some cases, one or more adjustments to one or more other variable temperatures may be less than ΔT. For example, raising the first variable temperature by ΔT may cause the first variable temperature to now be higher than a second variable temperature that is higher than the first variable temperature in the temperature step. In some embodiments, in order to avoid such a situation, the increase in the first variable temperature may cause the difference between the first variable temperature and the second variable temperature to be reduced by a certain percentage. For example, the temperature difference between the first variable temperature and the second variable temperature may be reduced by 5%, so that the temperature difference may be adjusted to 95% compared thereto. A similar approach may also be used in the case of temperature reduction. In these and other embodiments, the changes may be iteratively performed starting from the adjusted variable temperatures of the corresponding adjacent pairs and sequentially moving through the temperature step.

[0086] The fixed temperature may not be adjusted as part of the temperature adjustment process, which may affect the temperature difference between the fixed high temperature and the highest variable temperature or the temperature difference between the fixed low temperature and the lowest variable temperature, depending on whether the replica exchange process is performed as a minimization process or as a maximization process. For example, for a minimization process, an increase in the temperature difference between adjacent variable temperature pairs and a subsequent adjustment to one or more higher temperatures may result in a decrease in the temperature difference between the fixed high temperature and the highest variable temperature. Similarly, for a minimization process, a decrease in the temperature difference between adjacent variable temperature pairs and a subsequent adjustment to one or more higher temperatures may result in an increase in the temperature difference between the fixed high temperature and the highest variable temperature. The opposite situation may be the case for a maximization process. As described below with respect to Figure 4The temperature difference associated with a fixed temperature can be used to determine whether to add or remove replicas.

[0087] At block 314, for adjacent temperature pairs within the threshold of the target SAP, the temperature difference between such adjacent pairs may be maintained. The "maintaining" of the difference may include adjusting the difference by a certain percentage relative to the above-described situation regarding avoiding the lower temperature of a particular adjacent temperature pair from becoming the higher temperature of the particular temperature pair during the temperature adjustment at block 312.

[0088] Method 300 may be modified, added to, or omitted without departing from the scope of the present disclosure. For example, the operations of method 300 may be implemented in a different order. Additionally or alternatively, two or more operations may be performed simultaneously. Furthermore, the operations and actions outlined are provided only as examples, and some of the operations and actions may be optional, combined into fewer operations and actions, or expanded into additional operations and actions without departing from the essence of the disclosed embodiments.

[0089] For example, in some embodiments, after blocks 312 and 314, method 300 may return to block 302 to repeat one or more operations of method 300. Additionally or alternatively, the process may be repeated until the average SAP between all adjacent temperatures is within a threshold of the target SAP, which may indicate convergence of the replica exchange process. In these or other embodiments, the solution to the optimization problem associated with the system corresponding to the replica may be based on the state vector of the replica at the time of convergence.

[0090] Figure 4 1 is a flowchart of an example method 400 for adjusting the number of replicas during a replica swap process according to at least one embodiment described in the present disclosure. The method 400 may be performed by any suitable system, device, or apparatus. For example, the engine 102 or Figure 2 The computing system 202 may perform one or more operations associated with the method 400. Although shown with separate blocks, the steps and operations associated with one or more blocks of the method 400 may be divided into additional blocks, combined into fewer blocks, or eliminated, depending on the particular implementation.

[0091] As indicated above, the temperature difference associated with the fixed high temperature or fixed low temperature of the temperature ladder of the replica exchange process can be used to determine whether to add a replica or remove a replica. In the case where the replica exchange process is performed relative to maximization, the difference between the fixed low temperature and the lowest variable temperature can be used. Conversely, in the case where the replica exchange process is performed relative to minimization, the difference between the fixed high temperature and the highest variable temperature can be used. The operation of method 400 is described relative to the minimization process for ease of explanation, but the same principles can be applied to the maximization process, except that it is for the fixed low temperature and the lowest variable temperature.

[0092] At box 402, a temperature difference between a fixed high temperature and a highest variable temperature may be determined. The temperature difference determined at box 402 may be referred to as a "last temperature difference" to indicate that it is the last temperature difference in the temperature ladder. Additionally, the fixed high temperature and the highest variable temperature may also be referred to as a "last adjacent pair." In some embodiments, the last temperature difference determination may be performed after each temperature adjustment iteration such as described with respect to method 300 or after a certain number of temperature adjustment iterations have been performed. A "temperature adjustment iteration" in this context may refer to an adjustment of the temperature difference between a particular pair of adjacent temperatures and corresponding adjustments to other variable temperatures to help maintain the swap acceptance probabilities of their respective pairs. Additionally or alternatively, a "temperature adjustment iteration" in this context may refer to an adjustment of the temperature difference between all adjacent pairs that are not within a threshold of a target swap acceptance probability for each N temperature adjustment iterations. adjust Make temperature adjustments after the first swap attempt.

[0093] At block 404, it may be determined whether the last temperature difference satisfies a temperature difference threshold. In the case where the number of replicas is greater than the number of replicas required to achieve the target SAP, the temperature adjustment of method 300 may cause the gaps between the variable temperatures to become larger, which may cause the last temperature difference to decrease. As the last temperature difference decreases, the replicas associated with the last adjacent pair may be consistently close to each other, so that the swap acceptance probability of the last adjacent pair may be close to 1. Therefore, the temperature difference threshold may be set so that once the last difference is less than the temperature difference threshold, the highest variable temperature may be removed from the temperature ladder, and its corresponding replica may also be removed.

[0094] In some embodiments, the temperature difference threshold can be based on the total temperature range between the fixed low temperature and the fixed high temperature. Additionally or alternatively, the temperature difference threshold can be based on the maximum number of replicas that can be used, and therefore can be based on the maximum number of temperatures that can be included in the temperature ladder. In some embodiments, the maximum number of replicas can be based on the constraints of the hardware used to implement the replica exchange process. Additionally or alternatively, the maximum number of replicas can be set based on processing efficiency and time considerations. For example, in some embodiments, the temperature difference threshold Threshold can be determined based on a portion of the temperature range and the maximum number of replicas according to the following expression (9): r :

[0095]

[0096] In expression (9), T H and T L can represent fixed high temperature and fixed low temperature respectively, M max _ ...

[0097] In response to the last temperature difference satisfying the temperature difference threshold (e.g., being less than or equal to the temperature difference threshold), the method 400 may proceed from block 404 to block 406. At block 406, the highest variable temperature and its corresponding copy may be removed. Removing the highest variable temperature may cause the previous second to highest variable temperature to become the highest variable temperature.

[0098] In response to the last temperature difference not satisfying the temperature difference threshold (e.g., being greater than or equal to the temperature difference threshold), method 400 may proceed from block 404 to block 408. At block 408, a swap acceptance probability may be determined based on the last temperature difference. In some embodiments, the swap acceptance probability may be determined based on the last temperature difference described above with respect to Figure 1A Expression (5) is described using a fixed high temperature and a maximum variable temperature to determine the swap acceptance probability. The swap acceptance probability determined at block 408 may be referred to as a "final SAP."

[0099] At block 410, it may be determined whether the last SAP is within a target SAP threshold, such as described above with respect to method 300. In the event that the number of replicas is too low, the temperature adjustment of method 300 may be such that the gaps between the variable temperatures may become smaller, which may cause an increase in the last temperature difference and thus the last SAP may be reduced to a point where the last SAP is not within the target SAP threshold. Thus, in response to the last SAP not being within the target SAP (which may be based on the last temperature difference), method 400 may proceed from block 410 to block 412, where a replica may be added.

[0100] For example, a new variable temperature may be added between the previous highest variable temperature and the fixed high temperature. The new variable temperature may accordingly become the highest variable temperature. In addition, a new replica may be assigned to the new variable temperature so that the new replica is added to the replica exchange process.

[0101] Returning to block 410, in response to the last SAP being within the target SAP, method 400 may proceed from block 410 to block 414. At block 414, the number of replicas may be maintained.

[0102] Method 400 may be modified, added to, or omitted without departing from the scope of the present disclosure. For example, the operations of method 400 may be implemented in a different order. Additionally or alternatively, two or more operations may be performed simultaneously. Furthermore, the operations and actions outlined are provided only as examples, and some of the operations and actions may be optional, combined into fewer operations and actions, or expanded into additional operations and actions without departing from the essence of the disclosed embodiments.

[0103] For example, in some embodiments, after block 412 or block 414, method 400 may return to block 402 to repeat one or more operations of method 400. Additionally or alternatively, the process may be repeated any number of times until method 300 is completed. Additionally or alternatively, the determinations to add replicas or remove replicas made at block 404 and at block 410 may be performed after the same number of temperature adjustment iterations have been performed or after a different number of temperature adjustment iterations have been performed.

[0104] Furthermore, in some embodiments, the initial number of replicas may be set to the maximum number of replicas that can be run according to the specific hardware used to perform the replica exchange process. In these or other embodiments, operations associated with replica addition may be omitted.

[0105] Figure 5 1 is a flowchart of an example method 500 for performing a replica exchange process according to at least one embodiment described in the present disclosure. The method 400 may be performed by any suitable system, device, or apparatus. For example, the engine 102 of FIG. 1 or Figure 2 The computing system 202 may perform one or more operations associated with the method 400. Although shown with separate blocks, the steps and operations associated with one or more blocks of the method 400 may be divided into additional blocks, combined into fewer blocks, or eliminated, depending on the particular implementation.

[0106] At block 502, a first fixed temperature of a replica exchange Markov Chain Monte Carlo (MCMC) process may be obtained. The replica exchange process may be used to solve an optimization problem associated with the system. The first fixed temperature may be a fixed high temperature or a fixed low temperature. In some embodiments, the first fixed temperature may be obtained as an input or may be determined. Additionally or alternatively, the first fixed temperature may be obtained as described above with respect to Figure 1A The description of determining a fixed high temperature or determining a fixed low temperature determines a first fixed temperature.

[0107] At block 504, a second fixed temperature for the replica exchange process may be obtained. The second fixed temperature may be a fixed high temperature or a fixed low temperature. For example, in the case where the first fixed temperature is a fixed high temperature, the second fixed temperature may be a fixed low temperature, and conversely, in the case where the first fixed temperature is a fixed low temperature, the second fixed temperature may be a fixed high temperature. In some embodiments, the second fixed temperature may be obtained as an input or may be determined. Additionally or alternatively, the second fixed temperature may be determined based on the above description with respect to Figure 1A The description of determining the fixed high temperature or determining the fixed low temperature determines the second fixed temperature.

[0108] At block 506, multiple replicas of the system to be used in the replica exchange process may be obtained. In some embodiments, the replicas may be received as input. Additionally or alternatively, the system may be received as input and replicas may be made from the system. In some embodiments, the system may be described above with respect to Figure 1A The replicas may be obtained and / or configured as described. Additionally or alternatively, the number of initial replicas may be based on the maximum number of replicas that a computing system configured to perform the replica exchange process can handle. In these or other embodiments, the number of initial replicas may be determined arbitrarily to some extent, because the addition or removal of replicas as described above and implemented in method 500 may automatically add or remove replicas to the number that may be needed as described below.

[0109] At box 508, each replica in the replica can be assigned to a different corresponding temperature in the set of temperatures. The number of temperatures in the set of temperatures can be the same number of replicas. In addition, the set of temperatures can be within the range between the first fixed temperature and the second fixed temperature. In addition, the temperature between the first fixed temperature and the second fixed temperature can be variable so that they can be adjusted as described above. In addition, the variable temperature can be sorted by value between the first fixed temperature and the second fixed temperature. In some embodiments, the difference between the temperatures in the set of temperatures can be uniform when initialized. Additionally or alternatively, the difference can vary. The initialization of the set of temperatures can be performed at any suitable time between obtaining a fixed temperature and obtaining a replica.

[0110] At block 510, a target swap acceptance probability (target SAP) may be obtained. As described in detail in the above specification, the target SAP may be a probability of performing a swap between replicas corresponding to adjacent ordered variable temperatures in a plurality of variable temperatures during a replica swap process. The target SAP may be obtained or determined as an input.

[0111] At block 512, respective average SAPs may be determined for one or more respective adjacent pairs of variable temperatures. Each respective average SAP may be for a swap between copies assigned to the one or more respective adjacent pairs. In some implementations, the determination of the average SAP may be performed Figure 3 One or more operations of method 300.

[0112] At block 514, one or more of the variable temperatures may be adjusted based on a relationship between the target swap acceptance probability and each of the one or more corresponding average SAPs. The temperature adjustment may be performed during the replica swap process and the fixed first temperature and the fixed second temperature may be maintained, wherein the fixed first temperature and the fixed second temperature may not be adjusted. In some embodiments, the temperature adjustment may be performed Figure 3 One or more operations of method 300.

[0113] At block 516, the number of replicas may be adjusted based on a difference between the second fixed temperature and a particular variable temperature that is ordered adjacent to the second fixed temperature. For a minimization process, the second fixed temperature may be a high fixed temperature. For a maximization process, the second fixed temperature may be a low fixed temperature. The replica number adjustment may be performed during the replica exchange process. In some embodiments, the adjustment temperature may be performed Figure 4 One or more operations of method 400.

[0114] At block 518, a particular state of the system may be identified as a solution to an optimization problem associated with the system. The particular state may include one or more state vectors of the replicas after the replica exchange process has converged.

[0115] Method 500 may be modified, added to, or omitted without departing from the scope of the present disclosure. For example, the operations of method 500 may be implemented in a different order. Additionally or alternatively, two or more operations may be performed simultaneously. Furthermore, the operations and actions outlined are provided only as examples, and some of the operations and actions may be optional, combined into fewer operations and actions, or expanded into additional operations and actions without departing from the essence of the disclosed embodiments.

[0116] One or more embodiments of the present disclosure relating to improving replica exchange techniques by automatic temperature and / or replica number adjustment may be implemented in any number of different scenarios. For example, in some embodiments, the replica exchange techniques described in detail above may be integrated with parallel MCMC trials and update techniques. For example, automatic temperature and / or replica number adjustment may be implemented relative to parallel MCMC trials and update techniques ("parallel techniques") applied to neural networks that may be used to solve optimization problems. An example of automatic temperature and / or replica number adjustment for replica exchange using parallel techniques may be found in the paper "Replica Exchange MCMC Hardware with Automatic Temperature Selection and Parallel Trial" by Dabiri et al., IEEE TRANSACTIONS ON PARALLEL AND DISTRIBUTED SYSTEMS, which may be viewed online after June 20, 2020, the entire contents of which are incorporated by reference into the present disclosure.

[0117] Additionally or alternatively, as indicated above, one or more embodiments of the present disclosure may be implemented by software programming.An example of usable pseudocode with respect to software implementations can also be found in the paper by Dabiri et al.

[0118] Additionally or alternatively, as also indicated above, hardware such as FPGAs may be utilized to implement one or more embodiments of the present disclosure. For example, an example FPGA implementation integrating automatic temperature and / or replica number adjustment of replica switching with parallel techniques may also be found in the paper by Dabiri et al.

[0119] As used herein, the term "module" or "component" may refer to a specific hardware implementation configured to perform the operations of the module or component and / or a software object or software routine that may be stored on and / or executed by the general hardware of a computing system (e.g., a computer-readable medium, a processing device, etc.). In some embodiments, the different components, modules, engines, and services described herein may be implemented as objects or processes executed on a computing system (e.g., implemented as separate threads). Although some of the systems and methods described herein are generally described as being implemented in software (stored on and / or executed by general hardware), specific hardware implementations or combinations of software and specific hardware implementations are also possible and contemplated. In this specification, a "computing entity" may be any computing system as previously defined herein, or may be any module or combination of modules running on a computing system.

[0120] The terms used in this disclosure and especially in the appended claims (e.g., the bodies of the appended claims) are generally intended to be “open” terms (e.g., the term “including” should be understood as “including but not limited to,” the term “having” should be understood as “having at least,” the term “include” should be understood as “including but not limited to,” etc.).

[0121] Additionally, if a specific number of an introduced claim recitation is intended, such intent will be expressly recited in the claim, and in the absence of such a recitation, such intent is absent. For example, to aid understanding, the appended claims may include the use of the introductory phrases "at least one" and "one or more" to introduce claim recitations. However, even if the same claim includes the introductory phrases "one or more" or "at least one" and an indefinite article such as "a" or "an" (e.g., "a" and / or "an" should be interpreted as meaning "at least one" or "one or more"), the use of such phrases should not be interpreted as implying that the introduction of a claim recitation by the indefinite article "a" or "an" limits any particular claim containing such introduced claim recitation to embodiments containing only one such recitation; the same is true for the use of definite articles used to introduce claim recitations.

[0122] Furthermore, even if a particular number of an introduced claim recitation is explicitly recited, one skilled in the art will recognize that such recitation should be interpreted to mean at least the recited number (e.g., a mere recitation of "two recitations," without other modifiers, means at least two recitations, or two or more recitations). Furthermore, where idioms like "at least one of A, B, and C, etc." or "one or more of A, B, and C, etc." or "at least one of A, B, or C, etc." or "one or more of A, B, or C, etc." are used, generally such constructions are intended to include only A, only B, only C, A and B together, A and C together, B and C together, or A, B, and C together, etc. Additionally, use of the term "and / or" is intended to be interpreted in this manner.

[0123] In addition, any separator or phrase presenting two or more alternative terms, whether in the specification, claims or drawings, should be understood to contemplate the possibility of including one of the terms, any one of the terms, or both of the terms. For example, the phrase "A or B" should be understood to include the possibility of "A" or "B" or "A and B", even if the term "and / or" is used elsewhere.

[0124] All examples and conditional language stated in the present disclosure are intended to assist the reader in understanding the present disclosure and the teaching objects of the concepts contributed by the inventors to further develop the prior art, and are to be understood as not being limited to such specifically stated examples and conditions. Although the embodiments of the present disclosure have been described in detail, various changes, substitutions and variations may be made without departing from the spirit and scope of the present disclosure.

Claims

1. A method for performing automatic adjustment of replica exchange, comprising: obtaining a first fixed temperature of a replica-exchanging Markov chain Monte Carlo (MCMC) process for solving an optimization problem associated with a system, wherein the optimization problem involves minimizing a number of vias of a circuit layout design or a configuration of a wireless sensor network, and wherein the system is an Ising model mapped to the optimization problem; obtaining a second fixed temperature of the replica exchange MCMC process; obtaining a plurality of replicas of the system for use in the replica exchange MCMC process; assigning each of the plurality of replicas to a different corresponding temperature in a set of temperatures of the replica exchange MCMC process, the set of temperatures comprising the first fixed temperature, the second fixed temperature, and a plurality of variable temperatures numerically ordered between the first fixed temperature and the second fixed temperature; obtaining a target swap acceptance probability for swaps between replicas corresponding to adjacent ordered variable temperatures of the plurality of variable temperatures during the replica swap MCMC process; performing the replica exchange MCMC process by executing the replicas at the corresponding assigned temperatures of each replica of the system on a hardware platform; determining, during execution of the replica swap MCMC process on the hardware platform, respective average swap acceptance probabilities with respect to one or more respective neighboring pairs in the plurality of variable temperatures, each respective swap acceptance probability being with respect to a swap between replicas assigned to one or more respective neighboring pairs in the plurality of variable temperatures; adjusting one or more of the variable temperatures based on a relationship between the target swap acceptance probability and each of one or more of the corresponding swap acceptance probabilities while maintaining the first fixed temperature and the second fixed temperature during the replica swap MCMC process; During the replica exchange MCMC process, adjusting a number of replicas executed by the hardware platform during the replica exchange MCMC process, the adjustment of the number of replicas being based on a difference between the second fixed temperature and a specific variable temperature that is ordered adjacent to the second fixed temperature; and Based on an output of the replica exchange MCMC process, a particular state of the system is identified as a solution to the optimization problem associated with the system.

2. The method for performing automatic adjustment of replica exchange according to claim 1, wherein: Adjusting the number of the replicas includes removing the specific variable temperature and removing a specific replica corresponding to the specific variable temperature.

3. The method for performing automatic adjustment of replica exchange according to claim 1, wherein: Adjusting the number of the replicas includes inserting a new variable temperature between the second fixed temperature and the specific variable temperature, and allocating the new replica to the new variable temperature.

4. The method for performing automatic adjustment of replica exchange according to claim 1, wherein: Adjusting the number of replicas based on a difference between the second fixed temperature and the particular variable temperature is in response to the difference between the second fixed temperature and the particular variable temperature satisfying a temperature difference threshold.

5. The method for performing automatic adjustment of replica exchange according to claim 1, wherein: Adjusting the number of the replicas based on a difference between the second fixed temperature and the specific variable temperature includes: determining a specific swap acceptance probability for a specific swap between a first replica corresponding to the specific variable temperature and a second replica corresponding to the second fixed temperature based on a difference between the second fixed temperature and the specific variable temperature; and The number of copies is adjusted based on a relationship between the specific swap acceptance probability and the target swap acceptance probability.

6. The method for performing automatic adjustment of replica exchange according to claim 1, wherein: Obtaining the second fixed temperature includes determining the second fixed temperature based on a relationship between a specific swap acceptance probability and the second fixed temperature.

7. A computer-readable storage medium configured to store instructions that, in response to being executed, cause a computing system to perform operations comprising: obtaining a first fixed temperature of a replica-exchanging Markov chain Monte Carlo (MCMC) process for solving an optimization problem associated with a system, wherein the optimization problem involves minimizing a number of vias of a circuit layout design or a configuration of a wireless sensor network, and wherein the system is an Ising model mapped to the optimization problem; obtaining a second fixed temperature of the replica exchange MCMC process; obtaining a plurality of replicas of the system for use in the replica exchange MCMC process; assigning each of the plurality of replicas to a different corresponding temperature in a set of temperatures of the replica exchange MCMC process, the set of temperatures comprising the first fixed temperature, the second fixed temperature, and a plurality of variable temperatures numerically ordered between the first fixed temperature and the second fixed temperature; obtaining a target swap acceptance probability for swaps between replicas corresponding to adjacent ordered variable temperatures of the plurality of variable temperatures during the replica swap MCMC process; performing the replica exchange MCMC process by executing the replicas at the corresponding assigned temperatures of each replica of the system on a hardware platform; determining, during execution of the replica swap MCMC process on the hardware platform, respective average swap acceptance probabilities with respect to one or more respective neighboring pairs in the plurality of variable temperatures, each respective swap acceptance probability being with respect to a swap between replicas assigned to one or more respective neighboring pairs in the plurality of variable temperatures; adjusting one or more of the variable temperatures based on a relationship between the target swap acceptance probability and each of one or more of the corresponding swap acceptance probabilities while maintaining the first fixed temperature and the second fixed temperature during the replica swap MCMC process; During the replica exchange MCMC process, adjusting a number of replicas executed by the hardware platform during the replica exchange MCMC process, the adjustment of the number of replicas being based on a difference between the second fixed temperature and a specific variable temperature that is ordered adjacent to the second fixed temperature; and Based on an output of the replica exchange MCMC process, a particular state of the system is identified as a solution to the optimization problem associated with the system.

8. The computer-readable storage medium according to claim 7, wherein: Adjusting the number of the replicas includes removing the specific variable temperature and removing a specific replica corresponding to the specific variable temperature.

9. The computer-readable storage medium according to claim 7, wherein: Adjusting the number of the replicas includes inserting a new variable temperature between the second fixed temperature and the specific variable temperature, and allocating the new replica to the new variable temperature.

10. The computer-readable storage medium according to claim 7, wherein: Adjusting the number of replicas based on a difference between the second fixed temperature and the particular variable temperature is in response to the difference between the second fixed temperature and the particular variable temperature satisfying a temperature difference threshold.

11. The computer-readable storage medium according to claim 7, wherein: Adjusting the number of the replicas based on a difference between the second fixed temperature and the specific variable temperature includes: determining a specific swap acceptance probability for a specific swap between a first replica corresponding to the specific variable temperature and a second replica corresponding to the second fixed temperature based on a difference between the second fixed temperature and the specific variable temperature; and The number of copies is adjusted based on a relationship between the specific swap acceptance probability and the target swap acceptance probability.

12. The computer-readable storage medium according to claim 7, wherein: Obtaining the second fixed temperature includes determining the second fixed temperature based on a relationship between a specific swap acceptance probability and the second fixed temperature.

13. The computer-readable storage medium of claim 8, wherein: The first fixed temperature is a fixed low temperature, and the second fixed temperature is a fixed high temperature.

14. A system for performing automatic adjustment of replica exchange, comprising: Hardware configured to perform operations comprising: obtaining a first fixed temperature of a replica-exchanging Markov chain Monte Carlo (MCMC) process for solving an optimization problem associated with a system, wherein the optimization problem involves minimizing a number of vias of a circuit layout design or a configuration of a wireless sensor network, and wherein the system is an Ising model mapped to the optimization problem; obtaining a second fixed temperature of the replica exchange MCMC process; obtaining a plurality of replicas of the system for use in the replica exchange MCMC process; assigning each of the plurality of replicas to a different corresponding temperature in a set of temperatures of the replica exchange MCMC process, the set of temperatures comprising the first fixed temperature, the second fixed temperature, and a plurality of variable temperatures numerically ordered between the first fixed temperature and the second fixed temperature; obtaining a target swap acceptance probability for swaps between replicas corresponding to adjacent ordered variable temperatures of the plurality of variable temperatures during the replica swap MCMC process; performing the replica exchange MCMC process by executing the replicas at the corresponding assigned temperatures of each replica of the system on a hardware platform; determining, during execution of the replica swap MCMC process on the hardware platform, respective average swap acceptance probabilities with respect to one or more respective neighboring pairs in the plurality of variable temperatures, each respective swap acceptance probability being with respect to a swap between replicas assigned to one or more respective neighboring pairs in the plurality of variable temperatures; adjusting one or more of the variable temperatures based on a relationship between the target swap acceptance probability and each of one or more of the corresponding swap acceptance probabilities while maintaining the first fixed temperature and the second fixed temperature during the replica swap MCMC process; During the replica exchange MCMC process, adjusting a number of replicas executed by the hardware platform during the replica exchange MCMC process, the adjustment of the number of replicas being based on a difference between the second fixed temperature and a specific variable temperature that is ordered adjacent to the second fixed temperature; and Based on an output of the replica exchange MCMC process, a particular state of the system is identified as a solution to the optimization problem associated with the system.

15. The system for performing automatic adjustment of replica exchange according to claim 14, wherein: Adjusting the number of the replicas includes removing the specific variable temperature and removing a specific replica corresponding to the specific variable temperature.

16. The system for performing automatic adjustment of replica exchange according to claim 14, wherein: Adjusting the number of the replicas includes inserting a new variable temperature between the second fixed temperature and the specific variable temperature, and allocating the new replica to the new variable temperature.

17. The system for performing automatic adjustment of replica exchange according to claim 14, wherein: Adjusting the number of replicas based on a difference between the second fixed temperature and the particular variable temperature is in response to the difference between the second fixed temperature and the particular variable temperature satisfying a temperature difference threshold.

18. The system for performing automatic adjustment of replica exchange according to claim 14, wherein: Adjusting the number of the replicas based on a difference between the second fixed temperature and the specific variable temperature includes: determining a specific swap acceptance probability for a specific swap between a first replica corresponding to the specific variable temperature and a second replica corresponding to the second fixed temperature based on a difference between the second fixed temperature and the specific variable temperature; and The number of copies is adjusted based on a relationship between the specific swap acceptance probability and the target swap acceptance probability.