OPTIMIZATION METHOD, OPTIMIZATION DEVICE, AND PROGRAM

The optimization method leverages related optimization problems and Bayesian optimization to solve black box functions with a small data set, enhancing efficiency and reducing data requirements.

JP7548440B2Active Publication Date: 2024-09-10NIPPON TELEGRAPH & TELEPHONE CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
JP2023532878
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2021-07-05
Publication Date
2024-09-10
Estimated Expiration
2041-07-05

AI Technical Summary

Technical Problem

Existing black box optimization methods require a large amount of training data to effectively model complex functions using neural networks.

Method used

An optimization method utilizing a data set of multiple related optimization problems to learn model parameters through a learning procedure, determining the next input value to evaluate, and using Bayesian optimization techniques to solve black box optimization problems with a small amount of data.

Benefits of technology

Enables solving optimization problems with black box functions using a minimal data set, thereby reducing the data requirements and improving efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007548440000009
    Figure 0007548440000009
  • Figure 0007548440000008
    Figure 0007548440000008
  • Figure 0007548440000007
    Figure 0007548440000007
Patent Text Reader

Abstract

An optimization method according to an embodiment calculates a solution to a black box optimization problem, the objective function of which is a black box function, wherein a computer performs: a learning procedure for learning model parameters for determining the next input value to be evaluated from among a given set of input values for a black box optimization problem, using a data set consisting of input and output values of a plurality of second black box optimization problems related to a first black box optimization problem for which a solution is to be calculated; a determination procedure for determining the next input value to be evaluated from among a set of input values for the first black box optimization problem using the model parameters learned by the learning procedure; and an evaluation procedure for evaluating the output value of the first black box optimization problem using the input value determined by the determination procedure.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to an optimization method, an optimization device, and a program. [Background technology]

[0002] Black-box optimization is a method for finding the input value that maximizes (or minimizes) the output value of a function. In black-box optimization, the form of the function is unknown (i.e., the objective function is a black-box function), and it often takes time to evaluate the output value for a certain input value.

[0003] Bayesian optimization is known as a representative method used in black-box optimization (Non-Patent Document 1). Bayesian optimization uses a stochastic process called a Gaussian process, but a kernel based on a neural network is required to model complex functions (Non-Patent Document 2). [Prior art documents] [Non-patent literature]

[0004] [Non-Patent Document 1] Snoek, J., Larochelle, H., & Adams, RP (2012). Practical Bayesian Optimization of Machine Learning Algorithms. Advances in Neural Information Processing Systems. [Non-Patent Document 2] Wilson, AG, Hu, Z., Salakhutdinov, R., & Xing, EP (2016, May). Deep kernel learning. In Artificial intelligence and statistics (pp. 370-378). PMLR. Summary of the Invention [Problem to be solved by the invention]

[0005] However, a problem arises in that a large amount of training data is generally required to train a neural network.

[0006] An embodiment of the present invention has been made in view of the above points, and has an object to solve an optimization problem in which an objective function is a black-box function with a small amount of data. [Means for solving the problem]

[0007] In order to achieve the above-mentioned object, an optimization method according to one embodiment is an optimization method for calculating a solution to a black-box optimization problem whose objective function is a black-box function, the method comprising the steps of: a learning procedure, using a data set consisting of input values ​​and output values ​​of a plurality of second black-box optimization problems related to a first black-box optimization problem whose solution is to be calculated, learning model parameters for determining an input value to be evaluated next from a set of input values ​​for the black-box optimization problem when the set of input values ​​for the black-box optimization problem is given; a determination procedure, using the model parameters learned by the learning procedure, for determining an input value to be evaluated next from the set of input values ​​for the first black-box optimization problem; and an evaluation procedure, using the input value determined by the determination procedure, for evaluating an output value of the first black-box optimization problem. Effect of the Invention

[0008] It is possible to solve optimization problems whose objective function is a black-box function with a small amount of data. [Brief description of the drawings]

