IP Library › Granted Patent US 12,608,604
Granted Patent B2
US 12,608,604 · App. 17/533,679 · Granted Apr 21, 2026

Method and apparatus for training artificial intelligence based on episode memory

Inventors: Ye Bin Moon (Daejeon, KR); Tae Hyun Oh (Daejeon, KR); Yong Jin Kwon (Daejeon, KR)
Assignee: ELECTRONICS AND TELECOMMUNICATIONS RESEARCH INSTITUTE
G06N3/08G06F18/10G06F18/22
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,608,604
App. No.
17/533,679
Granted
Apr 21, 2026
Kind
B2
Abstract

The present disclosure relates to a method and apparatus for training artificial intelligence based on an episodic memory. According to an embodiment of the present disclosure, a method for training artificial intelligence based on an episodic memory may include: constructing an episodic memory by using a feature vector of a training dataset stored in a full memory; obtaining output data by inputting query data into an artificial intelligence model; deriving a similarity between the output data and a feature vector in the constructed episodic memory; and deriving an episode loss function based on the similarity.

Claims (50)

1 . A computer-implemented method for training artificial intelligence based on an episodic memory, the method comprising:

constructing an episodic memory to include a representation of a feature vector stored in a full memory, the feature vector being associated with a training dataset;

obtaining output data by inputting query data into an artificial intelligence model;

deriving a similarity between the output data and the representation in the episodic memory; and

deriving an episode loss function based on the similarity,

wherein the feature vector is generated by inputting the training dataset into a pretrained deep neural network and includes a plurality of numerical elements,

wherein constructing the episodic memory, obtaining the output data, deriving the similarity, and deriving the episode loss function are repeated a plurality of times during training to iteratively update one or more parameters of the artificial intelligence model using backpropagation based on the episode loss function and an optimization algorithm, and

wherein, after each iteration of the training, the full memory is configured to update the feature vector stored in the full memory by:

inputting at least a portion of the training dataset into the artificial intelligence model after the one or more parameters are updated to generate updated output data;

generating an updated feature vector based on the updated output data; and

storing the updated feature vector in the full memory in association with the training dataset prior to constructing the episodic memory for a next iteration of the training.

2 . The computer-implemented method of claim 1 , wherein the episodic memory comprises an index in the full memory for the-a feature vector comprised and the representation is a matrix representation of the feature vector.

3 . The computer-implemented method of claim 1 , wherein the episode loss function is derived based on at least one of a hard-attention loss function and a soft-attention loss function.

4 . The computer-implemented method of claim 3 , wherein the hard-attention loss function is derived based on a probability that an arbitrary slot in the episodic memory corresponds to the query data.

5 . The computer-implemented method of claim 4 , wherein, in response to the arbitrary slot in the episodic memory corresponding to the query data, the soft-attention loss function is derived based on a difference between the output data that are obtained through the artificial intelligence model by using a probability that another arbitrary slot in the episodic memory corresponds to the query data.

6 . The computer-implemented method of claim 1 , wherein the artificial intelligence model comprises a first artificial intelligence model and a second artificial intelligence model, wherein the second artificial intelligence model comprises a pretrained artificial neural network that performs a same type of task as the first artificial intelligence model.

7 . The computer-implemented method of claim 6 , further comprising deriving a knowledge distillation loss function by using the second artificial intelligence model.

8 . The computer-implemented method of claim 7 , further comprising deriving a final loss function by applying a weight to the episode loss function and the knowledge distillation loss function.

9 . The computer-implemented method of claim 1 , wherein the artificial intelligence model is based on a convolutional neural network (CNN) or an autoencoder.

10 . The computer-implemented method of claim 1 , wherein the full memory stores a class label corresponding to the feature vector.

11 . The computer-implemented method of claim 10 , wherein a class label of a feature vector with a highest similarity is allocated as a class label of the query data.

12 . The computer-implemented method of claim 1 , wherein the training dataset comprises the query data and random data.

13 . The computer-implemented method of claim 1 , wherein a plurality of the query data forms mini batch.

14 . The computer-implemented method of claim 1 , further comprising initializing the artificial intelligence model and the full memory before the episodic memory is constructed.

15 . The computer-implemented method of claim 1 , wherein the episodic memory is constructed only once per training iteration.

16 . An apparatus for training artificial intelligence based on an episodic memory, the apparatus comprising:

a full memory comprising a feature vector associated with a training dataset; and

a processor configured to control the full memory,

wherein the processor is further configured to:

construct an episodic memory to include a representation of the feature vector;

obtain output data by inputting query data into an artificial intelligence model;

derive a similarity between the output data and the representation in the episodic memory; and

derive an episode loss function based on the similarity,

wherein the feature vector is generated by inputting the training dataset into a pretrained deep neural network and includes a plurality of numerical elements,

wherein the processor is configured to repeatedly construct the episodic memory, obtain the output data, derive the similarity, and derive the episode loss function a plurality of times during training to iteratively update one or more parameters of the artificial intelligence model using backpropagation based on the episode loss function and an optimization algorithm, and

wherein, after each iteration of the training, the processor is configured to update the feature vector stored in the full memory by:

