Model parameter estimation device, method, and program
The model parameter estimation method employs Neural Process to generate task-specific auxiliary information by learning meta-knowledge and optimizing parameters, addressing the limitations of conventional techniques in zero-shot learning by providing accurate auxiliary information for varied class relationships, thus enhancing the accuracy of zero-shot learning across tasks.
Patent Information
- Application Number
- PCT/JP2023/014680
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-04-11
- Publication Date
- 2024-10-17
AI Technical Summary
Conventional zero-shot learning techniques are limited in generating auxiliary information that accurately reflects the relative relationships between classes, especially when such information is not readily available or varies across tasks, leading to suboptimal performance in estimating classes with no labeled data.
A model parameter estimation method that uses Neural Process to generate auxiliary information by learning the process of generating auxiliary information as meta-knowledge, calculating latent variables, and embedding instances into an auxiliary information space using an encoder and decoder, optimizing parameters based on prediction loss to produce task-specific auxiliary information.
Enables the generation of accurate auxiliary information for zero-shot learning tasks, even when relative relationships between classes differ or auxiliary information is not available, improving the accuracy of zero-shot learning across multiple tasks.
Smart Images

Figure JP2023014680_17102024_PF_FP_ABST
Abstract
Description
Model parameter estimation device, method and program
[0001] One aspect of the present invention relates to a model parameter estimation device, method, and program used to estimate model parameters of a model that generates auxiliary information used in zero-shot learning.
[0002] One of the problems in machine learning is to train a classification model for some classes when no labeled data corresponding to those classes is available. Machine learning techniques for this type of problem are called zero-shot learning (see, for example, Non-Patent Documents 1 and 2).
[0003] In zero-shot learning, labeled data for the target classes is not available, so the model is trained under the assumption that information showing the relationships between classes, called auxiliary information, is known. However, if it is difficult to obtain auxiliary information, or if the relationships between classes differ for each similar task to be solved, it may not be possible to obtain auxiliary information appropriate for the problem.
[0004] An example is the estimation of human emotions using biometric signals as input. Because emotions are fluid and difficult to assess both self- and other-evaluate, the cost of obtaining labeled data is high, and it is unrealistic to obtain labeled data that covers all emotions from all individuals of interest. Therefore, it is necessary to be able to estimate emotions even without obtaining labeled data. Furthermore, because the relationship between biometric signals and emotions varies from person to person, the true model differs depending on the person being estimated. In other words, if we consider learning a model that can estimate an individual's emotions as a single task, there are as many tasks as there are people to estimate, and machine learning techniques that are effective across all of these tasks are required.
[0005] In this way, machine learning methods that are useful for multiple tasks in general, even when data for some classes is unavailable, are important technologies in areas where task differences exist and the cost of obtaining labeled data is high.
[0006] Hugo Larochelle, Dumitru Erhan, and Yoshua Bengio. “Zero-data learning of new tasks”, In Proceedings of the 23rd National Conference on Artificial Intelligence - Volume 2, AAAI'08, p. 646-651. AAAI Press, 2008. Mark Palatucci, Dean Pomerleau, Geoffrey Hinton, and TomM. Mitchell. “Zero-shot learning with semantic output codes”, In Proceedings of the22nd International Conference on Neural Information Processing Systems, NIPS'09, p. 1410-1418, Red Hook, NY, USA, 2009. Curran Associates Inc.
[0007] However, conventional techniques for solving multiple zero-shot learning tasks are only designed to solve each task independently, and assume that auxiliary information for known and unknown classes is provided as prior knowledge that is common to all tasks. The performance of general zero-shot learning methods depends on auxiliary information, which must accurately reflect the relative relationships of classes. However, in reality, the relative relationships of classes may differ depending on the task, or auxiliary information may not be available in the first place, making it impossible to apply conventional techniques as is.
[0008] This invention has been made in light of the above circumstances, and aims to provide a technology that enables the generation of auxiliary information suitable for each of multiple zero-shot learning tasks, thereby making it possible to obtain auxiliary information that accurately reflects the relative relationships of classes even when the relative relationships of classes differ depending on the task or when auxiliary information is not available.
[0009] To solve the above problem, one aspect of a model parameter estimation device or model parameter estimation method according to the present invention generates auxiliary information suitable for each zero-shot learning task by training a model in advance on the auxiliary information generation process as meta-knowledge. The model uses a model that calculates latent variables based on given known labels and corresponding input instances, and generates auxiliary information suitable for the task using the latent variables. The latent variables are generated by inputting one of two task sets obtained by dividing a known task set into two into an encoder to generate real vectors, aggregating the generated real vectors, and then calculating mean and variance vectors from the aggregated vectors. The model also uses a trained zero-shot learning model that calculates optimal parameters for the embedding model from a prediction loss, which is the error between information obtained by embedding instances included in the other of the two divided task sets in an auxiliary information space using an embedding model and information obtained by inputting the latent variables together with the labels included in the other task set into a decoder. The model uses a trained zero-shot learning model that applies the optimal parameters.
[0010] According to one aspect of the present invention, it is possible to generate auxiliary information suitable for each of multiple zero-shot learning tasks, thereby providing a technology that makes it possible to obtain auxiliary information that accurately reflects the relative relationships of classes even when the relative relationships of classes differ depending on the task or when auxiliary information is not available.
[0011] FIG. 1 is a diagram for explaining an overview of a model parameter estimation method according to one aspect of the present invention. FIG. 2 is a block diagram showing an example of the hardware configuration of a model parameter estimation device according to an embodiment of the present invention. FIG. 3 is a block diagram for explaining an example of the software configuration of a model parameter estimation device according to an embodiment of the present invention. FIG. 4 is a flowchart showing an example of the processing procedure and processing content of a model parameter estimation process executed by a control unit of the model parameter estimation device shown in FIG. 3. FIG. 5 is a flowchart showing an example of the processing procedure and processing content of a model parameter estimation process in the model parameter estimation process shown in FIG. 4. FIG. 6 is a diagram showing an example of a model parameter search algorithm executed by a control unit of the model parameter estimation device shown in FIG. 3.
[0012] [Overview] First, a basic technique of zero-shot learning and an example of a neural process used to generate auxiliary information will be described.
[0013] (1) Zero-shot learning Zero-shot learning is a method for learning a model that enables estimation of classes for which no labeled data is available, under a setting where only labeled data for some classes is available. However, since it is difficult to estimate classes for which no prior information is available, "auxiliary information," which is data that indicates the relative relationships between classes, is used to enable adaptation to classes for which no instances are available.
[0014] Here, we will explain the commonly used type of zero-shot learning called the Projection Method as an example.
[0015] Now, the classes that can be observed in advance are called seen classes, and the set of labels is defined as S = {c s i} Ns i=1 In contrast, the class that cannot be observed in advance but is the subject of testing is called the Unseen Class, and the set of its labels is U = {c u i} Nu i=1Here, S ∩ U = 0 / (not 0), and Ns and Nu are the numbers of known and unknown classes, respectively.
[0016] Then, let X be the input space, and let D be the set of observable labeled data. obs = {(x i , y i )} No i=1 : X × S are given. These are the evaluation values y of the unknown function f : X → S ∪ U i = f (x i ) The goal of zero-shot learning is to t A set of instances D tgt = {(x i )}N t i=1 : When X is given, the corresponding evaluation value of the unknown function f(x i ) ∈ U.
[0017] In zero-shot learning, the set of X × U is unknown, so a set of labeled data D obs The model is trained solely by minimizing the empirical loss for . The auxiliary information is generally defined as a set of representative vectors (hereafter called prototypes) defined for each class.
[0018] The prototype is a vector on the auxiliary information space A, and the set of prototypes for known classes is denoted as A s = {a s i} Ns i=1 , the set of prototypes for the unknown class is A u = {a u i} Nu i=1 However, it is assumed that there is a one-to-one correspondence between the prototype and the label data, and that the functions η:A → S ∪ U and π:S ∪ U → A that indicate this correspondence are known.
[0019] Then, we have a model Φ with parameters ρ that properly embeds an instance x ∈ X in the input space into the auxiliary information space A. ρ If X → A exists, the estimated result can be obtained as y^ = η(Φρ(x)). Therefore, in zero-shot learning, the optimal parameter ρ* of the embedding model Φ is estimated by minimizing the empirical loss as shown in the following equation (1).
[0020]
[0021] where L zsl is an arbitrary loss function that returns the error between two points on the auxiliary information space A. In other words, equation (1) seeks ρ* that minimizes the error between Φ(x) in which x is embedded and the prototype π(y) corresponding to y. Once ρ* is obtained, the unknown data x u ∈ D tgt For this, the estimated result y^ is calculated as in equation (2). u is obtained.
[0022]
[0023] The symbols defined so far are summarized in the table below.
[0024]
[0025] In implementation, the model Φ ρ A neural network is often used to calculate the unknown function π, and a function a based on a one-to-one correspondence is used to calculate the unknown function π. s i = π(c s i ) is often used. Also, the loss function L zsl Euclidean distance is often used for , and the 1-NN method is often used for the known function η. The formula for calculating the known function η using the 1-NN method is shown below.
[0026]
[0027] Projection Method type zero-shot learning is described in detail in the following literature, for example:
[0028] Reference 1: Xiaohong Sun, Jinan Gu, and Hongying Sun. “Research progress of zero-shot learning”, Applied Intelligence, Vol.51, No.6, pp. 3600-3614, Jun 2021. Reference 2: Bernardino Romera-Paredes, and Philip HSTorr. “An embarrassingly simple approach to zero-shot learning”, In Proceedings of the 32nd International Conference on International Conference on Machine Learning - Volume 37, ICML'15, p. 2152-2161. JMLR.org, 20.
[0029] (2) Neural Process The Neural Process is a method that uses a neural network to estimate a distribution over an unknown function when certain conditions are given, and it is possible to change the output distribution depending on the conditions. For example, when there are multiple tasks, it is possible to output a distribution that corresponds to the given task, such as a distribution that conforms to condition A for task A, and a distribution that conforms to condition B for task B. Therefore, the Neural Process is known as a meta-learning method that expands the scope of learning beyond a specific single task to include distributions of related tasks.
[0030] Here, we define the symbols used to explain the Neural Process. The table below shows a list of symbols used to explain the Neural Process.
[0031]
[0032] Now, we observe No input data x i ∈ X and output data y i ∈ Y and a dataset D obs= {(x i , y i )} No i=1 Think about it.
[0033] The above set is the evaluation value y of the unknown function f: X → Y i = f(x i ) where the unlabeled dataset D tgt = {x j ∈ X} Nt j=1 element x of j Output f (x j ) we want to estimate the distribution on the approximate function such that
[0034] First, f is a sequence of No input data x 1 : No Given the joint distribution p (f (x 1 : No )) is subject to a stochastic process that determines x 1 : No x 1 : No := (x1, …, x No ) where y i The observations of x are subject to normally distributed noise, and are assumed to be independent and identically distributed. 1 : No The conditional joint probability p(y 1:No | x 1:No ) is defined as follows:
[0035]
[0036] Furthermore, the randomness of f is determined by the latent variable z ∈ R d depends on the existence of f(x i ) = g(z , x i ) holds, where g is a trainable neural network. This allows the generative model to be constructed by taking p(z) as a multivariate normal distribution and then 1 : No This is the conditional joint probability given the following:
[0037]
[0038] Then, the variational lower bound of the logarithmic marginal likelihood using the posterior distribution q of the latent variable z is obtained as follows. Note that D KL is the KL divergence, and Jensen's inequality is applied to the final inequality evaluation.
[0039]
[0040] Based on the above variational lower bound, we define a variational lower bound for the marginal likelihood for unknown data when some observed data is given. Dataset D obs ={(x i , y i )} No i=1 is divided into two parts by an integer n (1 ≦ n < No), and the data from 1 to n are assumed to be pseudo observation data, and the data from n+1 to No are assumed to be pseudo target data. In this case, the variational lower bound to be maximized is obtained by the following equation (3).
[0041]
[0042] To model equation (3) as a neural network, we use the posterior distribution q (z | x 1:n , y 1:n ) and the conditional joint probability p (y i |z, x i ) and a model is needed to define q (z | x 1:n , y 1:n ), we assume that z follows a multivariate normal distribution (with covariance 0), so q (z | x 1:n , y 1:n ) =N (μ, I σ 2 ) as the mean vector μ and the variance vector σ 2 The model for determining is defined as follows:
[0043]
[0044] where h θ is an m-dimensional real vector r i ∈ R mis an encoder that calculates the i Any commutative operation R that can be aggregated into a single vector 2m → R m In most cases, this calculation involves calculating the average value. θ (・), σ 2 θ (・) is also an arbitrary neural network. Also, θ is a model h, μ, σ 2 This is a vector that aggregates the parameters of the decoder g described later. 1:n , y 1:n ) is the posterior distribution of z given q (z | x 1:n , y 1:n ) is obtained, and z is N (μ, I σ 2 ) can be sampled from.
[0045] Conditional joint probability p (y i |z, x i ) can be set to any distribution depending on the task. For example, a normal distribution can be set for a regression task, and a categorical distribution can be set for a classification task. Therefore, here we can set an arbitrary distribution p (y i |z, x i ) is determined by the parameter ψ i ∈Ψ, and express it as one symbol. i The neural network that outputs the decoder g θ and ψ i = g θ (x i , z ). As a result, the distribution p (y i |z, x i ) is p (y i ; ψ i ) and the neural network parameters θ that maximize equation (3) are obtained as * All we need to do is find the answer.
[0046] Neural processes are described in detail in, for example, the following literature: Reference 3: Marta Garnelo, Jonathan Schwarz, Dan Rosenbaum, Fabio Viola, Danilo J. Rezende, SMAli Eslami, and YeeWhye Teh. “Neural processes”, 2018.
[0047] (3) One aspect of the present invention: A method according to one aspect of the present invention uses a neural process to generate auxiliary information appropriate for each zero-shot learning task. By learning the auxiliary information generation method in advance as meta-knowledge, even if an unknown task appears, auxiliary information corresponding to the task can be obtained, enabling high-precision zero-shot learning.
[0048] A method according to one aspect of the present invention uses a meta-learning technique to learn useful knowledge for multiple zero-shot learning tasks. To this end, consider a setting in which a zero-shot learning task τ is sampled and observed from a task distribution p(τ).
[0049] The learning task τ is {D obs , D tgt , L zsl }, and in the prior art, auxiliary information A s , A u and the function π is given as τ. However, in one embodiment of the present invention, the auxiliary information A s , A u and its function π is not given, and conversely, in the task τ observed in advance, x i ∈ D tgt Label data y i ∈ U, D tgt : Assume X×U.
[0050] In this case, the set of observed input instances and corresponding labels D obs : From minimizing the empirical loss for X×Y, we obtain a set D of input instances x ∈ X. tgtAuxiliary information A that can be expected to minimize the prediction loss (meta-experience loss) for s * , A u * is obtained. To calculate the loss, we use the loss function L zsl Use L zsl Any loss function generally used in zero-shot learning can be set to .
[0051] The neural process is used as a model for generating auxiliary information. However, the neural process used in one aspect of the present invention has the same basic model structure as the existing method described above, but the decoder g θ The input and output differ in the following ways:
[0052] In other words, in the existing method, the decoder takes an input instance x ∈ X and a latent variable z as input and calculates p (y i |z, x i ) parameter ψ that determines the distribution of θ :X × R d →Ψ, but in one aspect of this invention, g θ :S ∪ U × R d → A. This means that when a label y is given, auxiliary information a* = g suitable for the task is obtained using the latent variable z. θ This is a model that generates (z, y).
[0053] (4) Overview Figure 1 is a diagram showing an overview of a method according to an embodiment of the present invention. In the method according to an embodiment of the present invention, first, D obs Arbitrarily, D spt , D qry Divide into D spt to the encoder to make z sampleable.
[0054] Next, D qry Here, the input feature x s i ∈ X is an embedding model Φ ρThe input is embedded in the auxiliary information space by the sample z and the unique decoder g θ These errors are then expressed as L zsl The process of calculating by D qry This is done for all elements of , and the embedding model Φ is ρ The optimal parameter ρ* is obtained.
[0055]
[0056] The zero-shot trained model Φ using the above optimal parameter ρ* p * If you get D tgt Included in (x u j , y u j ) among x u j The result of embedding Φ p * (x u j ) and y u j The decoder θ The prototype g obtained by inputting θ (y u j ) and the loss, that is, the prediction loss L zsl (Φ p * (x u j ) , g θ (y u j )) is obtained. Therefore, by calculating this prediction loss for all tasks and optimizing to minimize the sum of the prediction losses for each task, the optimal parameter θ* can be estimated.
[0057] In light of the above, the configuration of an input model that realizes a method according to one aspect of the present invention, and its input data and output data are, for example, as follows.
[0058] (4-1) Input data The input data is the observed N t A set of tasks, T = {τ i |τi ~p(τ)} Nt i=1 ={(D obs i ,D tgt i ,L zsl )} Nt i=1 is entered.
[0059] (4-2) Input Model 100 The input model 100 is: (i) Encoder h θ :X × S → R m (ii) Model μ θ :R m → R d (iii) Model σ 2 θ :R m → R d (iv) Decoder g θ :S ∪ U × R d → A (v) embedding model Φ p *: Constructed by X → A, where θ is the model h, μ, σ 2 , g, and ρ is a parameter of the model Φ.
[0060] The input model may be a linear model such as that described in Reference 2, or a nonlinear model such as a neural network model such as that described in Reference 3. θ , Φ p It is also possible to use a convolutional neural network or a time series model depending on the form of the input variable x ∈ X.
[0061] (4-3) Output data The output data is the model h, μ, σ 2 , g, the optimal parameter estimation result θ* for the parameter θ is output.
[0062] (4-4) Objective Function The above-mentioned optimal parameter θ* is estimated by optimizing the objective function. The objective of the method according to one aspect of the present invention is to obs When zero-shot learning is performed under the given conditions, D tgt Therefore, we define the objective function L(θ | T), which is different from that of a normal neural process, as follows:
[0063]
[0064] where z is a latent variable obtained by the same calculation as in equations (4) to (8), and αΩ 1 (・), βΩ 2 (·) are arbitrary regularization terms multiplied by arbitrary weights α and β. Since the dataset X × S is required for both the calculation of z and the calculation of ρ*, the D obs D without overlapping in any ratio spt , D qry Divide into D spt To calculate z, D qry L to find ρ* in equation (9) zsl Used for input to.
[0065] (4-5) Optimization method Any optimization method can be applied to optimize the objective function, such as gradient method, stochastic gradient method, Adam, etc. When using the gradient method, it is sufficient to repeatedly update the parameters according to the following formula (10) at the kth optimization step.
[0066]
[0067] where γ k is the learning rate parameter. The gradient of the objective function ▽L(·) can be a calculated function or a numerically calculated function. After st in equation (9), there is an operation to find the optimal value ρ* of ρ, and this can also be optimized in the same way by replacing θ with ρ in equation (10).
[0068] (4-6) Application Example In implementation, unlike a normal neural process, the optimal model parameters θ* are searched for using a meta-learning algorithm. As an example of applying the parameters obtained by this method, consider an unknown zero-shot learning task τ* ~ p(τ). D included in this unknown task τ* tgt is not given a label, as in normal zero-shot learning. In this case, D obs Calculate z by using equations (4) to (8) using and θ*, and calculate the elements of the observed known label S and the unobserved unknown label U as g θ * (z , ) to obtain the optimal auxiliary information A for τ*. s * , A u Then, we obtain D obs and A s * is used to create the embedding model Φ ρ and train the embedding model Φ ρ Finally, similar to equation (2), we obtain the optimal parameter ρ* of x. u With input, y^ = η(Φ ρ * (x u ) ; A u *) to obtain the estimated class y^.
[0069] (4-7) Effects By adopting the auxiliary information generation method described above, it is possible to generate the auxiliary information required for zero-shot learning in accordance with the task, thereby resolving the problem with conventional zero-shot learning, namely, that it cannot be applied unless auxiliary information appropriate for the task is provided in advance. As a result, it becomes possible to utilize this method for general domains where there are a small number of tasks in which label data of unknown classes can be observed, but where the majority of tasks cannot observe the data.
[0070] An embodiment of a model parameter estimation device and method according to the present invention will be described below with reference to the drawings.
[0071] (Configuration Example) (1) Model Parameter Estimation Device FIGS. 2 and 3 are block diagrams showing an example of the hardware configuration and software configuration, respectively, of a model parameter estimation device SV according to an embodiment of the present invention.
[0072] The model parameter estimation device SV is configured by, for example, a personal computer, and includes a control unit 1 that uses a hardware processor such as a central processing unit (CPU). The model parameter estimation device SV is configured such that a storage unit having a program storage unit 2 and a data storage unit 3, and an input / output interface (hereinafter, interface will be abbreviated as I / F) unit 4 are connected to the control unit 1 via a bus 5.
[0073] As the model parameter estimation device SV, a server computer located on the web or on the cloud may be used in addition to a personal computer.
[0074] The input / output I / F unit 4 has a function of accepting input of input data setting parameters used to estimate model parameters from an external terminal device TM used, for example, by a designer or system administrator, and a function of outputting the learned model parameters output from the control unit 1 to the external terminal device TM.
[0075] The input / output I / F unit 4 may be provided with, for example, a wired or wireless data communication interface or a wireless interface function that employs a low-power wireless data communication standard such as Bluetooth (registered trademark). In particular, the use of the wireless interface function enables wireless data transmission and reception between the model parameter estimation device SV and the external terminal device TM.
[0076] The program storage unit 2 is configured by combining, for example, a nonvolatile memory such as a solid state drive (SSD) as a storage medium that can be written to and read from at any time, and a nonvolatile memory such as a read only memory (ROM), and stores middleware such as an operating system (OS) as well as application programs required to execute various controls according to the first embodiment. Hereinafter, the OS and each application program will be collectively referred to as a program.
[0077] The data storage unit 3 is, for example, a combination of a non-volatile memory such as an SSD that can be written to and read from at any time as a storage medium, and a volatile memory such as a RAM (Random Access Memory).The storage area includes an input data storage unit 31, a setting parameter storage unit 32, and a model parameter storage unit 33 as main storage units required to implement one embodiment of the present invention.
[0078] The input data storage unit 31 is used to store input data input from the external terminal device TM. The setting parameter storage unit 32 is used to store input data input from the external terminal device TM. The model parameter storage unit 33 is used to store model parameters obtained by the model parameter estimation process of the control unit 1.
[0079] The control unit 1 includes an input data acquisition processing unit 11, a setting parameter acquisition processing unit 12, a model parameter learning processing unit 13, and a model parameter output processing unit 14 as processing functions necessary to implement one embodiment of the present invention.
[0080] These processing units 11 to 14 are all realized by causing a hardware processor in the control unit 1a to execute application programs stored in the program storage unit 2. Note that some or all of the processing units 11 to 14 may be realized using hardware such as an LSI (Large Scale Integration) or an ASIC (Application Specific Integrated Circuit).
[0081] The input data acquisition processing unit 11 receives input data inputted in the external terminal device TM via the input / output I / F unit 4 and stores it in the input data storage unit 31. The input data consists of a set T of observable tasks and a plurality of model data for defining an input model. Of these, the model data is generated by the encoder h θ and model μ θ and model σ 2 θ and decoder g θ and the embedding model Φ ρ Includes:
[0082] The setting parameter acquisition processing unit 12 receives setting parameters input in the external terminal device TM via the input / output I / F unit 4 and stores them in the setting parameter storage unit 32. The setting parameters include a learning rate parameter γ used in optimization and hyperparameters α and β of the objective function.
[0083] The model parameter learning processing unit 13 inputs the input data into the input model and performs model parameter estimation processing using a meta-learning algorithm. The estimated results of the optimal model parameters θ* and ρ* obtained by this model parameter estimation processing are stored in the model parameter storage unit 33. An example of the model parameter estimation processing will be described in the operation example.
[0084] The model parameter output processing unit 14 reads out the estimated results of the optimal model parameters θ*, ρ* learned by the model parameter learning processing unit 13 from the model parameter memory unit 33, and outputs the read out estimated results of the optimal model parameters θ*, ρ* from the input / output I / F unit 4 to the external terminal device TM.
[0085] (Example of Operation) Next, an example of operation of the model parameter estimation device SV configured as above will be described. Fig. 4 is a flowchart showing the procedure and content of the model parameter estimation process executed by the control unit 1 of the model parameter estimation device SV.
[0086] (1) Acquisition of Input Data When estimating optimal model parameters, the control unit 1 of the model parameter estimation device SV, under the control of the input data acquisition processing unit 11, first acquires an observable task set T from the external terminal device TM via the input / output I / F unit 4 in step S10, and stores the acquired task set T in the input data storage unit 31.
[0087] Next, in step S20, the input data acquisition processing unit 11 acquires a plurality of model data for defining an input model from the external terminal device TM via the input / output I / F unit 4. The acquired model data includes the encoder h θ , model μ θ , model σ 2 θ , decoder g θ and the embedding model Φ ρ The input data acquisition processing unit 11 stores the acquired model data in the input data storage unit 31.
[0088] (2) Acquisition of Setting Parameters Next, in step S30, under the control of the setting parameter acquisition processing unit 12, the control unit 1 of the model parameter estimation device SV acquires setting parameters, i.e., the learning rate parameter γ and the hyperparameters α and β of the objective function, from the external terminal device TM via the input / output I / F unit 4. Then, the acquired setting parameters are stored in the setting parameter storage unit 32.
[0089] (3) Learning of Model Parameters When the above-mentioned process of acquiring the input data and setting parameters is completed, under the control of the model parameter learning processing unit 13, in step S40, the input data stored in the input data storage unit 31 and the setting parameters stored in the setting parameter storage unit 32 are used as inputs to execute a learning process for estimating the model parameters as follows:
[0090] Fig. 5 is a flowchart showing an example of the procedure and content of the parameter learning process executed by the model parameter learning processing unit 13. Fig. 6 shows an example of the algorithm for the parameter learning.
[0091] That is, the model parameter learning processing unit 13 first initializes the model parameters θ and ρ in step S41, and then sets the maximum number of iterations kmax of the learning process in step S42.
[0092] Next, in step S43, the model parameter learning processing unit 13 updates the model parameters θ and ρ in accordance with the above-mentioned equations (9) and (10), and stores the updated model parameters θ and ρ in the model parameter storage unit 33.
[0093] The model parameter learning processing unit 13 counts up the number of repetitions k in step S44 each time the update process is completed, and compares the counted number of repetitions k with the maximum number of repetitions kmax in step S45. If the result of this comparison shows that the number of repetitions k does not exceed the maximum number of repetitions kmax, the model parameter learning processing unit 13 returns to step S43 and repeats the update process of the model parameters θ and ρ. On the other hand, if the number of repetitions k exceeds the maximum number of repetitions kmax, the model parameter learning processing unit 13 terminates the update process of the model parameters θ and ρ.
[0094] That is, the model parameter learning processing unit 13 optimizes the objective function L(θ|T) by repeating the process of repeatedly updating the model parameters by applying, for example, a gradient method kmax times.
[0095] (4) Output of Model Parameters When the learning process of the model parameters θ and ρ is completed, the model parameter estimation device SV, under the control of the model parameter output processing unit 14, reads out the learned optimal model parameters θ* and ρ* from the model parameter storage unit 33 in step S50. Then, the model parameter output processing unit 14 outputs the read optimal model parameters θ* and ρ* from the input / output I / F unit 4 to the external terminal device TM.
[0096] (Functions and Effects) As described above, in one embodiment, in order to generate auxiliary information corresponding to a learning task using a neural process, a decoder g of the neural process is used. θ , the known label data ys i and the latent variable z, and the auxiliary information A corresponding to the task s *, A u * is used as a model to generate this decoder g θ Auxiliary information A generated by s * and the input data feature x s i The embedded model Φ ρ The error between the result embedded in model L zsl The process of calculating the input data D qry For all elements of the above embedding model Φ ρ When unknown input data is input, the optimum parameter ρ* is obtained. u j The embedded model Φ ρ The result of embedding in and unknown label data y u j Decoder g θ The predicted loss L zsl The process of calculating the predicted loss L for each task is performed. zsl By optimizing to minimize the sum of θ*, the optimal model parameters θ* of the model that generates the auxiliary information are estimated.
[0097] Therefore, it is possible to generate auxiliary information required for zero-shot learning corresponding to a task. As a result, even if the relative relationships of classes differ depending on the task or if auxiliary information is not available, it is possible to obtain auxiliary information that accurately reflects the relative relationships of classes. This makes it possible to achieve highly accurate task analysis using zero-shot learning, even for applications such as estimating human emotions based on biometric information.
[0098] [Other Embodiments] (1) In the above embodiment, the model parameter estimation device SV is configured as a personal computer. However, the processing functions of the model parameter estimation device SV may be provided in a server computer on the Web or on the cloud. Furthermore, the processing units and storage units of the model parameter estimation device SV may be distributed across multiple personal computers or server computers, and these computers may work together to execute the model parameter estimation process.
[0099] (2) Furthermore, a program for executing the processing of each processing unit that should be provided in the model parameter estimation device may be distributed, for example, from a program management server via a network, so that the program can be installed and executed at will on a server device or terminal device used by a user who requires it.
[0100] (3) The processing procedures and processing contents of each processing unit included in the model parameter estimation device SV can be modified in various ways without departing from the spirit of the present invention.
[0101] Although the embodiments of the present invention have been described in detail above, the above description is merely an example of the present invention in every respect. It goes without saying that various improvements and modifications can be made without departing from the scope of the present invention. In other words, when implementing the present invention, specific configurations according to the embodiments may be appropriately adopted.
[0102] In short, this invention is not limited to the above-described embodiments, and the components can be modified and embodied in practice without departing from the spirit of the invention. Furthermore, various inventions can be formed by appropriately combining multiple components disclosed in the above-described embodiments. For example, some components may be omitted from all the components shown in the embodiments. Furthermore, components from different embodiments may be appropriately combined.
[0103] SV...Model parameter estimation device TM...External terminal device 100...Input model 200...Zero-shot learning unit 1...Control unit 2...Program storage unit 3...Data storage unit 4...Input / output I / F unit 5...Bus 11...Input data acquisition processing unit 12...Setting parameter acquisition processing unit 13...Model parameter learning processing unit 14...Model parameter output processing unit 31...Input data storage unit 32...Setting parameter storage unit 33...Model parameter storage unit
Claims
1. A model parameter estimation device that estimates model parameters of a model that generates auxiliary information used in zero-shot learning, comprising: an input data acquisition processing unit that acquires a set of multiple first tasks including pairs of known instances and their corresponding labels, and a set of multiple second tasks including pairs of unknown instances and their corresponding labels; a setting parameter acquisition processing unit that acquires an objective function of the model and setting parameters used for optimizing the objective function; a model parameter learning processing unit that estimates the model parameters by taking the set of first tasks and the set of second tasks as input and performing a process of optimizing the objective function of the model that generates the auxiliary information using the setting parameters; and an output processing unit that outputs the estimated model parameters, wherein the model parameter learning processing unit comprises: a first processing unit that divides the set of first tasks into two; a second processing unit that inputs a plurality of tasks of one of the divided sets of first tasks into an encoder to generate real vectors, and generates latent variables based on a vector obtained by aggregating the generated real vectors; a third processing unit that calculates a first prediction loss, which is an error between first information generated by embedding each instance included in the other of the first set of tasks into an auxiliary information space using an embedding model, and second information generated by inputting each label included in the other of the first set of tasks together with the latent variables into a first decoder, and obtains optimal parameters of the embedded model based on the first prediction loss; and a fourth processing unit that has a zero-shot trained model to which the optimal parameters are applied, and estimates the optimal parameters of the model that generates the auxiliary information by calculating a second prediction loss, which is an error between information obtained by embedding each instance included in the other of the first set of tasks into the zero-shot trained model and information obtained by inputting each label included in the other of the second set of tasks into a second decoder.
2. The model parameter estimation device according to claim 1, wherein the model parameter learning processing unit estimates the optimal parameters of the model for generating the auxiliary information by repeating the process of optimizing the objective function multiple times using a gradient method.
3. The model parameter estimation device according to claim 1, wherein the second processing unit inputs a plurality of tasks of one of the first task sets divided into two to the encoder to generate the real vector, aggregates the generated real vectors, and then determines a mean vector and a variance vector from the aggregated vector, and generates the latent variables based on the mean vector and the variance vector.
4. The model parameter estimation device of claim 1, wherein the third processing unit performs a process of determining the first prediction loss for each of the other tasks in the set of first tasks divided into two, and performs an optimization process to minimize the sum of the first prediction losses obtained for all of the tasks, thereby obtaining the optimal parameters of the embedded model.
5. A model parameter estimation device as described in claim 1, wherein the fourth processing unit performs the process of determining the second prediction loss for each of all tasks included in the set of second tasks, and obtains the optimal parameters of the model that generates the auxiliary information by minimizing the sum of the second prediction losses obtained for all of the tasks.
6. A model parameter estimation device according to claim 1, wherein said fourth processing unit generates, as the optimal parameters of said model, at least the optimal parameters for each of said encoder, said first decoder and said second decoder.
7. A model parameter estimation method in which an information processing device performs a process of estimating model parameters of a model that generates auxiliary information used in zero-shot learning, the method comprising: an input data acquisition process for acquiring a set of multiple first tasks including pairs of known instances and their corresponding labels, and a set of multiple second tasks including pairs of unknown instances and their corresponding labels; a setting parameter acquisition process for acquiring an objective function of the model and setting parameters used for optimizing the objective function; a model parameter learning process for estimating the model parameters by using the set of first tasks and the set of second tasks as input and optimizing the objective function of the learning model that generates the auxiliary information using the setting parameters; and an output process for outputting the estimated model parameters, the model parameter learning process including: a first process for dividing the set of first tasks into two; a second process for inputting a plurality of tasks of one of the divided set of first tasks into an encoder to generate real vectors, and generating latent variables based on a vector obtained by aggregating the generated real vectors; a third step of calculating a first prediction loss, which is an error between first information generated by embedding each instance included in the other of the first set of tasks into an auxiliary information space using an embedding model, and second information generated by inputting each label included in the other of the first set of tasks together with the latent variables into a first decoder, and obtaining optimal parameters of the embedded model based on the first prediction loss; and a fourth step of estimating the optimal parameters of the model that generates the auxiliary information by calculating a second prediction loss, which is an error between information obtained by embedding each instance included in the other of the first set of tasks into the zero-shot trained model and information obtained by inputting each label included in the other of the second set of tasks into a second decoder.
8. A program for causing a processor included in a model parameter estimation device according to any one of claims 1 to 6 to execute at least one of the processes executed by each processing unit included in said model parameter estimation device.
Citation Information
Patent Citations
Information processing system, information processing method, and recording medium
WO2020179378A1