[0009] [Figure 1] FIG. 2 is a diagram illustrating an example of a hardware configuration of an optimization device according to the present embodiment. [Diagram 2] FIG. 2 is a diagram illustrating an example of a functional configuration of an optimization device according to the present embodiment. [Diagram 3]FIG. 13 is a diagram showing an example of a comparison result with a conventional method. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0010] An embodiment of the present invention will be described below. In this embodiment, an optimization device 10 will be described that can solve a target optimization problem with a smaller amount of data set when a data set of multiple optimization problems related to the target optimization problem is given, with the optimization problem being an objective function of a black-box function. Note that an optimization problem with an objective function of a black-box function is also called a black-box optimization problem.

[0011] Here, an optimization problem being related to another optimization problem means, for example, optimization problems that are solved in the same or similar field for the same or similar purpose. For example, when considering an optimization problem of determining manufacturing conditions that result in a product with desired characteristics from the manufacturing conditions and the characteristics of the product at that time, an optimization problem for product A and an optimization problem for product B that is functionally similar to product A can be said to be mutually related optimization problems.

[0012] The optimization device 10 according to this embodiment operates during learning to learn predetermined parameters, and during inference (testing) to solve a target optimization problem using the learned parameters.

[0013] During training, a set of S optimization problems related to the target optimization problem is s |s=1, ,S} is given, where D s ={(x sn ,y sn )|n=1,...,N s} is the data set for the sth optimization problem, and x sn ∈X is the n-th input vector for the s-th optimization problem, y sn =f s (x sn ) is the output value at that time, f s (·) is the black-box function of the sth optimization problem, N sis the number of cases (number of data) of the sth optimization problem. Furthermore, X is a set of input vectors, and for example, when the input vector is a manufacturing condition, it represents a set of vector values ​​that can be taken as the manufacturing condition.