inputting at least a portion of the training dataset into the artificial intelligence model after the one or more parameters are updated to generate updated output data;

generating an updated feature vector based on the updated output data; and

storing the updated feature vector in the full memory in association with the training dataset prior to constructing the episodic memory for a next iteration of the training.

17 . A non-transitory computer-readable medium storing a computer program, the computer program implementing:

constructing an episodic memory to include a representation of a feature vector stored in a full memory, the feature vector being associated with a training dataset;

obtaining output data by inputting query data into an artificial intelligence model;

deriving a similarity between the output data and the representation in the episodic memory; and

deriving an episode loss function based on the similarity,

wherein the feature vector is generated by inputting the training dataset into a pretrained deep neural network and includes a plurality of numerical elements,

wherein constructing the episodic memory, obtaining the output data, deriving the similarity, and deriving the episode loss function are repeated a plurality of times during training to iteratively update one or more parameters of the artificial intelligence model using backpropagation based on the episode loss function and an optimization algorithm, and

wherein, after each iteration of the training, the computer program is configured to update the feature vector stored in the full memory by:

inputting at least a portion of the training dataset into the artificial intelligence model after the one or more parameters are updated to generate updated output data;

generating an updated feature vector based on the updated output data; and

storing the updated feature vector in the full memory in association with the training dataset prior to constructing the episodic memory for a next iteration of the training.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Nov 23, 2021
From: MOON, YE BIN; OH, TAE HYUN; KWON, YONG JIN
To: ELECTRONICS AND TELECOMMUNICATIONS RESEARCH INSTITUTE
Reel/Frame 058197/0666 →
Priority Claims (1)
KR 10-2021-0104631 · Aug 9, 2021 · national
Continuity (1)
Related Publication 20230041614A1 · Feb 9, 2023
References Cited (28)
US 10963754B1 · Ravichandran et al. · 2021 [cited by applicant]
US 20190303764A1 · Uria-Martínez · 2019 [cited by examiner]
US 20200134385A1 · Yin · 2020 [cited by examiner]
US 20200160212A1 · Shin et al. · 2020 [cited by applicant]
US 20200257970A1 · Moon et al. · 2020 [cited by applicant]
US 20200372350A1 · Cho et al. · 2020 [cited by applicant]
US 20210103721A1 · Im et al. · 2021 [cited by applicant]
US 20210124993A1 · Singh et al. · 2021 [cited by applicant]
US 20210142164A1 · Liu · 2021 [cited by examiner]
US 20210263859A1 · Hwang · 2021 [cited by examiner]
US 20210383226A1 · Doersch · 2021 [cited by examiner]
JP 2005078516 · 2005 [cited by applicant]
KR 1020200057832 · 2020 [cited by applicant]
KR 1020200063330 · 2020 [cited by applicant]
KR 1020200097618 · 2020 [cited by applicant]
KR 1020210052153 · 2021 [cited by applicant]
WO 2021085785 · 2021 [cited by applicant]
Inflated Episodic Memory With Region Self-Attention for Long-Tailed Visual Recognition, Linchao Zhu et al., 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition (Year: 2020). [cited by examiner]
Memory Matching Networks for One Shot Image Recognition, Qi Cai et al., arXiv:1804.08281v1 [cs.CV] Apr. 23, 2018 (Year: 2018). [cited by examiner]
Matching Networks for One Shot Learning, Oriol Vinyals et al., arXiv:1606.04080v2 [cs.LG] Dec. 29, 2017 (Year: 2017). [cited by examiner]
Multi-Loss Function Fusion for Face Recognition Based on the Convolutional Neural Network, Qing Gao et al., 2019 12th International Congress on Image and Signal Processing, BioMedical Engineering and Informatics (Year: … [cited by examiner]
ReasoNet: Learning to Stop Reading in Machine Comprehension, Yelong Shen et al., arXiv:1609.05284v3 [cs.LG] Jun. 20, 2017 (Year: 2017). [cited by examiner]
Deep Episodic Memory Encoding, Recalling, and Predicting Episodic Experiences for Robot Action Execution, Jonas Rothfuss et al., IEEE Robotics and Automation Letters, vol. 3, No. 4, Oct. 2018 (Year: 2018). [cited by examiner]
Rebuffi et al., “iCaRL: Incremental Classifier and Representation Learning,” arXiv:1611.07725v2 [cs.CV] Apr. 14, 2017 (Year: 2017). [cited by examiner]
Choi et al., “Autoencoder-Based Incremental Class Learning without Retraining on Old Data,” arXiv:1907.07872v1 [cs.LG] Jul. 18, 2019 (Year: 2019). [cited by examiner]
Lin et al., “Episodic Memory Deep Q-Networks,” arXiv:1805.07603v1 [cs.LG] May 19, 2018 (Year: 2018). [cited by examiner]
Chaudhry et al., “On Tiny Episodic Memories in Continual Learning,” arXiv:1902.10486v4 [cs.LG] Jun. 4, 2019 (Year: 2019). [cited by examiner]
Ye-Bin Moon et al., “Self-supervised Few-shot Learning by Episodic Instance Discrimination”, IPIU 2021, 33rd Image Processing and Image Understanding, Feb. 3-5, 2021. [cited by applicant]