Information processing apparatus, information processing method, and storage medium
By using the weight error function set by element characteristics in the machine learning molecular dynamics method, the problem of element characteristics not being considered during model learning is solved, the accuracy of atomic motion analysis is improved, and the simulation success rate is improved.
Patent Information
- Application Number
- CN202311086386.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-03-17
- Filing Date
- 2023-08-28
- Publication Date
- 2024-09-20
AI Technical Summary
In the machine learning molecular dynamics method, existing models do not fully consider the characteristics of elements when learning, resulting in unreasonable simulation results, low accuracy and large prediction errors, which affect the simulation success rate.
A weight error function set according to element characteristics (such as quality) is used to adjust the weight to make the error smaller, thereby improving the learning accuracy of the model.
By using the error function of feature weights, the learning accuracy of models such as atomic motion analysis is improved, and the accuracy and success rate of simulations are enhanced.
Smart Images

Figure CN118673973A
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to an information processing device, an information processing method, and a storage medium. Background Art
[0002] As a molecular dynamics method for simulating the physical motion of atoms, first principle molecular dynamics methods based on density functional theory (DFT) etc. are known. In addition, as a method that can reduce the computational cost compared to the first principle molecular dynamics method, a machine learning molecular dynamics method using a model obtained by machine learning has been proposed.
[0003] In the machine learning molecular dynamics method, for example, a model is constructed that outputs the force acting on each atom and the overall energy based on the input atomic configuration (the position of each atom), and the model is learned in such a way that the error between the output value of the model and the correct answer data becomes small. The error can be, for example, the mean square of the prediction error for each atom. Summary of the invention
[0004] An object of the present invention is to provide an information processing device, an information processing method, and a storage medium capable of further improving the learning accuracy of a model used in analysis of atomic motion, etc.
[0005] An information processing device of an embodiment includes a processing unit. The processing unit sets an error function used for learning a machine learning model, the machine learning model being a model that inputs positions of a plurality of atoms of any of a plurality of elements included in an analysis object and outputs a physical quantity of the analysis object, the error function including one or more terms based on a plurality of weights corresponding to features of the plurality of elements. The processing unit learns the machine learning model using the error function. BRIEF DESCRIPTION OF THE DRAWINGS
[0006] Figure 1 This is a block diagram of the information processing device according to the first embodiment.
[0007] Figure 2 This is a diagram showing an example of the features of each element stored in the feature storage unit.
[0008] Figure 3 This is a diagram showing an example of learning data.
[0009] Figure 4 This is a diagram showing an example of the relationship between the input and output of the model.
[0010] Figure 5 This is a diagram showing how the error function is obtained for each sample.
[0011] Figure 6This is a diagram for explaining the function of obtaining the error function for all samples.
[0012] Figure 7 This is a flowchart of the learning process in the first embodiment.
[0013] Figure 8 This is a block diagram of an information processing device according to the second embodiment.
[0014] Fig. 9 This is a diagram showing an example of the calculated atomic number of each element.
[0015] Fig.10 This is a flowchart of the learning process in the second embodiment.
[0016] Fig.11 This is a diagram showing how the error function is obtained for each sample in Modification 1.
[0017] Fig.12 This is a flowchart of the error function setting process according to Modification Example 1.
[0018] Fig.13 This is a diagram for explaining the function of obtaining the error function in Modification Example 2.
[0019] Fig.14 This is a diagram showing how the error function is obtained for each sample in Modification Example 2.
[0020] Fig.15 This is a flowchart of the learning process in Modification Example 2.
[0021] Fig.16 This is a block diagram of an information processing device according to a third embodiment.
[0022] Fig.17 This is a block diagram of an information processing device according to a fourth embodiment.
[0023] Fig.18 This is a diagram showing an example of the weight of each specified element.
[0024] Fig.19 This is a hardware configuration diagram of the information processing device according to the first to fourth embodiments.
[0025] Description of symbols
[0026] 100, 100-2, 100-3, 100-4 information processing device; 101, 101-2, 101-4 weight setting unit; 102 function setting unit; 103-2 aggregation unit; 104-4 acceptance unit; 110 learning unit; 111 updating unit; 112 determination unit; 131, 131-3 output control unit; 132-3 correction unit; 151 feature storage unit; 152 weight storage unit; 153 learning data storage unit; 154 parameter storage unit. DETAILED DESCRIPTION
[0027] Hereinafter, preferred embodiments of the information processing device according to the present invention will be described in detail with reference to the accompanying drawings.
[0028] In the previous machine learning molecular dynamics method, the learned model is used to calculate the forces acting on each atom, and based on the calculated forces, the movement of the atoms is simulated, which sometimes results in physically unreasonable results. As one of the reasons, it is believed that the characteristics of the elements (such as mass) are not taken into account when learning the model. For example, if the force error is set to be the same, the lighter the atom, the greater the acceleration error will be, which may affect the accuracy of the simulation. As a result, the following phenomenon may occur: the simulation is successful when the accuracy of the learned model is low and the prediction error is large, and the simulation fails when the prediction error is small.
[0029] In the following embodiments, as the error function used in learning the model, an error function using a weight (load value) set according to the characteristics (e.g., mass) of the element is set. For example, when mass is used as a characteristic, the model is learned in such a way that the error of the output value of the error function set to make the weight larger for lighter atoms becomes smaller. By using the model learned in this way, the simulation is more likely to succeed.
[0030] The following embodiments can be applied to, for example, learning of a model used in a machine learning molecular dynamics method. In addition, the machine learning molecular dynamics method can be applied to, for example, a process of searching for battery (including secondary battery) materials and a process of searching for catalyst materials.
[0031] (First embodiment)
[0032] Figure 1 1 is a block diagram showing an example of the configuration of the information processing device 100 according to the first embodiment. Figure 1 As shown, the information processing device 100 includes a feature storage unit 151, a weight storage unit 152, a learning data storage unit 153, a parameter storage unit 154, a weight setting unit 101, a function setting unit 102, a learning unit 110 and an output control unit 131.
[0033] The feature storage unit 151 stores the feature of each element. Figure 2is a diagram showing an example of the features of each element stored in the feature storage unit 151. Figure 2 In the table, the atomic number, radius, volume, mass and boiling point of five elements (Li: lithium, Ca: calcium, Sr: strontium, Nd: neodymium, La: lanthanum) are recorded as characteristics. Figure 2 The features are just one example and are not limited to these. For example, the features may also be information related to mass or atomic number.
[0034] return Figure 1 The weight storage unit 152 stores the weights used for setting the error function. The weight storage unit 152 stores the values of the weights set by the weight setting unit 101, for example, element by element.
[0035] The learning data storage unit 153 stores learning data used for learning a machine learning model (hereinafter referred to as a model). The model is a model that inputs the positions of multiple atoms included in the analysis object and information indicating which of multiple elements the multiple atoms are, and outputs the physical quantity of the analysis object. The information indicating which of multiple elements it is is, for example, the element symbol.
[0036] The analysis object is, for example, a crystal or a molecule (including a polymer). The physical quantity is, for example, at least one of the force acting on each atom included in the analysis object and the energy of the entire analysis object. The force acting on each atom can be output independently of the energy, or a value obtained by differentiating the energy at the position of the atom can be output.
[0037] The learning data includes input data to such a model and correct answer data (also referred to as teacher data) corresponding to the correct answer of the output of the model.
[0038] Figure 3 This is a diagram showing an example of learning data. Figure 3 An example of learning data represented in the xsf file format is shown. Figure 3 In the example, an xsf file stores learning data (a sample) about a crystal that is an analysis target.
[0039] The first row represents the energy of the unit cell of the crystal (total energy). Figure 3 In the example, the energy is expressed as "-282702.98699621105eV". The third to fifth lines indicate the size of the unit cell in the x, y, and z directions. Figure 3 In the example, it is shown that the unit cell of the crystal is In the y direction In the z direction From this, the period at which the unit cells are arranged in the directions of the axes of the crystal can be known.
[0040] According to the first column "192" in the next row of "PRIMCOORD", the number of atoms contained in the unit cell is 192. The information of the 192 atoms is recorded in the row below. For example, the atomic information includes the element symbol, x coordinate, y coordinate, z coordinate, x component of force, y component of force, and z component of force in order. For example, the element symbol and the xyz coordinates of each atom are equivalent to the input data, and the xyz component of force and the energy of the first row are equivalent to the correct answer data.
[0041] For example, the atom at the beginning has the element Li, the xyz coordinates are (1.1674292981, 11.1419581078, 11.8087410073), and the force acting on the atom is (-0.0273284000, 0.0104727700, 0.0224368600).
[0042] Figure 3 This is an example of setting the analysis object to a crystal, but as mentioned above, the analysis object can also be a molecule (polymer). When the analysis object is a molecule, as in the case of a crystal, the energy of the entire molecule, the coordinates of each atom constituting the molecule, and the forces acting on each atom are stored as learning data.
[0043] In the learning data storage unit 153, Figure 3 The learning data (xsf file) shown in the figure is stored as one sample, and a plurality of samples are stored. One sample includes a plurality of atoms, and the set of coordinates of all atoms in one sample is hereinafter referred to as an atomic configuration.
[0044] return Figure 1 The parameter storage unit 154 stores the parameters of the model (model parameters). The model may be a model of any structure, and for example, the following model can be used.
[0045] ■Behler-Parrinello neural network model
[0046] ■Graph Neural Network Model
[0047] ■Gaussian process regression model
[0048] When the model is a neural network model, the parameter storage unit 154 stores, for example, weights and biases as model parameters.
[0049] Figure 4 is a diagram showing an example of the relationship between the input and output of a model when a neural network model is used. Figure 4As shown in Figure 1, the model takes the atomic configuration as input and outputs the energy and force of each atom as output. The neural network is defined by the model parameters. If the value of the model parameters is updated, the output value will change even if the input value is the same.
[0050] In addition, each storage unit (feature storage unit 151, weight storage unit 152, learning data storage unit 153, parameter storage unit 154) can be composed of any commonly used storage media such as flash memory, memory card, RAM (Random Access Memory), HDD (Hard Disk Drive) and optical disk.
[0051] Each storage unit may be implemented as a physically different storage medium or as a different storage area of the physically same storage medium. Furthermore, each storage unit may be implemented by a plurality of physically different storage media.
[0052] return Figure 1 , the weight setting unit 101 sets the weight used in the setting of the error function. In the present embodiment, the weight setting unit 101 sets a plurality of weights so that they become different values corresponding to the characteristics of each element. For example, the weight setting unit 101 sets the reciprocal of the value of the characteristic as the weight. When mass or atomic number is used as a characteristic, the reciprocal of the value of the characteristic is set as the weight, which is equivalent to making the weight larger for lighter atoms.
[0053] exist Figure 2 In the example of , the weight setting unit 101 calculates that the weight of Li is 1 / 6.94=0.144 and the weight of La is 1 / 138.91=0.00720. In this example, the weight of Li is about 20 times the weight of La.
[0054] The function setting unit 102 sets an error function used when learning a model. Setting the error function means defining an error function used for learning by the learning unit 110 described later. The learning unit 110 also performs a process of calculating an error as an output value of the error function using the set error function.
[0055] For example, the function setting unit 102 sets the error function so that it includes multiple terms obtained by multiplying the multiple weights of each element set by the weight setting unit 101 by the error of the physical quantity of each element in the multiple elements. The function setting unit 102 uses the selected N (N is an integer greater than 2) samples of learning data to set the error function. The function setting unit 102 can, for example, select all of the learning data stored in the learning data storage unit 153, or select a part of it. The following formula (1) represents an example of the error function set by the function setting unit 102.
[0056]
[0057] The energy of sample n calculated by the model
[0058] The energy of sample n stored in the learning data
[0059] "(n)" in formula (1) indicates a value corresponding to the nth (n is an integer satisfying 1≤n≤N) sample (hereinafter also referred to as sample n) among the N samples of learning data. k (n) is the error for element k (hereinafter referred to as element-by-element error), and is expressed by the following equation (2).
[0060]
[0061] The i-th element included in sample n is calculated by the model.
[0062] The force of atoms
[0063] The i-th element stored in the learning data is included in sample n.
[0064] The force of atoms
[0065] σ in formula (2) k is a set of identification information for identifying one or more atoms of element k. The identification information for identifying atoms is, for example, a numerical value with a serial number starting from 1. Figure 3 In the example of learning data, for example, for 192 atoms, sequential numerical values from 1 to 192 are associated as identification information starting from the top row.
[0066] k is identification information for identifying multiple elements. The identification information of an element is, for example, a numerical value starting from 1, but is not limited to a numerical value, and may also be a symbol (such as an element symbol). In the following, k is assumed to be an integer satisfying 1≤k≤K. K is the number of types of elements included in the analysis object.
[0067] λ in formula (1) is a constant. For example, λ is specified by the user. x represents the input data to the model. θ represents the model parameter. In addition, "DFT" means that the energy of the learning data (equivalent to the correct answer data) is obtained by density functional theory (DFT), but the correct answer data can also be obtained by any method other than DFT.
[0068] w k is the weight of element k. Weight w k For example, it can be calculated by the following formula (3). kis the mass of the atom of element k. In addition, formula (3) is the weight w in formula (1) k The formula is calculated based on the inverse of mass.
[0069]
[0070] Formula (2) is equivalent to calculating the error (first error) of the force (an example of a physical quantity) of each atom among a plurality of atoms, and the element-specific error e corresponding to the sum of each element. k (n) (Second error) In addition, equation (1) is equivalent to including the element-by-element error e k (n) Multiply each element by its weight w k The error function of multiple (K) items is obtained.
[0071] The function setting unit 102 may set the error function for all samples based on the error function for each sample. For example, the function setting unit 102 obtains the sum of the error functions for each sample to set the error function L for all samples. The error function L is represented by the following equation (4), for example.
[0072] L=Σ m∈Ω l (m) …(4)
[0073] Ω is the set of M samples that are the objects of the error function setting.
[0074] The learning unit 110 learns the model using the set error function. The learning unit 110 repeatedly performs the learning of the model using a plurality of learning data a plurality of times until it is determined that the learning is terminated. The learning unit 110 includes an updating unit 111 and a determining unit 112 .
[0075] The updating unit 111 uses the learning data to calculate the output value of the error function, and updates (corrects) the model parameters based on the calculation result. For example, the updating unit 111 updates the model parameters in a manner that reduces the output value of the error function. The updating method of the model parameters can be any method, for example, the steepest descent method, Adam, and Kalman filter methods can be used. The updating unit 111 stores the updated model parameters in the parameter storage unit 154.
[0076] The determination unit 112 determines whether to end the learning. For example, the determination unit 112 confirms the output value of the error function calculated by the updating unit 111, and determines that the learning is ended if the change in the output value of the error function is smaller than the threshold value. The method for determining the end of learning is not limited to this, and any method may be used. For example, the determination unit 112 may also determine that the learning is ended when the number of updates of the model parameters is greater than the number of learning times specified in advance.
[0077] The output control unit 131 controls output of various information used in the information processing device 100. For example, the output control unit 131 outputs model parameters of the learned model to an external device that performs processing using the model (for example, analysis of an analysis target based on machine learning molecular dynamics).
[0078] At least a part of each of the above-mentioned parts (weight setting part 101, function setting part 102, learning part 110 and output control part 131) can be implemented by a processing part. Each of the above-mentioned parts can be implemented, for example, by one or more processors. For example, each of the above-mentioned parts can be implemented by making a processor such as a CPU (Central Processing Unit) and a GPU (Graphics Processing Unit) execute a program, that is, by software. Each of the above-mentioned parts can also be implemented by a dedicated processor such as an IC (Integrated Circuit), that is, by hardware. Each of the above-mentioned parts can be implemented by using software and hardware in combination. When using multiple processors, each processor can implement one of the parts, or can implement two or more of the parts.
[0079] The details of the processing performed by the function setting unit 102 will be described further.
[0080] Figure 5 is the error function l for each sample shown in formula (1) obtained by using the weight of each element and the element-by-element difference error (n) The weight w k The weight setting unit 101 sets the error e for each element. k (n) For example, it is obtained by the above formula (2). The function setting unit 102 sets the error function l for each sample. (n) , so that it contains the weight w k and the element-wise difference error e k (n) In formula (1), the error function of each sample is (n) It includes the energy error and the force error, but it is not necessary to include the energy error in the first term.
[0081] Figure 6 This is a diagram for explaining a function of obtaining an error function L for all samples using an error function for each sample.
[0082] In process 601, the function setting unit 102 selects N samples used in setting the error function. As described above, the function setting unit 102 may select all samples stored in the learning data storage unit 153 or may select a part of all samples.
[0083] In process 602, the function setting unit 102 uses the selected N samples n to set the error function for each sample. This process is similar to Figure 5 The treatments shown are comparable.
[0084] In process 603, the function setting unit 102 obtains the sum of the error functions for each sample according to the above-mentioned equation (4), for example, to thereby set the error function L for all samples.
[0085] In the case of repeated learning, repeatedly execute Figure 6 The processes 601 to 603 shown in FIG. 6A and 6B are shown in FIG. 6B . If the N samples selected in process 601 do not change, the set error function does not change. In this way, even if the model parameters are updated during repeated learning, the definition of the error function sometimes does not need to be changed. In this case, the function setting unit 102 may also be configured to set the error function only in the first iteration.
[0086] Next, the processing performed by the updating unit 111 will be described in further detail.
[0087] The updating unit 111 calculates output values for M samples m (1≤m≤M) (M is an integer greater than or equal to 1) specified as samples used for learning, using an error function for each sample. The M samples can be arbitrarily specified, for example, as follows.
[0088] ■ All the learning data stored in the learning data storage unit 153 are designated as samples.
[0089] ■Specify different M samples in each repeated learning. For example, specify a specified number of samples from the beginning in the order in which the samples are arranged. Alternatively, specify samples randomly in each repeated learning. In this case, it is possible to specify a partial set of all learning data that contains different M samples in each repeated learning.
[0090] The updating unit 111 calculates an error, for example, for each of the M samples m, which is the difference between the energy and force acting on the atom outputted from the model as a predicted value and the energy and force acting on the atom stored as correct answer data in the sample. The updating unit 111 inputs the calculated error, for example, into equation (1), and calculates the output value of the error function for each sample m.
[0091] In addition, the updating unit 111 calculates the sum of the output values of the error function for M samples, that is, the output value of the error function L, according to equation (4). Furthermore, the updating unit 111 updates the model parameters so that the value of L becomes smaller according to algorithms such as the steepest descent method, Adam, and Kalman filter.
[0092] Next, the model learning process performed by the information processing device 100 according to the first embodiment will be described. Figure 7 This is a flowchart showing an example of the learning process in the first embodiment.
[0093] The weight setting unit 101 reads out the feature of the element from the feature storage unit 151 (step S101). Figure 2 The weight setting unit 101 reads N samples of the learning data from the learning data storage unit 153 (step S102). The weight setting unit 101 sets, for example, the inverse of the quality as the weight and stores it in the weight storage unit 152 (step S103).
[0094] The learning unit 110 (updating unit 111 ) reads the model parameters stored in the parameter storage unit 154 (step S104 ).
[0095] The function setting unit 102 sets an error function using the weights set by the weight setting unit 101 (step S105 ).
[0096] The updating unit 111 calculates the output value of the error function L using the learning data read out in step S102 , the model parameters read out in step S104 , and the error function set in step S105 (step S106 ).
[0097] The determination unit 112 determines whether to end learning (step S107). For example, the determination unit 112 determines to end learning when the difference between the output value calculated last time and the output value calculated this time is less than a threshold value or when the number of model parameter updates exceeds a specified number of learning times.
[0098] When it is determined that the learning is not to be terminated (step S107: No), the updating unit 111 updates the model parameters so that the output value of the error function calculated in step S106 becomes smaller, and stores the updated value in the parameter storage unit 154 (step S108). In addition, the updating unit 111 increases the number of updates of the model parameters by 1. In addition, it is assumed that the number of updates of the model parameters is finally initialized to 0.
[0099] When it is determined that the learning is to be terminated (step S107 : Yes), the learning process is terminated.
[0100] As described above, in the first embodiment, the model is learned using an error function using weights set according to the characteristics of the elements. This can further improve the learning accuracy of the model used in the analysis of atomic motions and the like.
[0101] (Second embodiment)
[0102] The information processing device according to the second embodiment totals the number of atoms of each of a plurality of elements and sets a weight using the number of atoms or the ratio of the number of atoms to the total number of atoms.
[0103] Figure 8 1 is a block diagram showing an example of the configuration of the information processing device 100-2 according to the second embodiment. Figure 8 As shown, the information processing device 100-2 includes a feature storage unit 151, a weight storage unit 152, a learning data storage unit 153, a parameter storage unit 154, a weight setting unit 101-2, a function setting unit 102, a totalizing unit 103-2, a learning unit 110 and an output control unit 131.
[0104] The second embodiment is different from the first embodiment in that a totalizing unit 103-2 is added and the function of the weight setting unit 101-2 is different. The other configurations and functions are the same as those of the block diagram of the information processing device 100 of the first embodiment. Figure 1 Since they are the same, they are marked with the same reference numerals and the description here is omitted.
[0105] The totaling unit 103-2 totals the number of atoms of each of the multiple elements as the number of atoms of the element included in the multiple learning data based on the multiple learning data. For example, the totaling unit 103-2 selects one or more samples from the samples read as learning data, counts the number of atoms included in the selected samples for each element, and obtains the number of atoms of each element. Fig. 9 This is a diagram showing an example of the calculated atomic number of each element.
[0106] return Figure 8 The weight setting unit 101-2 sets the weight of each element based on the obtained number of atoms or the ratio of the number of atoms to the total number of atoms of all elements included in the plurality of learning data. For example, the weight setting unit 101-2 uses the mass m of the element read from the feature storage unit 151 k and the number of atoms of the element obtained by the summing unit 103-2, according to w k =1 / (m k × atomic number) to find the weight w of element k k The weight setting unit 101-2 may also use a ratio instead of the number of atoms. k = 1 / number of atoms to find the weight w k This can be interpreted as an example of using the number of atoms of each element contained in the analysis object as an example of the characteristic of the element. In addition, in these calculation methods, the weight of an element with more atoms is smaller. The calculation method using the weight of the number of atoms or ratio is not limited to this. For example, a method in which the weight of an element with more atoms is larger can also be used.
[0107] Next, use Fig.10 The learning process of the information processing device 100 - 2 according to the second embodiment will be described. Fig.10 This is a flowchart showing an example of the learning process in the second embodiment.
[0108] Steps S201 and S202 are the same processing as steps S101 and S102 in the information processing device 100 of the first embodiment, and therefore description thereof will be omitted.
[0109] The totaling unit 103-2 uses all or part of the read learning data to total the number of atoms of each element included in the learning data (step S203). The weight setting unit 101-2 uses the characteristics of the element (for example, mass m k ) and the number of atoms of each element, find the weight w of element k k =1 / (m k × number of atoms), and is stored in the weight storage unit 152 (step S204).
[0110] Steps S205 to S209 are the same processing as steps S104 to S108 in the information processing device 100 of the first embodiment, and therefore description thereof will be omitted.
[0111] In this way, the information processing device of the second embodiment learns the model using an error function that uses weights that take into account the number of atoms (or the ratio of the number of atoms) for each element included in the learning data. This can further improve the learning accuracy of the model.
[0112] Next, a modification example applicable to the above-mentioned embodiment and the following embodiments will be described. In the following, a case where the modification example is applied to the first embodiment will be described as an example, but the modification example can also be applied to other embodiments in the same manner.
[0113] In the above-mentioned embodiment, the error function is set in a manner including a term obtained by multiplying the weight of each element by the error of the physical quantity. In a modified example, the function setting unit 102 selects one or more elements from a plurality of elements with a probability corresponding to the size of the weight, and sets an error function including the error of the physical quantity of the selected element. Two modified examples with different selection methods are described below.
[0114] (Variant 1)
[0115] Fig.11 is the error function l obtained for each sample in Modification 1 (n)The function setting unit 102 of the modification example 1 selects an element for each of the samples of the plurality of learning data according to the probability corresponding to the size of the weight of each element. For example, the function setting unit 102 selects an element according to the probability p shown in the following formula (5): k , select element k. Hereinafter, the selected element is represented as element s. s is any one of 1 to K.
[0116]
[0117] When the element s is selected, the function setting unit 102 uses only the error of the force for the element s (element-by-element error e k (s) ), set the error function for each sample. For example, the function setting unit 102 sets the error (element-by-element error e) including the force for the selected element s. k (s) ) but not the error function for the unselected elements.
[0118] The following formulas (6) and (7) represent examples of error functions set in this modification. Formula (6) is an example of an error function when one element s is selected. Formula (7) is an example of an error function when two elements s and s' are selected. The number of selected elements is not limited to 1 or 2, and may be 3 or more.
[0119]
[0120]
[0121] Fig.12 This is a flowchart showing an example of the error function setting process according to Modification Example 1. Fig.12 The setting process is as follows: Figure 7 In addition, the overall flow of the learning process is similar to Figure 7 It's the same.
[0122] In Modification 1, the function setting unit 102 selects an element s (step S301) based on the weight set by the weight setting unit 101. The function setting unit 102 sets an error function including a term of the selected element s, such as in equation (6) or equation (7) (step S302).
[0123] As shown in formula (6) and formula (7), according to modification example 1, an error function containing a term of only a part of the elements selected according to the weight can be used. As a result, the error function becomes a simpler formula, which can reduce the calculation load. If a large number of samples of learning data are used, a large number of different elements may be selected according to the weight. Therefore, for example, the selected elements will not be biased, and the same learning result as the above-mentioned embodiment can be obtained.
[0124] (Variant 2)
[0125] In the second modification, in each of the multiple learnings that are repeatedly performed, common elements are selected for samples of all learning data. Fig.13 FIG. 1 is a diagram for explaining the function of obtaining the error function L in the second modification. Figure 6 In comparison, in variation 2, a process 1301 for selecting an element is added.
[0126] In the process 1301, the function setting unit 102 of the second modification selects elements according to the probability shown in the formula (5) in the same manner as the first modification. Fig.14 As shown, the function setting unit 102 uses the selected element s to obtain the error function for each sample. Fig.14 and Fig.13 The error function in the second modification is equivalent to the error function in the first modification, and for example, the error function in the second modification can be expressed as (6) or (7).
[0127] In Modification 1, different elements are selected for each sample, whereas in Modification 2, the same element is selected for all samples. That is, the function setting unit 102 of Modification 2 selects one or more elements with probabilities corresponding to the magnitudes of the plurality of weights for each of the plurality of learnings.
[0128] Fig.15 This is a flowchart showing an example of the learning process in Modification 2. Steps S401 to S404 are the same processes as Steps S101 to S104 in the information processing device 100 in the first embodiment, and therefore description thereof will be omitted.
[0129] In the second modification, the function setting unit 102 selects the element s with a probability corresponding to the weight of each element (step S405). The function setting unit 102 uses only the error of the force for the selected element s (element-by-element error e k (s) ), set the error function for each sample (step S406).
[0130] Steps S407 to S409 are the same processing as steps S106 to S108 in the information processing device 100 of the first embodiment, and therefore description thereof will be omitted.
[0131] Modification 2 is also similar to Modification 1, and an error function containing only a portion of the elements selected according to the weight can be used. As a result, the error function becomes a simpler formula, which can reduce the computational load. In Modification 2, the same element is selected for all samples contained in the learning data used in one learning iteration, but if the learning is repeated multiple times, a large number of different elements can be selected according to the weight. Therefore, for example, the selected elements will not be biased, and the same learning results as the above-mentioned embodiment can be obtained.
[0132] (Third embodiment)
[0133] The information processing device according to the third embodiment has a function of correcting a weight value. Fig.16 1 is a block diagram showing an example of the configuration of the information processing device 100-3 according to the third embodiment. Fig.16 As shown, the information processing device 100-3 includes a feature storage unit 151, a weight storage unit 152, a learning data storage unit 153, a parameter storage unit 154, a weight setting unit 101, a function setting unit 102, a learning unit 110, an output control unit 131-3 and a correction unit 132-3.
[0134] The third embodiment is different from the first embodiment in that the function of the output control unit 131-3 is different and a correction unit 132-3 is added. The other configurations and functions are the same as those of the block diagram of the information processing device 100 of the first embodiment. Figure 1 Since they are the same, they are marked with the same reference numerals and the description here is omitted.
[0135] The output control unit 131-3 is different from the output control unit 131 of the first embodiment in that it also has a function of outputting output information including an output value of an error function. For example, the output control unit 131-3 controls a display device such as a display connected to the information processing device 100-3 to display the output information.
[0136] The correction unit 132-3 performs correction processing to correct at least part of the plurality of weights to a specified value. For example, the correction unit 132-3 corrects the weights designated for correction among the plurality of weights so that the weights become the values specified by the user based on the output information displayed on the display device.
[0137] Furthermore, the function setting unit 102 sets an error function including one or more terms based on the plurality of weights after the correction process is performed.
[0138] exist Figure 7In the example of the learning process shown, the correction process is performed after the output value of the error function is calculated in step S106. For example, after step S106, the output control unit 131-3 displays the output value. The correction unit 132-3 corrects the weight so that it becomes a value specified according to the displayed output value. After the correction, for example, the process returns to step S105, and the function setting unit 102 performs the setting of the error function using the corrected weight.
[0139] As described above, in the third embodiment, the value of the weight can be modified by the user etc. This makes it possible to search for a more appropriate value of the weight, for example.
[0140] (Fourth embodiment)
[0141] The information processing device according to the fourth embodiment sets the weight used in setting the error function based on the weight specified by the user or the like.
[0142] Fig.17 1 is a block diagram showing an example of the configuration of the information processing device 100-4 according to the fourth embodiment. Fig.17 As shown, the information processing device 100 - 4 includes a weight storage unit 152 , a learning data storage unit 153 , a parameter storage unit 154 , a weight setting unit 101 - 4 , a function setting unit 102 , a receiving unit 104 - 4 , a learning unit 110 , and an output control unit 131 .
[0143] The fourth embodiment is different from the first embodiment in that the feature storage unit 151 is deleted, the receiving unit 104-4 is added, and the function of the weight setting unit 101-4 is different. The other configurations and functions are the same as those of the block diagram of the information processing device 100 of the first embodiment. Figure 1 Since they are the same, they are marked with the same reference numerals and the description here is omitted.
[0144] The receiving unit 104-4 receives a plurality of weights designated for each of a plurality of elements. For example, the receiving unit 104-4 receives input of a plurality of weights for each of a plurality of elements designated by a user or the like.
[0145] The weight setting unit 101-4 sets the received weight as the weight used when setting the error function by the function setting unit 102. For example, if the value of the weight is specified by the user so that it becomes a different value according to the characteristics of each element, the same function as the above-mentioned embodiment can be realized by using the error function using the specified weight. For example, the specified weight can be a value that is greater than a threshold value (for example, 90%) in correlation with the inverse of the mass of the element. Fig.18 This is a diagram showing an example of the weight of each specified element.
[0146] The weight setting unit 101 - 4 of the present embodiment does not need to calculate and set weights based on features stored in the feature storage unit 151 as in the first embodiment. Therefore, in the present embodiment, the feature storage unit 151 does not need to be provided.
[0147] As described above, according to the first to fourth embodiments, it is possible to further improve the learning accuracy of the model used in the analysis of atomic motion and the like.
[0148] Next, use Fig.19 The hardware configuration of the information processing device according to the first to fourth embodiments will be described. Fig.19 It is an explanatory diagram showing an example of the hardware configuration of the information processing device according to the first to fourth embodiments.
[0149] The information processing device of the first to fourth embodiments includes a control device such as a CPU 51, a storage device such as a ROM (Read Only Memory) 52 and a RAM 53, a communication I / F 54 for connecting to a network for communication, and a bus 61 for connecting the various components. A GPU may be further included as a control device.
[0150] The program executed by the information processing apparatus according to the first to fourth embodiments is provided after being installed in the ROM 52 or the like in advance.
[0151] The program executed in the information processing device of the first to fourth embodiments can also be configured as a file in an installable or executable form recorded on a computer-readable recording medium such as a CD-ROM (Compact Disk Read Only Memory), a floppy disk (FD), a CD-R (Compact Disk Recordable), or a DVD (Digital Versatile Disk) and provided as a computer program product.
[0152] Furthermore, the program executed in the information processing device of the first to fourth embodiments may be stored in a computer connected to a network such as the Internet and provided by downloading via the network. In addition, the program executed in the information processing device of the first to fourth embodiments may be provided or distributed via a network such as the Internet.
[0153] The program executed in the information processing apparatus of the first to fourth embodiments can cause the computer to function as each unit of the above-mentioned information processing apparatus. In the computer, the CPU 51 can read the program from a computer-readable storage medium to a main storage device and execute it.
[0154] Configuration examples of the embodiments are described below.
[0155] (Configuration Example 1)
[0156] An information processing device comprises a processing unit,
[0157] The processing unit,
[0158] An error function is set for learning a machine learning model, wherein the machine learning model is a model that inputs positions of a plurality of atoms included in an analysis object and information indicating which of a plurality of elements the plurality of atoms are, and outputs a physical quantity of the analysis object, wherein the error function includes one or more terms based on a plurality of weights corresponding to characteristics of the plurality of elements,
[0159] The machine learning model is learned using the error function.
[0160] (Configuration Example 2)
[0161] According to the information processing device described in Configuration Example 1,
[0162] The processing unit sets the error function including a plurality of terms obtained by multiplying the plurality of weights by the error in the physical quantity of each of the plurality of elements.
[0163] (Configuration Example 3)
[0164] According to the information processing device described in Example 1 or 2,
[0165] The processing unit,
[0166] setting a plurality of said weights corresponding to the characteristics of a plurality of said elements,
[0167] The error function including one or more of the terms based on the set weight is set.
[0168] (Configuration Example 4)
[0169] According to the information processing device described in Example 3,
[0170] The processing unit,
[0171] Based on a plurality of learning data each including the positions of a plurality of the atoms used in learning the machine learning model, the number of atoms as the number of atoms of the element included in the plurality of learning data is totaled for each of the plurality of the elements,
[0172] The plurality of weights are set based on the number of atoms or a ratio of the number of atoms to the total number of atoms of all elements included in the plurality of learning data.
[0173] (Configuration Example 5)
[0174] An information processing device according to any one of configuration examples 1 to 4,
[0175] The processing unit,
[0176] receiving a plurality of said weights specified for each of said plurality of said elements,
[0177] The error function is set to include one or more of the terms based on the received plurality of weights.
[0178] (Configuration Example 6)
[0179] An information processing device according to any one of configuration examples 1 to 5,
[0180] The feature is the mass of the element, the atomic number of the element, information related to the mass or the atomic number, or the number of atoms of each of the elements included in the analysis target.
[0181] (Configuration Example 7)
[0182] According to the information processing device described in Example 6,
[0183] The weight is the inverse of the feature.
[0184] (Configuration Example 8)
[0185] An information processing device according to any one of configuration examples 1 to 7,
[0186] The processing unit sets the error function including the plurality of terms obtained by multiplying the weight by a second error which is a sum of each of the plurality of elements and a first error which is an error in the physical quantity of each of the plurality of atoms.
[0187] (Configuration Example 9)
[0188] According to the information processing device described in Configuration Example 1,
[0189] The processing unit selects one or more of the elements from the plurality of elements with a probability corresponding to the magnitudes of the plurality of weights, and sets the error function including one or more of the terms obtained by multiplying the weight of the selected element and the error of the physical quantity of the selected element.
[0190] (Configuration Example 10)
[0191] According to the information processing device described in Example 9,
[0192] The processing unit selects one or more of the elements with the probability for each of a plurality of learning data used in learning the machine learning model and each including positions of a plurality of the atoms.
[0193] (Configuration Example 11)
[0194] According to the information processing device described in Example 9,
[0195] The processing unit,
[0196] Using a plurality of learning data each including the positions of a plurality of the atoms, repeatedly performing the learning of the machine learning model a plurality of times,
[0197] For each of the multiple learnings, one or more of the elements are selected with the probability.
[0198] (Configuration Example 12)
[0199] An information processing device according to any one of configuration examples 1 to 11,
[0200] The processing unit,
[0201] modifying at least a portion of the plurality of said weights to a specified value,
[0202] The error function is set to include one or more terms based on the corrected plurality of weights.
[0203] (Configuration Example 13)
[0204] According to the information processing device described in Example 12,
[0205] The processing unit,
[0206] outputting the output value of the error function,
[0207] At least a portion of the plurality of weights is corrected to a value specified according to the output value that is output.
[0208] (Configuration Example 14)
[0209] An information processing device according to any one of configuration examples 1 to 13,
[0210] The processing unit corrects the parameters of the machine learning model in such a way that the output value of the error function decreases.
[0211] (Configuration Example 15)
[0212] An information processing device according to any one of configuration examples 1 to 14,
[0213] The processing unit comprises:
[0214] a function setting unit that sets the error function; and
[0215] A learning unit, which learns the machine learning model.
[0216] (Configuration Example 16)
[0217] An information processing method is an information processing method executed by an information processing device, comprising:
[0218] A step of setting an error function for learning a machine learning model, the machine learning model being a model that inputs positions of a plurality of atoms included in an analysis object and information indicating which of a plurality of elements the plurality of atoms are, and outputs a physical quantity of the analysis object, the error function including one or more terms based on a plurality of weights corresponding to characteristics of the plurality of elements; and
[0219] The step of learning the machine learning model using the error function.
[0220] (Configuration Example 17)
[0221] A storage medium stores a program for causing a computer to execute the following steps:
[0222] A step of setting an error function for learning a machine learning model, the machine learning model being a model that inputs positions of a plurality of atoms included in an analysis object and information indicating which of a plurality of elements the plurality of atoms are, and outputs a physical quantity of the analysis object, the error function including one or more terms based on a plurality of weights corresponding to characteristics of the plurality of elements; and
[0223] The step of learning the machine learning model using the error function.
[0224] Several embodiments of the present invention have been described, but these embodiments are presented as examples and are not intended to limit the scope of the invention. These new embodiments can be implemented in various other ways, and various omissions, substitutions, and changes can be made without departing from the gist of the invention. These embodiments and their variations are included in the scope and gist of the invention, and are included in the invention described in the claims and their equivalents.
Claims
1. An information processing device comprising a processing unit, The processing unit, An error function is set for learning a machine learning model, wherein the machine learning model is a model that inputs positions of a plurality of atoms included in an analysis object and information indicating which of a plurality of elements the plurality of atoms are, and outputs a physical quantity of the analysis object, wherein the error function includes one or more terms based on a plurality of weights corresponding to characteristics of the plurality of elements, The machine learning model is learned using the error function.
2. The information processing device according to claim 1, The processing unit sets the error function including a plurality of terms obtained by multiplying the plurality of weights by the error in the physical quantity of each of the plurality of elements.
3. The information processing device according to claim 1 or 2, The processing unit, setting a plurality of said weights corresponding to the characteristics of a plurality of said elements, The error function including one or more of the terms based on the set weight is set.
4. The information processing device according to claim 3, The processing unit, Based on a plurality of learning data each including the positions of a plurality of the atoms used in learning the machine learning model, the number of atoms as the number of atoms of the element included in the plurality of learning data is totaled for each of the plurality of the elements, The plurality of weights are set based on the number of atoms or a ratio of the number of atoms to the total number of atoms of all elements included in the plurality of learning data.
5. The information processing device according to any one of claims 1 to 4, The processing unit, receiving a plurality of said weights specified for each of said plurality of said elements, The error function is set to include one or more of the terms based on the received plurality of weights.
6. The information processing device according to any one of claims 1 to 5, The feature is the mass of the element, the atomic number of the element, information related to the mass or the atomic number, or the number of atoms of each of the elements included in the analysis target.
7. The information processing device according to claim 6, The weight is the inverse of the feature.
8. The information processing device according to any one of claims 1 to 7, The processing unit sets the error function including the plurality of terms obtained by multiplying the weight by a second error which is a sum of each of the plurality of elements and a first error which is an error in the physical quantity of each of the plurality of atoms.
9. The information processing device according to claim 1, The processing unit selects one or more of the elements from the plurality of elements with a probability corresponding to the magnitudes of the plurality of weights, and sets the error function including one or more of the terms obtained by multiplying the weight of the selected element and the error of the physical quantity of the selected element.
10. The information processing device according to claim 9, The processing unit selects one or more of the elements with the probability for each of a plurality of learning data used in learning the machine learning model and each including positions of a plurality of the atoms.
11. The information processing device according to claim 9, The processing unit, Using a plurality of learning data each including the positions of a plurality of the atoms, repeatedly performing the learning of the machine learning model a plurality of times, For each of the multiple learnings, one or more of the elements are selected with the probability.
12. The information processing device according to any one of claims 1 to 11, The processing unit, modifying at least a portion of the plurality of said weights to a specified value, The error function is set to include one or more terms based on the corrected plurality of weights.
13. The information processing device according to claim 12, The processing unit, outputting the output value of the error function, At least a portion of the plurality of weights is corrected to a value specified according to the output value that is output.
14. The information processing device according to any one of claims 1 to 13, The processing unit corrects the parameters of the machine learning model in such a way that the output value of the error function decreases.
15. The information processing device according to any one of claims 1 to 14, The processing unit comprises: a function setting unit that sets the error function; and A learning unit, which learns the machine learning model.
16. An information processing method is an information processing method executed by an information processing device, comprising: A step of setting an error function for learning a machine learning model, the machine learning model being a model that inputs positions of a plurality of atoms included in an analysis object and information indicating which of a plurality of elements the plurality of atoms are, and outputs a physical quantity of the analysis object, the error function including one or more terms based on a plurality of weights corresponding to characteristics of the plurality of elements; and The step of learning the machine learning model using the error function.
17. A storage medium storing a program for causing a computer to execute the following steps: A step of setting an error function for learning a machine learning model, the machine learning model being a model that inputs positions of a plurality of atoms included in an analysis object and information indicating which of a plurality of elements the plurality of atoms are, and outputs a physical quantity of the analysis object, the error function including one or more terms based on a plurality of weights corresponding to characteristics of the plurality of elements; and The step of learning the machine learning model using the error function.
Citation Information
Patent Citations
Data processing method and device, model training method and free energy prediction method
CN114218869A
Mineral dry weight obtaining method and device, electronic equipment and storage medium
CN114388074A
Inferring device, training device, inferring method, and training method
US20220207370A1
Methods and systems for determining physical properties via machine learning
WO2023015247A1