[0014] At inference time (test time), the input vector set D of the target optimization problem is * ={x *n |n=1,...,N *} is given, where x *n ∈X is the n-th input vector of the objective optimization problem, and N * is the number of input vectors for the desired optimization problem. * is Σ s N s A very small value compared to (e.g., some N s The objective is to solve the target optimization problem with as few evaluations as possible. Evaluation means obtaining the output value of the optimization problem for the input vector.

[0015] In the following, we define the black-box function of the desired optimization problem as f * (·), the input vector x *n The output value for y *n =f * (x *n )

[0016] In addition, if there is a mechanism for evaluating the objective function (black-box function) of the optimization problem, the data set {D s |s=1, ,S} and the input vector set D * may not be given. In this case, the present embodiment can be similarly applied by generating an input vector and evaluating its output value.

[0017] In the following, a maximization problem is considered as the optimization problem. When a minimization problem is considered as the optimization problem, this embodiment can be similarly applied by multiplying the output value by a negative number.

[0018] <Hardware configuration of optimization device 10> The hardware configuration of an optimization device 10 according to this embodiment is shown in Fig. 1. As shown in Fig. 1, the optimization device 10 according to this embodiment is realized by the hardware configuration of a general computer or computer system, and has an input device 101, a display device 102, an external I / F 103, a communication I / F 104, a processor 105, and a memory device 106. Each of these pieces of hardware are connected to each other via a bus 107 so as to be able to communicate with each other.

[0019] The input device 101 is, for example, a keyboard, a mouse, a touch panel, various physical buttons, etc. The display device 102 is, for example, a display, a display panel, etc. Note that the optimization device 10 does not necessarily have at least one of the input device 101 and the display device 102, for example.

[0020] The external I / F 103 is an interface with an external device such as a recording medium 103a. The optimization device 10 can read and write data from and to the recording medium 103a via the external I / F 103. Examples of the recording medium 103a include a CD (Compact Disc), a DVD (Digital Versatile Disk), a SD memory card (Secure Digital memory card), and a USB (Universal Serial Bus) memory card.

[0021] The communication I / F 104 is an interface for connecting the optimization device 10 to a communication network. The processor 105 is, for example, various arithmetic devices such as a central processing unit (CPU) or a graphics processing unit (GPU). The memory device 106 is, for example, various storage devices such as a hard disk drive (HDD), a solid state drive (SSD), a flash memory, a random access memory (RAM), a read only memory (ROM), etc.

[0022] The optimization device 10 according to this embodiment can realize various processes described below by having the hardware configuration shown in Fig. 1. Note that the hardware configuration shown in Fig. 1 is only an example, and the optimization device 10 may have, for example, multiple processors 105 or multiple memory devices 106. Furthermore, the optimization device 10 may have various hardware other than the hardware shown in Fig. 1.

[0023] <Functional configuration of optimization device 10> The functional configuration of the optimization device 10 according to this embodiment is shown in Fig. 2. As shown in Fig. 2, the optimization device 10 according to this embodiment has a model unit 201, a meta-learning unit 202, and an evaluation unit 203. Each of these units is realized, for example, by a process in which one or more programs installed in the optimization device 10 are executed by a processor 105.

[0024] Moreover, the optimization device 10 according to this embodiment includes a storage unit 204. The storage unit 204 is realized by, for example, an auxiliary storage device such as an HDD or an SSD. Note that the storage unit 204 may be realized by, for example, a storage device connected to the optimization device 10 via a communication network.

[0025] <<Model Section 201>> The model unit 201 uses pairs of input vectors and output values ​​to calculate the next input vector to be evaluated.

[0026] First, the model unit 201 estimates the objective function of the optimization problem. This can be estimated using, for example, a Gaussian process that uses a kernel based on a neural network (see Non-Patent Document 2). In the Gaussian process, it is assumed that the objective function follows a Gaussian distribution, and the objective function is estimated from the input vector in the form of a probability distribution. At this time, the output value for the input vector x follows a Gaussian distribution, and its mean and variance are

[0027]

number

[0028]

number

[0029]

number

[0030]

number

[0031] The estimation of the objective function of the optimization problem is not limited to a Gaussian process using a kernel based on a neural network, and any other method having parameters may be used.

[0032] Next, the model unit 201 calculates the degree to be evaluated next using an acquisition function used in Bayesian optimization. As the acquisition function, any acquisition function such as Gaussian process mutual information, expected improvement, upper confidence bound, etc. can be used.

[0033] When using Gaussian process mutual information, the likelihood that an input vector x should be evaluated next is

[0034]

number

[0035]

number

[0036] <Meta-Learning Section 202> The meta-learning unit 202 learns a set of S optimization problems using a data set {D s The model parameters Ψ are learned from |s=1, ,S}. The model parameters Ψ include, for example, the parameters Θ of the neural network g(·;Θ), the kernel parameters α and η, and the parameters of the acquisition function.

[0037] When learning the model parameter Ψ, the meta-learning unit 202 initializes the model parameter Ψ, and then updates the model parameter Ψ by reinforcement learning until a certain termination condition is satisfied, so that the gap is small when S optimization problems are solved by the model unit 201 using the model parameter Ψ. The gap is the difference between the maximum value of each optimization problem and the highest output value evaluated so far. Note that the gap is not limited to the gap, and other evaluation measures may be used as long as they can evaluate the output value in the optimization problem.

[0038] <Evaluation Section 203> The evaluation unit 203 calculates the output value of the target optimization problem for the input vector.

[0039] ≪Storage section 204≫ During learning, the memory unit 204 stores a set of data sets {D s |s=1, ,S} and the untrained model parameters Ψ. On the other hand, during inference, the input vector set D * ={x *n |n=1,...,N *} and the trained model parameters Ψ.

[0040] 2 shows an example of a functional configuration in which the process during learning and the process during inference are performed by the same optimization device 10, but for example, the process during learning and the process during inference may be performed by different devices. In this case, for example, the device performing the process during learning (learning device) may have only to have the model unit 201, the meta-learning unit 202, and the memory unit 204, and the device performing the process during inference (inference device) may have only to have the model unit 201, the evaluation unit 203, and the memory unit 204.

[0041] <Learning process> During learning, the optimization device 10 executes, for example, the following processes of Steps 11 to 13.

[0042] Step 11: The meta-learning unit 202 initializes the model parameter Ψ. Note that the model parameter Ψ may be initialized by a known method, such as by initializing to a random value or to a value sampled from a certain distribution.

[0043] Step 12: For each s ∈ {1, , S}, the data set D for the s-th optimization problem s ={(x sn ,y sn )|n=1,...,N s} and repeat the following Step 12-1 to Step 12-5.

[0044] Step 12-1: The model unit 201 performs the following operations: t←0, N st ←Initialize to φ.

[0045] Step 12-2: The model unit 201 calculates the model parameter Ψ and each input vector x ∈ {x sn |n=1,...,N s}\N st In other words, the model unit 201 calculates the degree a(x;N st , Ψ) is calculated, and the input vector x with the highest value is set as the input vector to be evaluated next. Hereinafter, the input vector to be evaluated next is set as x'.

[0046] Step 12-3: The model unit 201 updates t to t+1 and sets the next input vector x' to be evaluated as N st Add to.

[0047] Step 12-4: The meta-learning unit 202 updates the model parameter Ψ by reinforcement learning so that the gap becomes smaller. sn |n=1,...,N s} and N st The output value f corresponding to the input vector x' contained in s The model parameter Ψ is updated by reinforcement learning so that the difference with the maximum value in (x') becomes small. In reinforcement learning, for example, the gap is set as a negative reward, and the model parameter Ψ is updated so as to maximize the cumulative reward sum.

