Black box optimization method, system and device and storage medium
Through the black-box optimization method based on symbolic regression, symbolic expressions and optimization rules are automatically generated, which solves the problems of relying on manual rules and over-fitting in the existing technology, and achieves efficient and interpretable black-box optimization with zero-sample generalization. ization ability.
Patent Information
- Application Number
- CN202410783759.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-18
- Publication Date
- 2024-09-24
AI Technical Summary
Existing black-box optimization methods rely on manually formulated rules, which suffer from overfitting and low efficiency. They are especially difficult to generalize and explain in high-dimensional tasks.
A method based on symbolic regression is used to determine the corpus, obtain and preprocess candidate solution population data, calculate population landscape analysis characteristic parameters, generate symbolic equations and conduct collaborative reward training, and finally use the policy gradient algorithm to optimize the symbolic equation generator model.
It realizes automatic generation of update rules, reduces dependence on expert knowledge, captures common characteristics of black box problems, has zero-sample generalization capabilities, and significantly improves exploration efficiency and performance.
Smart Images

Figure 00000000_0000
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of symbolic regression and black box problem optimization, and in particular to a black box optimization method, system, device and storage medium. Background Art
[0002] Black-box optimization (BBO) is a method for performing optimization without knowing the mathematical formula of the objective function. It is of great significance in many fields, ranging from automated machine learning to bioinformatics. Due to the nature of black boxes, BBO optimization requires iteratively probing and evaluating candidate solutions through a search process. Although some well-known BBO optimization methods have been proposed, such as differential evolution, evolutionary strategies, and Bayesian optimization, the way they guide the search process is often based on hand-crafted rules, which require complex manual adjustments and expertise to ensure their performance safety on specific types of BBO tasks.
[0003] To alleviate the labor-intensive tuning required for BBO optimizers, recent meta-black-box optimization (MetaBBO) methods turn to meta-learning to automate this process. Basically, MetaBBO follows the idea of two-level optimization and can be divided into two branches. The first branch is MetaBBO for automatic configuration. At the meta-level, neural policies dictate the configuration of lower-level BBO optimizers, which usually adopt expert-derived rules. They work together to optimize the meta-objective to excel in a wider range of BBO tasks. While these methods provide a data-centric approach to optimization, the fine-tuned optimizer closely follows the design of the backbone BBO optimizer, thereby inheriting the limitations of the underlying human-made rules. Recently, some MetaBBO methods adopt neural networks to directly propose subsequent candidate solutions, but these models are prone to overfitting and their efficiency may be limited to low-dimensional BBO. At the same time, as they try to bypass hand-crafted rules, they turn to become "black-box" optimization systems, raising concerns about interpretability and generalization. Summary of the invention
[0004] In order to solve at least one of the technical problems existing in the prior art to a certain extent, the object of the present invention is to provide a black box optimization method, system, device and storage medium based on symbolic regression technology.
[0005] The first technical solution adopted by the present invention is:
[0006] A black box optimization method comprises the following steps:
[0007] Identify the corpus for the symbolic equation generator;
[0008] Get the initial candidate solution population data for the teacher optimizer and symbolic equation generator;
[0009] Acquire characteristic parameters of population landscape analysis according to the initial candidate solution population data;
[0010] Determine an optimization rule for a current candidate solution population generated by a symbolic equation generator according to the characteristic parameters, and simultaneously and independently optimize a candidate solution population of a teacher optimizer;
[0011] Calculate the collaborative reward for training the symbolic equation generator based on the optimized candidate solution population, and co-evolve with the teacher optimizer;
[0012] According to the collaborative reward, the optimal symbolic equation generator model is finally obtained based on the selected policy gradient optimization algorithm training.
[0013] Further, the corpus includes operators and operands covered in the generated equations, and a constant inference mechanism for determining constants in expressions;
[0014] The operands include: candidate solutions and the best and worst solutions therein, the current best solution of a candidate solution individual, the difference vector between consecutive steps of the candidate solution, random individuals in the current candidate solution population, and a constant c;
[0015] The constant inference mechanism is used to generate the constant c and fine-tune the optimization rule formula based on the iterative characteristics.
[0016] Furthermore, the constant c is:
[0017] c=β×10 ∈
[0018] Among them, β is the mantissa, which is set to {-1.0, -0.9, -0.8, …, 0.8, 0.9, 1.0}; ∈ is the exponent, which is set to {0, -1}; according to the symbolic equation generator, the latent vector h is generated through two different single-layer feed-forward layers, which are responsible for generating the mantissa β and the exponent ε respectively.
[0019] Furthermore, the obtaining of initial candidate solution population data of the teacher optimizer and the symbolic equation generator includes:
[0020] The initial candidate solution population data is preprocessed to keep the initial candidate solution populations of the teacher optimizer and the symbolic equation generator consistent, and the fitness of the candidate solution population is evaluated.
[0021] Furthermore, the characteristic parameters include: distribution characteristics of the current candidate solution population, fitness statistics of the current candidate solution population, and timestamp characteristics of the current optimization process;
[0022] The step of obtaining the population landscape analysis characteristic parameters according to the initial candidate solution population data includes:
[0023] By calculating the average distances within the candidate solution population, the global optimal individual, and the local optimal individual, the distribution characteristics of the current candidate solution population are obtained;
[0024] By evaluating the average gap between the fitness of the candidate solution population and the fitness of the global optimal individual and the local optimal individual, as well as the variance of the current population fitness, the current candidate solution population fitness statistics are obtained;
[0025] By recording the time it takes to reach the optimal solution, calculating the remaining time ratio based on the set maximum allowed iteration time, as well as the ratio of time with continuous good performance and whether the local optimal solution can be updated to the global optimal solution, the timestamp characteristics of the current optimization process are obtained.
[0026] Furthermore, the collaborative rewards include: exploration rewards and guidance rewards;
[0027] The exploration reward is responsible for the symbolic equation generator to independently construct an optimizer based on the fitness ratio of the optimal solution of the current candidate solution population and the optimal solution at the initial population;
[0028] The guided reward is used to measure the gap between the candidate solution population obtained by the current symbolic equation generator and the candidate solution population obtained by the teacher optimizer (the most advanced black-box problem optimizer).
[0029] Furthermore, the training of the selected policy gradient optimization algorithm based on the collaborative reward finally obtains the optimal symbolic equation generator model, including:
[0030] Calculate the loss value, the formula is as follows:
[0031]
[0032] Among them, θ is the selected symbolic equation generator model parameter; is the distribution of the black box problem; f is the distribution from The problem obtained by sampling in ; τ is the trajectory of the optimization rule equation obtained; R is the collaborative reward; represents the expectation of cumulative synergy rewards;
[0033] Get the maximum loss value J(θ * ) is taken as the optimal symbolic equation generator model.
[0034] The second technical solution adopted by the present invention is:
[0035] A black box optimization system, comprising:
[0036] A corpus determination module, for determining a corpus for a symbolic equation generator;
[0037] Data initialization module, used to obtain the initial candidate solution population data for the teacher optimizer and symbolic equation generator;
[0038] A parameter generation module, used to obtain characteristic parameters of population landscape analysis according to the initial candidate solution population data;
[0039] A population optimization module, used for determining the current candidate solution population optimization rule generated by the symbolic equation generator according to the characteristic parameters, and synchronously and independently optimizing the candidate solution population of the teacher optimizer;
[0040] A collaborative reward module is used to calculate the collaborative reward of the training symbolic equation generator based on the optimized candidate solution population, and to co-evolve with the teacher optimizer;
[0041] The model training module is used to train the selected policy gradient optimization algorithm according to the collaborative reward, and finally obtain the optimal symbolic equation generator model.
[0042] The third technical solution adopted by the present invention is:
[0043] A black box optimization device, comprising:
[0044] at least one processor;
[0045] at least one memory for storing at least one program;
[0046] When the at least one program is executed by the at least one processor, the at least one processor implements the above method.
[0047] The fourth technical solution adopted by the present invention is:
[0048] A computer-readable storage medium stores a program executable by a processor, wherein the program executable by the processor is used to execute the method described above when executed by the processor.
[0049] Compared with the prior art, the present invention has the following advantages and effects:
[0050] 1) The black-box optimization method based on symbolic regression disclosed in the present invention relies on the optimizer to automatically generate update rules expressed as symbolic expressions, which can minimize the dependence on expert knowledge and has the ability to discover new black-box problem optimizers.
[0051] 2) The black-box optimization method based on symbolic regression disclosed in the present invention utilizes population landscape analysis features as the contextual representation of the problem, which can maximize the capture of the common features of the black-box problem and has the ability of zero-sample generalization.
[0052] 3) The black-box optimization method based on symbolic regression disclosed in the present invention utilizes the most advanced BBO optimizer and symbolic equation generator for co-evolution, which can significantly improve the exploration efficiency and performance of the generator. At the same time, the exploration reward gives the generator the ability to outperform the most advanced BBO optimizer. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the embodiments of the present invention or the drawings of related technical solutions in the prior art are introduced below. It should be understood that the drawings introduced below are only for the convenience of clearly describing some embodiments of the technical solutions of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0054] Figure 1 is a flowchart of a black box optimization method based on symbolic regression in an embodiment of the present invention;
[0055] Figure 2 It is a schematic diagram of the optimizer training of the present invention. DETAILED DESCRIPTION
[0056] The embodiments of the present invention are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and are not to be construed as limitations of the present invention. For the step numbers in the following embodiments, they are only provided for the convenience of explanation, and the order between the steps is not limited in any way, and the execution order of each step in the embodiment can be adaptively adjusted according to the understanding of those skilled in the art.
[0057] In the description of the present invention, it should be understood that descriptions involving orientations, such as up, down, front, back, left, right, etc., and orientations or positional relationships indicated are based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present invention.
[0058] In the description of the present invention, the meaning of "several" is one or more, the meaning of "more" is two or more, and the meanings of "greater than", "less than", "exceed" and the like are understood as not including the number itself, and the meanings of "above", "below", "within" and the like are understood as including the number itself. If there is a description of the first and the second, it is only used for the purpose of distinguishing the technical features, and cannot be understood as indicating or implying the relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features. In addition, "and / or" describes the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the related objects before and after are in an "or" relationship.
[0059] In the description of the present invention, unless otherwise clearly defined, terms such as setting, installing, connecting, etc. should be understood in a broad sense, and technicians in the relevant technical field can reasonably determine the specific meanings of the above terms in the present invention based on the specific content of the technical solution.
[0060] like Figure 1 As shown, this embodiment provides a black box optimization method based on symbolic regression, which can automatically formulate a meta-learning optimizer with diversified interpretability rules in black box problem optimization tasks. The method includes the following steps:
[0061] S1. Determine a corpus for a symbolic equation generator, the corpus including operators and operands covered in the generated equations, and a constant inference mechanism for determining constants in expressions.
[0062] In this embodiment, the operators are +, -, ×, etc. The operands include: candidate solutions and the best and worst solutions therein, the current best solution of a candidate solution individual, the difference vector between consecutive steps of the candidate solution, random individuals in the current candidate solution population, and a constant c.
[0063] The constant inference mechanism is used to generate the above constant value c and fine-tune the optimization rule formula based on the iterative characteristics. The constant value c is expressed as follows:
[0064] c=β×10 ∈ (1)
[0065] Among them, β is the mantissa, which is set to {-1.0, -0.9, -0.8, …, 0.8, 0.9, 1.0}; ∈ is the exponent, which is set to {0, -1}. According to the symbol generator, the latent vector h is generated through two different single-layer feed-forward layers, which are responsible for generating the mantissa β and the exponent ∈ respectively.
[0066] S2. Obtain the initial candidate solution population data of the teacher optimizer and the symbolic equation generator, and preprocess the data.
[0067] The data preprocessing in step S2 is used to keep the initial candidate solution populations of the teacher optimizer and the symbol generator consistent, and to evaluate the fitness of the candidate solution population.
[0068] S3. Acquire population landscape analysis characteristic parameters according to the candidate solution population, wherein the characteristic parameters include: distribution characteristics of the current candidate solution population, fitness statistics of the current candidate solution population, and timestamp characteristics of the current optimization process.
[0069] As an optional implementation, the population landscape characteristic analysis parameters in step S3 are obtained by the following steps:
[0070] S31, obtaining the distribution characteristics of the current candidate solution population by calculating the average distance within the candidate solution population, the global optimal individual, and the local optimal individual;
[0071] S32, obtaining the current candidate solution population fitness statistical information by evaluating the average gap between the candidate solution population fitness and the global optimal individual and the local optimal individual fitness, as well as the variance of the current population fitness;
[0072] S33. By recording the time of reaching the optimal solution, calculating the remaining time ratio according to the set maximum allowed iteration time, as well as the proportion of time with continuous good performance and whether the local optimal solution can be updated to the global optimal solution, the timestamp characteristics of the current optimization process are obtained.
[0073] S4. Determine the optimization rules for the current candidate solution population generated by the symbolic equation generator according to the characteristic parameters, and simultaneously and independently optimize the candidate solution population of the teacher optimizer.
[0074] Specifically, in step S4, the candidate solution population optimization of the teacher optimizer is performed in a manner determined by the selected teacher optimizer itself. The current candidate solution population optimization rule generated by the symbolic equation generator is determined based on the corpus determined in step S1 and implemented based on the selected neural network model as the symbolic equation generator.
[0075] S5. Calculate the collaborative reward of the training symbol generator based on the optimized candidate solution population, and co-evolve with the teacher optimizer.
[0076] Specifically, in step S5, the collaborative reward includes: exploration reward and guidance reward:
[0077] 1) The exploration reward is responsible for the symbolic equation generator to independently construct an optimizer based on the fitness ratio of the optimal solution of the current candidate solution population and the optimal solution of the initial population;
[0078] 2) The guided reward is used to measure the gap between the candidate solution population obtained by the current symbolic equation generator and the candidate solution population obtained by the teacher optimizer (the most advanced black-box problem optimizer).
[0079] The collaborative reward is obtained by integrating the exploration reward and the guidance reward.
[0080] S6. Training the selected policy gradient optimization algorithm based on the collaborative reward to finally obtain the optimal symbolic equation generator model.
[0081] In this embodiment, the policy gradient optimization algorithm training selected in step S6 is based on the collaborative reward calculated in step S5, and the policy gradient calculation is performed according to the selected gradient algorithm.
[0082] The method for selecting the optimal symbol generator model is as follows:
[0083] S61. According to the loss value formula:
[0084]
[0085] The expected collaborative reward expressed in the above formula is maximized through the iteration of the back-propagation algorithm. Among them, θ is the selected symbolic equation generator model parameter; is the distribution of the black box problem; f is the distribution from The problem sampled in ; τ is the optimization rule equation trajectory obtained; R is the collaborative reward obtained in step S5.
[0086] S62, according to J(θ * ) The maximum corresponding symbolic equation generator model parameter θ * , which is the optimal symbolic equation generator model.
[0087] The above method is explained in detail below with reference to the accompanying drawings and specific embodiments.
[0088] The black box optimizer based on symbolic regression provided in the embodiment of the present invention is developed using Python language. The schematic diagram of the specific optimizer training process is as follows: Figure 2 shown.
[0089] First, the corpus used to generate symbolic equation optimization rules is determined. The constant reasoning mechanism generates the corresponding subscripts of the exponent ∈ and the mantissa β through two single-layer feedforward layers, and then the constant is calculated based on the value ranges determined by the two: {0, -1} and {-1.0, -0.9, -0.8, ..., 0.8, 0.9, 1.0}, combined with formula (1). The operators in the basic symbol set are set to {+, -, ×} and the corresponding operands.
[0090] Determining a black-box problem distribution As a training data set, f is from the distribution By randomly generating multiple candidate solution individuals x i ∈X,i=1,2,… The fitness of the candidate solution y i Calculated as f(x i ). And preprocess the candidate solution population, that is, set the candidate solution population of the teacher optimizer and the student optimizer to be consistent.
[0091] Generate population landscape feature analysis parameters based on candidate solution population X: obtain the distribution characteristics of the current candidate solution population by calculating the average distance within the candidate solution population, the global optimal individual, and the local optimal individual; obtain the fitness statistics of the current candidate solution population by evaluating the average gap between the fitness of the candidate solution population and the fitness of the global optimal individual and the local optimal individual; and the variance of the current population fitness; obtain the timestamp characteristics of the current optimization process by recording the time to reach the optimal solution, calculating the remaining time ratio according to the set maximum allowed iteration time, as well as the proportion of time with continuous good performance and whether the local optimal solution can be updated to the global optimal solution.
[0092] Assume that the above features are calculated to obtain s i , i=1,2,…,9, a total of 9 features are used as inputs to the symbolic equation generator. Figure 2 As shown, it is assumed that the symbolic equation generator uses a 9×16 feed-forward layer to encode the above features, and it is assumed that a long short-term memory recurrent neural network (LSTM) is used to generate symbolic equations. Based on the provided corpus assumption, the following expression is obtained:
[0093]
[0094] Among them, x i is a candidate solution individual; x r is a randomly selected individual from the candidate solution population; t is the number of iterations of the candidate solution population. Substituting the candidate solution population that the symbolic equation generator is responsible for into formula (3), a new student candidate solution population will be obtained. The teacher optimizer will then optimize the candidate solution population according to its defined method.
[0095] Calculate the collaborative reward R based on the two new populations obtained from the above optimization process synergized , including the exploration reward R explore , guide reward R guided . Where R explore The symbolic equation generator is encouraged to iteratively optimize in the search space from scratch, and the fitness value is obtained by the optimal solution of the current candidate solution population and the optimal solution of the initial population. guided It is used to measure the gap between the candidate solution populations of the student optimizer and the teacher optimizer. synergizedAssume that R explore and R guided Add them together to get. guided The symbolic equation generator converges quickly to performance similar to that of the state-of-the-art teacher optimizer and is optimized according to R explore It is possible to surpass the teacher optimizer performance.
[0096] According to the loss function form determined by formula (2), it is assumed that the proximal policy optimization (PPO) algorithm is used as the policy gradient optimization algorithm of the symbolic equation generator, and back propagation training is used to finally obtain the optimal symbolic equation generator.
[0097] In summary, the method of the present invention can generate specific interpretable optimization rules for different black-box optimization tasks, and has low expert dependence and efficient zero-shot generalization capabilities. The characteristics of the present invention are: based on the landscape characteristics of the candidate solution population, the symbolic equation generator model is used to generate interpretable optimization rules to ensure the generalization ability of different problems. Based on the behavior cloning method, the most advanced black-box problem optimizer is used to guide the generator model for training, and the model itself is encouraged to explore.
[0098] This embodiment also provides a black box optimization system, including:
[0099] A corpus determination module, for determining a corpus for a symbolic equation generator;
[0100] Data initialization module, used to obtain the initial candidate solution population data for the teacher optimizer and symbolic equation generator;
[0101] A parameter generation module, used to obtain characteristic parameters of population landscape analysis according to the initial candidate solution population data;
[0102] A population optimization module, used for determining the current candidate solution population optimization rule generated by the symbolic equation generator according to the characteristic parameters, and synchronously and independently optimizing the candidate solution population of the teacher optimizer;
[0103] A collaborative reward module is used to calculate the collaborative reward of the training symbolic equation generator based on the optimized candidate solution population, and to co-evolve with the teacher optimizer;
[0104] The model training module is used to train the selected policy gradient optimization algorithm according to the collaborative reward, and finally obtain the optimal symbolic equation generator model.
[0105] A black box optimization system of this embodiment can execute a black box optimization method provided by the method embodiment of the present invention, can execute any combination of implementation steps of the method embodiment, and has the corresponding functions and beneficial effects of the method.
[0106] This embodiment also provides a black box optimization device, including:
[0107] at least one processor;
[0108] at least one memory for storing at least one program;
[0109] When the at least one program is executed by the at least one processor, the at least one processor implements the above method.
[0110] A black box optimization device of this embodiment can execute a black box optimization method provided by the method embodiment of the present invention, can execute any combination of implementation steps of the method embodiment, and has the corresponding functions and beneficial effects of the method.
[0111] The present application also discloses a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of a computer device can read the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes Figure 1 The method shown.
[0112] This embodiment also provides a storage medium, which stores instructions or programs that can execute a black box optimization method provided by an embodiment of the method of the present invention. When the instructions or programs are run, any combination of implementation steps of the method embodiment can be executed, and the corresponding functions and beneficial effects of the method can be obtained.
[0113] In some selectable embodiments, the function / operation mentioned in the block diagram may not occur in the order mentioned in the operation diagram. For example, depending on the function / operation involved, the two boxes shown in succession can actually be executed substantially simultaneously or the boxes can sometimes be executed in reverse order. In addition, the embodiment presented and described in the flow chart of the present invention is provided by way of example, for the purpose of providing a more comprehensive understanding of technology. The disclosed method is not limited to the operation and logic flow presented herein. Selectable embodiments are expected, wherein the order of various operations is changed and the sub-operation of a part for which is described as a larger operation is performed independently.
[0114] In addition, although the present invention is described in the context of functional modules, it should be understood that, unless otherwise specified, one or more of the functions and / or features described may be integrated into a single physical device and / or software module, or one or more functions and / or features may be implemented in separate physical devices or software modules. It is also understood that a detailed discussion of the actual implementation of each module is unnecessary for understanding the present invention. More specifically, in view of the properties, functions, and internal relationships of the various functional modules in the device disclosed herein, the actual implementation of the module will be understood within the conventional skills of the engineer. Therefore, those skilled in the art can implement the present invention set forth in the claims without excessive experimentation using ordinary techniques. It is also understood that the specific concepts disclosed are merely illustrative and are not intended to limit the scope of the present invention, which is determined by the full scope of the appended claims and their equivalents.
[0115] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program codes.
[0116] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in conjunction with such instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in conjunction with such instruction execution systems, devices or apparatuses.
[0117] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a computer memory.
[0118] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0119] In the above description of this specification, the description with reference to the terms "one embodiment / example", "another embodiment / example" or "certain embodiments / examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0120] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the claims and their equivalents.
[0121] The above is a specific description of the preferred implementation of the present invention, but the present invention is not limited to the above embodiments. Those skilled in the art may make various equivalent modifications or substitutions without violating the spirit of the present invention. These equivalent modifications or substitutions are all included in the scope defined by the claims of this application.
Claims
1. A black box optimization method, characterized in that: The following steps are involved: Identify the corpus for the symbolic equation generator; Get the initial candidate solution population data for the teacher optimizer and symbolic equation generator; Acquire characteristic parameters of population landscape analysis according to the initial candidate solution population data; Determine an optimization rule for a current candidate solution population generated by a symbolic equation generator according to the characteristic parameters, and simultaneously and independently optimize a candidate solution population of a teacher optimizer; Calculate the collaborative reward for training the symbolic equation generator based on the optimized candidate solution population, and co-evolve with the teacher optimizer; According to the collaborative reward, the optimal symbolic equation generator model is finally obtained based on the selected policy gradient optimization algorithm training.
2. A black box optimization method according to claim 1, characterized in that: The corpus includes operators and operands covered in the generated equations, as well as a constant inference mechanism for determining constants in expressions; The operands include: candidate solutions and the best and worst solutions therein, the current best solution of a candidate solution individual, the difference vector between consecutive steps of the candidate solution, random individuals in the current candidate solution population, and a constant c; The constant inference mechanism is used to generate the constant c and fine-tune the optimization rule formula based on the iterative characteristics.
3. A black box optimization method according to claim 2, characterized in that: The constant c is: c=β×10 ∈ Among them, β is the mantissa; ∈ is the exponent.
4. A black box optimization method according to claim 1, characterized in that: The obtaining of initial candidate solution population data of the teacher optimizer and the symbolic equation generator includes: The initial candidate solution population data is preprocessed to keep the initial candidate solution populations of the teacher optimizer and the symbolic equation generator consistent, and the fitness of the candidate solution population is evaluated.
5. A black box optimization method according to claim 1, characterized in that: The characteristic parameters include: distribution characteristics of the current candidate solution population, fitness statistics of the current candidate solution population, and timestamp characteristics of the current optimization process; The step of obtaining the population landscape analysis characteristic parameters according to the initial candidate solution population data includes: By calculating the average distances within the candidate solution population, the global optimal individual, and the local optimal individual, the distribution characteristics of the current candidate solution population are obtained; By evaluating the average gap between the fitness of the candidate solution population and the fitness of the global optimal individual and the local optimal individual, as well as the variance of the current population fitness, the current candidate solution population fitness statistics are obtained; By recording the time it takes to reach the optimal solution, calculating the remaining time ratio based on the set maximum allowed iteration time, as well as the ratio of time with continuous good performance and whether the local optimal solution can be updated to the global optimal solution, the timestamp characteristics of the current optimization process are obtained.
6. A black box optimization method according to claim 1, characterized in that: The collaborative rewards include: exploration rewards and guidance rewards; The exploration reward is responsible for the symbolic equation generator to independently construct an optimizer based on the fitness ratio of the optimal solution of the current candidate solution population and the optimal solution at the initial population; The guided reward is used to measure the gap between the candidate solution population obtained by the current symbolic equation generator and the candidate solution population obtained by the teacher optimizer.
7. A black box optimization method according to claim 1, characterized in that: The method of finally obtaining the optimal symbolic equation generator model based on the selected policy gradient optimization algorithm training according to the collaborative reward includes: Calculate the loss value, the formula is as follows: Among them, θ is the selected symbolic equation generator model parameter; is the distribution of the black box problem; f is the distribution from The problem obtained by sampling in ; τ is the trajectory of the optimization rule equation obtained; R is the collaborative reward; represents the expectation of cumulative synergy rewards; Get the maximum loss value J(θ * ) is taken as the optimal symbolic equation generator model.
8. A black box optimization system, characterized in that: include: A corpus determination module, for determining a corpus for a symbolic equation generator; Data initialization module, used to obtain the initial candidate solution population data for the teacher optimizer and symbolic equation generator; A parameter generation module, used for obtaining characteristic parameters of population landscape analysis according to the initial candidate solution population data; A population optimization module, used for determining the current candidate solution population optimization rule generated by the symbolic equation generator according to the characteristic parameters, and synchronously and independently optimizing the candidate solution population of the teacher optimizer; A collaborative reward module is used to calculate the collaborative reward of the training symbolic equation generator based on the optimized candidate solution population, and to co-evolve with the teacher optimizer; The model training module is used to train the selected policy gradient optimization algorithm according to the collaborative reward, and finally obtain the optimal symbolic equation generator model.
9. A black box optimization device, characterized in that: include: at least one processor; at least one memory for storing at least one program; When the at least one program is executed by the at least one processor, the at least one processor implements the method according to any one of claims 1 to 7.
10. A computer-readable storage medium storing a program executable by a processor, characterized in that: The processor-executable program is used to perform the method according to any one of claims 1 to 7 when executed by the processor.
Citation Information
Cited By
Model optimization method and device for black box stochastic optimization, terminal and medium
CN119647148A
Model optimization methods, devices, terminals, and media for black-box stochastic optimization
CN119647148B
