METHOD OF REDUCING SIZE OF MODEL FOR KNOWLEDGE TRACING
The present disclosure relates to a method of reducing a size of an artificial intelligence model by an electronic device, including: inputting an input value for training to a first model; training the first model for performing a specific task based on the input value; inputting the input value to a second model; and training the second model based on an output value of the first model, in which the first model may be an artificial intelligence model larger in size than the second model.
1 . A method of reducing a size of an artificial intelligence model by an electronic device, the method comprising:
inputting an input value for training to a first model;
training the first model for performing a specific task based on the input value;
inputting the input value to a second model; and
training the second model based on an output value of the first model,
wherein the first model is an artificial intelligence model larger in size than the second model.
2 . The method of claim 1 , wherein the input value includes interaction information related to which question a student answers correctly.
3 . The method of claim 2 , wherein the output value is a probability value that the student answers the question correctly.
4 . The method of claim 3 , wherein the training of the second model is performed after a label of an output value of the second model is set to a label of the output value of the first model.
5 . The method of claim 4 , wherein the training of the second model includes using a loss function based on the output value of the second model and the output value of the first model.
6 . The method of claim 5 , further comprising providing a service for the specific task using the second model.
7 . An electronic device for reducing a size of an artificial intelligence model, the electronic device comprising:
a communication module configured to communicate with a terminal;
a memory; and
a processor,
wherein the processor inputs an input value for training to a first model,
trains the first model for performing a specific task based on the input value,
inputs the input value to a second model, and
trains the second model based on an output value of the first model, and
the first model is an artificial intelligence model larger in size than the second model.
8 . The electronic device of claim 7 , wherein the input value includes interaction information related to which question a student answers correctly.
9 . The electronic device of claim 8 , wherein the output value is a probability value that the student answers the question correctly.
10 . The electronic device of claim 9 , wherein the training of the second model is performed after a label of an output value of the second model is set to a label of the output value of the first model.
11 . The electronic device of claim 10 , wherein the training of the second model uses a loss function based on the output value of the second model and the output value of the first model.
12 . The electronic device of claim 11 , wherein the processor uses the second model to provide a service for the specific task through a terminal.