[0048] Step 12-5: The meta-learning unit 202 determines whether or not a predetermined first termination condition is satisfied. If it is determined that the first termination condition is not satisfied, the process returns to Step 12-2. On the other hand, if it is determined that the first termination condition is satisfied, the process of Steps 12-1 to 12-5 for that s is terminated (that is, in this case, the process of Step 12-1 and subsequent steps is executed for the next s). Note that the first termination condition may be, for example, that the model parameter Ψ has converged, that the number of repetitions of Steps 12-1 to 12-5 for that s has reached a predetermined number, etc.

[0049] Step 13: Finally, the meta-learning unit 202 stores the learned model parameters Ψ in the storage unit 204.

[0050] <Processing during inference> During inference, the optimization device 10 executes, for example, the following processes of Step 21 to Step 24. Note that during inference, s=*.

[0051] Step 21: The model unit 201 performs the following operations: t←0, N *t ←Initialize to φ.

[0052] Step 22: The model unit 201 calculates the trained model parameters Ψ and each input vector x ∈ D * ={x *n |n=1,...,N *}\N *t In other words, the model unit 201 calculates the degree a(x;N *t , Ψ) is calculated, and the input vector x with the highest value is set as the next input vector to be evaluated. *n' Let us assume that.

[0053] Step 23: The evaluation unit 203 evaluates y *n' =f * (x')=f * (x *n' ) to calculate

[0054] Step 24: The model unit 201 updates t to t+1 and sets the next input vector x' to be evaluated as N *t Add to.

[0055] Step 25: The evaluation unit 203 judges whether or not a predetermined second end condition is satisfied. If it is judged that the second end condition is not satisfied, the process returns to Step 22. Thus, the above Steps 22 to 25 are repeated until the second end condition is satisfied. On the other hand, if it is judged that the second end condition is satisfied, the process returns to Step 25. *t The output value f corresponding to the input vector x' contained in * Maximum value y in (x') max and the input vector x that gives the maximum value max ∈N *t The second termination condition is, for example, t=N * Some of the reasons include:

[0056] <Comparison with conventional methods> The results of comparing the optimization device 10 according to this embodiment with the conventional method are shown in FIG. 3. In FIG. 3, a test gap is used as an evaluation index. The test gap is a data set D of pairs of input vectors and output values ​​during testing, just as during learning. * ={(x *n ,y *n )|n=1,...,N *} is the gap calculated using

[0057] In Fig. 3, the vertical axis indicates the gap value, and the horizontal axis indicates the number of learning times. Additionally, Ours indicates the optimization device 10 according to this embodiment, DKL indicates a Gaussian process using deep kernel learning, GP indicates a Gaussian process using a Gaussian kernel, RL indicates reinforcement learning using a feedforward neural network as a model, MetaBO indicates meta-learning Bayesian optimization, and Random indicates a method of randomly selecting evaluation points.

