Solving mixed integer problems using neural networks
The use of deep neural networks to generate partial assignments and leverage parallel processing enhances the efficiency of solving mixed-integer problems, addressing the inefficiencies of traditional solvers by reducing computation time and improving solution quality.
Patent Information
- Application Number
- JP2023537142
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2020-12-18
- Filing Date
- 2021-12-20
- Publication Date
- 2024-08-13
- Estimated Expiration
- 2041-12-20
AI Technical Summary
Traditional mixed-integer problem (MIP) solvers are computationally intensive, do not adapt to parallel processing hardware, and fail to exploit shared structures between different MIP instances, making them inefficient for large-scale problems.
A system using deep neural networks to generate partial assignments for MIPs, leveraging heuristics learned from training data, and utilizing parallel processing hardware to solve MIPs by independently processing each partial assignment with a MIP solver.
The system significantly reduces the time required to solve large-scale MIPs by leveraging parallel processing and generating high-quality assignments efficiently, even with limited training data, outperforming conventional solvers in terms of speed and solution quality.
Smart Images

Figure 0007532666000008 
Figure 0007532666000009 
Figure 0007532666000010
Abstract
Description
[Technical field]
[0001] This specification relates to solving mixed integer problems using neural networks. [Background technology]
[0002] A neural network is a machine learning model that uses one or more layers of nonlinear units to predict an output for a received input. Some neural networks include one or more hidden layers in addition to an output layer. The output of each hidden layer is used as the input to the next layer in the network, i.e., the next hidden layer or the output layer. Each layer of the network generates an output from the received input according to the current values of a respective set of parameters. Summary of the Invention [Problem to be solved by the invention]
[0003] This specification describes a system, implemented as a computer program on one or more computers at one or more locations, that uses neural networks to solve mixed integer problems (MIPs). [Means for solving the problem]
[0004] Particular embodiments of the subject matter described in this specification can be implemented to realize one or more of the following advantages.
[0005] Traditional mixed integer problem solvers rely on an array of sophisticated heuristics developed with considerable research to solve the large MIP instances encountered in practice. However, these solvers are highly computationally intensive, do not scale to parallel processing hardware, and cannot automatically exploit shared structures between different MIP instances.
[0006] The techniques described herein, on the one hand, use deep neural networks to generate multiple partial assignments for integer variables of a given MIP instance, and the resulting smaller MIPs for unassigned variables are solved with a MIP solver to construct a high-quality joint assignment.
[0007] By using a deep neural network that is trained on a set of training MIP instances, the system can leverage heuristics learned by the deep neural network that generalize to new MIP instances, improving the quality of assignments generated for new MIP instances.
[0008] Furthermore, the described techniques are designed to exploit parallel processing hardware to effectively parallelize the generation of final assignments for large MIPs. In particular, the techniques are designed so that the MIP solver can be applied independently to each of the partial assignments, i.e., each candidate final assignment can be generated independently from each partial assignment. In addition, the sampling required to generate any given partial assignment can also be performed in parallel for each assignment, and if the sampling is non-autoregressive, the sampling required for individual variables within a given partial assignment can be further parallelized. Thus, the system can effectively distribute the workload required to solve the MIP among multiple parallel processing devices to reduce the time required to generate a solution. This is in contrast to conventional MIP solvers, which cannot exploit parallel processing hardware and perform many of their calculations sequentially.
[0009] In addition, the neural network used to generate the partial assignments can be trained on all feasible assignments generated by running a MIP solver for a given MIP instance, without requiring that any of the assignments be the optimal solution for the MIP instance. Thus, training data for the model is easy to collect, and the model can be trained to generate high-quality placements even when relatively few MIP instances are present in the training dataset.
[0010] The details of one or more embodiments of the subject matter herein are set forth in the accompanying drawings and the description below. Other features, aspects, and advantages of the subject matter will become apparent from the description, drawings, and claims. [Brief description of the drawings]
[0011] [Figure 1] FIG. 1 illustrates an example mixed integer problem (MIP) solver system. [Diagram 2] FIG. 1 illustrates an example of generating an embedding for integer variables in a MIP. [Diagram 3] FIG. 13 is a flow diagram of an example process for generating a final assignment for a MIP. [Figure 4A] FIG. 13 is a flow diagram of an example process for generating additional constraints on binary variables for a given partial assignment. [Figure 4B] FIG. 13 is a flow diagram of an example process for generating additional constraints on general integer variables for a given partial assignment. [Diagram 5] FIG. 1 is a flow diagram of an exemplary process for generating optimality gap data for a MIP. [Figure 6] 13A-13C illustrate the performance of the described technique against alternative MIP solving techniques on various MIP solving tasks. [Figure 7] FIG. 13 illustrates the performance of the described technique against other MIP solving techniques in a MIP solving task. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0012] Like reference numbers and designations in the various drawings indicate like elements.
[0013] 1 illustrates an example mixed integer problem (MIP) solver system 100. MIP solver system 100 is one example of a system in which the systems, components, and techniques described below may be implemented, implemented as a computer program on one or more computers at one or more locations.
[0014] The system 100 is a system that receives as input parameter data 102 that specifies a MIP and generates as output a final assignment 112 that is a solution to the MIP. Optionally, the system may also generate as output optimality gap data 114 that defines an optimality gap proof for the final assignment 112.
[0015] In general, MIP defines an optimization problem, eg, a minimization problem, for assigning a respective value to each variable in a set of variables subject to a set of constraints on the values of the variables.
[0016] In particular, a MIP with n variables and m constraints is c T Minimize x Subject to Ax≦b l≦x≦u
[0017]
number
[0018] where:
[0019]
number
[0020] is a vector of variables,
[0021]
number
[0022] is the constraint matrix specifying the coefficients for each of the m constraints,
[0023]
number
[0024] specifies the constraint bounds for the m constraints,
[0025]
number
[0026] specifies the coefficients for the objective, i.e., the objective function coefficients; l is an n-component vector specifying a respective lower bound for each of the variables; u is an n-component vector specifying a respective upper bound for each of the variables;
[0027]
number
[0028] is a set of integers and I is an index set of integer variables. An assignment for a MIP assigns a respective value to each of the set of variables.
[0029] An assignment that assigns a respective value to each of a set of variables such that a set of constraints on the values of the variables are satisfied is also called a "feasible" assignment.
[0030] Solving a MIP refers to generating an assignment that assigns a respective value to each of a set of variables such that the assignment is feasible and the objective is minimized. In other words, solving a MIP refers to identifying a candidate assignment that is feasible and has a minimum value of the objective of any candidate feasible assignments considered during the search for the optimal assignment. That is, "solving a MIP" does not necessarily mean obtaining an optimal assignment, i.e., the best possible feasible assignment where the objective has its lowest possible value (global minimum).
[0031] In addition to the set of constraints, as can be seen from the above equation, at least some of the variables in the set (i.e., a proper subset of the components of x or all of the components of x) are constrained to be integer variables, i.e., variables that are constrained to take on only integer values, as opposed to continuous variables that can take on any value within some continuous range.
[0032] In some cases, all of the integer variables are binary variables, ie, variables that can take on only one of two possible integer values, eg, zero or one.
[0033] In some cases, at least some of the integer variables are constrained only to be general integers, i.e., variables that can take on more than two values, and in particular, any integer value between a lower limit value of the variable and an upper limit value of the variable.
[0034] Thus, the parameter data 102 received as input by the system 100 includes parameters that define the objectives to be minimized and the constraints that need to be satisfied. More specifically, the parameter data 102 specifies the number of variables, the number of constraints, coefficients for the objectives, coefficient and constraint bound values for the constraints, respective upper and lower bounds for each of the variables, and an integer set of variables that are constrained to be integers.
[0035] The MIP solved can represent any of a variety of real-world technical optimization problems, such as bin packing, capacity planning, resource allocation, factory operations, computational workloads, data center optimization, and even scheduling, computer network traffic routing, automotive traffic routing, flight scheduling, and many others. In particular, solving the MIP can correspond to executing a control method that allocates one or more real-world resources (such as computing resources or hardware resources (items of equipment)) to execute one or more corresponding components of a real-world task, for example, during a particular time period. Following the solution of the MIP, there may be a step of sending control instructions based on the solution to the real-world resources (e.g., in the case of real-world resources that are computing resources, one or more computer systems and / or memory units implementing those resources), thereby controlling the resources to execute the assigned components of the task.
[0036] That is, the present disclosure also discloses a control system including a mixed integer problem (MIP) solver system 100 (implemented by one or more computer systems) and a control unit for generating control instructions based on a solution provided by the solver system 100 and sending them to real-world resources, e.g., sending instructions to one or more datacenters to have the datacenters allocate capacity or resources to particular services, e.g., software services, database shards, etc. in the datacenter according to the solution of the MIP. The present disclosure further discloses a system including the control system and the real-world resources.
[0037] As one example, variables in a MIP may represent components of an industrial facility, and values for the components may indicate settings for the components, such as whether the components are active at any given time. As a particular example, variables may represent generators, such as power plants or other components that generate power in a power grid, and the MIP attempts to minimize some efficiency metric while meeting the demand for energy in the energy grid.
[0038] As another example, a MIP can represent a logistics problem, e.g., allocating resources to vehicles to ensure that the resources are routed to meet certain requirements. As a specific example, a MIP can represent the allocation of cargo among multiple flights that minimizes delivery time while satisfying certain constraints.
[0039] As another example, MIP can represent validation of the predictions of a neural network, i.e., measure how robust the predictions are to perturbations in the input. For example, a neural network may be configured to receive an input that is an image (e.g., captured by a camera) or an audio signal (e.g., captured by a microphone), and / or features obtained from the image or audio signal, and output a label indicating that the content of the image / audio signal is at least one of a set of categories, i.e., the image / audio signal is classified. In this case, the MIP can correspond to an input to the neural network, e.g., an image or an audio signal, and the MIP can attempt to minimize the amount of noise that needs to be added to the input, constrained by the requirement that the neural network must assign a false label to the resulting noisy input, i.e., a label that is different from the label assigned to the neural network for the original input.
[0040] As another example, a MIP may represent the allocation of data across multiple storage locations to minimize some metric, e.g., overall storage capacity consumed, while satisfying certain constraints on the latency required for any of a set of computer resources or services to access any of the data. As a particular example, a MIP may represent the sharding of a search engine index database (or other database that is queried from many different locations) across multiple storage cells in different geographic locations, e.g., data centers. As another particular example, a MIP may represent how shards of a database that are assigned to a given data center are stored across machines in the data center, available storage locations, or both.
[0041] As another example, a MIP can represent the allocation of computational resources across multiple computing components of a computing system to maximize efficiency, e.g., minimize the total amount of resources consumed, subject to constraints on the performance of the computing system.
[0042] As a particular example, a MIP may represent the allocation of respective capacity to each of multiple data centers in different geographic locations.
[0043] As another particular example, variables in a MIP may represent software service-datacenter pairs, and values assigned to a given variable may represent the amount of computational resources allocated to a given service in a given datacenter. Constraints may represent constraints on the total resources allocated to each service, the latency for responding to requests for one or more of the services in one or more geographic regions, the level of redundancy required for a given service in a given geographic region, etc.
[0044] In general, to generate the final assignment 112, the system 100 generates, from the parameters of the MIP, an input representation 120 that represents the MIP in a format that can be processed by a neural network.
[0045] The system 100 then processes the input representation 120 using the encoder neural network 130 to generate, for each of the integer variables, i.e., for each of the variables in the subset of variables that are constrained to be integers, a respective embedding 140. As used herein, an embedding is an ordered collection of numerical values, e.g., a vector of floating-point or other numerical values, having a fixed dimension.
[0046] Generating the input representations 120 and processing the input representations 120 to generate the respective embeddings 140 is described in more detail below with reference to FIGS.
[0047] The system 100 uses the respective embeddings 140 and a MIP solver 150 to generate the final assignments.
[0048] MIP solver 150 may be any suitable MIP solver that solves an input MIP starting from a set of input constraints, such as a heuristic-based MIP solver. Examples of heuristic-based MIP solvers that may be used by system 100 include SCIP (Gamrath et al., 2020), CPLEX (IBM ILOG CPLEX, 2019), Gurobi (Gurobi Optimization, 2020), and Xpress (FICO Xpress, 2020).
[0049] More specifically, a partial assignment engine 160 in system 100 uses each embedding 140 and one or more neural networks to generate multiple partial assignments 162 that impose additional constraints on the values of some or all of the integer variables. For example, the partial assignments 162 generated by engine 160 may specify exact values for one or more of the variables, higher lower bounds, lower upper bounds, or both for one or more of the variables, or some combination.
[0050] Each partial assignment 162 thus defines a smaller MIP having the constraints specified in parameter data 120 and one or more additional constraints defined by partial assignment 162 generated by engine 160. Here, the term "smaller" is used to mean "more tightly constrained", e.g., the space of possibilities from which the set of variables must be selected is a proper subset of the space of possibilities defined by the constraints defined by parameter data 102.
[0051] Generating the partial allocation 162 is described in more detail with reference to FIGS.
[0052] System 100 then uses MIP solver 150 to solve each smaller MIP, i.e., to solve each smaller MIP specified by each partial assignment 162, to generate a respective candidate final assignment 170 for each partial assignment 162 that assigns a respective value to each of the multiple variables, starting from the additional constraints in partial assignment 162.
[0053] The system 100 then selects as the final assignment 112 for the MIP a candidate final assignment 170 that (i) is a feasible solution for the MIP and (ii) has a minimum of any of the objectives among the candidate final assignments 170 that are feasible solutions to the MIP.
[0054] As described below, generation of the corresponding candidate final assignments 170 (and the sampling required to generate partial assignments 162 from each embedding) can be performed in parallel for each smaller MIP, significantly reducing the time required to generate final assignments 112 for the MIPs.
[0055] In some implementations, the system 100 may also generate output optimality gap data 114 that defines an optimality gap proof for the final allocation 112 .
[0056] An optimality gap proof specifies a proven bound on the objective value gap between the final assignment 112 and the optimal assignment, i.e., the optimal possible feasible assignment, and can be used to verify the quality of the final assignment 112; i.e., a better final assignment 112 will have a smaller bound on the objective value gap, while a worse final assignment 112 will have a larger bound on the objective value gap.
[0057] Generating optimality gap data 114 is described in more detail below with reference to FIG.
[0058] Prior to using the encoder neural network 130 and the neural network used by engine 160, system 100 or another training system trains these neural networks on training data that includes, for each of a number of training MIPs, (i) parameters that specify the MIP, and (ii) one or more feasible assignments for the MIP. For example, the feasible assignments may have been generated by MIP solver 150 or by another heuristic-based solver. Advantageously, the feasible assignments do not need to be optimal (or close to optimal). That is, system 100 or the training system can train the neural network to generate high-quality assignments even when the training data includes many non-optimal but feasible assignments, i.e., generating feasible assignments is much easier than searching for optimal assignments, allowing a much wider range of assignments to be used and training data to be much more easily collected.
[0059] FIG. 2 shows an example of generating an embedding 140 for an integer variable of a MIP.
[0060] As shown in FIG. 2, a system, such as the MIP solver system 100 of FIG. 1, receives specification data that specifies parameters of a MIP and generates an input representation of the MIP from the specification data.
[0061] In particular, the input representation is a representation of a bipartite graph 210 that specifies the MIP.
[0062] The bipartite graph 210 includes a first set of variable nodes 212, each of which represents one of a number of variables for the MIP, and a second set of constraint nodes 214, each of which represents one of the constraints for the MIP.
[0063] The bipartite graph also includes, for each constraint node, a respective edge 216 from the constraint node 214 to each variable node 212 that represents a variable that appears in the constraint represented by the constraint node 214 .
[0064] The input representation, i.e., the representation of the bipartite graph 210, includes one or more respective features for each of a plurality of nodes, i.e., for each of the variable nodes 212 and the constraint nodes 214, and an adjacency matrix representing the connectivity between the variable nodes 212 and the constraint nodes 214 in the bipartite graph.
[0065] The respective features for each of the variable nodes 212 include, for example, a representation of an embedding, one-hot, or scalar representation of the objective function coefficients of the variables represented by the variable node 212, and optionally a representation of upper and lower bounds on the values of the variables represented by the variable node. The features may optionally additionally include features encoding what type of variables the node represents, e.g., binary variables, general integer variables. In addition, the features may also include features resulting from solving an LP relaxation of the MIP. An LP relaxation of the MIP is a problem that arises by removing the constraint from the original MIP that some of the variables are integers. The LP relaxation may be solved simply and efficiently by linear programming. The features resulting from solving the LP relaxation may include features specifying values assigned to variables represented by the node by the solution to the LP relaxation, features specifying fractionalities of values assigned to variables appearing in the node by the solution to the LP relaxation, etc. Optionally, some or all of these features may be normalized across the variable nodes.
[0066] The respective features for each of the constraint nodes 214 include a representation of the constraint boundary values for the constraints represented by the constraint node 214. As another example, the features may optionally additionally include features representing the cosine similarity between the constraint coefficient vector and the objective coefficient vector. In addition, the features may also include features obtained from solving the LP relaxation of the MIP, such as a stringency index of the constraints in the solution, a dual solution value for the constraints, etc. Optionally, some or all of these features may be normalized across the variable nodes.
[0067] In particular, the adjacency matrix is an N×M matrix, where N is the total number of nodes in the bipartite graph (counting both the n variable nodes 212 and the m constraint nodes 214).
[0068] In some implementations, an entry (i,j) in an adjacency matrix is equal to 1 if (a) a node with index i in the ordering of the nodes is connected by an edge to a node with index j in the ordering, and (b) is equal to 0 if i is not equal to j and a node with index i is not connected by an edge to a node with index j. An entry (i,i) in an adjacency matrix (i.e., a diagonal entry) may be equal to 1.
[0069] In some other implementations, the system incorporates additional information about the constraints in the adjacency matrix by having the entries in the adjacency matrix represent normalized coefficients in the constraints for the MIP. Specifically, in these implementations, for the i-th variable and the j-th constraint, their two corresponding entries in the adjacency matrix, i.e., entry (i,j) and entry (j,i), are both a ji where a ji is the coefficient at row j and column i of the MIP constraint matrix after the coefficients have been normalized. This results in edges that are weighted by the entries of the MIP constraint matrix, rather than binary 1s and 0s.
[0070] The system then processes the input representation, i.e., the representation of the bipartite graph 210, using the encoder neural network 220 to generate a respective embedding for each of the variables in the integer subset, i.e., for each of the variables that are constrained to be integer-valued.
[0071] In the example of FIG. 2, the encoder neural network 220 is a graph neural network configured to process features for each of a number of nodes through a sequence of one or more graph layers to generate an embedding for variables in an integer subset.
[0072] Each of the graph layers is configured to receive as input a respective input embedding for each of the nodes in the graph, and to generate as output a respective output embedding for each of the nodes in the graph.
[0073] For the first graph layer in the sequence, the input embedding for each of the nodes includes the features for the node from the representation of graph 210. For each subsequent graph layer in the sequence, the input embedding for each of the nodes is the output embedding for the node generated by the previous layer in the sequence.
[0074] Then, for each variable in the integer subset, the system uses the output embedding produced by the last graph layer in the sequence for the node that represents the variable as the output embedding for the variable.
[0075] More specifically, each graph layer is configured to apply an update function to each of the input embeddings to generate an updated embedding, and then apply an adjacency matrix to the updated embeddings to generate an initial output embedding, i.e., by multiplying the adjacency matrix by a matrix that has the updated embeddings as rows of the matrix.
[0076] In general, the update function can be any learned function that can be applied to each embedding independently, for example, the update function can be a multi-layer perceptron (MLP) or other neural network.
[0077] In some implementations, the initial output embedding is an output embedding for the graph layer.
[0078] In some other implementations, each graph layer may also be configured to combine an initial output embedding generated by the graph layer with an input embedding for the graph layer to generate an output embedding for the graph layer. For example, the graph layer may concatenate, for each node, the initial output embedding for the node with the input embedding for the node to generate an output embedding for the node. As another example, the graph layer may concatenate, for each node, the initial output embedding for the node with the input embedding for the node, and then apply a normalization, e.g., LayerNorm, to the concatenated embedding to generate an output embedding for the layer.
[0079] By using a bipartite graph representation of MIPs as the input representation and making the encoder neural network a graph neural network, the system ensures that the network output, i.e., the embedding of integer variables, is invariant to permutations of variables and constraints, and that the network can be applied to MIPs of different sizes using the same set of parameters. Both of these are important because there may not be any regular ordering on variables and constraints, and different instances in the same application may have different numbers of variables and constraints. That is, using the above architecture ensures that the system can be generalized to MIPs with different sizes and different orderings of variables and constraints after training.
[0080] The system then uses the output embeddings 140 for the integer variables generated by the graph neural network to generate the final assignments 112 for the MIP.
[0081] This is explained in more detail below with reference to FIG.
[0082] 3 is a flow diagram of an exemplary process 300 for generating a final assignment for a MIP. For convenience, process 300 is described as being performed by one or more computer systems located at one or more locations. For example, a suitably programmed MIP solver system, such as MIP solver system 100 of FIG. 1, may perform process 300.
[0083] The system receives specification data specifying parameters of the MIP (step 302), and generates an input representation from the parameters of the MIP (step 304), for example as described above with reference to FIG.
[0084] The system processes the input representation using an encoder neural network to generate a respective embedding for each of the variables in the first subset of variables, i.e., for each integer variable that is constrained to be integer-valued (step 306). For example, the system may process the input representation using a graph neural network, as described above, to generate respective embeddings for the integer variables.
[0085] The system generates a number of partial allocations (step 308).
[0086] In particular, the system can generate a fixed number of partial allocations.
[0087] For each partial assignment, the system may generate the partial assignment by first selecting a second proper subset of each of the first subsets of variables, i.e., a second proper subset of each of the integer variables, and then, for each of the variables in each second subset, generate a respective additional constraint on the value of the variable using at least a respective embedding for the variable. The second subsets are called "proper" subsets because they include fewer than all of the integer variables.
[0088] For a given partial allocation, the system may select an appropriate subset of each of the integer variables in any of a variety of ways.
[0089] For example, the system may randomly select a fixed-size suitable subset of integer variables.
[0090] As another example, the system can use one or more allocation neural network heads to select the appropriate subset for partial allocation. A neural network "head" is a collection of one or more neural network layers. For example, each allocation neural network head can be an MLP.
[0091] The use of an assignment neural network head to select an appropriate subset of integer variables is described in more detail below with reference to Figures 4A and 4B.
[0092] Once the system has selected a suitable subset or a given partial allocation, for each variable in the suitable subset, the system uses a corresponding predictive neural network head to generate respective additional constraints on the values of the variable from the embedding for at least the variable.
[0093] In general, if a given integer variable in the proper subset is a binary variable that can take only two possible integer values, the system generates an additional constraint that specifies the exact value of the integer variable.
[0094] Generating additional constraints on binary variables is described below with reference to FIG. 4A.
[0095] In general, if a given integer variable in the appropriate subset is a general integer variable that can take on more than two possible integer values, i.e., that can take any value between a specified lower bound and a specified upper bound, the system may generate additional constraints that specify an exact value for the integer variable, or may generate additional constraints that specify a reduced range for the integer variable, i.e., additional constraints that increase the lower bound of the integer variable, decrease the upper bound, or both.
[0096] Generating additional constraints for general integer variables is described below with reference to FIG. 4B.
[0097] For each of the multiple partial assignments, the system generates a corresponding candidate final assignment (step 310).
[0098] Each candidate final allocation assigns a respective value to each of the plurality of variables starting from the additional constraints in the corresponding partial allocation, i.e., the final value assigned to each variable by the candidate final allocation satisfies not only the initial constraints specified in the parameter data but also the additional constraints specified by the corresponding partial allocation for the integer variables in the corresponding appropriate subset.
[0099] In particular, the system can generate each corresponding candidate final allocation using a heuristic-based MIP solver constrained on the parameters of the MIP and additional constraints on the partial allocations.
[0100] In some implementations, the heuristic-based MIP solver generates each candidate final assignment independently of each other candidate final assignment, so that the system generates the corresponding candidate final assignments in parallel, i.e., independently of each other, at the same time. For example, the system can assign each partial assignment to a corresponding different hardware resource, e.g., to a different computer, to a different processor, to a different ASIC, e.g., to a different graphics processing unit (GPU) or tensor processing unit (TPU), or to a different core of one or more multi-core processors, and use the corresponding hardware resource to generate the corresponding candidate final assignment using a separate instance of the heuristic-based MIP solver. Furthermore, as is clear from the description of Figures 4A and 4B, generating the partial assignments can also be performed in parallel once the embedding of the integer variables is generated. Thus, in some implementations, the hardware resources also generate the partial allocations in parallel, e.g., each by a corresponding different hardware resource, and optionally the same hardware resource is assigned both the task of generating a given partial allocation and the task of generating corresponding candidate final allocations for the given partial allocation.
[0101] The system determines the values of each of the objectives for each candidate final assignment that is a feasible solution to the MIP (step 312). That is, for each candidate final assignment, the system determines whether the assignment is a feasible solution to the MIP by checking whether the values in the candidate final assignment satisfy each of the constraints, and if so, calculates the values of the constraints for the candidate final assignment by weighting each value by the corresponding objective coefficient and calculating a weighted sum of the values. If the assignment is not a feasible solution, the system can discard the candidate final assignment.
[0102] The system selects as the final assignment for the MIP a candidate final assignment that (i) is a feasible solution for the MIP and (ii) has a minimum of any objective among the candidate final assignments that are feasible solutions to the MIP (step 314).
[0103] 4A is a flow diagram of an exemplary process 400 for generating additional constraints on binary variables for a given partial allocation. For convenience, process 400 is described as being performed by one or more computer systems located at one or more locations. For example, a suitably programmed MIP solver system, such as MIP solver system 100 of FIG. 1, may perform process 400.
[0104] For each partial assignment, the system may first perform process 400 for each binary variable in the set of integer variables to determine whether the binary variable is included in the appropriate subset for the partial assignment, and then, if so, to determine additional constraints for the binary variable.
[0105] Furthermore, the system may execute process 400 in parallel for each of the partial allocations.
[0106] For each binary variable in the set of integer variables, the system generates an assignment probability for the binary variable by processing at least each embedding for the binary variable using a corresponding assignment neural network head (step 402).
[0107] As a particular example, the assignment neural network head may be an MLP that processes embeddings for given binary variables to generate as output values that define assignment probabilities. For example, the MLP may output the assignment probabilities directly. As another example, the values may be expressed as a probability of success of 1 / (1+exp(-y d We can define the success probability of the Bernoulli distribution to be equal to yd is the value output by the MLP.
[0108] In some cases, the system uses only a single allocation neural network head, ie, each partial allocation corresponds to the same allocation neural network head.
[0109] In some other examples, each partial assignment corresponds to a respective assignment neural network head in a set of multiple assignment neural network heads. Each of the multiple assignment neural network heads is trained to generate assignment probabilities that result in a different expected coverage of the first subset, i.e., the subset of integer variables. As a specific example, each partial assignment can correspond to a different assignment neural network head that is trained to generate assignment probabilities that result in a different expected coverage than each other assignment neural network head. Here, the "coverage" of a subset of integer values is a value indicating the proportion of the subset of integer variables that are assigned. For example, it can be defined as the ratio of the number of integer variables that are assigned to the number of integer variables that are not assigned.
[0110] Then, for each binary variable, the system determines whether to include the binary variable in the respective appropriate subset according to the assigned probability for the binary variable (step 404), i.e., the system determines to include binary variables with a probability equal to the assigned probability and determines not to include binary variables with a probability equal to 1 minus the assigned probability.
[0111] For each binary variable selected for inclusion in each appropriate subset, the system generates a probability for the binary variable by processing at least each embedding for the binary variable using a corresponding predictive neural network head (step 406).
[0112] In some cases, the system uses only a single predictive neural network head, ie, each partial allocation corresponds to the same predictive neural network head.
[0113] In some other cases, each partial assignment corresponds to a respective predictive neural network head in a set of multiple predictive neural network heads. In particular, in some implementations in which the system uses multiple assigning neural network heads, each predictive neural network head may correspond to one of the assigning neural network heads, i.e., such that each partial assignment corresponds to a respective assignment-prediction head pair. In these cases, each prediction head has been jointly trained with a corresponding assignment head as part of the training of the assignment head, as described in more detail below.
[0114] In still other cases, where there are multiple allocation heads, there is still only a single prediction head.
[0115] As a particular example, the corresponding predictive neural network head may be an MLP that processes embeddings for given binary variables to generate as output a value that defines a probability. For example, the MLP may output the probability directly. As another example, the value may be a probability of success of 1 / (1+exp(-t d We can define the success probability of the Bernoulli distribution to be equal to t d is the value output by the MLP.
[0116] Then, for each binary variable selected for inclusion in each appropriate subset, the system samples a value for the binary variable according to the probability for the binary variable (step 408) and generates an additional constraint that constrains the value of the binary variable to be equal to the sampled value (step 410). For example, the system may sample the higher of the two values the binary variable can take with a probability equal to the probability generated by the prediction head and sample the lower value with a probability equal to one minus the probability generated by the prediction head, or vice versa.
[0117] 4B is a flow diagram of an exemplary process 450 for generating additional constraints on general integer variables for a given partial allocation. For convenience, the process 450 is described as being performed by one or more computer systems located at one or more locations. For example, a suitably programmed MIP solver system, such as the MIP solver system 100 of FIG. 1, may perform the process 450.
[0118] For each partial assignment, the system may first perform process 450 for each general integer variable in the set of integer variables to determine whether the variable is included in the appropriate subset for the partial assignment, and then, if so, to determine additional constraints on the general integer variable.
[0119] Furthermore, the system may execute process 450 in parallel for each of the partial allocations.
[0120] For general integer variables, the system operates on a sequence of bits that represents the cardinality of the general integer variable, i.e., a binary representation of the difference between an upper bound and a lower bound on the integer variable.
[0121] For each general integer variable in the set of integer variables, the system proceeds starting from the most significant bit in the sequence.
[0122] In general, for each general integer variable, the system generates respective assignment probabilities for each of one or more bits in the sequence of bits by processing at least a respective embedding for the general integer variable using a corresponding assignment neural network head, i.e., an assignment neural network head corresponding to a given partial assignment.
[0123] The system then determines whether to include a binary variable in each appropriate subset according to the assigned probability for the most significant bit in the sequence.
[0124] If the system determines that the binary variable is in the appropriate subset, the system determines how many bits to include in the one or more bits whose values are sampled based on their respective assigned probabilities. The system then uses the sampled values for the one or more bits to generate additional constraints on the values of the general integer variable.
[0125] This process is described in more detail below with reference to steps 452-460.
[0126] In particular, the system generates an assignment probability for the current bit in the sequence by processing at least each embedding for a general integer variable using a corresponding assignment neural network head (step 452). In some cases, the system performs the processing independently for each bit in the sequence. In these cases, the input to the assignment neural network head may include the respective embedding and an identifier of the bit's index in the sequence. In other cases, the system performs the processing autoregressively. In these cases, the input to the assignment neural network head may include the respective embedding, an identifier, and data obtained from processing the previous bit.
[0127] The system then determines whether to further constrain the values of the general integer variables based on the assigned probabilities (step 454).
[0128] In response to determining not to further constrain the value of the general integer variable, the system returns the current upper and lower bounds as constraints on the general integer variable, step 456. Thus, if the system determines not to further constrain the value for a given general integer variable after processing only the most significant bit in the sequence, the system effectively determines not to include the variable in the respective second subset according to the assigned probability for the most significant bit in the sequence.
[0129] In response to the decision to further constrain the value of the general integer variable, the system generates a prediction for the current bit by processing at least the respective embeddings for the general integer variable using the corresponding predictive neural network head and samples the value for the current bit according to the prediction (step 458). In some cases, the system performs the processing independently for each bit in the sequence. In these cases, the input to the predictive neural network head may include the respective embeddings and an identifier of the bit's index in the sequence. In other cases, the system performs the processing autoregressively. In these cases, the input to the predictive neural network head may include the respective embeddings, an identifier, and data obtained from processing the previous bit.
[0130] The system then updates the constraints on the values of the general integer variables based on the sampled values (step 460). That is, the system determines whether to increase the current lower bound or decrease the current upper bound based on which values are sampled for the bits.
[0131] For example, if the value for a bit is 1, the system may increase the current lower bound by adding a value to the current lower bound equal to a ceiling of (ub-lb) / 2, where ub is the current upper bound and lb is the current lower bound.
[0132] As another example, if the value for a bit is 0, the system may decrease the current upper bound by subtracting a value equal to the floor of (ub-lb) / 2 from the current upper bound.
[0133] In some implementations, the system continues to execute process 450 until values have been sampled for all of the bits in the sequence or until the system determines not to further constrain the value of the variable in step 456. In these implementations, if the system has sampled respective values for all of the bits in the sequence, the sampled values define a single value for the general integer variable, i.e., the additional constraints specify an exact value for the general integer value. If the bit or bits from which the value is sampled include only a proper subset of the sequence of bits, including the most significant bit or bits in the sequence, the sampled values define a range of values for the general integer variable, and the additional constraints constrain the general integer to have values within the range of values defined by the sampled values for the most significant bits.
[0134] In some other implementations, the system maintains a threshold that specifies the maximum number of bits from which a value may be sampled. If the sequence contains more than the threshold number of bits, the system will terminate process 450 even if additional bits remain after values for the threshold number of bits have been sampled and the system has not yet determined not to further constrain the value of the variable. Thus, in these implementations, general integer variables whose cardinality results in a sequence of bits longer than the threshold will always have their values constrained to be within a range of integers, rather than to an exact value.
[0135] As explained above, before using the encoder neural network, the assignment neural network head, and the prediction neural network head to generate assignments for new MIPs, the system trains the neural networks on training data.
[0136] The training data includes, for each of a plurality of training MIPs, (i) parameters that specify the MIP, and (ii) one or more feasible assignments for the MIP. For example, the feasible assignments may have been generated by a MIP solver or another heuristic-based solver. Advantageously, the feasible assignments do not need to be optimal (or close to optimal). That is, the system or training system can train the neural network to generate high-quality assignments even when the training data includes many non-optimal but feasible assignments, i.e., generating feasible assignments is much easier than searching for optimal assignments, allowing a much wider range of assignments to be used and training data to be much more easily collected. As a particular example, the feasible assignments for a given training MIP can include all of the feasible assignments generated by a heuristic-based solver during the search for a final assignment for the training MIP, i.e., generated using only the solver to solve the MIP from scratch, without any of the above techniques. Thus, the feasible allocations for a given MIP will include many feasible but non-optimal allocations in addition to the optimal allocation found by the solver.
[0137] In particular, the system trains a neural network on the training data to optimize an objective function that (i) encourages prediction heads to generate probabilities that result in higher quality assignments, while (ii) encourages each assignment head to generate assignment probabilities that result in an appropriate subset with a corresponding coverage level (i.e., a desired percentage of variables, or specifically, integer variables, are assigned).
[0138] As a particular example, the system may train a neural network using a suitable supervised learning technique to minimize the following loss function L:
[0139]
number
[0140] , where N is the number of training MIPs in the batch of training data, i is an integer index, and M i is the ith MIP in the batch, and N i is the total number of feasible solutions for the i-th MIP, and x i,j is the jth feasible solution for the ith MIP, and x i,j d is the value for the d-th integer variable in the set of integer variables Ι in the j-th feasible solution for the i-th MIP, θ is a parameter of the neural network, and p θ (x i,j d |M i ) is M i The neural network computes the input representation of x by processing i,j d is the probability of being assigned to y i,j d is the assignment probability assigned to the d integer variable in the set of integer variables I in the j feasible solution for the i MIP by an assignment head trained to have predicted coverage C, λ is a hyperparameter, and Ψ is a penalty term, e.g., a quadratic penalty term.
[0141] When there are multiple assignments, prediction heads, or both, the system can simultaneously train multiple sets of models with multiple different values of C. For example, the system can train each assignment-prediction head pair with a corresponding value of C, and then backpropagate gradients to the encoder shared between all pairs.
[0142] While the above description describes the assignment probabilities and value probabilities, i.e., the probabilities generated by the prediction head, as being generated independently for each variable in the appropriate subset, in some cases the system autoregressively generates value probabilities according to some ordering of the variables in the appropriate subset, such that the value probability for a given variable depends on the value probabilities for the variables preceding it in the ordering. For example, the system may randomly order the variables according to an order identified in the parameter data for the MIP, according to the objective coefficients for each of the variables, or according to the respective proportions of the variables as determined by a heuristic-based solver.
[0143] The system can autoregressively generate the value probabilities in any of a variety of ways. For example, the prediction head can be an autoregressive neural network, such as an LSTM or a transformer, that sequentially processes the embeddings to generate the value probabilities. As another example, the system can provide the autoregressive dependencies only by incrementally solving an underlying LP (linear programming) problem as the variable values are sampled and assigned. The underlying LP problem is the problem that arises from removing the constraint that some of the variables are integers from the original optimization problem. The optimization with this constraint removed is called an "LP-relaxed." That is, in these examples, the prediction head is still an MLP, but the input to the MLP includes data that specifies, for each given variable, an assignment for the MLP generated by a heuristic-based solver, and some or all of the values of the variables prior to the given variable in the sequence are constrained based on additional constraints generated for those variables. For example, the system may run an MLP solver for each of the K variables in the order, and the input for each given variable may include an embedding for the given variable and an assignment computed as a result of the most recent run of the MLP solver.
[0144] 5 is a flow diagram of an exemplary process 500 for generating optimality gap data for a MIP. For convenience, process 500 will be described as being performed by one or more computer systems located at one or more locations. For example, a suitably programmed MIP solver system, such as MIP solver system 100 of FIG. 1, may perform process 500.
[0145] In particular, the optimality gap data defines an optimality gap proof for the final allocation generated using process 300 .
[0146] To generate an optimality gap proof, the system generates optimality gap data using a branch-and-bound technique that recursively generates a search tree with partial integer assignments at each node of the search tree over multiple steps.
[0147] At each step of the branch-and-bound technique, the system selects a leaf node from which the current search tree branches, step 502. The system may select this node using an appropriate MIP diving technique.
[0148] The system determines whether to expand the selected leaf node (step 504). For example, the system can solve an LP relaxation that constrains the ranges of the fixed variables at that node to their assigned values. This solution gives a valid lower bound on the true objective value of any further child nodes from the selected leaf node. If this bound is larger than the known feasible assignment, the system decides not to expand the leaf node and prune this part of the search tree, since an optimal solution to the original problem cannot exist in the subtree from that node. If the bound is not larger, the system decides to expand the selected leaf node.
[0149] In response to determining to expand the selected leaf node, the system selects a variable from the set of unfixed variables (ie, variables that have not been assigned a value) in the selected leaf node.
[0150] To select the variables, the system generates (step 506) a new input representation of the sub-MIP defined by the selected leaf node, i.e., as described above with reference to Figures 1 and 2. The sub-MIP is the smaller MIP that results from applying the corresponding partial allocation to the original MIP defined by the parameter data.
[0151] The system then processes the new input representation using a second encoder neural network to generate a respective embedding for each of the unfixed variables (set 508). The second encoder neural network generally has the same architecture as the encoder neural network described above used to determine the final assignments. In some implementations, the two neural networks are the same neural network, i.e., have the same parameter values determined by training the encoder neural network as described above. In some other implementations, the second encoder neural network has different parameter values, as described in more detail below.
[0152] The system then processes each embedding using a branching neural network to generate a respective branch score for each unfixed variable, and uses the respective branch scores to select variables (step 510).
[0153] The system then extends the search tree by adding two child nodes to the search tree, each with a different "domain" (range) for the selected variable (step 512). The different domains are such that for one of the nodes, the selected variable is constrained to be greater than or equal to the highest bound of the LP relaxation value for the selected variable in the parent node, while for the other node, the selected variable is constrained to be less than or equal to the lowest bound of its LP relaxation value for the selected variable in the parent node.
[0154] In response to a determination (at step 504 ) not to expand the search tree, the system ends the current step of the branch and bound technique, ie, returns to step 502 .
[0155] The system can use imitation learning to train the branching neural network and, optionally, the second encoder neural network. As a particular example, the system can train the two neural networks to generate branching decisions that mimic those generated by an expert policy. For example, the expert policy can be a computationally intensive expert that is node-efficient but would be too computationally intensive to deploy at inference time.
[0156] FIG. 6 shows the performance of the described technique compared to alternative MIP solving techniques on various MIP solving tasks.
[0157] In particular, Figure 6 shows six plots illustrating the performance of the described technique compared to a conventional state-of-the-art heuristic-based technique that uses a SCIP heuristic-based solver with hyper-parameters tuned for a specific task - the "Tuned SCIP" technique. Each plot shows two variants of the described technique: "Sequential Neural Diving", where partial assignment generation and candidate final solution generation are performed sequentially for the partial assignments, and "Parallel Neural Diving", where partial assignment generation and candidate final solution generation are performed in parallel for each partial assignment, with each partial assignment assigned to a different computer.
[0158] Each plot shows the average primal gap between the primal boundary and the best known objective value achieved by the various algorithms as a function of execution time on the corresponding dataset, i.e., a smaller average primal gap indicates a better performing solution that more closely achieves the best known objective value.
[0159] Plot 610 shows performance on the CORLAT task, which involves constructing wildlife corridors for grizzly bears by solving a MIP.
[0160] Plot 620 shows performance on a neural network validation task, which requires validating whether a neural network is robust to input perturbations by solving a MIP.
[0161] Plot 630 shows performance on a production packing task, which requires allocating storage locations to shards of a database in a data center by solving a MIP.
[0162] Plot 640 shows performance in a production planning task that requires allocating data center capacity to different software services by solving a MIP.
[0163] Plot 650 shows performance in a power grid optimization task that optimizes the selection of generators to use at different time intervals of a day to meet power demand by solving a MIP.
[0164] Plot 660 shows performance on the MIPLIB task. MIPLIB is a heterogeneous dataset that contains "hard" instances of MIPs across many different application domains.
[0165] As can be seen from plots 610-660, both sequential neural diving and parallel neural diving provide significant improvements over adjusted SCIP across all time intervals, and the parallelization employed by parallel neural diving provides significant time savings over the sequential neural diving approach for many tasks, since the described technique is designed to take advantage of parallel processing hardware, and the parallel neural diving approach provides significant improvements over both state-of-the-art conventional techniques and the sequential version of the described technique.
[0166] FIG. 7 also shows the performance of the described technique compared to other MIP solving techniques on the same set of MIP solving tasks.
[0167] In particular, FIG. 7 shows six plots illustrating the performance of the “Adjusted SCIP” technique, the “Sequential Neural Diving” technique, and the “Parallel Neural Diving” technique.
[0168] Each plot shows the percentage of instances with primal gaps below the target gap achieved by various algorithms at multiple time points (compared to known solutions), such that a larger percentage of instances indicates a better performing solution that more closely achieves the best known target value at a given time point.
[0169] Plot 710 shows performance on the CORLAT task, plot 720 shows performance on the neural network validation task, plot 730 shows performance on the production packing task, plot 740 shows performance on the production planning task, plot 750 shows performance on the power grid optimization task, and plot 760 shows performance on the MIPLIB task.
[0170] As can be seen from plots 710-760, in some tasks, tuned SCIP eventually catches up to or exceeds the percentage achieved by both sequential and parallel neural diving, but in all tasks, parallel neural diving achieves a high percentage of high quality solutions much more quickly than tuned SCIP. That is, because the described technique is designed to take advantage of parallel processing hardware, the parallel neural diving approach can more quickly and consistently produce high quality solutions, for example, in tasks where low latency solutions are required.
[0171] This specification uses the term "configured" in connection with systems and computer program components. With respect to a system of one or more computers, being configured to perform a particular operation or action means that the system has installed thereon software, firmware, hardware, or a combination thereof that, when operated, causes the system to perform the operation or action. With respect to one or more computer programs, being configured to perform a particular operation or action means that the one or more programs contain instructions that, when executed by a data processing apparatus, cause the apparatus to perform the operation or action.
[0172] The embodiments and functional operations of the subject matter described herein may be implemented in digital electronic circuitry, in tangibly embodied computer software or firmware, in computer hardware including the structures disclosed herein and their structural equivalents, or in a combination of one or more of them. The embodiments of the subject matter described herein may be implemented as one or more computer programs, i.e., as one or more modules of computer program instructions encoded on a tangible non-transitory storage medium for execution by or for controlling the operation of a data processing device. The computer storage medium may be a machine-readable storage device, a machine-readable storage substrate, a random or serial access memory device, or a combination of one or more of them. Alternatively, or in addition, the program instructions may be encoded on an artificially generated propagated signal, e.g., a machine-generated electrical, optical, or electromagnetic signal, which is generated to encode information for transmission to a suitable receiver device for execution by the data processing device.
[0173] The term "data processing apparatus" refers to data processing hardware and encompasses all kinds of apparatus, devices, and machines for processing data, including, by way of example, a programmable processor, a computer, or multiple processors or computers. An apparatus may also be or further include special purpose logic circuitry, such as an FPGA (field programmable gate array) or an ASIC (application specific integrated circuit). In addition to hardware, an apparatus may optionally include code that creates an execution environment for a computer program, such as code that constitutes a processor firmware, a protocol stack, a database management system, an operating system, or one or more combinations thereof.
[0174] A computer program, which may also be referred to or written as a program, software, software application, app, module, software module, script, or code, may be written in any form of programming language, including compiled or interpreted languages, or declarative or procedural languages, and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine, or other unit suitable for use in a computing environment. A program may, but need not, correspond to a file in a file system. A program may be stored in a portion of a file that holds other programs or data, for example in one or more scripts stored in a markup language document, in a single file dedicated to the program in question, or in multiple cooperating files, for example in a file that stores one or more modules, subprograms, or portions of code. A computer program may be deployed to run on one computer, or on multiple computers located at one site or distributed across multiple sites and interconnected by a data communication network.
[0175] As used herein, the term "database" is used broadly to refer to any collection of data, which need not be organized in any particular way, or at all, and may be stored on storage devices in one or more locations. Thus, for example, an index database may contain multiple collections of data, each of which may be organized and accessed differently.
[0176] Similarly, the term "engine" is used broadly herein to refer to a software-based system, subsystem, or process that is programmed to perform one or more specific functions. Generally, an engine will be implemented as one or more software modules or components installed on one or more computers at one or more locations. In some cases, one or more computers will be dedicated to a particular engine, and in other cases, multiple engines may be installed and executed on the same computer.
[0177] The processes and logic flows described herein may be performed by one or more programmable computers executing one or more computer programs to perform functions by operating on input data and generating output. The processes and logic flows may also be performed by special purpose logic circuitry, e.g., an FPGA or an ASIC, or by special purpose logic circuitry and one or more programmed computers.
[0178] A computer suitable for executing a computer program can be based on a general-purpose or special-purpose microprocessor or both, or any other type of central processing unit. In general, the central processing unit will receive instructions and data from a read-only memory or a random access memory or both. The essential elements of a computer are a central processing unit for executing or carrying out instructions, and one or more memory devices for storing instructions and data. The central processing unit and memory may be supplemented by or incorporated in special-purpose logic circuitry. In general, a computer will also include one or more mass storage devices, e.g., magnetic disks, magneto-optical disks, or optical disks, for storing data, or be operatively coupled to receive data therefrom or transmit data thereto, or both. However, a computer need not have such devices. Furthermore, a computer may be incorporated in another device, e.g., a mobile phone, a personal digital assistant (PDA), a mobile audio or video player, a game console, a global positioning system (GPS) receiver, or a portable storage device, e.g., a universal serial bus (USB) flash drive, to name just a few.
[0179] Computer-readable media suitable for storing computer program instructions and data include all forms of non-volatile memory, media, and memory devices, including, by way of example, semiconductor memory devices, e.g., EPROM, EEPROM, and flash memory devices, magnetic disks, e.g., internal hard disks or removable disks, magneto-optical disks, and CD ROM disks and DVD-ROM disks.
[0180] To provide for user interaction, embodiments of the subject matter described herein may be implemented on a computer having a display device, e.g., a CRT (cathode ray tube) monitor or LCD (liquid crystal display) monitor, for displaying information to the user, and a keyboard and pointing device, e.g., a mouse or trackball, by which the user can provide input to the computer. Other types of devices may be used as well to provide for user interaction, e.g., feedback provided to the user may be any form of sensory feedback, e.g., visual feedback, auditory feedback, or tactile feedback, and input from the user may be received in any form, including acoustic input, speech input, or tactile input. In addition, the computer may interact with the user by sending documents to and receiving documents from a device used by the user, e.g., by sending a web page to the web browser in response to a request received from a web browser on the user's device. The computer may also interact with the user by sending text messages or other forms of messages to a personal device, e.g., a smartphone running a messaging application, and receiving a response message from the user in return.
[0181] A data processing device for implementing machine learning models may also include dedicated hardware accelerator units for handling common and computationally intensive parts of the machine learning training or production, i.e., inference, workload.
[0182] The machine learning model may be implemented and deployed using a machine learning framework, for example, the TensorFlow framework.
[0183] An embodiment of the subject matter described herein may be implemented in a computing system that includes back-end components, such as data servers, or includes middleware components, such as application servers, or includes front-end components, such as a client computer having a graphical user interface, web server, or app that allows a user to interact with an implementation of the subject matter described herein, or includes any combination of one or more such back-end, middleware, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication, such as a communication network. Examples of communication networks include local area networks (LANs) and wide area networks (WANs), such as the Internet.
[0184] A computing system may include clients and servers. Clients and servers are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. In some embodiments, a server transmits data, e.g., HTML pages, to a user device, e.g., for purposes of displaying data to and receiving user input from a user interacting with the device acting as a client. Data generated at the user device, e.g., a result of a user interaction, may be received at the server from the device.
[0185] Although this specification contains many specific implementation details, these should not be interpreted as limitations on the scope of any invention or limitations on the scope that may be claimed, but rather as descriptions of features that may be specific to certain embodiments of a particular invention. Certain features described in the context of separate embodiments herein may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented in multiple embodiments separately or in any suitable subcombination. Furthermore, although features may be described above as acting in a particular combination, and may even be initially claimed as such, one or more features from the claimed combination may in some cases be deleted from the combination, and the claimed combination may be directed to a subcombination or a variation of the subcombination.
[0186] Similarly, although operations are depicted in the figures and recited in the claims in a particular order, this should not be understood as requiring that such operations be performed in the particular order or sequential order shown, or that all of the operations shown be performed, to achieve desired results. In certain situations, multitasking and parallel processing may be advantageous. Furthermore, the separation of various system modules and components in the embodiments described above should not be understood as requiring such separation in all embodiments, and it should be understood that the program components and systems described may generally be integrated together in a single software product or packaged in multiple software products.
[0187] Specific embodiments of the subject matter have been described. Other embodiments are within the scope of the appended claims. For example, the actions recited in the claims may be performed in a different order and still achieve desirable results. As one example, the processes depicted in the appended figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some cases, multitasking and parallel processing may be advantageous. [Explanation of symbols]
[0188] 100 Mixed Integer Problem (MIP) Solver System, MIP Solver System, Solver System, System 102 Parameter Data 112 Final Allocation 114 Optimality Gap Data, Output Optimality Gap Data 120 Input Representation 130 Encoder Neural Network 140 padding, output padding 150 MIP Solvers 160 Partial Allocation Engine, Engine 162 Partial Allocation 170 Candidate Final Allocation 210 Bipartite Graphs 212 Variable Nodes 214 Constraint Nodes 216 Edge 220 Encoder Neural Network 610 Plot 620 Plot 630 Plot 640 Plots 650 Plots 660 Plot 710 Plot 720 Plot 730 Plot 740 Plot 750 plots 760 Plots
Claims
1. A method implemented by one or more computers, comprising: obtaining data specifying parameters of a mixed integer problem (MIP) requiring assigning a respective value to each of a plurality of variables to minimize an objective subject to a set of constraints, a first subset of the plurality of variables being constrained to be integer values; generating an input representation from the parameters of the MIP; processing the input representation using an encoder neural network to generate a respective embedding for each of the variables in the first subset; generating a plurality of partial allocations, for each of the partial allocations: selecting a second suitable subset of each of the first subsets of variables; for each of the variables in the respective second subsets, generating a respective additional constraint on the values of the variable using at least the respective embedding for the variable; and generating, for each of said plurality of partial assignments, a corresponding candidate final assignment that assigns a respective value to each of said plurality of variables starting from said additional constraints in said partial assignment; selecting as a final assignment for the MIP a candidate final assignment that (i) is a feasible solution for the MIP and (ii) has a minimum of the objective of any of the candidate final assignments that are feasible solutions for the MIP; A method comprising:
2. The method of claim 1 , wherein the first subset is a proper subset of the plurality of variables.
3. The method of claim 1 or 2, wherein for each of the plurality of partial allocations, generating a corresponding candidate final allocation comprises generating the corresponding candidate final allocations in parallel.
4. 4. The method of claim 1, wherein the partial allocations are generated in parallel by respective neural networks configured to operate in parallel.
5. 5. The method of claim 1, wherein for each of the plurality of partial allocations, generating a corresponding candidate final allocation comprises generating the corresponding candidate final allocation using a heuristic-based MIP solver conditioned on the parameters of the MIP and the additional constraints on the partial allocation.
6. generating an input representation from the parameters of the MIP, generating a representation of a bipartite graph from the parameters of the MIP, the bipartite graph comprising: (i) a plurality of nodes including a first set of variable nodes, each of which represents one of the plurality of variables, and a second set of constraint nodes, each of which represents one of the constraints; (iii) for each constraint node, a respective edge from the constraint node to each variable node representing a variable that appears in the constraint represented by the constraint node; and the expression a respective characteristic for each of the plurality of nodes; and an adjacency matrix representing connectivity between the variable nodes and constraint nodes in the bipartite graph; Including, 6. The method according to any one of claims 1 to 5.
7. the encoder neural network is a graph neural network configured to process features for each of the plurality of nodes through a sequence of one or more graph layers to generate the embeddings for the variables in the first subset; each graph layer configured to receive as input a respective input embedding for each of the nodes in the graph and to generate as output a respective output embedding for each of the nodes in the graph; the input embedding for each of the nodes in the graph for a first graph layer in the sequence includes the features for the nodes; the embedding for each of the nodes in the first subset is the output embedding produced by the last graph layer in the sequence for the nodes representing the variables in the first subset. The method of claim 6.
8. Each graph layer is applying an update function to each of the input embeddings to generate an updated embedding; Apply the adjacency matrix to the updated embedding to generate an initial output embedding. It is configured as follows: The method of claim 7.
9. The method of claim 8 , wherein the initial output embedding is the output embedding for the graph layer.
10. Each graph layer is configured to combine the initial output embedding generated by the graph layer with the input embedding for the graph layer to generate the output embedding for the graph layer. The method of claim 8.
11. 11. The method of claim 8, wherein the update function is a multi-layer perceptron (MLP).
12. The adjacency matrix is an N×N matrix, where N is the total number of nodes in the graph, and entry (i,j) is equal to 1 if the node with index i is connected to the node with index j by an edge, equal to 0 if i is not equal to j and the node with index i is not connected to the node with index j by an edge; 12. The method according to any one of claims 6 to 11.
13. 12. The method of claim 6, wherein the adjacency matrix is an N by N matrix, where N is the total number of nodes in a graph, and the entries in the adjacency matrix represent normalized coefficients in the constraints.
14. For a particular partial allocation, the second subset includes particular variables that are constrained to be binary variables, and the step of generating the additional constraints on the binary variables comprises: generating probabilities for said binary variables by processing at least said respective embeddings for said binary variables using a predictive neural network head; sampling values for said binary variables according to said probabilities; generating an additional constraint that constrains the value of the binary variable to be equal to the sampled value; Including, 14. The method according to any one of claims 1 to 13.
15. the first subset includes certain variables that are constrained to be binary variables, and selecting said respective second suitable subsets for a particular partial allocation comprises: generating assignment probabilities for said binary variables by processing at least said respective embeddings for said binary variables using a corresponding assignment neural network head; determining whether to include said binary variables within said respective second subsets according to said assigned probabilities; Including, 15. The method according to any one of claims 1 to 14.
16. 16. The method of claim 15, wherein different ones of the partial assignments are associated with different corresponding assignment neural network heads that are trained to generate assignment probabilities that result in different expected coverage of the first subset.
17. For a particular partial allocation, the second subset includes a particular variable that is constrained to be a general integer variable that can take on three or more possible values, and the step of generating the additional constraints on the general integer variables comprises: generating respective probabilities for one or more of said bits in a sequence of bits representing the cardinality of said general integer variable by processing at least said respective embeddings for said general integer variable using a predictive neural network head; sampling a respective value for each of the one or more bits according to the probability for that bit; generating additional constraints based on the sampled values to constrain the values of the general integer variables; Including, 17. The method according to any one of claims 1 to 16.
18. 18. The method of claim 17, wherein the one or more bits include all of the bits in the sequence, the sampled values define a single value for the general integer variable, and the additional constraint constrains the general integer to have the single value.
19. 18. The method of claim 17, wherein the one or more bits include only a proper subset of the bits in the sequence including one or more most significant bits in the sequence, the sampled values define a range of values for the general integer variable, and the additional constraint constrains the general integer to have a value within the range of values defined by the sampled values for the most significant bits.
20. selecting said respective second suitable subsets for said particular partial allocation, generating respective assignment probabilities for each of one or more bits in said sequence of bits by processing at least said respective embeddings for said general integer variables using a corresponding assignment neural network head; determining whether to include the general integer variables in the respective second subsets according to the assigned probabilities for the most significant bits in the sequence; 20. The method of any one of claims 17 to 19, comprising:
21. 21. The method of claim 20, further comprising determining how many bits to include in the one or more bits whose values are sampled based on the respective assigned probabilities.
22. 22. The method of claim 20 or 21, wherein different ones of the partial assignments are associated with different corresponding assignment neural network heads that are trained to generate assignment probabilities that result in different expected coverage of the first subset.
23. 23. The method of claim 1, wherein the encoder neural network is trained on feasible solutions to a dataset of training MIPs generated by a heuristic-based MIP solver.
24. generating optimality gap data defining an optimality gap proof for said final allocation; 24. The method of any one of claims 1 to 23, further comprising:
25. The step of generating optimality gap data comprises: generating the optimality gap data using a branch-and-bound technique that recursively generates a search tree having partial integer assignments at each node of the search tree over a number of steps, the step of generating the search tree comprising: selecting a leaf node at the current branching point of the search tree; determining whether to expand the selected leaf node; in response to determining to expand the selected leaf node, selecting a variable from the set of unfixed variables at the selected leaf node; expanding the search tree by adding two child nodes to the search tree, each child node having a different domain for the selected variable; Including, The method of claim 24.
26. selecting a variable from the set of unfixed variables at the selected leaf node, generating a new input representation of the sub-MIP defined by the selected leaf node; processing the new input representation using a second encoder neural network to generate a respective embedding for each of the unfixed variables; processing each of the embeddings using a branching neural network to generate a respective branching score for each of the unfixed variables; selecting said variables using said respective branch scores; 26. The method of claim 25, comprising:
27. 27. The method of claim 26, wherein the branching neural network is trained through imitation learning to mimic an expert policy that generates branching decisions for the branch-and-bound technique.
28. 28. The method of claim 27, wherein the second encoder neural network is trained jointly with the branching neural network.
29. 28. The method of claim 27, wherein the second encoder neural network is the same as the encoder neural network.
30. One or more computers; one or more storage devices storing instructions that, when executed by the one or more computers, cause the one or more computers to perform the respective operations of any one of claims 1 to 29; A system comprising:
31. One or more computer-readable storage media storing instructions that, when executed by one or more computers, cause the one or more computers to perform each of the operations of the method of any one of claims 1 to 29.
Citation Information
Patent Citations
Optimization device, optimization system, method for optimization, and program
JP2020113190A
Verification of perception systems
WO2020109774A1