[0058] As shown in FIG. 3, it can be seen that the optimization device 10 (Ours) according to this embodiment achieves a lower gap compared to the conventional method.

[0059] <Summary> As described above, the optimization device 10 according to this embodiment targets an optimization problem whose objective function is a black-box function, and by utilizing knowledge of a plurality of optimization problems related to the target optimization problem, can solve the solution of the target optimization problem with a smaller data set (in other words, can find an optimal solution more quickly). Therefore, by using the optimization device 10 according to this embodiment, it becomes possible to obtain an optimal solution to the target optimization problem even when only a small data set is available for the target optimization problem.

[0060] The optimization device 10 according to the present embodiment can be applied to various applications in which black-box optimization is generally used. Examples of such applications include tuning hyperparameters of a machine learning model that outputs a predetermined predicted value when determining manufacturing conditions for a product, chemical substance, material, etc. having desired characteristics.

[0061] The present invention is not limited to the above-described embodiments specifically disclosed, and various modifications, changes, combinations with known technologies, etc. are possible without departing from the scope of the claims. [Explanation of symbols]

[0062] 10 Optimization Device 101 Input Device 102 Display device 103 External I / F 103a Recording media 104 Communication I / F 105 processors 106 Memory Device 107 Bus 201 Model Section 202 Meta-Learning Department 203 Evaluation Department 204 Storage section

Claims

1. 1. An optimization method for computing a solution to a black-box optimization problem in which an objective function is a black-box function, comprising the steps of: a learning procedure for learning model parameters for determining a next input value to be evaluated from a set of input values ​​for a black-box optimization problem, when the set of input values ​​for the black-box optimization problem is given, using a data set consisting of input values ​​and output values ​​for a plurality of second black-box optimization problems related to the first black-box optimization problem to be solved; a determination step of determining a next input value to be evaluated from a set of input values ​​of the first black-box optimization problem using the model parameters learned by the learning step; an evaluation step for evaluating an output value of the first black-box optimization problem using input values ​​determined by the determination step; The computer performs the optimization method.

2. The optimization method comprises:

2. The optimization method according to claim 1, further comprising the step of: computing a solution to the first black-box optimization problem by repeating the determination of input values ​​by the determination procedure and the evaluation of output values ​​by the evaluation procedure.

3. the model parameters include parameters of a neural network included in a kernel used in a Gaussian process, parameters of the kernel, and parameters of an acquisition function used in Bayesian optimization; The determination procedure includes: estimating an objective function of the first black-box optimization problem by a Gaussian process using the kernel; calculating, based on a Gaussian distribution to which the estimated objective function conforms, a degree to which an unevaluated input value included in an input value set of the first black-box optimization problem should be evaluated next using the acquisition function; 3. The optimization method according to claim 1, further comprising determining the input value having the highest degree as the next input value to be evaluated.

4. 4. The optimization method of claim 3, wherein the gain function is one of Gaussian process mutual information, expected improvement, or upper confidence bound.

5. The learning procedure includes:

5. The optimization method according to claim 1, further comprising: learning the model parameters by reinforcement learning so that, for each of the second black-box optimization problems, a difference between a maximum value of an output value of the second black-box optimization problem and a maximum value of an output value corresponding to an input value determined so far by the determination procedure using the model parameters being trained becomes small.

6. An optimization device for calculating a solution to a black-box optimization problem in which an objective function is a black-box function, comprising: a learning unit that uses a data set consisting of input values ​​and output values ​​of a plurality of second black-box optimization problems related to the first black-box optimization problem to be solved, to learn model parameters for determining an input value to be evaluated next from a set of input values ​​for a black-box optimization problem when the set of input values ​​for the black-box optimization problem is given; a determination unit that determines an input value to be next evaluated from a set of input values ​​of the first black-box optimization problem using the model parameters learned by the learning unit; an evaluation unit that evaluates an output value of the first black-box optimization problem using the input values ​​determined by the determination unit; An optimization device having the above configuration.

7. A program for causing a computer to execute the optimization method according to any one of claims 1 to 5.