http://wiki.math.uwaterloo.ca/statwiki/api.php?action=feedcontributions&user=Z5abbas&feedformat=atomstatwiki - User contributions [US]2021-11-27T20:52:39ZUser contributionsMediaWiki 1.28.3http://wiki.math.uwaterloo.ca/statwiki/index.php?title=Memory-Based_Parameter_Adaptation&diff=38595Memory-Based Parameter Adaptation2018-11-10T01:09:24Z<p>Z5abbas: /* References */</p>
<hr />
<div>This is a summary based on the paper, Memory-based Parameter Adaptation by Sprechmann et al.<sup>[[#References|[1]]]</sup>.<br />
<br />
The paper generalizes some approaches in language modelling that seek to overcome some of the shortcomings of neural networks including the phenomenon of catastrophic forgetting using memory-based adaptation. Catastrophic forgetting occurs when neural networks perform poorly on old tasks after they have been trained to perform well on a new task. The paper also presents experimental results where the model in question is applied to continual and incremental learning tasks.<br />
<br />
= Presented by = <br />
*J.Walton<br />
*J.Schneider<br />
*Z.Abbas<br />
*A.Na<br />
<br />
= Introduction = <br />
<br />
Model-based parameter adaptation (MbPA) is based on the theory of complementary learning systems which states that intelligent agents must possess two learning systems, one that allows the gradual acquisition of knowledge and another that allows rapid learning of the specifics of individual experiences<sup>[[#References|[2]]]</sup>. Similarly, MbPA consists of two components: a parametric component and a non-parametric component. The parametric component is the standard neural network which learns slowly (low learning rates) but generalizes well. The non-parametric component, on the other hand, is a neural network augmented with an episodic memory that allows storing of previous experiences and local adaptation of the weights of the parametric component. The parametric and non-parametric components therefore serve different purposes during the training and testing phases.<br />
<br />
= Model Architecture = <br />
[[File:MbPA_model_architecture.PNG|700px|thumb|center|Architecture for the MbPA model. Left: Training Usage. Right: Testing Setting.]]<br />
<br />
== Training Phase == <br />
<br />
The model consists of three components: an embedding network <math>f_{\gamma}</math>, a memory <math>M</math> and an output network <math>g_{\theta}</math>. The embedding network and the output network can be thought of as the standard feedforward neural networks for our purposes, with parameters (weights) <math>\gamma</math> and <math>\theta</math>, respectively. The memory, denoted by <math>M</math>, stores “experiences” in the form of key and value pairs <math>\{(h_{i},v_{i})\}</math> where the keys <math>h_{i}</math> are the outputs of the embedding network <math>f_{\gamma}(x_{i})</math> and the values <math>v_{i}</math>, in the context of classification, are simply the true class labels <math>y_{i}</math>. Thus, for a given input <math>x_{j}</math><br />
<br />
<center><br />
<math><br />
f_{\gamma}(x_{j}) \rightarrow h_{j},<br />
</math><br />
</center><br />
<br />
<center><br />
<math><br />
y_{j} \rightarrow v_{j}.<br />
</math><br />
</center> <br />
<br />
Note that the memory has a fixed size; thus when it is full, the oldest data is discarded first.<br />
<br />
During training, the authors sample of a set of <math>b</math> training examples randomly (ie. mini-batch size <math>b</math>), say <math>\{(x_{b},y_{b})\}_{b}</math>, from the training data that they input into the embedding network <math>f_{\gamma}</math>, followed by the output network <math>g_{\theta}</math>. The parameters of the embedding and output networks are updated by maximizing the likelihood function (equivalently, minimizing the loss function) of the target values<br />
<br />
<center><br />
<math><br />
p(y|x,\gamma,\theta)=g_{\theta}(f_{\gamma}(x)).<br />
</math><br />
</center><br />
<br />
The last layer of the output network <math>g_{\theta}</math> is a softmax layer, such that the output can be interpreted as a probability distribution. This process is also known as backpropagation with mini-batch gradient descent. Finally, the embedded samples <math>\{(f_{\gamma}(x_{b}),y_{b})\}_{b}</math> are stored into the memory. No local adaptation takes place during this phase.<br />
<br />
== Testing Phase == <br />
<br />
= Examples =<br />
<br />
== Continual Learning ==<br />
Continual learning is the process of learning multiple tasks in a sequence without revisiting a task. The authors consider a permuted MNIST setup, similar to [[#References|[3]]], where each task was given by a different permutation of the pixels. The authors sequentially trained the MbPA on 20 different permutations and tested on previously trained tasks.<br />
<br />
The model was trained on 10 000 examples per task, using a 2 layer multi-layer perceptron (MLP) with an ADAM optimizer. The elastic weight consolidation (EWC) method and regular gradient descent were used to estimate the parameters. A grid search was used to determine the EWC penalty cost and the local MbPA learning rate was set as <math>\beta\in(0.0,0.1)</math> and number of steps (n) was <math>n\in[1,20]</math>.<br />
<br />
[[File:ContinualLearning.PNG|700px|thumb|center|Results on baseline comparisons on permuted MNIST<br />
with MbPA using different memory sizes.]]<br />
<br />
The authors used the pixels as the embedding, i.e. <math>f_{\gamma}</math> is the identity function, and looked at regions where episodic memory was small. The authors found that through MbPA only a few gradient steps on carefully selected data from memory is enough to recover performance. They found that MbPA outperformed MLP and worked better than EWC in most cases and found that the performance of MbPA grew with the number of examples stored. They note that the memory requirements were lower than EWC. The lower memory requirements are attributed to the fact that EWC stores all task identifiers, whereas MbPA only stores a few examples. The figure above also shows the results of MbPA combined with other methods. It is noted that MbPA combined with EWC gives the best results.<br />
<br />
== Incremental Learning ==<br />
<br />
Incremental learning has two steps. First, the model is trained on a subset of the classes found in the training data. The second step is to give it the entire training set and see how long it takes for the model to perform well on the entire set. The purpose of this is to see how quickly the model learns information about new classes and how likely it is to lose information about the old ones. The authors used the ImageNet dataset from [[#References|[4]]], and the initial training set contained 500 out of the 1000 classes.<br />
<br />
For the first step, they used three models. A parametric model, MbPA, and a mixture model. The parametric model they used was Resnet V1 from [[#References|[5]]]. It was used both as the parametric model in MbPA and as a separate model for testing. The non-parametric model used was the memory as described earlier. The memory was created by taking the keys from the second last layer of the parametric model. The mixture model was a convex combination of the outputs of the parametric and non-parametric model as shown below:<br />
<br />
<center><br />
<math><br />
p(y|q) = \lambda p_{param}(y|q) + (1-\lambda)p_{mem}(y|q).<br />
</math><br />
</center><br />
<br />
<math>\lambda</math> was tuned as a hyperparameter. Finally, MbPA was used as the fourth model with the Resnet V1 parametric model, and the non-parametric model being identical to the one described above. They were evaluated using their “Top 1” accuracy. That is to say that the class with the highest output value was taken to be the model’s prediction for a given data point in the test set.<br />
<br />
[[File:Figure4.PNG|700px|thumb|center|All three models perform similarly on the data they were pre-trained on. On the new classes, the mixture and parametric models perform similarly and MbPA performs much better<sup>[[#References|[1]]]</sup>.]]<br />
<br />
There was also a test on how well the models perform on unbalanced datasets. In addition to the previous three, they included a non-parametric model which was just the memory running without the rest of the network. Since most real-world datasets have different amounts of data in each class, a model that could use unbalanced datasets without becoming biased would have more information available to it for training. The testing here was done similarly to the other incremental learning experiment. The models were trained on 500 of the 1000 classes until they performed well. They were then given a dataset containing all of the data from the first 500 classes and only 10% of the data from the other 500 classes. Accuracy was evaluated both using Top 1 and AUC (area under the curve) accuracy. It was found that after 0.1 epochs, MbPA and the non-parametric model performed similarly and much better than the other two by both accuracy metrics. After 1 or 3 epochs, the non-parametric model begins to perform worse than the others and MbPA continues to perform better.<br />
<br />
= Conclusion =<br />
<br />
The MbPA model can successfully overcome several shortcomings associated with neural networks through its non-parametric, episodic memory. In fact, many other works in the context of classification and language modelling have successfully used variants of this architecture, where traditional neural network systems are augmented with memories. Likewise, the experiments in incremental and continual learning presented in this paper use a memory architecture similar to the Differential Neural Dictionary (DND) used in Neural Episodic Control (NEC) found in [[#References|[6]]], though the gradients from the memory in the MbPA model are not used during training. In conclusion, MbPA presents a natural way to improve the performance of standard deep networks.<br />
<br />
=References=<br />
* <sup>[1]</sup>Sprechmann. Pablo, Jayakumar. Siddhant, Rae. Jack, Pritzel. Alexander,Badia. Adria, Uria. Benigno, Vinyals. Oriol, Hassabis. Demis, Pascanu.Razvan, and Blundell. Charles. Memory-based parameter adaptation.ICLR, 2018.<br />
<br />
* <sup>[2]</sup>Kumaran. Dhushan, Hassabis. Demis, and McClelland. James. What learning systems do intelligent agents need? Trends in Cognitive Sciences,2016.<br />
<br />
* <sup>[3]</sup>Goodfellow. Ian, Warde-Farley. David, Mirza. Mehdi, Courville. Aaron,and Bengio. Yohsua. Maxout networks.arXiv preprint, 2013.<br />
<br />
* <sup>[4]</sup>Russakovsky. Olga, Deng. Jia, Su. Hao, Krause. Jonathan, Satheesh. San-jeev, Ma. Sean, Huang. Zhiheng, Karpathy. Andrej, Khosla. Aditya, andBernstein. Michael. Imagenet large scale visual recognition challenge.International Journal of Computer Vision, 2015.<br />
<br />
* <sup>[5]</sup>He. Kaiming, Zhang. Xiangyu, Ren. Shaoqing, and Sun. Jian. Deep residual learning for image recognition.IEEE conference on computer vision and pattern recognition, 2016.<br />
<br />
* <sup>[6]</sup>Pritzel. Alexander, Uria. Benigno, Srinivasan. Sriram, Puigdomenech.Adria, Vinyals. Oriol, Hassabis. Demis, Wierstra. Daan, and Blundell.Charles. Neural episodic control.ICML, 2017.</div>Z5abbashttp://wiki.math.uwaterloo.ca/statwiki/index.php?title=Memory-Based_Parameter_Adaptation&diff=38594Memory-Based Parameter Adaptation2018-11-10T01:05:10Z<p>Z5abbas: /* References */</p>
<hr />
<div>This is a summary based on the paper, Memory-based Parameter Adaptation by Sprechmann et al.<sup>[[#References|[1]]]</sup>.<br />
<br />
The paper generalizes some approaches in language modelling that seek to overcome some of the shortcomings of neural networks including the phenomenon of catastrophic forgetting using memory-based adaptation. Catastrophic forgetting occurs when neural networks perform poorly on old tasks after they have been trained to perform well on a new task. The paper also presents experimental results where the model in question is applied to continual and incremental learning tasks.<br />
<br />
= Presented by = <br />
*J.Walton<br />
*J.Schneider<br />
*Z.Abbas<br />
*A.Na<br />
<br />
= Introduction = <br />
<br />
Model-based parameter adaptation (MbPA) is based on the theory of complementary learning systems which states that intelligent agents must possess two learning systems, one that allows the gradual acquisition of knowledge and another that allows rapid learning of the specifics of individual experiences<sup>[[#References|[2]]]</sup>. Similarly, MbPA consists of two components: a parametric component and a non-parametric component. The parametric component is the standard neural network which learns slowly (low learning rates) but generalizes well. The non-parametric component, on the other hand, is a neural network augmented with an episodic memory that allows storing of previous experiences and local adaptation of the weights of the parametric component. The parametric and non-parametric components therefore serve different purposes during the training and testing phases.<br />
<br />
= Model Architecture = <br />
[[File:MbPA_model_architecture.PNG|700px|thumb|center|Architecture for the MbPA model. Left: Training Usage. Right: Testing Setting.]]<br />
<br />
== Training Phase == <br />
<br />
The model consists of three components: an embedding network <math>f_{\gamma}</math>, a memory <math>M</math> and an output network <math>g_{\theta}</math>. The embedding network and the output network can be thought of as the standard feedforward neural networks for our purposes, with parameters (weights) <math>\gamma</math> and <math>\theta</math>, respectively. The memory, denoted by <math>M</math>, stores “experiences” in the form of key and value pairs <math>\{(h_{i},v_{i})\}</math> where the keys <math>h_{i}</math> are the outputs of the embedding network <math>f_{\gamma}(x_{i})</math> and the values <math>v_{i}</math>, in the context of classification, are simply the true class labels <math>y_{i}</math>. Thus, for a given input <math>x_{j}</math><br />
<br />
<center><br />
<math><br />
f_{\gamma}(x_{j}) \rightarrow h_{j},<br />
</math><br />
</center><br />
<br />
<center><br />
<math><br />
y_{j} \rightarrow v_{j}.<br />
</math><br />
</center> <br />
<br />
Note that the memory has a fixed size; thus when it is full, the oldest data is discarded first.<br />
<br />
During training, the authors sample of a set of <math>b</math> training examples randomly (ie. mini-batch size <math>b</math>), say <math>\{(x_{b},y_{b})\}_{b}</math>, from the training data that they input into the embedding network <math>f_{\gamma}</math>, followed by the output network <math>g_{\theta}</math>. The parameters of the embedding and output networks are updated by maximizing the likelihood function (equivalently, minimizing the loss function) of the target values<br />
<br />
<center><br />
<math><br />
p(y|x,\gamma,\theta)=g_{\theta}(f_{\gamma}(x)).<br />
</math><br />
</center><br />
<br />
The last layer of the output network <math>g_{\theta}</math> is a softmax layer, such that the output can be interpreted as a probability distribution. This process is also known as backpropagation with mini-batch gradient descent. Finally, the embedded samples <math>\{(f_{\gamma}(x_{b}),y_{b})\}_{b}</math> are stored into the memory. No local adaptation takes place during this phase.<br />
<br />
== Testing Phase == <br />
<br />
= Examples =<br />
<br />
== Continual Learning ==<br />
Continual learning is the process of learning multiple tasks in a sequence without revisiting a task. The authors consider a permuted MNIST setup, similar to [[#References|[3]]], where each task was given by a different permutation of the pixels. The authors sequentially trained the MbPA on 20 different permutations and tested on previously trained tasks.<br />
<br />
The model was trained on 10 000 examples per task, using a 2 layer multi-layer perceptron (MLP) with an ADAM optimizer. The elastic weight consolidation (EWC) method and regular gradient descent were used to estimate the parameters. A grid search was used to determine the EWC penalty cost and the local MbPA learning rate was set as <math>\beta\in(0.0,0.1)</math> and number of steps (n) was <math>n\in[1,20]</math>.<br />
<br />
[[File:ContinualLearning.PNG|700px|thumb|center|Results on baseline comparisons on permuted MNIST<br />
with MbPA using different memory sizes.]]<br />
<br />
The authors used the pixels as the embedding, i.e. <math>f_{\gamma}</math> is the identity function, and looked at regions where episodic memory was small. The authors found that through MbPA only a few gradient steps on carefully selected data from memory is enough to recover performance. They found that MbPA outperformed MLP and worked better than EWC in most cases and found that the performance of MbPA grew with the number of examples stored. They note that the memory requirements were lower than EWC. The lower memory requirements are attributed to the fact that EWC stores all task identifiers, whereas MbPA only stores a few examples. The figure above also shows the results of MbPA combined with other methods. It is noted that MbPA combined with EWC gives the best results.<br />
<br />
== Incremental Learning ==<br />
<br />
Incremental learning has two steps. First, the model is trained on a subset of the classes found in the training data. The second step is to give it the entire training set and see how long it takes for the model to perform well on the entire set. The purpose of this is to see how quickly the model learns information about new classes and how likely it is to lose information about the old ones. The authors used the ImageNet dataset from [[#References|[4]]], and the initial training set contained 500 out of the 1000 classes.<br />
<br />
For the first step, they used three models. A parametric model, MbPA, and a mixture model. The parametric model they used was Resnet V1 from [[#References|[5]]]. It was used both as the parametric model in MbPA and as a separate model for testing. The non-parametric model used was the memory as described earlier. The memory was created by taking the keys from the second last layer of the parametric model. The mixture model was a convex combination of the outputs of the parametric and non-parametric model as shown below:<br />
<br />
<center><br />
<math><br />
p(y|q) = \lambda p_{param}(y|q) + (1-\lambda)p_{mem}(y|q).<br />
</math><br />
</center><br />
<br />
<math>\lambda</math> was tuned as a hyperparameter. Finally, MbPA was used as the fourth model with the Resnet V1 parametric model, and the non-parametric model being identical to the one described above. They were evaluated using their “Top 1” accuracy. That is to say that the class with the highest output value was taken to be the model’s prediction for a given data point in the test set.<br />
<br />
[[File:Figure4.PNG|700px|thumb|center|All three models perform similarly on the data they were pre-trained on. On the new classes, the mixture and parametric models perform similarly and MbPA performs much better<sup>[[#References|[1]]]</sup>.]]<br />
<br />
There was also a test on how well the models perform on unbalanced datasets. In addition to the previous three, they included a non-parametric model which was just the memory running without the rest of the network. Since most real-world datasets have different amounts of data in each class, a model that could use unbalanced datasets without becoming biased would have more information available to it for training. The testing here was done similarly to the other incremental learning experiment. The models were trained on 500 of the 1000 classes until they performed well. They were then given a dataset containing all of the data from the first 500 classes and only 10% of the data from the other 500 classes. Accuracy was evaluated both using Top 1 and AUC (area under the curve) accuracy. It was found that after 0.1 epochs, MbPA and the non-parametric model performed similarly and much better than the other two by both accuracy metrics. After 1 or 3 epochs, the non-parametric model begins to perform worse than the others and MbPA continues to perform better.<br />
<br />
= Conclusion =<br />
<br />
The MbPA model can successfully overcome several shortcomings associated with neural networks through its non-parametric, episodic memory. In fact, many other works in the context of classification and language modelling have successfully used variants of this architecture, where traditional neural network systems are augmented with memories. Likewise, the experiments in incremental and continual learning presented in this paper use a memory architecture similar to the Differential Neural Dictionary (DND) used in Neural Episodic Control (NEC) found in [[#References|[6]]], though the gradients from the memory in the MbPA model are not used during training. In conclusion, MbPA presents a natural way to improve the performance of standard deep networks.<br />
<br />
=References=<br />
* <sup>[[1]]</sup>Sprechmann. Pablo, Jayakumar. Siddhant, Rae. Jack, Pritzel. Alexander,Badia. Adria, Uria. Benigno, Vinyals. Oriol, Hassabis. Demis, Pascanu.Razvan, and Blundell. Charles. Memory-based parameter adaptation.ICLR, 2018.<br />
<br />
* <sup>[[2]]</sup>Kumaran. Dhushan, Hassabis. Demis, and McClelland. James. What learning systems do intelligent agents need? Trends in Cognitive Sciences,2016.<br />
<br />
* <sup>[[3]]</sup>Goodfellow. Ian, Warde-Farley. David, Mirza. Mehdi, Courville. Aaron,and Bengio. Yohsua. Maxout networks.arXiv preprint, 2013.<br />
<br />
* <sup>[[4]]</sup>Russakovsky. Olga, Deng. Jia, Su. Hao, Krause. Jonathan, Satheesh. San-jeev, Ma. Sean, Huang. Zhiheng, Karpathy. Andrej, Khosla. Aditya, andBernstein. Michael. Imagenet large scale visual recognition challenge.International Journal of Computer Vision, 2015.<br />
<br />
* <sup>[[5]]</sup>He. Kaiming, Zhang. Xiangyu, Ren. Shaoqing, and Sun. Jian. Deep residual learning for image recognition.IEEE conference on computer vision and pattern recognition, 2016.<br />
<br />
* <sup>[[6]]</sup>Pritzel. Alexander, Uria. Benigno, Srinivasan. Sriram, Puigdomenech.Adria, Vinyals. Oriol, Hassabis. Demis, Wierstra. Daan, and Blundell.Charles. Neural episodic control.ICML, 2017.</div>Z5abbashttp://wiki.math.uwaterloo.ca/statwiki/index.php?title=Memory-Based_Parameter_Adaptation&diff=38593Memory-Based Parameter Adaptation2018-11-10T01:04:35Z<p>Z5abbas: /* References */</p>
<hr />
<div>This is a summary based on the paper, Memory-based Parameter Adaptation by Sprechmann et al.<sup>[[#References|[1]]]</sup>.<br />
<br />
The paper generalizes some approaches in language modelling that seek to overcome some of the shortcomings of neural networks including the phenomenon of catastrophic forgetting using memory-based adaptation. Catastrophic forgetting occurs when neural networks perform poorly on old tasks after they have been trained to perform well on a new task. The paper also presents experimental results where the model in question is applied to continual and incremental learning tasks.<br />
<br />
= Presented by = <br />
*J.Walton<br />
*J.Schneider<br />
*Z.Abbas<br />
*A.Na<br />
<br />
= Introduction = <br />
<br />
Model-based parameter adaptation (MbPA) is based on the theory of complementary learning systems which states that intelligent agents must possess two learning systems, one that allows the gradual acquisition of knowledge and another that allows rapid learning of the specifics of individual experiences<sup>[[#References|[2]]]</sup>. Similarly, MbPA consists of two components: a parametric component and a non-parametric component. The parametric component is the standard neural network which learns slowly (low learning rates) but generalizes well. The non-parametric component, on the other hand, is a neural network augmented with an episodic memory that allows storing of previous experiences and local adaptation of the weights of the parametric component. The parametric and non-parametric components therefore serve different purposes during the training and testing phases.<br />
<br />
= Model Architecture = <br />
[[File:MbPA_model_architecture.PNG|700px|thumb|center|Architecture for the MbPA model. Left: Training Usage. Right: Testing Setting.]]<br />
<br />
== Training Phase == <br />
<br />
The model consists of three components: an embedding network <math>f_{\gamma}</math>, a memory <math>M</math> and an output network <math>g_{\theta}</math>. The embedding network and the output network can be thought of as the standard feedforward neural networks for our purposes, with parameters (weights) <math>\gamma</math> and <math>\theta</math>, respectively. The memory, denoted by <math>M</math>, stores “experiences” in the form of key and value pairs <math>\{(h_{i},v_{i})\}</math> where the keys <math>h_{i}</math> are the outputs of the embedding network <math>f_{\gamma}(x_{i})</math> and the values <math>v_{i}</math>, in the context of classification, are simply the true class labels <math>y_{i}</math>. Thus, for a given input <math>x_{j}</math><br />
<br />
<center><br />
<math><br />
f_{\gamma}(x_{j}) \rightarrow h_{j},<br />
</math><br />
</center><br />
<br />
<center><br />
<math><br />
y_{j} \rightarrow v_{j}.<br />
</math><br />
</center> <br />
<br />
Note that the memory has a fixed size; thus when it is full, the oldest data is discarded first.<br />
<br />
During training, the authors sample of a set of <math>b</math> training examples randomly (ie. mini-batch size <math>b</math>), say <math>\{(x_{b},y_{b})\}_{b}</math>, from the training data that they input into the embedding network <math>f_{\gamma}</math>, followed by the output network <math>g_{\theta}</math>. The parameters of the embedding and output networks are updated by maximizing the likelihood function (equivalently, minimizing the loss function) of the target values<br />
<br />
<center><br />
<math><br />
p(y|x,\gamma,\theta)=g_{\theta}(f_{\gamma}(x)).<br />
</math><br />
</center><br />
<br />
The last layer of the output network <math>g_{\theta}</math> is a softmax layer, such that the output can be interpreted as a probability distribution. This process is also known as backpropagation with mini-batch gradient descent. Finally, the embedded samples <math>\{(f_{\gamma}(x_{b}),y_{b})\}_{b}</math> are stored into the memory. No local adaptation takes place during this phase.<br />
<br />
== Testing Phase == <br />
<br />
= Examples =<br />
<br />
== Continual Learning ==<br />
Continual learning is the process of learning multiple tasks in a sequence without revisiting a task. The authors consider a permuted MNIST setup, similar to [[#References|[3]]], where each task was given by a different permutation of the pixels. The authors sequentially trained the MbPA on 20 different permutations and tested on previously trained tasks.<br />
<br />
The model was trained on 10 000 examples per task, using a 2 layer multi-layer perceptron (MLP) with an ADAM optimizer. The elastic weight consolidation (EWC) method and regular gradient descent were used to estimate the parameters. A grid search was used to determine the EWC penalty cost and the local MbPA learning rate was set as <math>\beta\in(0.0,0.1)</math> and number of steps (n) was <math>n\in[1,20]</math>.<br />
<br />
[[File:ContinualLearning.PNG|700px|thumb|center|Results on baseline comparisons on permuted MNIST<br />
with MbPA using different memory sizes.]]<br />
<br />
The authors used the pixels as the embedding, i.e. <math>f_{\gamma}</math> is the identity function, and looked at regions where episodic memory was small. The authors found that through MbPA only a few gradient steps on carefully selected data from memory is enough to recover performance. They found that MbPA outperformed MLP and worked better than EWC in most cases and found that the performance of MbPA grew with the number of examples stored. They note that the memory requirements were lower than EWC. The lower memory requirements are attributed to the fact that EWC stores all task identifiers, whereas MbPA only stores a few examples. The figure above also shows the results of MbPA combined with other methods. It is noted that MbPA combined with EWC gives the best results.<br />
<br />
== Incremental Learning ==<br />
<br />
Incremental learning has two steps. First, the model is trained on a subset of the classes found in the training data. The second step is to give it the entire training set and see how long it takes for the model to perform well on the entire set. The purpose of this is to see how quickly the model learns information about new classes and how likely it is to lose information about the old ones. The authors used the ImageNet dataset from [[#References|[4]]], and the initial training set contained 500 out of the 1000 classes.<br />
<br />
For the first step, they used three models. A parametric model, MbPA, and a mixture model. The parametric model they used was Resnet V1 from [[#References|[5]]]. It was used both as the parametric model in MbPA and as a separate model for testing. The non-parametric model used was the memory as described earlier. The memory was created by taking the keys from the second last layer of the parametric model. The mixture model was a convex combination of the outputs of the parametric and non-parametric model as shown below:<br />
<br />
<center><br />
<math><br />
p(y|q) = \lambda p_{param}(y|q) + (1-\lambda)p_{mem}(y|q).<br />
</math><br />
</center><br />
<br />
<math>\lambda</math> was tuned as a hyperparameter. Finally, MbPA was used as the fourth model with the Resnet V1 parametric model, and the non-parametric model being identical to the one described above. They were evaluated using their “Top 1” accuracy. That is to say that the class with the highest output value was taken to be the model’s prediction for a given data point in the test set.<br />
<br />
[[File:Figure4.PNG|700px|thumb|center|All three models perform similarly on the data they were pre-trained on. On the new classes, the mixture and parametric models perform similarly and MbPA performs much better<sup>[[#References|[1]]]</sup>.]]<br />
<br />
There was also a test on how well the models perform on unbalanced datasets. In addition to the previous three, they included a non-parametric model which was just the memory running without the rest of the network. Since most real-world datasets have different amounts of data in each class, a model that could use unbalanced datasets without becoming biased would have more information available to it for training. The testing here was done similarly to the other incremental learning experiment. The models were trained on 500 of the 1000 classes until they performed well. They were then given a dataset containing all of the data from the first 500 classes and only 10% of the data from the other 500 classes. Accuracy was evaluated both using Top 1 and AUC (area under the curve) accuracy. It was found that after 0.1 epochs, MbPA and the non-parametric model performed similarly and much better than the other two by both accuracy metrics. After 1 or 3 epochs, the non-parametric model begins to perform worse than the others and MbPA continues to perform better.<br />
<br />
= Conclusion =<br />
<br />
The MbPA model can successfully overcome several shortcomings associated with neural networks through its non-parametric, episodic memory. In fact, many other works in the context of classification and language modelling have successfully used variants of this architecture, where traditional neural network systems are augmented with memories. Likewise, the experiments in incremental and continual learning presented in this paper use a memory architecture similar to the Differential Neural Dictionary (DND) used in Neural Episodic Control (NEC) found in [[#References|[6]]], though the gradients from the memory in the MbPA model are not used during training. In conclusion, MbPA presents a natural way to improve the performance of standard deep networks.<br />
<br />
=References=<br />
* <sup>[[1]]</sup>Sprechmann. Pablo, Jayakumar. Siddhant, Rae. Jack, Pritzel. Alexander,Badia. Adria, Uria. Benigno, Vinyals. Oriol, Hassabis. Demis, Pascanu.Razvan, and Blundell. Charles. Memory-based parameter adaptation.ICLR, 2018.<br />
<br />
* <sup>[[2]]</sup>Kumaran. Dhushan, Hassabis. Demis, and McClelland. James. What learning systems do intelligent agents need?Trends in Cognitive Sciences,2016.<br />
<br />
* <sup>[[3]]</sup>Goodfellow. Ian, Warde-Farley. David, Mirza. Mehdi, Courville. Aaron,and Bengio. Yohsua. Maxout networks.arXiv preprint, 2013.<br />
<br />
* <sup>[[4]]</sup>Russakovsky. Olga, Deng. Jia, Su. Hao, Krause. Jonathan, Satheesh. San-jeev, Ma. Sean, Huang. Zhiheng, Karpathy. Andrej, Khosla. Aditya, andBernstein. Michael. Imagenet large scale visual recognition challenge.International Journal of Computer Vision, 2015.<br />
<br />
* <sup>[[5]]</sup>He. Kaiming, Zhang. Xiangyu, Ren. Shaoqing, and Sun. Jian. Deepresidual learning for image recognition.IEEE conference on computervision and pattern recognition, 2016.<br />
<br />
* <sup>[[6]]</sup>Pritzel. Alexander, Uria. Benigno, Srinivasan. Sriram, Puigdomenech.Adria, Vinyals. Oriol, Hassabis. Demis, Wierstra. Daan, and Blundell.Charles. Neural episodic control.ICML, 2017.</div>Z5abbashttp://wiki.math.uwaterloo.ca/statwiki/index.php?title=Memory-Based_Parameter_Adaptation&diff=38592Memory-Based Parameter Adaptation2018-11-10T01:03:40Z<p>Z5abbas: </p>
<hr />
<div>This is a summary based on the paper, Memory-based Parameter Adaptation by Sprechmann et al.<sup>[[#References|[1]]]</sup>.<br />
<br />
The paper generalizes some approaches in language modelling that seek to overcome some of the shortcomings of neural networks including the phenomenon of catastrophic forgetting using memory-based adaptation. Catastrophic forgetting occurs when neural networks perform poorly on old tasks after they have been trained to perform well on a new task. The paper also presents experimental results where the model in question is applied to continual and incremental learning tasks.<br />
<br />
= Presented by = <br />
*J.Walton<br />
*J.Schneider<br />
*Z.Abbas<br />
*A.Na<br />
<br />
= Introduction = <br />
<br />
Model-based parameter adaptation (MbPA) is based on the theory of complementary learning systems which states that intelligent agents must possess two learning systems, one that allows the gradual acquisition of knowledge and another that allows rapid learning of the specifics of individual experiences<sup>[[#References|[2]]]</sup>. Similarly, MbPA consists of two components: a parametric component and a non-parametric component. The parametric component is the standard neural network which learns slowly (low learning rates) but generalizes well. The non-parametric component, on the other hand, is a neural network augmented with an episodic memory that allows storing of previous experiences and local adaptation of the weights of the parametric component. The parametric and non-parametric components therefore serve different purposes during the training and testing phases.<br />
<br />
= Model Architecture = <br />
[[File:MbPA_model_architecture.PNG|700px|thumb|center|Architecture for the MbPA model. Left: Training Usage. Right: Testing Setting.]]<br />
<br />
== Training Phase == <br />
<br />
The model consists of three components: an embedding network <math>f_{\gamma}</math>, a memory <math>M</math> and an output network <math>g_{\theta}</math>. The embedding network and the output network can be thought of as the standard feedforward neural networks for our purposes, with parameters (weights) <math>\gamma</math> and <math>\theta</math>, respectively. The memory, denoted by <math>M</math>, stores “experiences” in the form of key and value pairs <math>\{(h_{i},v_{i})\}</math> where the keys <math>h_{i}</math> are the outputs of the embedding network <math>f_{\gamma}(x_{i})</math> and the values <math>v_{i}</math>, in the context of classification, are simply the true class labels <math>y_{i}</math>. Thus, for a given input <math>x_{j}</math><br />
<br />
<center><br />
<math><br />
f_{\gamma}(x_{j}) \rightarrow h_{j},<br />
</math><br />
</center><br />
<br />
<center><br />
<math><br />
y_{j} \rightarrow v_{j}.<br />
</math><br />
</center> <br />
<br />
Note that the memory has a fixed size; thus when it is full, the oldest data is discarded first.<br />
<br />
During training, the authors sample of a set of <math>b</math> training examples randomly (ie. mini-batch size <math>b</math>), say <math>\{(x_{b},y_{b})\}_{b}</math>, from the training data that they input into the embedding network <math>f_{\gamma}</math>, followed by the output network <math>g_{\theta}</math>. The parameters of the embedding and output networks are updated by maximizing the likelihood function (equivalently, minimizing the loss function) of the target values<br />
<br />
<center><br />
<math><br />
p(y|x,\gamma,\theta)=g_{\theta}(f_{\gamma}(x)).<br />
</math><br />
</center><br />
<br />
The last layer of the output network <math>g_{\theta}</math> is a softmax layer, such that the output can be interpreted as a probability distribution. This process is also known as backpropagation with mini-batch gradient descent. Finally, the embedded samples <math>\{(f_{\gamma}(x_{b}),y_{b})\}_{b}</math> are stored into the memory. No local adaptation takes place during this phase.<br />
<br />
== Testing Phase == <br />
<br />
= Examples =<br />
<br />
== Continual Learning ==<br />
Continual learning is the process of learning multiple tasks in a sequence without revisiting a task. The authors consider a permuted MNIST setup, similar to [[#References|[3]]], where each task was given by a different permutation of the pixels. The authors sequentially trained the MbPA on 20 different permutations and tested on previously trained tasks.<br />
<br />
The model was trained on 10 000 examples per task, using a 2 layer multi-layer perceptron (MLP) with an ADAM optimizer. The elastic weight consolidation (EWC) method and regular gradient descent were used to estimate the parameters. A grid search was used to determine the EWC penalty cost and the local MbPA learning rate was set as <math>\beta\in(0.0,0.1)</math> and number of steps (n) was <math>n\in[1,20]</math>.<br />
<br />
[[File:ContinualLearning.PNG|700px|thumb|center|Results on baseline comparisons on permuted MNIST<br />
with MbPA using different memory sizes.]]<br />
<br />
The authors used the pixels as the embedding, i.e. <math>f_{\gamma}</math> is the identity function, and looked at regions where episodic memory was small. The authors found that through MbPA only a few gradient steps on carefully selected data from memory is enough to recover performance. They found that MbPA outperformed MLP and worked better than EWC in most cases and found that the performance of MbPA grew with the number of examples stored. They note that the memory requirements were lower than EWC. The lower memory requirements are attributed to the fact that EWC stores all task identifiers, whereas MbPA only stores a few examples. The figure above also shows the results of MbPA combined with other methods. It is noted that MbPA combined with EWC gives the best results.<br />
<br />
== Incremental Learning ==<br />
<br />
Incremental learning has two steps. First, the model is trained on a subset of the classes found in the training data. The second step is to give it the entire training set and see how long it takes for the model to perform well on the entire set. The purpose of this is to see how quickly the model learns information about new classes and how likely it is to lose information about the old ones. The authors used the ImageNet dataset from [[#References|[4]]], and the initial training set contained 500 out of the 1000 classes.<br />
<br />
For the first step, they used three models. A parametric model, MbPA, and a mixture model. The parametric model they used was Resnet V1 from [[#References|[5]]]. It was used both as the parametric model in MbPA and as a separate model for testing. The non-parametric model used was the memory as described earlier. The memory was created by taking the keys from the second last layer of the parametric model. The mixture model was a convex combination of the outputs of the parametric and non-parametric model as shown below:<br />
<br />
<center><br />
<math><br />
p(y|q) = \lambda p_{param}(y|q) + (1-\lambda)p_{mem}(y|q).<br />
</math><br />
</center><br />
<br />
<math>\lambda</math> was tuned as a hyperparameter. Finally, MbPA was used as the fourth model with the Resnet V1 parametric model, and the non-parametric model being identical to the one described above. They were evaluated using their “Top 1” accuracy. That is to say that the class with the highest output value was taken to be the model’s prediction for a given data point in the test set.<br />
<br />
[[File:Figure4.PNG|700px|thumb|center|All three models perform similarly on the data they were pre-trained on. On the new classes, the mixture and parametric models perform similarly and MbPA performs much better<sup>[[#References|[1]]]</sup>.]]<br />
<br />
There was also a test on how well the models perform on unbalanced datasets. In addition to the previous three, they included a non-parametric model which was just the memory running without the rest of the network. Since most real-world datasets have different amounts of data in each class, a model that could use unbalanced datasets without becoming biased would have more information available to it for training. The testing here was done similarly to the other incremental learning experiment. The models were trained on 500 of the 1000 classes until they performed well. They were then given a dataset containing all of the data from the first 500 classes and only 10% of the data from the other 500 classes. Accuracy was evaluated both using Top 1 and AUC (area under the curve) accuracy. It was found that after 0.1 epochs, MbPA and the non-parametric model performed similarly and much better than the other two by both accuracy metrics. After 1 or 3 epochs, the non-parametric model begins to perform worse than the others and MbPA continues to perform better.<br />
<br />
= Conclusion =<br />
<br />
The MbPA model can successfully overcome several shortcomings associated with neural networks through its non-parametric, episodic memory. In fact, many other works in the context of classification and language modelling have successfully used variants of this architecture, where traditional neural network systems are augmented with memories. Likewise, the experiments in incremental and continual learning presented in this paper use a memory architecture similar to the Differential Neural Dictionary (DND) used in Neural Episodic Control (NEC) found in [[#References|[6]]], though the gradients from the memory in the MbPA model are not used during training. In conclusion, MbPA presents a natural way to improve the performance of standard deep networks.<br />
<br />
=References=<br />
* <sup>[[1]]</sup>Sprechmann. Pablo, Jayakumar. Siddhant, Rae. Jack, Pritzel. Alexander,Badia. Adria, Uria. Benigno, Vinyals. Oriol, Hassabis. Demis, Pascanu.Razvan, and Blundell. Charles. Memory-based parameter adaptation.ICLR, 2018.<br />
<br />
* <sup>[[2]]</sup>Kumaran. Dhushan, Hassabis. Demis, and McClelland. James. Whatlearning systems do intelligent agents need?Trends in Cognitive Sciences,2016.<br />
<br />
* <sup>[[3]]</sup>Goodfellow. Ian, Warde-Farley. David, Mirza. Mehdi, Courville. Aaron,and Bengio. Yohsua. Maxout networks.arXiv preprint, 2013.<br />
<br />
* <sup>[[4]]</sup>Russakovsky. Olga, Deng. Jia, Su. Hao, Krause. Jonathan, Satheesh. San-jeev, Ma. Sean, Huang. Zhiheng, Karpathy. Andrej, Khosla. Aditya, andBernstein. Michael. Imagenet large scale visual recognition challenge.International Journal of Computer Vision, 2015.<br />
<br />
* <sup>[[5]]</sup>He. Kaiming, Zhang. Xiangyu, Ren. Shaoqing, and Sun. Jian. Deepresidual learning for image recognition.IEEE conference on computervision and pattern recognition, 2016.<br />
<br />
* <sup>[[6]]</sup>Pritzel. Alexander, Uria. Benigno, Srinivasan. Sriram, Puigdomenech.Adria, Vinyals. Oriol, Hassabis. Demis, Wierstra. Daan, and Blundell.Charles. Neural episodic control.ICML, 2017.</div>Z5abbashttp://wiki.math.uwaterloo.ca/statwiki/index.php?title=Memory-Based_Parameter_Adaptation&diff=38591Memory-Based Parameter Adaptation2018-11-10T00:59:31Z<p>Z5abbas: /* References */</p>
<hr />
<div>This is a summary based on the paper, Memory-based Parameter Adaptation by Sprechmann et al.[[#References|[1]]].<br />
<br />
The paper generalizes some approaches in language modelling that seek to overcome some of the shortcomings of neural networks including the phenomenon of catastrophic forgetting using memory-based adaptation. Catastrophic forgetting occurs when neural networks perform poorly on old tasks after they have been trained to perform well on a new task. The paper also presents experimental results where the model in question is applied to continual and incremental learning tasks.<br />
<br />
= Presented by = <br />
*J.Walton<br />
*J.Schneider<br />
*Z.Abbas<br />
*A.Na<br />
<br />
= Introduction = <br />
<br />
Model-based parameter adaptation (MbPA) is based on the theory of complementary learning systems which states that intelligent agents must possess two learning systems, one that allows the gradual acquisition of knowledge and another that allows rapid learning of the specifics of individual experiences[[#References|[2]]]. Similarly, MbPA consists of two components: a parametric component and a non-parametric component. The parametric component is the standard neural network which learns slowly (low learning rates) but generalizes well. The non-parametric component, on the other hand, is a neural network augmented with an episodic memory that allows storing of previous experiences and local adaptation of the weights of the parametric component. The parametric and non-parametric components therefore serve different purposes during the training and testing phases.<br />
<br />
= Model Architecture = <br />
[[File:MbPA_model_architecture.PNG|700px|thumb|center|Architecture for the MbPA model. Left: Training Usage. Right: Testing Setting.]]<br />
<br />
== Training Phase == <br />
<br />
The model consists of three components: an embedding network <math>f_{\gamma}</math>, a memory <math>M</math> and an output network <math>g_{\theta}</math>. The embedding network and the output network can be thought of as the standard feedforward neural networks for our purposes, with parameters (weights) <math>\gamma</math> and <math>\theta</math>, respectively. The memory, denoted by <math>M</math>, stores “experiences” in the form of key and value pairs <math>\{(h_{i},v_{i})\}</math> where the keys <math>h_{i}</math> are the outputs of the embedding network <math>f_{\gamma}(x_{i})</math> and the values <math>v_{i}</math>, in the context of classification, are simply the true class labels <math>y_{i}</math>. Thus, for a given input <math>x_{j}</math><br />
<br />
<center><br />
<math><br />
f_{\gamma}(x_{j}) \rightarrow h_{j},<br />
</math><br />
</center><br />
<br />
<center><br />
<math><br />
y_{j} \rightarrow v_{j}.<br />
</math><br />
</center> <br />
<br />
Note that the memory has a fixed size; thus when it is full, the oldest data is discarded first.<br />
<br />
During training, the authors sample of a set of <math>b</math> training examples randomly (ie. mini-batch size <math>b</math>), say <math>\{(x_{b},y_{b})\}_{b}</math>, from the training data that they input into the embedding network <math>f_{\gamma}</math>, followed by the output network <math>g_{\theta}</math>. The parameters of the embedding and output networks are updated by maximizing the likelihood function (equivalently, minimizing the loss function) of the target values<br />
<br />
<center><br />
<math><br />
p(y|x,\gamma,\theta)=g_{\theta}(f_{\gamma}(x)).<br />
</math><br />
</center><br />
<br />
The last layer of the output network <math>g_{\theta}</math> is a softmax layer, such that the output can be interpreted as a probability distribution. This process is also known as backpropagation with mini-batch gradient descent. Finally, the embedded samples <math>\{(f_{\gamma}(x_{b}),y_{b})\}_{b}</math> are stored into the memory. No local adaptation takes place during this phase.<br />
<br />
== Testing Phase == <br />
<br />
= Examples =<br />
<br />
== Continual Learning ==<br />
Continual learning is the process of learning multiple tasks in a sequence without revisiting a task. The authors consider a permuted MNIST setup, similar to [[#References|[3]]], where each task was given by a different permutation of the pixels. The authors sequentially trained the MbPA on 20 different permutations and tested on previously trained tasks.<br />
<br />
The model was trained on 10 000 examples per task, using a 2 layer multi-layer perceptron (MLP) with an ADAM optimizer. The elastic weight consolidation (EWC) method and regular gradient descent were used to estimate the parameters. A grid search was used to determine the EWC penalty cost and the local MbPA learning rate was set as <math>\beta\in(0.0,0.1)</math> and number of steps (n) was <math>n\in[1,20]</math>.<br />
<br />
[[File:ContinualLearning.PNG|700px|thumb|center|Results on baseline comparisons on permuted MNIST<br />
with MbPA using different memory sizes.]]<br />
<br />
The authors used the pixels as the embedding, i.e. <math>f_{\gamma}</math> is the identity function, and looked at regions where episodic memory was small. The authors found that through MbPA only a few gradient steps on carefully selected data from memory is enough to recover performance. They found that MbPA outperformed MLP and worked better than EWC in most cases and found that the performance of MbPA grew with the number of examples stored. They note that the memory requirements were lower than EWC. The lower memory requirements are attributed to the fact that EWC stores all task identifiers, whereas MbPA only stores a few examples. The figure above also shows the results of MbPA combined with other methods. It is noted that MbPA combined with EWC gives the best results.<br />
<br />
== Incremental Learning ==<br />
<br />
Incremental learning has two steps. First, the model is trained on a subset of the classes found in the training data. The second step is to give it the entire training set and see how long it takes for the model to perform well on the entire set. The purpose of this is to see how quickly the model learns information about new classes and how likely it is to lose information about the old ones. The authors used the ImageNet dataset from [[#References|[4]]], and the initial training set contained 500 out of the 1000 classes.<br />
<br />
For the first step, they used three models. A parametric model, MbPA, and a mixture model. The parametric model they used was Resnet V1 from [[#References|[5]]]. It was used both as the parametric model in MbPA and as a separate model for testing. The non-parametric model used was the memory as described earlier. The memory was created by taking the keys from the second last layer of the parametric model. The mixture model was a convex combination of the outputs of the parametric and non-parametric model as shown below:<br />
<br />
<center><br />
<math><br />
p(y|q) = \lambda p_{param}(y|q) + (1-\lambda)p_{mem}(y|q).<br />
</math><br />
</center><br />
<br />
<math>\lambda</math> was tuned as a hyperparameter. Finally, MbPA was used as the fourth model with the Resnet V1 parametric model, and the non-parametric model being identical to the one described above. They were evaluated using their “Top 1” accuracy. That is to say that the class with the highest output value was taken to be the model’s prediction for a given data point in the test set.<br />
<br />
[[File:Figure4.PNG|700px|thumb|center|All three models perform similarly on the data they were pre-trained on. On the new classes, the mixture and parametric models perform similarly and MbPA performs much better [[#References|[1]]].]]<br />
<br />
There was also a test on how well the models perform on unbalanced datasets. In addition to the previous three, they included a non-parametric model which was just the memory running without the rest of the network. Since most real-world datasets have different amounts of data in each class, a model that could use unbalanced datasets without becoming biased would have more information available to it for training. The testing here was done similarly to the other incremental learning experiment. The models were trained on 500 of the 1000 classes until they performed well. They were then given a dataset containing all of the data from the first 500 classes and only 10% of the data from the other 500 classes. Accuracy was evaluated both using Top 1 and AUC (area under the curve) accuracy. It was found that after 0.1 epochs, MbPA and the non-parametric model performed similarly and much better than the other two by both accuracy metrics. After 1 or 3 epochs, the non-parametric model begins to perform worse than the others and MbPA continues to perform better.<br />
<br />
= Conclusion =<br />
<br />
The MbPA model can successfully overcome several shortcomings associated with neural networks through its non-parametric, episodic memory. In fact, many other works in the context of classification and language modelling have successfully used variants of this architecture, where traditional neural network systems are augmented with memories. Likewise, the experiments in incremental and continual learning presented in this paper use a memory architecture similar to the Differential Neural Dictionary (DND) used in Neural Episodic Control (NEC) found in [[#References|[6]]], though the gradients from the memory in the MbPA model are not used during training. In conclusion, MbPA presents a natural way to improve the performance of standard deep networks.<br />
<br />
=References=<br />
*[[1]] Sprechmann. Pablo, Jayakumar. Siddhant, Rae. Jack, Pritzel. Alexander,Badia. Adria, Uria. Benigno, Vinyals. Oriol, Hassabis. Demis, Pascanu.Razvan, and Blundell. Charles. Memory-based parameter adaptation.ICLR, 2018.<br />
<br />
*[[2]] Kumaran. Dhushan, Hassabis. Demis, and McClelland. James. Whatlearning systems do intelligent agents need?Trends in Cognitive Sciences,2016.<br />
<br />
*[[3]] Goodfellow. Ian, Warde-Farley. David, Mirza. Mehdi, Courville. Aaron,and Bengio. Yohsua. Maxout networks.arXiv preprint, 2013.<br />
<br />
*[[4]] Russakovsky. Olga, Deng. Jia, Su. Hao, Krause. Jonathan, Satheesh. San-jeev, Ma. Sean, Huang. Zhiheng, Karpathy. Andrej, Khosla. Aditya, andBernstein. Michael. Imagenet large scale visual recognition challenge.International Journal of Computer Vision, 2015.<br />
<br />
*[[5]] He. Kaiming, Zhang. Xiangyu, Ren. Shaoqing, and Sun. Jian. Deepresidual learning for image recognition.IEEE conference on computervision and pattern recognition, 2016.<br />
<br />
*[[6]] Pritzel. Alexander, Uria. Benigno, Srinivasan. Sriram, Puigdomenech.Adria, Vinyals. Oriol, Hassabis. Demis, Wierstra. Daan, and Blundell.Charles. Neural episodic control.ICML, 2017.</div>Z5abbashttp://wiki.math.uwaterloo.ca/statwiki/index.php?title=Memory-Based_Parameter_Adaptation&diff=38590Memory-Based Parameter Adaptation2018-11-10T00:58:59Z<p>Z5abbas: /* Incremental Learning */</p>
<hr />
<div>This is a summary based on the paper, Memory-based Parameter Adaptation by Sprechmann et al.[[#References|[1]]].<br />
<br />
The paper generalizes some approaches in language modelling that seek to overcome some of the shortcomings of neural networks including the phenomenon of catastrophic forgetting using memory-based adaptation. Catastrophic forgetting occurs when neural networks perform poorly on old tasks after they have been trained to perform well on a new task. The paper also presents experimental results where the model in question is applied to continual and incremental learning tasks.<br />
<br />
= Presented by = <br />
*J.Walton<br />
*J.Schneider<br />
*Z.Abbas<br />
*A.Na<br />
<br />
= Introduction = <br />
<br />
Model-based parameter adaptation (MbPA) is based on the theory of complementary learning systems which states that intelligent agents must possess two learning systems, one that allows the gradual acquisition of knowledge and another that allows rapid learning of the specifics of individual experiences[[#References|[2]]]. Similarly, MbPA consists of two components: a parametric component and a non-parametric component. The parametric component is the standard neural network which learns slowly (low learning rates) but generalizes well. The non-parametric component, on the other hand, is a neural network augmented with an episodic memory that allows storing of previous experiences and local adaptation of the weights of the parametric component. The parametric and non-parametric components therefore serve different purposes during the training and testing phases.<br />
<br />
= Model Architecture = <br />
[[File:MbPA_model_architecture.PNG|700px|thumb|center|Architecture for the MbPA model. Left: Training Usage. Right: Testing Setting.]]<br />
<br />
== Training Phase == <br />
<br />
The model consists of three components: an embedding network <math>f_{\gamma}</math>, a memory <math>M</math> and an output network <math>g_{\theta}</math>. The embedding network and the output network can be thought of as the standard feedforward neural networks for our purposes, with parameters (weights) <math>\gamma</math> and <math>\theta</math>, respectively. The memory, denoted by <math>M</math>, stores “experiences” in the form of key and value pairs <math>\{(h_{i},v_{i})\}</math> where the keys <math>h_{i}</math> are the outputs of the embedding network <math>f_{\gamma}(x_{i})</math> and the values <math>v_{i}</math>, in the context of classification, are simply the true class labels <math>y_{i}</math>. Thus, for a given input <math>x_{j}</math><br />
<br />
<center><br />
<math><br />
f_{\gamma}(x_{j}) \rightarrow h_{j},<br />
</math><br />
</center><br />
<br />
<center><br />
<math><br />
y_{j} \rightarrow v_{j}.<br />
</math><br />
</center> <br />
<br />
Note that the memory has a fixed size; thus when it is full, the oldest data is discarded first.<br />
<br />
During training, the authors sample of a set of <math>b</math> training examples randomly (ie. mini-batch size <math>b</math>), say <math>\{(x_{b},y_{b})\}_{b}</math>, from the training data that they input into the embedding network <math>f_{\gamma}</math>, followed by the output network <math>g_{\theta}</math>. The parameters of the embedding and output networks are updated by maximizing the likelihood function (equivalently, minimizing the loss function) of the target values<br />
<br />
<center><br />
<math><br />
p(y|x,\gamma,\theta)=g_{\theta}(f_{\gamma}(x)).<br />
</math><br />
</center><br />
<br />
The last layer of the output network <math>g_{\theta}</math> is a softmax layer, such that the output can be interpreted as a probability distribution. This process is also known as backpropagation with mini-batch gradient descent. Finally, the embedded samples <math>\{(f_{\gamma}(x_{b}),y_{b})\}_{b}</math> are stored into the memory. No local adaptation takes place during this phase.<br />
<br />
== Testing Phase == <br />
<br />
= Examples =<br />
<br />
== Continual Learning ==<br />
Continual learning is the process of learning multiple tasks in a sequence without revisiting a task. The authors consider a permuted MNIST setup, similar to [[#References|[3]]], where each task was given by a different permutation of the pixels. The authors sequentially trained the MbPA on 20 different permutations and tested on previously trained tasks.<br />
<br />
The model was trained on 10 000 examples per task, using a 2 layer multi-layer perceptron (MLP) with an ADAM optimizer. The elastic weight consolidation (EWC) method and regular gradient descent were used to estimate the parameters. A grid search was used to determine the EWC penalty cost and the local MbPA learning rate was set as <math>\beta\in(0.0,0.1)</math> and number of steps (n) was <math>n\in[1,20]</math>.<br />
<br />
[[File:ContinualLearning.PNG|700px|thumb|center|Results on baseline comparisons on permuted MNIST<br />
with MbPA using different memory sizes.]]<br />
<br />
The authors used the pixels as the embedding, i.e. <math>f_{\gamma}</math> is the identity function, and looked at regions where episodic memory was small. The authors found that through MbPA only a few gradient steps on carefully selected data from memory is enough to recover performance. They found that MbPA outperformed MLP and worked better than EWC in most cases and found that the performance of MbPA grew with the number of examples stored. They note that the memory requirements were lower than EWC. The lower memory requirements are attributed to the fact that EWC stores all task identifiers, whereas MbPA only stores a few examples. The figure above also shows the results of MbPA combined with other methods. It is noted that MbPA combined with EWC gives the best results.<br />
<br />
== Incremental Learning ==<br />
<br />
Incremental learning has two steps. First, the model is trained on a subset of the classes found in the training data. The second step is to give it the entire training set and see how long it takes for the model to perform well on the entire set. The purpose of this is to see how quickly the model learns information about new classes and how likely it is to lose information about the old ones. The authors used the ImageNet dataset from [[#References|[4]]], and the initial training set contained 500 out of the 1000 classes.<br />
<br />
For the first step, they used three models. A parametric model, MbPA, and a mixture model. The parametric model they used was Resnet V1 from [[#References|[5]]]. It was used both as the parametric model in MbPA and as a separate model for testing. The non-parametric model used was the memory as described earlier. The memory was created by taking the keys from the second last layer of the parametric model. The mixture model was a convex combination of the outputs of the parametric and non-parametric model as shown below:<br />
<br />
<center><br />
<math><br />
p(y|q) = \lambda p_{param}(y|q) + (1-\lambda)p_{mem}(y|q).<br />
</math><br />
</center><br />
<br />
<math>\lambda</math> was tuned as a hyperparameter. Finally, MbPA was used as the fourth model with the Resnet V1 parametric model, and the non-parametric model being identical to the one described above. They were evaluated using their “Top 1” accuracy. That is to say that the class with the highest output value was taken to be the model’s prediction for a given data point in the test set.<br />
<br />
[[File:Figure4.PNG|700px|thumb|center|All three models perform similarly on the data they were pre-trained on. On the new classes, the mixture and parametric models perform similarly and MbPA performs much better [[#References|[1]]].]]<br />
<br />
There was also a test on how well the models perform on unbalanced datasets. In addition to the previous three, they included a non-parametric model which was just the memory running without the rest of the network. Since most real-world datasets have different amounts of data in each class, a model that could use unbalanced datasets without becoming biased would have more information available to it for training. The testing here was done similarly to the other incremental learning experiment. The models were trained on 500 of the 1000 classes until they performed well. They were then given a dataset containing all of the data from the first 500 classes and only 10% of the data from the other 500 classes. Accuracy was evaluated both using Top 1 and AUC (area under the curve) accuracy. It was found that after 0.1 epochs, MbPA and the non-parametric model performed similarly and much better than the other two by both accuracy metrics. After 1 or 3 epochs, the non-parametric model begins to perform worse than the others and MbPA continues to perform better.<br />
<br />
= Conclusion =<br />
<br />
The MbPA model can successfully overcome several shortcomings associated with neural networks through its non-parametric, episodic memory. In fact, many other works in the context of classification and language modelling have successfully used variants of this architecture, where traditional neural network systems are augmented with memories. Likewise, the experiments in incremental and continual learning presented in this paper use a memory architecture similar to the Differential Neural Dictionary (DND) used in Neural Episodic Control (NEC) found in [[#References|[6]]], though the gradients from the memory in the MbPA model are not used during training. In conclusion, MbPA presents a natural way to improve the performance of standard deep networks.<br />
<br />
=References=<br />
*[[1]]Sprechmann. Pablo, Jayakumar. Siddhant, Rae. Jack, Pritzel. Alexander,Badia. Adria, Uria. Benigno, Vinyals. Oriol, Hassabis. Demis, Pascanu.Razvan, and Blundell. Charles. Memory-based parameter adaptation.ICLR, 2018.<br />
<br />
*[[2]]Kumaran. Dhushan, Hassabis. Demis, and McClelland. James. Whatlearning systems do intelligent agents need?Trends in Cognitive Sciences,2016.<br />
<br />
*[[3]]Goodfellow. Ian, Warde-Farley. David, Mirza. Mehdi, Courville. Aaron,and Bengio. Yohsua. Maxout networks.arXiv preprint, 2013.<br />
<br />
*[[4]]Russakovsky. Olga, Deng. Jia, Su. Hao, Krause. Jonathan, Satheesh. San-jeev, Ma. Sean, Huang. Zhiheng, Karpathy. Andrej, Khosla. Aditya, andBernstein. Michael. Imagenet large scale visual recognition challenge.International Journal of Computer Vision, 2015.<br />
<br />
*[[5]]He. Kaiming, Zhang. Xiangyu, Ren. Shaoqing, and Sun. Jian. Deepresidual learning for image recognition.IEEE conference on computervision and pattern recognition, 2016.<br />
<br />
*[[6]]Pritzel. Alexander, Uria. Benigno, Srinivasan. Sriram, Puigdomenech.Adria, Vinyals. Oriol, Hassabis. Demis, Wierstra. Daan, and Blundell.Charles. Neural episodic control.ICML, 2017.</div>Z5abbashttp://wiki.math.uwaterloo.ca/statwiki/index.php?title=Memory-Based_Parameter_Adaptation&diff=38589Memory-Based Parameter Adaptation2018-11-10T00:58:30Z<p>Z5abbas: /* Incremental Learning */</p>
<hr />
<div>This is a summary based on the paper, Memory-based Parameter Adaptation by Sprechmann et al.[[#References|[1]]].<br />
<br />
The paper generalizes some approaches in language modelling that seek to overcome some of the shortcomings of neural networks including the phenomenon of catastrophic forgetting using memory-based adaptation. Catastrophic forgetting occurs when neural networks perform poorly on old tasks after they have been trained to perform well on a new task. The paper also presents experimental results where the model in question is applied to continual and incremental learning tasks.<br />
<br />
= Presented by = <br />
*J.Walton<br />
*J.Schneider<br />
*Z.Abbas<br />
*A.Na<br />
<br />
= Introduction = <br />
<br />
Model-based parameter adaptation (MbPA) is based on the theory of complementary learning systems which states that intelligent agents must possess two learning systems, one that allows the gradual acquisition of knowledge and another that allows rapid learning of the specifics of individual experiences[[#References|[2]]]. Similarly, MbPA consists of two components: a parametric component and a non-parametric component. The parametric component is the standard neural network which learns slowly (low learning rates) but generalizes well. The non-parametric component, on the other hand, is a neural network augmented with an episodic memory that allows storing of previous experiences and local adaptation of the weights of the parametric component. The parametric and non-parametric components therefore serve different purposes during the training and testing phases.<br />
<br />
= Model Architecture = <br />
[[File:MbPA_model_architecture.PNG|700px|thumb|center|Architecture for the MbPA model. Left: Training Usage. Right: Testing Setting.]]<br />
<br />
== Training Phase == <br />
<br />
The model consists of three components: an embedding network <math>f_{\gamma}</math>, a memory <math>M</math> and an output network <math>g_{\theta}</math>. The embedding network and the output network can be thought of as the standard feedforward neural networks for our purposes, with parameters (weights) <math>\gamma</math> and <math>\theta</math>, respectively. The memory, denoted by <math>M</math>, stores “experiences” in the form of key and value pairs <math>\{(h_{i},v_{i})\}</math> where the keys <math>h_{i}</math> are the outputs of the embedding network <math>f_{\gamma}(x_{i})</math> and the values <math>v_{i}</math>, in the context of classification, are simply the true class labels <math>y_{i}</math>. Thus, for a given input <math>x_{j}</math><br />
<br />
<center><br />
<math><br />
f_{\gamma}(x_{j}) \rightarrow h_{j},<br />
</math><br />
</center><br />
<br />
<center><br />
<math><br />
y_{j} \rightarrow v_{j}.<br />
</math><br />
</center> <br />
<br />
Note that the memory has a fixed size; thus when it is full, the oldest data is discarded first.<br />
<br />
During training, the authors sample of a set of <math>b</math> training examples randomly (ie. mini-batch size <math>b</math>), say <math>\{(x_{b},y_{b})\}_{b}</math>, from the training data that they input into the embedding network <math>f_{\gamma}</math>, followed by the output network <math>g_{\theta}</math>. The parameters of the embedding and output networks are updated by maximizing the likelihood function (equivalently, minimizing the loss function) of the target values<br />
<br />
<center><br />
<math><br />
p(y|x,\gamma,\theta)=g_{\theta}(f_{\gamma}(x)).<br />
</math><br />
</center><br />
<br />
The last layer of the output network <math>g_{\theta}</math> is a softmax layer, such that the output can be interpreted as a probability distribution. This process is also known as backpropagation with mini-batch gradient descent. Finally, the embedded samples <math>\{(f_{\gamma}(x_{b}),y_{b})\}_{b}</math> are stored into the memory. No local adaptation takes place during this phase.<br />
<br />
== Testing Phase == <br />
<br />
= Examples =<br />
<br />
== Continual Learning ==<br />
Continual learning is the process of learning multiple tasks in a sequence without revisiting a task. The authors consider a permuted MNIST setup, similar to [[#References|[3]]], where each task was given by a different permutation of the pixels. The authors sequentially trained the MbPA on 20 different permutations and tested on previously trained tasks.<br />
<br />
The model was trained on 10 000 examples per task, using a 2 layer multi-layer perceptron (MLP) with an ADAM optimizer. The elastic weight consolidation (EWC) method and regular gradient descent were used to estimate the parameters. A grid search was used to determine the EWC penalty cost and the local MbPA learning rate was set as <math>\beta\in(0.0,0.1)</math> and number of steps (n) was <math>n\in[1,20]</math>.<br />
<br />
[[File:ContinualLearning.PNG|700px|thumb|center|Results on baseline comparisons on permuted MNIST<br />
with MbPA using different memory sizes.]]<br />
<br />
The authors used the pixels as the embedding, i.e. <math>f_{\gamma}</math> is the identity function, and looked at regions where episodic memory was small. The authors found that through MbPA only a few gradient steps on carefully selected data from memory is enough to recover performance. They found that MbPA outperformed MLP and worked better than EWC in most cases and found that the performance of MbPA grew with the number of examples stored. They note that the memory requirements were lower than EWC. The lower memory requirements are attributed to the fact that EWC stores all task identifiers, whereas MbPA only stores a few examples. The figure above also shows the results of MbPA combined with other methods. It is noted that MbPA combined with EWC gives the best results.<br />
<br />
== Incremental Learning ==<br />
<br />
Incremental learning has two steps. First, the model is trained on a subset of the classes found in the training data. The second step is to give it the entire training set and see how long it takes for the model to perform well on the entire set. The purpose of this is to see how quickly the model learns information about new classes and how likely it is to lose information about the old ones. The authors used the ImageNet dataset from [[#References|[4]]], and the initial training set contained 500 out of the 1000 classes.<br />
<br />
For the first step, they used three models. A parametric model, MbPA, and a mixture model. The parametric model they used was Resnet V1 from [[#References|[5]]]. It was used both as the parametric model in MbPA and as a separate model for testing. The non-parametric model used was the memory as described earlier. The memory was created by taking the keys from the second last layer of the parametric model. The mixture model was a convex combination of the outputs of the parametric and non-parametric model as shown below:<br />
<br />
<center><br />
<math><br />
p(y|q) = \lambda p_{param}(y|q) + (1-\lambda)p_{mem}(y|q).<br />
</math><br />
</center><br />
<br />
<math>\lambda</math> was tuned as a hyperparameter. Finally, MbPA was used as the fourth model with the Resnet V1 parametric model, and the non-parametric model being identical to the one described above. They were evaluated using their “Top 1” accuracy. That is to say that the class with the highest output value was taken to be the model’s prediction for a given data point in the test set.<br />
<br />
[[File:Figure4.PNG|700px|thumb|center|All three models perform similarly on the data they were pre-trained on. On the new classes, the mixture and parametric models perform similarly and MbPA performs much better [[#References|[1]]].<br />
<br />
There was also a test on how well the models perform on unbalanced datasets. In addition to the previous three, they included a non-parametric model which was just the memory running without the rest of the network. Since most real-world datasets have different amounts of data in each class, a model that could use unbalanced datasets without becoming biased would have more information available to it for training. The testing here was done similarly to the other incremental learning experiment. The models were trained on 500 of the 1000 classes until they performed well. They were then given a dataset containing all of the data from the first 500 classes and only 10% of the data from the other 500 classes. Accuracy was evaluated both using Top 1 and AUC (area under the curve) accuracy. It was found that after 0.1 epochs, MbPA and the non-parametric model performed similarly and much better than the other two by both accuracy metrics. After 1 or 3 epochs, the non-parametric model begins to perform worse than the others and MbPA continues to perform better.<br />
<br />
= Conclusion =<br />
<br />
The MbPA model can successfully overcome several shortcomings associated with neural networks through its non-parametric, episodic memory. In fact, many other works in the context of classification and language modelling have successfully used variants of this architecture, where traditional neural network systems are augmented with memories. Likewise, the experiments in incremental and continual learning presented in this paper use a memory architecture similar to the Differential Neural Dictionary (DND) used in Neural Episodic Control (NEC) found in [[#References|[6]]], though the gradients from the memory in the MbPA model are not used during training. In conclusion, MbPA presents a natural way to improve the performance of standard deep networks.<br />
<br />
=References=<br />
*[[1]]Sprechmann. Pablo, Jayakumar. Siddhant, Rae. Jack, Pritzel. Alexander,Badia. Adria, Uria. Benigno, Vinyals. Oriol, Hassabis. Demis, Pascanu.Razvan, and Blundell. Charles. Memory-based parameter adaptation.ICLR, 2018.<br />
<br />
*[[2]]Kumaran. Dhushan, Hassabis. Demis, and McClelland. James. Whatlearning systems do intelligent agents need?Trends in Cognitive Sciences,2016.<br />
<br />
*[[3]]Goodfellow. Ian, Warde-Farley. David, Mirza. Mehdi, Courville. Aaron,and Bengio. Yohsua. Maxout networks.arXiv preprint, 2013.<br />
<br />
*[[4]]Russakovsky. Olga, Deng. Jia, Su. Hao, Krause. Jonathan, Satheesh. San-jeev, Ma. Sean, Huang. Zhiheng, Karpathy. Andrej, Khosla. Aditya, andBernstein. Michael. Imagenet large scale visual recognition challenge.International Journal of Computer Vision, 2015.<br />
<br />
*[[5]]He. Kaiming, Zhang. Xiangyu, Ren. Shaoqing, and Sun. Jian. Deepresidual learning for image recognition.IEEE conference on computervision and pattern recognition, 2016.<br />
<br />
*[[6]]Pritzel. Alexander, Uria. Benigno, Srinivasan. Sriram, Puigdomenech.Adria, Vinyals. Oriol, Hassabis. Demis, Wierstra. Daan, and Blundell.Charles. Neural episodic control.ICML, 2017.</div>Z5abbashttp://wiki.math.uwaterloo.ca/statwiki/index.php?title=Memory-Based_Parameter_Adaptation&diff=38588Memory-Based Parameter Adaptation2018-11-10T00:56:51Z<p>Z5abbas: /* Incremental Learning */</p>
<hr />
<div>This is a summary based on the paper, Memory-based Parameter Adaptation by Sprechmann et al.[[#References|[1]]].<br />
<br />
The paper generalizes some approaches in language modelling that seek to overcome some of the shortcomings of neural networks including the phenomenon of catastrophic forgetting using memory-based adaptation. Catastrophic forgetting occurs when neural networks perform poorly on old tasks after they have been trained to perform well on a new task. The paper also presents experimental results where the model in question is applied to continual and incremental learning tasks.<br />
<br />
= Presented by = <br />
*J.Walton<br />
*J.Schneider<br />
*Z.Abbas<br />
*A.Na<br />
<br />
= Introduction = <br />
<br />
Model-based parameter adaptation (MbPA) is based on the theory of complementary learning systems which states that intelligent agents must possess two learning systems, one that allows the gradual acquisition of knowledge and another that allows rapid learning of the specifics of individual experiences[[#References|[2]]]. Similarly, MbPA consists of two components: a parametric component and a non-parametric component. The parametric component is the standard neural network which learns slowly (low learning rates) but generalizes well. The non-parametric component, on the other hand, is a neural network augmented with an episodic memory that allows storing of previous experiences and local adaptation of the weights of the parametric component. The parametric and non-parametric components therefore serve different purposes during the training and testing phases.<br />
<br />
= Model Architecture = <br />
[[File:MbPA_model_architecture.PNG|700px|thumb|center|Architecture for the MbPA model. Left: Training Usage. Right: Testing Setting.]]<br />
<br />
== Training Phase == <br />
<br />
The model consists of three components: an embedding network <math>f_{\gamma}</math>, a memory <math>M</math> and an output network <math>g_{\theta}</math>. The embedding network and the output network can be thought of as the standard feedforward neural networks for our purposes, with parameters (weights) <math>\gamma</math> and <math>\theta</math>, respectively. The memory, denoted by <math>M</math>, stores “experiences” in the form of key and value pairs <math>\{(h_{i},v_{i})\}</math> where the keys <math>h_{i}</math> are the outputs of the embedding network <math>f_{\gamma}(x_{i})</math> and the values <math>v_{i}</math>, in the context of classification, are simply the true class labels <math>y_{i}</math>. Thus, for a given input <math>x_{j}</math><br />
<br />
<center><br />
<math><br />
f_{\gamma}(x_{j}) \rightarrow h_{j},<br />
</math><br />
</center><br />
<br />
<center><br />
<math><br />
y_{j} \rightarrow v_{j}.<br />
</math><br />
</center> <br />
<br />
Note that the memory has a fixed size; thus when it is full, the oldest data is discarded first.<br />
<br />
During training, the authors sample of a set of <math>b</math> training examples randomly (ie. mini-batch size <math>b</math>), say <math>\{(x_{b},y_{b})\}_{b}</math>, from the training data that they input into the embedding network <math>f_{\gamma}</math>, followed by the output network <math>g_{\theta}</math>. The parameters of the embedding and output networks are updated by maximizing the likelihood function (equivalently, minimizing the loss function) of the target values<br />
<br />
<center><br />
<math><br />
p(y|x,\gamma,\theta)=g_{\theta}(f_{\gamma}(x)).<br />
</math><br />
</center><br />
<br />
The last layer of the output network <math>g_{\theta}</math> is a softmax layer, such that the output can be interpreted as a probability distribution. This process is also known as backpropagation with mini-batch gradient descent. Finally, the embedded samples <math>\{(f_{\gamma}(x_{b}),y_{b})\}_{b}</math> are stored into the memory. No local adaptation takes place during this phase.<br />
<br />
== Testing Phase == <br />
<br />
= Examples =<br />
<br />
== Continual Learning ==<br />
Continual learning is the process of learning multiple tasks in a sequence without revisiting a task. The authors consider a permuted MNIST setup, similar to [[#References|[3]]], where each task was given by a different permutation of the pixels. The authors sequentially trained the MbPA on 20 different permutations and tested on previously trained tasks.<br />
<br />
The model was trained on 10 000 examples per task, using a 2 layer multi-layer perceptron (MLP) with an ADAM optimizer. The elastic weight consolidation (EWC) method and regular gradient descent were used to estimate the parameters. A grid search was used to determine the EWC penalty cost and the local MbPA learning rate was set as <math>\beta\in(0.0,0.1)</math> and number of steps (n) was <math>n\in[1,20]</math>.<br />
<br />
[[File:ContinualLearning.PNG|700px|thumb|center|Results on baseline comparisons on permuted MNIST<br />
with MbPA using different memory sizes.]]<br />
<br />
The authors used the pixels as the embedding, i.e. <math>f_{\gamma}</math> is the identity function, and looked at regions where episodic memory was small. The authors found that through MbPA only a few gradient steps on carefully selected data from memory is enough to recover performance. They found that MbPA outperformed MLP and worked better than EWC in most cases and found that the performance of MbPA grew with the number of examples stored. They note that the memory requirements were lower than EWC. The lower memory requirements are attributed to the fact that EWC stores all task identifiers, whereas MbPA only stores a few examples. The figure above also shows the results of MbPA combined with other methods. It is noted that MbPA combined with EWC gives the best results.<br />
<br />
== Incremental Learning ==<br />
<br />
Incremental learning has two steps. First, the model is trained on a subset of the classes found in the training data. The second step is to give it the entire training set and see how long it takes for the model to perform well on the entire set. The purpose of this is to see how quickly the model learns information about new classes and how likely it is to lose information about the old ones. The authors used the ImageNet dataset from [[#References|[4]]], and the initial training set contained 500 out of the 1000 classes.<br />
<br />
For the first step, they used three models. A parametric model, MbPA, and a mixture model. The parametric model they used was Resnet V1 from [[#References|[5]]]. It was used both as the parametric model in MbPA and as a separate model for testing. The non-parametric model used was the memory as described earlier. The memory was created by taking the keys from the second last layer of the parametric model. The mixture model was a convex combination of the outputs of the parametric and non-parametric model as shown below:<br />
<br />
<center><br />
<math><br />
p(y|q) = \lambda p_{param}(y|q) + (1-\lambda)p_{mem}(y|q).<br />
</math><br />
</center><br />
<br />
<math>\lambda</math> was tuned as a hyperparameter. Finally, MbPA was used as the fourth model with the Resnet V1 parametric model, and the non-parametric model being identical to the one described above. They were evaluated using their “Top 1” accuracy. That is to say that the class with the highest output value was taken to be the model’s prediction for a given data point in the test set.<br />
<br />
[[File:IncrementalLearning.PNG|700px|thumb|center|All three models perform similarly on the data they were pre-trained on. On the new classes, the mixture and parametric models perform similarly and MbPA performs much better [[#References|[1]]].<br />
<br />
There was also a test on how well the models perform on unbalanced datasets. In addition to the previous three, they included a non-parametric model which was just the memory running without the rest of the network. Since most real-world datasets have different amounts of data in each class, a model that could use unbalanced datasets without becoming biased would have more information available to it for training. The testing here was done similarly to the other incremental learning experiment. The models were trained on 500 of the 1000 classes until they performed well. They were then given a dataset containing all of the data from the first 500 classes and only 10% of the data from the other 500 classes. Accuracy was evaluated both using Top 1 and AUC (area under the curve) accuracy. It was found that after 0.1 epochs, MbPA and the non-parametric model performed similarly and much better than the other two by both accuracy metrics. After 1 or 3 epochs, the non-parametric model begins to perform worse than the others and MbPA continues to perform better.<br />
<br />
= Conclusion =<br />
<br />
The MbPA model can successfully overcome several shortcomings associated with neural networks through its non-parametric, episodic memory. In fact, many other works in the context of classification and language modelling have successfully used variants of this architecture, where traditional neural network systems are augmented with memories. Likewise, the experiments in incremental and continual learning presented in this paper use a memory architecture similar to the Differential Neural Dictionary (DND) used in Neural Episodic Control (NEC) found in [[#References|[6]]], though the gradients from the memory in the MbPA model are not used during training. In conclusion, MbPA presents a natural way to improve the performance of standard deep networks.<br />
<br />
=References=<br />
*[[1]]Sprechmann. Pablo, Jayakumar. Siddhant, Rae. Jack, Pritzel. Alexander,Badia. Adria, Uria. Benigno, Vinyals. Oriol, Hassabis. Demis, Pascanu.Razvan, and Blundell. Charles. Memory-based parameter adaptation.ICLR, 2018.<br />
<br />
*[[2]]Kumaran. Dhushan, Hassabis. Demis, and McClelland. James. Whatlearning systems do intelligent agents need?Trends in Cognitive Sciences,2016.<br />
<br />
*[[3]]Goodfellow. Ian, Warde-Farley. David, Mirza. Mehdi, Courville. Aaron,and Bengio. Yohsua. Maxout networks.arXiv preprint, 2013.<br />
<br />
*[[4]]Russakovsky. Olga, Deng. Jia, Su. Hao, Krause. Jonathan, Satheesh. San-jeev, Ma. Sean, Huang. Zhiheng, Karpathy. Andrej, Khosla. Aditya, andBernstein. Michael. Imagenet large scale visual recognition challenge.International Journal of Computer Vision, 2015.<br />
<br />
*[[5]]He. Kaiming, Zhang. Xiangyu, Ren. Shaoqing, and Sun. Jian. Deepresidual learning for image recognition.IEEE conference on computervision and pattern recognition, 2016.<br />
<br />
*[[6]]Pritzel. Alexander, Uria. Benigno, Srinivasan. Sriram, Puigdomenech.Adria, Vinyals. Oriol, Hassabis. Demis, Wierstra. Daan, and Blundell.Charles. Neural episodic control.ICML, 2017.</div>Z5abbashttp://wiki.math.uwaterloo.ca/statwiki/index.php?title=Memory-Based_Parameter_Adaptation&diff=38587Memory-Based Parameter Adaptation2018-11-10T00:55:58Z<p>Z5abbas: </p>
<hr />
<div>This is a summary based on the paper, Memory-based Parameter Adaptation by Sprechmann et al.[[#References|[1]]].<br />
<br />
The paper generalizes some approaches in language modelling that seek to overcome some of the shortcomings of neural networks including the phenomenon of catastrophic forgetting using memory-based adaptation. Catastrophic forgetting occurs when neural networks perform poorly on old tasks after they have been trained to perform well on a new task. The paper also presents experimental results where the model in question is applied to continual and incremental learning tasks.<br />
<br />
= Presented by = <br />
*J.Walton<br />
*J.Schneider<br />
*Z.Abbas<br />
*A.Na<br />
<br />
= Introduction = <br />
<br />
Model-based parameter adaptation (MbPA) is based on the theory of complementary learning systems which states that intelligent agents must possess two learning systems, one that allows the gradual acquisition of knowledge and another that allows rapid learning of the specifics of individual experiences[[#References|[2]]]. Similarly, MbPA consists of two components: a parametric component and a non-parametric component. The parametric component is the standard neural network which learns slowly (low learning rates) but generalizes well. The non-parametric component, on the other hand, is a neural network augmented with an episodic memory that allows storing of previous experiences and local adaptation of the weights of the parametric component. The parametric and non-parametric components therefore serve different purposes during the training and testing phases.<br />
<br />
= Model Architecture = <br />
[[File:MbPA_model_architecture.PNG|700px|thumb|center|Architecture for the MbPA model. Left: Training Usage. Right: Testing Setting.]]<br />
<br />
== Training Phase == <br />
<br />
The model consists of three components: an embedding network <math>f_{\gamma}</math>, a memory <math>M</math> and an output network <math>g_{\theta}</math>. The embedding network and the output network can be thought of as the standard feedforward neural networks for our purposes, with parameters (weights) <math>\gamma</math> and <math>\theta</math>, respectively. The memory, denoted by <math>M</math>, stores “experiences” in the form of key and value pairs <math>\{(h_{i},v_{i})\}</math> where the keys <math>h_{i}</math> are the outputs of the embedding network <math>f_{\gamma}(x_{i})</math> and the values <math>v_{i}</math>, in the context of classification, are simply the true class labels <math>y_{i}</math>. Thus, for a given input <math>x_{j}</math><br />
<br />
<center><br />
<math><br />
f_{\gamma}(x_{j}) \rightarrow h_{j},<br />
</math><br />
</center><br />
<br />
<center><br />
<math><br />
y_{j} \rightarrow v_{j}.<br />
</math><br />
</center> <br />
<br />
Note that the memory has a fixed size; thus when it is full, the oldest data is discarded first.<br />
<br />
During training, the authors sample of a set of <math>b</math> training examples randomly (ie. mini-batch size <math>b</math>), say <math>\{(x_{b},y_{b})\}_{b}</math>, from the training data that they input into the embedding network <math>f_{\gamma}</math>, followed by the output network <math>g_{\theta}</math>. The parameters of the embedding and output networks are updated by maximizing the likelihood function (equivalently, minimizing the loss function) of the target values<br />
<br />
<center><br />
<math><br />
p(y|x,\gamma,\theta)=g_{\theta}(f_{\gamma}(x)).<br />
</math><br />
</center><br />
<br />
The last layer of the output network <math>g_{\theta}</math> is a softmax layer, such that the output can be interpreted as a probability distribution. This process is also known as backpropagation with mini-batch gradient descent. Finally, the embedded samples <math>\{(f_{\gamma}(x_{b}),y_{b})\}_{b}</math> are stored into the memory. No local adaptation takes place during this phase.<br />
<br />
== Testing Phase == <br />
<br />
= Examples =<br />
<br />
== Continual Learning ==<br />
Continual learning is the process of learning multiple tasks in a sequence without revisiting a task. The authors consider a permuted MNIST setup, similar to [[#References|[3]]], where each task was given by a different permutation of the pixels. The authors sequentially trained the MbPA on 20 different permutations and tested on previously trained tasks.<br />
<br />
The model was trained on 10 000 examples per task, using a 2 layer multi-layer perceptron (MLP) with an ADAM optimizer. The elastic weight consolidation (EWC) method and regular gradient descent were used to estimate the parameters. A grid search was used to determine the EWC penalty cost and the local MbPA learning rate was set as <math>\beta\in(0.0,0.1)</math> and number of steps (n) was <math>n\in[1,20]</math>.<br />
<br />
[[File:ContinualLearning.PNG|700px|thumb|center|Results on baseline comparisons on permuted MNIST<br />
with MbPA using different memory sizes.]]<br />
<br />
The authors used the pixels as the embedding, i.e. <math>f_{\gamma}</math> is the identity function, and looked at regions where episodic memory was small. The authors found that through MbPA only a few gradient steps on carefully selected data from memory is enough to recover performance. They found that MbPA outperformed MLP and worked better than EWC in most cases and found that the performance of MbPA grew with the number of examples stored. They note that the memory requirements were lower than EWC. The lower memory requirements are attributed to the fact that EWC stores all task identifiers, whereas MbPA only stores a few examples. The figure above also shows the results of MbPA combined with other methods. It is noted that MbPA combined with EWC gives the best results.<br />
<br />
== Incremental Learning ==<br />
<br />
Incremental learning has two steps. First, the model is trained on a subset of the classes found in the training data. The second step is to give it the entire training set and see how long it takes for the model to perform well on the entire set. The purpose of this is to see how quickly the model learns information about new classes and how likely it is to lose information about the old ones. The authors used the ImageNet dataset from [[#References|[4]]], and the initial training set contained 500 out of the 1000 classes.<br />
<br />
For the first step, they used three models. A parametric model, MbPA, and a mixture model. The parametric model they used was Resnet V1 from [[#References|[5]]]. It was used both as the parametric model in MbPA and as a separate model for testing. The non-parametric model used was the memory as described earlier. The memory was created by taking the keys from the second last layer of the parametric model. The mixture model was a convex combination of the outputs of the parametric and non-parametric model as shown below:<br />
<br />
<center><br />
<math><br />
p(y|q) = \lambda p_{param}(y|q) + (1-\lambda)p_{mem}(y|q).<br />
</math><br />
</center><br />
<br />
<math>\lambda</math> was tuned as a hyperparameter. Finally, MbPA was used as the fourth model with the Resnet V1 parametric model, and the non-parametric model being identical to the one described above. They were evaluated using their “Top 1” accuracy. That is to say that the class with the highest output value was taken to be the model’s prediction for a given data point in the test set.<br />
<br />
[[File:IncrementalLearning.PNG|700px|thumb|center|All three models perform similarly on the data they were pre-trained on. On the new classes, the mixture and parametric models perform similarly and MbPA performs much better[[#References|[1]]].<br />
<br />
There was also a test on how well the models perform on unbalanced datasets. In addition to the previous three, they included a non-parametric model which was just the memory running without the rest of the network. Since most real-world datasets have different amounts of data in each class, a model that could use unbalanced datasets without becoming biased would have more information available to it for training. The testing here was done similarly to the other incremental learning experiment. The models were trained on 500 of the 1000 classes until they performed well. They were then given a dataset containing all of the data from the first 500 classes and only 10% of the data from the other 500 classes. Accuracy was evaluated both using Top 1 and AUC (area under the curve) accuracy. It was found that after 0.1 epochs, MbPA and the non-parametric model performed similarly and much better than the other two by both accuracy metrics. After 1 or 3 epochs, the non-parametric model begins to perform worse than the others and MbPA continues to perform better.<br />
<br />
= Conclusion =<br />
<br />
The MbPA model can successfully overcome several shortcomings associated with neural networks through its non-parametric, episodic memory. In fact, many other works in the context of classification and language modelling have successfully used variants of this architecture, where traditional neural network systems are augmented with memories. Likewise, the experiments in incremental and continual learning presented in this paper use a memory architecture similar to the Differential Neural Dictionary (DND) used in Neural Episodic Control (NEC) found in [[#References|[6]]], though the gradients from the memory in the MbPA model are not used during training. In conclusion, MbPA presents a natural way to improve the performance of standard deep networks.<br />
<br />
=References=<br />
*[[1]]Sprechmann. Pablo, Jayakumar. Siddhant, Rae. Jack, Pritzel. Alexander,Badia. Adria, Uria. Benigno, Vinyals. Oriol, Hassabis. Demis, Pascanu.Razvan, and Blundell. Charles. Memory-based parameter adaptation.ICLR, 2018.<br />
<br />
*[[2]]Kumaran. Dhushan, Hassabis. Demis, and McClelland. James. Whatlearning systems do intelligent agents need?Trends in Cognitive Sciences,2016.<br />
<br />
*[[3]]Goodfellow. Ian, Warde-Farley. David, Mirza. Mehdi, Courville. Aaron,and Bengio. Yohsua. Maxout networks.arXiv preprint, 2013.<br />
<br />
*[[4]]Russakovsky. Olga, Deng. Jia, Su. Hao, Krause. Jonathan, Satheesh. San-jeev, Ma. Sean, Huang. Zhiheng, Karpathy. Andrej, Khosla. Aditya, andBernstein. Michael. Imagenet large scale visual recognition challenge.International Journal of Computer Vision, 2015.<br />
<br />
*[[5]]He. Kaiming, Zhang. Xiangyu, Ren. Shaoqing, and Sun. Jian. Deepresidual learning for image recognition.IEEE conference on computervision and pattern recognition, 2016.<br />
<br />
*[[6]]Pritzel. Alexander, Uria. Benigno, Srinivasan. Sriram, Puigdomenech.Adria, Vinyals. Oriol, Hassabis. Demis, Wierstra. Daan, and Blundell.Charles. Neural episodic control.ICML, 2017.</div>Z5abbashttp://wiki.math.uwaterloo.ca/statwiki/index.php?title=Memory-Based_Parameter_Adaptation&diff=38586Memory-Based Parameter Adaptation2018-11-10T00:55:17Z<p>Z5abbas: </p>
<hr />
<div>This is a summary based on the paper, Memory-based Parameter Adaptation by Sprechmann et al.[[#References|[1]]]<br />
<br />
The paper generalizes some approaches in language modelling that seek to overcome some of the shortcomings of neural networks including the phenomenon of catastrophic forgetting using memory-based adaptation. Catastrophic forgetting occurs when neural networks perform poorly on old tasks after they have been trained to perform well on a new task. The paper also presents experimental results where the model in question is applied to continual and incremental learning tasks.<br />
<br />
= Presented by = <br />
*J.Walton<br />
*J.Schneider<br />
*Z.Abbas<br />
*A.Na<br />
<br />
= Introduction = <br />
<br />
Model-based parameter adaptation (MbPA) is based on the theory of complementary learning systems which states that intelligent agents must possess two learning systems, one that allows the gradual acquisition of knowledge and another that allows rapid learning of the specifics of individual experiences[[#References|[2]]]. Similarly, MbPA consists of two components: a parametric component and a non-parametric component. The parametric component is the standard neural network which learns slowly (low learning rates) but generalizes well. The non-parametric component, on the other hand, is a neural network augmented with an episodic memory that allows storing of previous experiences and local adaptation of the weights of the parametric component. The parametric and non-parametric components therefore serve different purposes during the training and testing phases.<br />
<br />
= Model Architecture = <br />
[[File:MbPA_model_architecture.PNG|700px|thumb|center|Architecture for the MbPA model. Left: Training Usage. Right: Testing Setting.]]<br />
<br />
== Training Phase == <br />
<br />
The model consists of three components: an embedding network <math>f_{\gamma}</math>, a memory <math>M</math> and an output network <math>g_{\theta}</math>. The embedding network and the output network can be thought of as the standard feedforward neural networks for our purposes, with parameters (weights) <math>\gamma</math> and <math>\theta</math>, respectively. The memory, denoted by <math>M</math>, stores “experiences” in the form of key and value pairs <math>\{(h_{i},v_{i})\}</math> where the keys <math>h_{i}</math> are the outputs of the embedding network <math>f_{\gamma}(x_{i})</math> and the values <math>v_{i}</math>, in the context of classification, are simply the true class labels <math>y_{i}</math>. Thus, for a given input <math>x_{j}</math><br />
<br />
<center><br />
<math><br />
f_{\gamma}(x_{j}) \rightarrow h_{j},<br />
</math><br />
</center><br />
<br />
<center><br />
<math><br />
y_{j} \rightarrow v_{j}.<br />
</math><br />
</center> <br />
<br />
Note that the memory has a fixed size; thus when it is full, the oldest data is discarded first.<br />
<br />
During training, the authors sample of a set of <math>b</math> training examples randomly (ie. mini-batch size <math>b</math>), say <math>\{(x_{b},y_{b})\}_{b}</math>, from the training data that they input into the embedding network <math>f_{\gamma}</math>, followed by the output network <math>g_{\theta}</math>. The parameters of the embedding and output networks are updated by maximizing the likelihood function (equivalently, minimizing the loss function) of the target values<br />
<br />
<center><br />
<math><br />
p(y|x,\gamma,\theta)=g_{\theta}(f_{\gamma}(x)).<br />
</math><br />
</center><br />
<br />
The last layer of the output network <math>g_{\theta}</math> is a softmax layer, such that the output can be interpreted as a probability distribution. This process is also known as backpropagation with mini-batch gradient descent. Finally, the embedded samples <math>\{(f_{\gamma}(x_{b}),y_{b})\}_{b}</math> are stored into the memory. No local adaptation takes place during this phase.<br />
<br />
== Testing Phase == <br />
<br />
= Examples =<br />
<br />
== Continual Learning ==<br />
Continual learning is the process of learning multiple tasks in a sequence without revisiting a task. The authors consider a permuted MNIST setup, similar to [[#References|[3]]], where each task was given by a different permutation of the pixels. The authors sequentially trained the MbPA on 20 different permutations and tested on previously trained tasks.<br />
<br />
The model was trained on 10 000 examples per task, using a 2 layer multi-layer perceptron (MLP) with an ADAM optimizer. The elastic weight consolidation (EWC) method and regular gradient descent were used to estimate the parameters. A grid search was used to determine the EWC penalty cost and the local MbPA learning rate was set as <math>\beta\in(0.0,0.1)</math> and number of steps (n) was <math>n\in[1,20]</math>.<br />
<br />
[[File:ContinualLearning.PNG|700px|thumb|center|Results on baseline comparisons on permuted MNIST<br />
with MbPA using different memory sizes.]]<br />
<br />
The authors used the pixels as the embedding, i.e. <math>f_{\gamma}</math> is the identity function, and looked at regions where episodic memory was small. The authors found that through MbPA only a few gradient steps on carefully selected data from memory is enough to recover performance. They found that MbPA outperformed MLP and worked better than EWC in most cases and found that the performance of MbPA grew with the number of examples stored. They note that the memory requirements were lower than EWC. The lower memory requirements are attributed to the fact that EWC stores all task identifiers, whereas MbPA only stores a few examples. The figure above also shows the results of MbPA combined with other methods. It is noted that MbPA combined with EWC gives the best results.<br />
<br />
== Incremental Learning ==<br />
<br />
Incremental learning has two steps. First, the model is trained on a subset of the classes found in the training data. The second step is to give it the entire training set and see how long it takes for the model to perform well on the entire set. The purpose of this is to see how quickly the model learns information about new classes and how likely it is to lose information about the old ones. The authors used the ImageNet dataset from [[#References|[4]]], and the initial training set contained 500 out of the 1000 classes.<br />
<br />
For the first step, they used three models. A parametric model, MbPA, and a mixture model. The parametric model they used was Resnet V1 from [[#References|[5]]]. It was used both as the parametric model in MbPA and as a separate model for testing. The non-parametric model used was the memory as described earlier. The memory was created by taking the keys from the second last layer of the parametric model. The mixture model was a convex combination of the outputs of the parametric and non-parametric model as shown below:<br />
<br />
<center><br />
<math><br />
p(y|q) = \lambda p_{param}(y|q) + (1-\lambda)p_{mem}(y|q).<br />
</math><br />
</center><br />
<br />
<math>\lambda</math> was tuned as a hyperparameter. Finally, MbPA was used as the fourth model with the Resnet V1 parametric model, and the non-parametric model being identical to the one described above. They were evaluated using their “Top 1” accuracy. That is to say that the class with the highest output value was taken to be the model’s prediction for a given data point in the test set.<br />
<br />
[[File:IncrementalLearning.PNG|700px|thumb|center|All three models perform similarly on the data they were pre-trained on. On the new classes, the mixture and parametric models perform similarly and MbPA performs much better.[[#References|[1]]]<br />
<br />
There was also a test on how well the models perform on unbalanced datasets. In addition to the previous three, they included a non-parametric model which was just the memory running without the rest of the network. Since most real-world datasets have different amounts of data in each class, a model that could use unbalanced datasets without becoming biased would have more information available to it for training. The testing here was done similarly to the other incremental learning experiment. The models were trained on 500 of the 1000 classes until they performed well. They were then given a dataset containing all of the data from the first 500 classes and only 10% of the data from the other 500 classes. Accuracy was evaluated both using Top 1 and AUC (area under the curve) accuracy. It was found that after 0.1 epochs, MbPA and the non-parametric model performed similarly and much better than the other two by both accuracy metrics. After 1 or 3 epochs, the non-parametric model begins to perform worse than the others and MbPA continues to perform better.<br />
<br />
= Conclusion =<br />
<br />
The MbPA model can successfully overcome several shortcomings associated with neural networks through its non-parametric, episodic memory. In fact, many other works in the context of classification and language modelling have successfully used variants of this architecture, where traditional neural network systems are augmented with memories. Likewise, the experiments in incremental and continual learning presented in this paper use a memory architecture similar to the Differential Neural Dictionary (DND) used in Neural Episodic Control (NEC) found in [[#References|[6]]], though the gradients from the memory in the MbPA model are not used during training. In conclusion, MbPA presents a natural way to improve the performance of standard deep networks.<br />
<br />
=References=<br />
*[[1]]Sprechmann. Pablo, Jayakumar. Siddhant, Rae. Jack, Pritzel. Alexander,Badia. Adria, Uria. Benigno, Vinyals. Oriol, Hassabis. Demis, Pascanu.Razvan, and Blundell. Charles. Memory-based parameter adaptation.ICLR, 2018.<br />
<br />
*[[2]]Kumaran. Dhushan, Hassabis. Demis, and McClelland. James. Whatlearning systems do intelligent agents need?Trends in Cognitive Sciences,2016.<br />
<br />
*[[3]]Goodfellow. Ian, Warde-Farley. David, Mirza. Mehdi, Courville. Aaron,and Bengio. Yohsua. Maxout networks.arXiv preprint, 2013.<br />
<br />
*[[4]]Russakovsky. Olga, Deng. Jia, Su. Hao, Krause. Jonathan, Satheesh. San-jeev, Ma. Sean, Huang. Zhiheng, Karpathy. Andrej, Khosla. Aditya, andBernstein. Michael. Imagenet large scale visual recognition challenge.International Journal of Computer Vision, 2015.<br />
<br />
*[[5]]He. Kaiming, Zhang. Xiangyu, Ren. Shaoqing, and Sun. Jian. Deepresidual learning for image recognition.IEEE conference on computervision and pattern recognition, 2016.<br />
<br />
*[[6]]Pritzel. Alexander, Uria. Benigno, Srinivasan. Sriram, Puigdomenech.Adria, Vinyals. Oriol, Hassabis. Demis, Wierstra. Daan, and Blundell.Charles. Neural episodic control.ICML, 2017.</div>Z5abbashttp://wiki.math.uwaterloo.ca/statwiki/index.php?title=Memory-Based_Parameter_Adaptation&diff=38585Memory-Based Parameter Adaptation2018-11-10T00:52:29Z<p>Z5abbas: /* Incremental Learning */</p>
<hr />
<div>This is a summary based on the paper, Memory-based Parameter Adaptation by Sprechmann et al.<sup>[[#References|[1]]]</sup> <br />
<br />
The paper generalizes some approaches in language modelling that seek to overcome some of the shortcomings of neural networks including the phenomenon of catastrophic forgetting using memory-based adaptation. Catastrophic forgetting occurs when neural networks perform poorly on old tasks after they have been trained to perform well on a new task. The paper also presents experimental results where the model in question is applied to continual and incremental learning tasks.<br />
<br />
= Presented by = <br />
*J.Walton<br />
*J.Schneider<br />
*Z.Abbas<br />
*A.Na<br />
<br />
= Introduction = <br />
<br />
Model-based parameter adaptation (MbPA) is based on the theory of complementary learning systems which states that intelligent agents must possess two learning systems, one that allows the gradual acquisition of knowledge and another that allows rapid learning of the specifics of individual experiences<sup>[[#References|[2]]]</sup>. Similarly, MbPA consists of two components: a parametric component and a non-parametric component. The parametric component is the standard neural network which learns slowly (low learning rates) but generalizes well. The non-parametric component, on the other hand, is a neural network augmented with an episodic memory that allows storing of previous experiences and local adaptation of the weights of the parametric component. The parametric and non-parametric components therefore serve different purposes during the training and testing phases.<br />
<br />
= Model Architecture = <br />
[[File:MbPA_model_architecture.PNG|700px|thumb|center|Architecture for the MbPA model. Left: Training Usage. Right: Testing Setting.]]<br />
<br />
== Training Phase == <br />
<br />
The model consists of three components: an embedding network <math>f_{\gamma}</math>, a memory <math>M</math> and an output network <math>g_{\theta}</math>. The embedding network and the output network can be thought of as the standard feedforward neural networks for our purposes, with parameters (weights) <math>\gamma</math> and <math>\theta</math>, respectively. The memory, denoted by <math>M</math>, stores “experiences” in the form of key and value pairs <math>\{(h_{i},v_{i})\}</math> where the keys <math>h_{i}</math> are the outputs of the embedding network <math>f_{\gamma}(x_{i})</math> and the values <math>v_{i}</math>, in the context of classification, are simply the true class labels <math>y_{i}</math>. Thus, for a given input <math>x_{j}</math><br />
<br />
<center><br />
<math><br />
f_{\gamma}(x_{j}) \rightarrow h_{j},<br />
</math><br />
</center><br />
<br />
<center><br />
<math><br />
y_{j} \rightarrow v_{j}.<br />
</math><br />
</center> <br />
<br />
Note that the memory has a fixed size; thus when it is full, the oldest data is discarded first.<br />
<br />
During training, the authors sample of a set of <math>b</math> training examples randomly (ie. mini-batch size <math>b</math>), say <math>\{(x_{b},y_{b})\}_{b}</math>, from the training data that they input into the embedding network <math>f_{\gamma}</math>, followed by the output network <math>g_{\theta}</math>. The parameters of the embedding and output networks are updated by maximizing the likelihood function (equivalently, minimizing the loss function) of the target values<br />
<br />
<center><br />
<math><br />
p(y|x,\gamma,\theta)=g_{\theta}(f_{\gamma}(x)).<br />
</math><br />
</center><br />
<br />
The last layer of the output network <math>g_{\theta}</math> is a softmax layer, such that the output can be interpreted as a probability distribution. This process is also known as backpropagation with mini-batch gradient descent. Finally, the embedded samples <math>\{(f_{\gamma}(x_{b}),y_{b})\}_{b}</math> are stored into the memory. No local adaptation takes place during this phase.<br />
<br />
== Testing Phase == <br />
<br />
= Examples =<br />
<br />
== Continual Learning ==<br />
Continual learning is the process of learning multiple tasks in a sequence without revisiting a task. The authors consider a permuted MNIST setup, similar to [[#References|[3]]], where each task was given by a different permutation of the pixels. The authors sequentially trained the MbPA on 20 different permutations and tested on previously trained tasks.<br />
<br />
The model was trained on 10 000 examples per task, using a 2 layer multi-layer perceptron (MLP) with an ADAM optimizer. The elastic weight consolidation (EWC) method and regular gradient descent were used to estimate the parameters. A grid search was used to determine the EWC penalty cost and the local MbPA learning rate was set as <math>\beta\in(0.0,0.1)</math> and number of steps (n) was <math>n\in[1,20]</math>.<br />
<br />
[[File:ContinualLearning.PNG|700px|thumb|center|Results on baseline comparisons on permuted MNIST<br />
with MbPA using different memory sizes.]]<br />
<br />
The authors used the pixels as the embedding, i.e. <math>f_{\gamma}</math> is the identity function, and looked at regions where episodic memory was small. The authors found that through MbPA only a few gradient steps on carefully selected data from memory is enough to recover performance. They found that MbPA outperformed MLP and worked better than EWC in most cases and found that the performance of MbPA grew with the number of examples stored. They note that the memory requirements were lower than EWC. The lower memory requirements are attributed to the fact that EWC stores all task identifiers, whereas MbPA only stores a few examples. The figure above also shows the results of MbPA combined with other methods. It is noted that MbPA combined with EWC gives the best results.<br />
<br />
== Incremental Learning ==<br />
<br />
Incremental learning has two steps. First, the model is trained on a subset of the classes found in the training data. The second step is to give it the entire training set and see how long it takes for the model to perform well on the entire set. The purpose of this is to see how quickly the model learns information about new classes and how likely it is to lose information about the old ones. The authors used the ImageNet dataset from [[#References|[4]]], and the initial training set contained 500 out of the 1000 classes.<br />
<br />
For the first step, they used three models. A parametric model, MbPA, and a mixture model. The parametric model they used was Resnet V1 from [[#References|[5]]]. It was used both as the parametric model in MbPA and as a separate model for testing. The non-parametric model used was the memory as described earlier. The memory was created by taking the keys from the second last layer of the parametric model. The mixture model was a convex combination of the outputs of the parametric and non-parametric model as shown below:<br />
<br />
<center><br />
<math><br />
p(y|q) = \lambda p_{param}(y|q) + (1-\lambda)p_{mem}(y|q).<br />
</math><br />
</center><br />
<br />
<math>\lambda</math> was tuned as a hyperparameter. Finally, MbPA was used as the fourth model with the Resnet V1 parametric model, and the non-parametric model being identical to the one described above. They were evaluated using their “Top 1” accuracy. That is to say that the class with the highest output value was taken to be the model’s prediction for a given data point in the test set.<br />
<br />
[[File:IncrementalLearning.PNG|700px|thumb|center|All three models perform similarly on the data they were pre-trained on. On the new classes, the mixture and parametric models perform similarly and MbPA performs much better.[[#References|[1]]]<br />
<br />
There was also a test on how well the models perform on unbalanced datasets. In addition to the previous three, they included a non-parametric model which was just the memory running without the rest of the network. Since most real-world datasets have different amounts of data in each class, a model that could use unbalanced datasets without becoming biased would have more information available to it for training. The testing here was done similarly to the other incremental learning experiment. The models were trained on 500 of the 1000 classes until they performed well. They were then given a dataset containing all of the data from the first 500 classes and only 10% of the data from the other 500 classes. Accuracy was evaluated both using Top 1 and AUC (area under the curve) accuracy. It was found that after 0.1 epochs, MbPA and the non-parametric model performed similarly and much better than the other two by both accuracy metrics. After 1 or 3 epochs, the non-parametric model begins to perform worse than the others and MbPA continues to perform better.<br />
<br />
= Conclusion =<br />
<br />
The MbPA model can successfully overcome several shortcomings associated with neural networks through its non-parametric, episodic memory. In fact, many other works in the context of classification and language modelling have successfully used variants of this architecture, where traditional neural network systems are augmented with memories. Likewise, the experiments in incremental and continual learning presented in this paper use a memory architecture similar to the Differential Neural Dictionary (DND) used in Neural Episodic Control (NEC) found in [[#References|[6]]], though the gradients from the memory in the MbPA model are not used during training. In conclusion, MbPA presents a natural way to improve the performance of standard deep networks.<br />
<br />
=References=<br />
* <sup>[[1]]</sup>Sprechmann. Pablo, Jayakumar. Siddhant, Rae. Jack, Pritzel. Alexander,Badia. Adria, Uria. Benigno, Vinyals. Oriol, Hassabis. Demis, Pascanu.Razvan, and Blundell. Charles. Memory-based parameter adaptation.ICLR, 2018.<br />
<br />
* <sup>[[2]]</sup>Kumaran. Dhushan, Hassabis. Demis, and McClelland. James. Whatlearning systems do intelligent agents need?Trends in Cognitive Sciences,2016.<br />
<br />
* <sup>[[3]]</sup>Goodfellow. Ian, Warde-Farley. David, Mirza. Mehdi, Courville. Aaron,and Bengio. Yohsua. Maxout networks.arXiv preprint, 2013.<br />
<br />
* <sup>[[4]]</sup>Russakovsky. Olga, Deng. Jia, Su. Hao, Krause. Jonathan, Satheesh. San-jeev, Ma. Sean, Huang. Zhiheng, Karpathy. Andrej, Khosla. Aditya, andBernstein. Michael. Imagenet large scale visual recognition challenge.International Journal of Computer Vision, 2015.<br />
<br />
* <sup>[[5]]</sup>He. Kaiming, Zhang. Xiangyu, Ren. Shaoqing, and Sun. Jian. Deepresidual learning for image recognition.IEEE conference on computervision and pattern recognition, 2016.<br />
<br />
* <sup>[[6]]</sup>Pritzel. Alexander, Uria. Benigno, Srinivasan. Sriram, Puigdomenech.Adria, Vinyals. Oriol, Hassabis. Demis, Wierstra. Daan, and Blundell.Charles. Neural episodic control.ICML, 2017.</div>Z5abbashttp://wiki.math.uwaterloo.ca/statwiki/index.php?title=Memory-Based_Parameter_Adaptation&diff=38584Memory-Based Parameter Adaptation2018-11-10T00:51:25Z<p>Z5abbas: /* Incremental Learning */</p>
<hr />
<div>This is a summary based on the paper, Memory-based Parameter Adaptation by Sprechmann et al.<sup>[[#References|[1]]]</sup> <br />
<br />
The paper generalizes some approaches in language modelling that seek to overcome some of the shortcomings of neural networks including the phenomenon of catastrophic forgetting using memory-based adaptation. Catastrophic forgetting occurs when neural networks perform poorly on old tasks after they have been trained to perform well on a new task. The paper also presents experimental results where the model in question is applied to continual and incremental learning tasks.<br />
<br />
= Presented by = <br />
*J.Walton<br />
*J.Schneider<br />
*Z.Abbas<br />
*A.Na<br />
<br />
= Introduction = <br />
<br />
Model-based parameter adaptation (MbPA) is based on the theory of complementary learning systems which states that intelligent agents must possess two learning systems, one that allows the gradual acquisition of knowledge and another that allows rapid learning of the specifics of individual experiences<sup>[[#References|[2]]]</sup>. Similarly, MbPA consists of two components: a parametric component and a non-parametric component. The parametric component is the standard neural network which learns slowly (low learning rates) but generalizes well. The non-parametric component, on the other hand, is a neural network augmented with an episodic memory that allows storing of previous experiences and local adaptation of the weights of the parametric component. The parametric and non-parametric components therefore serve different purposes during the training and testing phases.<br />
<br />
= Model Architecture = <br />
[[File:MbPA_model_architecture.PNG|700px|thumb|center|Architecture for the MbPA model. Left: Training Usage. Right: Testing Setting.]]<br />
<br />
== Training Phase == <br />
<br />
The model consists of three components: an embedding network <math>f_{\gamma}</math>, a memory <math>M</math> and an output network <math>g_{\theta}</math>. The embedding network and the output network can be thought of as the standard feedforward neural networks for our purposes, with parameters (weights) <math>\gamma</math> and <math>\theta</math>, respectively. The memory, denoted by <math>M</math>, stores “experiences” in the form of key and value pairs <math>\{(h_{i},v_{i})\}</math> where the keys <math>h_{i}</math> are the outputs of the embedding network <math>f_{\gamma}(x_{i})</math> and the values <math>v_{i}</math>, in the context of classification, are simply the true class labels <math>y_{i}</math>. Thus, for a given input <math>x_{j}</math><br />
<br />
<center><br />
<math><br />
f_{\gamma}(x_{j}) \rightarrow h_{j},<br />
</math><br />
</center><br />
<br />
<center><br />
<math><br />
y_{j} \rightarrow v_{j}.<br />
</math><br />
</center> <br />
<br />
Note that the memory has a fixed size; thus when it is full, the oldest data is discarded first.<br />
<br />
During training, the authors sample of a set of <math>b</math> training examples randomly (ie. mini-batch size <math>b</math>), say <math>\{(x_{b},y_{b})\}_{b}</math>, from the training data that they input into the embedding network <math>f_{\gamma}</math>, followed by the output network <math>g_{\theta}</math>. The parameters of the embedding and output networks are updated by maximizing the likelihood function (equivalently, minimizing the loss function) of the target values<br />
<br />
<center><br />
<math><br />
p(y|x,\gamma,\theta)=g_{\theta}(f_{\gamma}(x)).<br />
</math><br />
</center><br />
<br />
The last layer of the output network <math>g_{\theta}</math> is a softmax layer, such that the output can be interpreted as a probability distribution. This process is also known as backpropagation with mini-batch gradient descent. Finally, the embedded samples <math>\{(f_{\gamma}(x_{b}),y_{b})\}_{b}</math> are stored into the memory. No local adaptation takes place during this phase.<br />
<br />
== Testing Phase == <br />
<br />
= Examples =<br />
<br />
== Continual Learning ==<br />
Continual learning is the process of learning multiple tasks in a sequence without revisiting a task. The authors consider a permuted MNIST setup, similar to [[#References|[3]]], where each task was given by a different permutation of the pixels. The authors sequentially trained the MbPA on 20 different permutations and tested on previously trained tasks.<br />
<br />
The model was trained on 10 000 examples per task, using a 2 layer multi-layer perceptron (MLP) with an ADAM optimizer. The elastic weight consolidation (EWC) method and regular gradient descent were used to estimate the parameters. A grid search was used to determine the EWC penalty cost and the local MbPA learning rate was set as <math>\beta\in(0.0,0.1)</math> and number of steps (n) was <math>n\in[1,20]</math>.<br />
<br />
[[File:ContinualLearning.PNG|700px|thumb|center|Results on baseline comparisons on permuted MNIST<br />
with MbPA using different memory sizes.]]<br />
<br />
The authors used the pixels as the embedding, i.e. <math>f_{\gamma}</math> is the identity function, and looked at regions where episodic memory was small. The authors found that through MbPA only a few gradient steps on carefully selected data from memory is enough to recover performance. They found that MbPA outperformed MLP and worked better than EWC in most cases and found that the performance of MbPA grew with the number of examples stored. They note that the memory requirements were lower than EWC. The lower memory requirements are attributed to the fact that EWC stores all task identifiers, whereas MbPA only stores a few examples. The figure above also shows the results of MbPA combined with other methods. It is noted that MbPA combined with EWC gives the best results.<br />
<br />
== Incremental Learning ==<br />
Incremental learning has two steps. First, the model is trained on a subset of the classes found in the training data. The second step is to give it the entire training set and see how long it takes for the model to perform well on the entire set. The purpose of this is to see how quickly the model learns information about new classes and how likely it is to lose information about the old ones. The authors used the ImageNet dataset from [[#References|[4]]], and the initial training set contained 500 out of the 1000 classes.<br />
<br />
For the first step, they used three models. A parametric model, MbPA, and a mixture model. The parametric model they used was Resnet V1 from [[#References|[5]]]. It was used both as the parametric model in MbPA and as a separate model for testing. The non-parametric model used was the memory as described earlier. The memory was created by taking the keys from the second last layer of the parametric model. The mixture model was a convex combination of the outputs of the parametric and non-parametric model as shown below:<br />
<br />
<center><br />
<math><br />
p(y|q) = \lambda p_{param}(y|q) + (1-\lambda)p_{mem}(y|q).<br />
<math><br />
<center><br />
<br />
<math>\lambda<math> was tuned as a hyperparameter. Finally, MbPA was used as the fourth model with the Resnet V1 parametric model, and the non-parametric model being identical to the one described above. They were evaluated using their “Top 1” accuracy. That is to say that the class with the highest output value was taken to be the model’s prediction for a given data point in the test set.<br />
<br />
[[File:IncrementalLearning.PNG|700px|thumb|center|All three models perform similarly on the data they were pre-trained on. On the new classes, the mixture and parametric models perform similarly and MbPA performs much better.[[#References|[1]]]<br />
<br />
There was also a test on how well the models perform on unbalanced datasets. In addition to the previous three, they included a non-parametric model which was just the memory running without the rest of the network. Since most real-world datasets have different amounts of data in each class, a model that could use unbalanced datasets without becoming biased would have more information available to it for training. The testing here was done similarly to the other incremental learning experiment. The models were trained on 500 of the 1000 classes until they performed well. They were then given a dataset containing all of the data from the first 500 classes and only 10% of the data from the other 500 classes. Accuracy was evaluated both using Top 1 and AUC (area under the curve) accuracy. It was found that after 0.1 epochs, MbPA and the non-parametric model performed similarly and much better than the other two by both accuracy metrics. After 1 or 3 epochs, the non-parametric model begins to perform worse than the others and MbPA continues to perform better.<br />
<br />
= Conclusion =<br />
<br />
The MbPA model can successfully overcome several shortcomings associated with neural networks through its non-parametric, episodic memory. In fact, many other works in the context of classification and language modelling have successfully used variants of this architecture, where traditional neural network systems are augmented with memories. Likewise, the experiments in incremental and continual learning presented in this paper use a memory architecture similar to the Differential Neural Dictionary (DND) used in Neural Episodic Control (NEC) found in [[#References|[6]]], though the gradients from the memory in the MbPA model are not used during training. In conclusion, MbPA presents a natural way to improve the performance of standard deep networks.<br />
<br />
=References=<br />
* <sup>[[1]]</sup>Sprechmann. Pablo, Jayakumar. Siddhant, Rae. Jack, Pritzel. Alexander,Badia. Adria, Uria. Benigno, Vinyals. Oriol, Hassabis. Demis, Pascanu.Razvan, and Blundell. Charles. Memory-based parameter adaptation.ICLR, 2018.<br />
<br />
* <sup>[[2]]</sup>Kumaran. Dhushan, Hassabis. Demis, and McClelland. James. Whatlearning systems do intelligent agents need?Trends in Cognitive Sciences,2016.<br />
<br />
* <sup>[[3]]</sup>Goodfellow. Ian, Warde-Farley. David, Mirza. Mehdi, Courville. Aaron,and Bengio. Yohsua. Maxout networks.arXiv preprint, 2013.<br />
<br />
* <sup>[[4]]</sup>Russakovsky. Olga, Deng. Jia, Su. Hao, Krause. Jonathan, Satheesh. San-jeev, Ma. Sean, Huang. Zhiheng, Karpathy. Andrej, Khosla. Aditya, andBernstein. Michael. Imagenet large scale visual recognition challenge.International Journal of Computer Vision, 2015.<br />
<br />
* <sup>[[5]]</sup>He. Kaiming, Zhang. Xiangyu, Ren. Shaoqing, and Sun. Jian. Deepresidual learning for image recognition.IEEE conference on computervision and pattern recognition, 2016.<br />
<br />
* <sup>[[6]]</sup>Pritzel. Alexander, Uria. Benigno, Srinivasan. Sriram, Puigdomenech.Adria, Vinyals. Oriol, Hassabis. Demis, Wierstra. Daan, and Blundell.Charles. Neural episodic control.ICML, 2017.</div>Z5abbashttp://wiki.math.uwaterloo.ca/statwiki/index.php?title=Memory-Based_Parameter_Adaptation&diff=38577Memory-Based Parameter Adaptation2018-11-09T23:09:58Z<p>Z5abbas: /* Conclusion */</p>
<hr />
<div>This is a summary based on the paper, Memory-based Parameter Adaptation by Sprechmann et al.<sup>[[#References|[1]]]</sup> <br />
<br />
The paper generalizes some approaches in language modelling that seek to overcome some of the shortcomings of neural networks including the phenomenon of catastrophic forgetting using memory-based adaptation. Catastrophic forgetting occurs when neural networks perform poorly on old tasks after they have been trained to perform well on a new task. The paper also presents experimental results where the model in question is applied to continual and incremental learning tasks.<br />
<br />
= Presented by = <br />
*J.Walton<br />
*J.Schneider<br />
*Z.Abbas<br />
*A.Na<br />
<br />
= Introduction = <br />
<br />
Model-based parameter adaptation (MbPA) is based on the theory of complementary learning systems which states that intelligent agents must possess two learning systems, one that allows the gradual acquisition of knowledge and another that allows rapid learning of the specifics of individual experiences<sup>[[#References|[2]]]</sup>. Similarly, MbPA consists of two components: a parametric component and a non-parametric component. The parametric component is the standard neural network which learns slowly (low learning rates) but generalizes well. The non-parametric component, on the other hand, is a neural network augmented with an episodic memory that allows storing of previous experiences and local adaptation of the weights of the parametric component. The parametric and non-parametric components therefore serve different purposes during the training and testing phases.<br />
<br />
= Model Architecture = <br />
[[File:MbPA_model_architecture.PNG|700px|thumb|center|Architecture for the MbPA model. Left: Training Usage. Right: Testing Setting.]]<br />
<br />
== Training Phase == <br />
<br />
The model consists of three components: an embedding network <math>f_{\gamma}</math>, a memory <math>M</math> and an output network <math>g_{\theta}</math>. The embedding network and the output network can be thought of as the standard feedforward neural networks for our purposes, with parameters (weights) <math>\gamma</math> and <math>\theta</math>, respectively. The memory, denoted by <math>M</math>, stores “experiences” in the form of key and value pairs <math>\{(h_{i},v_{i})\}</math> where the keys <math>h_{i}</math> are the outputs of the embedding network <math>f_{\gamma}(x_{i})</math> and the values <math>v_{i}</math>, in the context of classification, are simply the true class labels <math>y_{i}</math>. Thus, for a given input <math>x_{j}</math><br />
<br />
<center><br />
<math><br />
f_{\gamma}(x_{j}) \rightarrow h_{j},<br />
</math><br />
</center><br />
<br />
<center><br />
<math><br />
y_{j} \rightarrow v_{j}.<br />
</math><br />
</center> <br />
<br />
Note that the memory has a fixed size; thus when it is full, the oldest data is discarded first.<br />
<br />
During training, the authors sample of a set of <math>b</math> training examples randomly (ie. mini-batch size <math>b</math>), say <math>\{(x_{b},y_{b})\}_{b}</math>, from the training data that they input into the embedding network <math>f_{\gamma}</math>, followed by the output network <math>g_{\theta}</math>. The parameters of the embedding and output networks are updated by maximizing the likelihood function (equivalently, minimizing the loss function) of the target values<br />
<br />
<center><br />
<math><br />
p(y|x,\gamma,\theta)=g_{\theta}(f_{\gamma}(x)).<br />
</math><br />
</center><br />
<br />
The last layer of the output network <math>g_{\theta}</math> is a softmax layer, such that the output can be interpreted as a probability distribution. This process is also known as backpropagation with mini-batch gradient descent. Finally, the embedded samples <math>\{(f_{\gamma}(x_{b}),y_{b})\}_{b}</math> are stored into the memory. No local adaptation takes place during this phase.<br />
<br />
== Testing Phase == <br />
<br />
= Examples =<br />
<br />
== Continual Learning ==<br />
<br />
== Incremental Learning ==<br />
<br />
= Conclusion =<br />
<br />
The MbPA model can successfully overcome several shortcomings associated with neural networks through its non-parametric, episodic memory. In fact, many other works in the context of classification and language modelling among others have successfully used variants of this architecture, where traditional neural network systems are augmented with memories. Likewise, the experiments in incremental and continual learning presented in this paper use a memory architecture similar to the Differential Neural Dictionary (DND) used in Neural Episodic Control (NEC) found in <sup>[[#References|[6]]]</sup>, though the gradients from the memory in the MbPA model are not used during training. In conclusion, MbPA presents a natural way to improve the performance of standard deep networks.<br />
<br />
=References=<br />
* <sup>[[1]]</sup>Sprechmann. Pablo, Jayakumar. Siddhant, Rae. Jack, Pritzel. Alexander,Badia. Adria, Uria. Benigno, Vinyals. Oriol, Hassabis. Demis, Pascanu.Razvan, and Blundell. Charles. Memory-based parameter adaptation.ICLR, 2018.<br />
<br />
* <sup>[[2]]</sup>Kumaran. Dhushan, Hassabis. Demis, and McClelland. James. Whatlearning systems do intelligent agents need?Trends in Cognitive Sciences,2016.<br />
<br />
* <sup>[[3]]</sup>Goodfellow. Ian, Warde-Farley. David, Mirza. Mehdi, Courville. Aaron,and Bengio. Yohsua. Maxout networks.arXiv preprint, 2013.<br />
<br />
* <sup>[[4]]</sup>Russakovsky. Olga, Deng. Jia, Su. Hao, Krause. Jonathan, Satheesh. San-jeev, Ma. Sean, Huang. Zhiheng, Karpathy. Andrej, Khosla. Aditya, andBernstein. Michael. Imagenet large scale visual recognition challenge.International Journal of Computer Vision, 2015.<br />
<br />
* <sup>[[5]]</sup>He. Kaiming, Zhang. Xiangyu, Ren. Shaoqing, and Sun. Jian. Deepresidual learning for image recognition.IEEE conference on computervision and pattern recognition, 2016.<br />
<br />
* <sup>[[6]]</sup>Pritzel. Alexander, Uria. Benigno, Srinivasan. Sriram, Puigdomenech.Adria, Vinyals. Oriol, Hassabis. Demis, Wierstra. Daan, and Blundell.Charles. Neural episodic control.ICML, 2017.</div>Z5abbashttp://wiki.math.uwaterloo.ca/statwiki/index.php?title=Memory-Based_Parameter_Adaptation&diff=38576Memory-Based Parameter Adaptation2018-11-09T23:09:40Z<p>Z5abbas: /* Introduction */</p>
<hr />
<div>This is a summary based on the paper, Memory-based Parameter Adaptation by Sprechmann et al.<sup>[[#References|[1]]]</sup> <br />
<br />
The paper generalizes some approaches in language modelling that seek to overcome some of the shortcomings of neural networks including the phenomenon of catastrophic forgetting using memory-based adaptation. Catastrophic forgetting occurs when neural networks perform poorly on old tasks after they have been trained to perform well on a new task. The paper also presents experimental results where the model in question is applied to continual and incremental learning tasks.<br />
<br />
= Presented by = <br />
*J.Walton<br />
*J.Schneider<br />
*Z.Abbas<br />
*A.Na<br />
<br />
= Introduction = <br />
<br />
Model-based parameter adaptation (MbPA) is based on the theory of complementary learning systems which states that intelligent agents must possess two learning systems, one that allows the gradual acquisition of knowledge and another that allows rapid learning of the specifics of individual experiences<sup>[[#References|[2]]]</sup>. Similarly, MbPA consists of two components: a parametric component and a non-parametric component. The parametric component is the standard neural network which learns slowly (low learning rates) but generalizes well. The non-parametric component, on the other hand, is a neural network augmented with an episodic memory that allows storing of previous experiences and local adaptation of the weights of the parametric component. The parametric and non-parametric components therefore serve different purposes during the training and testing phases.<br />
<br />
= Model Architecture = <br />
[[File:MbPA_model_architecture.PNG|700px|thumb|center|Architecture for the MbPA model. Left: Training Usage. Right: Testing Setting.]]<br />
<br />
== Training Phase == <br />
<br />
The model consists of three components: an embedding network <math>f_{\gamma}</math>, a memory <math>M</math> and an output network <math>g_{\theta}</math>. The embedding network and the output network can be thought of as the standard feedforward neural networks for our purposes, with parameters (weights) <math>\gamma</math> and <math>\theta</math>, respectively. The memory, denoted by <math>M</math>, stores “experiences” in the form of key and value pairs <math>\{(h_{i},v_{i})\}</math> where the keys <math>h_{i}</math> are the outputs of the embedding network <math>f_{\gamma}(x_{i})</math> and the values <math>v_{i}</math>, in the context of classification, are simply the true class labels <math>y_{i}</math>. Thus, for a given input <math>x_{j}</math><br />
<br />
<center><br />
<math><br />
f_{\gamma}(x_{j}) \rightarrow h_{j},<br />
</math><br />
</center><br />
<br />
<center><br />
<math><br />
y_{j} \rightarrow v_{j}.<br />
</math><br />
</center> <br />
<br />
Note that the memory has a fixed size; thus when it is full, the oldest data is discarded first.<br />
<br />
During training, the authors sample of a set of <math>b</math> training examples randomly (ie. mini-batch size <math>b</math>), say <math>\{(x_{b},y_{b})\}_{b}</math>, from the training data that they input into the embedding network <math>f_{\gamma}</math>, followed by the output network <math>g_{\theta}</math>. The parameters of the embedding and output networks are updated by maximizing the likelihood function (equivalently, minimizing the loss function) of the target values<br />
<br />
<center><br />
<math><br />
p(y|x,\gamma,\theta)=g_{\theta}(f_{\gamma}(x)).<br />
</math><br />
</center><br />
<br />
The last layer of the output network <math>g_{\theta}</math> is a softmax layer, such that the output can be interpreted as a probability distribution. This process is also known as backpropagation with mini-batch gradient descent. Finally, the embedded samples <math>\{(f_{\gamma}(x_{b}),y_{b})\}_{b}</math> are stored into the memory. No local adaptation takes place during this phase.<br />
<br />
== Testing Phase == <br />
<br />
= Examples =<br />
<br />
== Continual Learning ==<br />
<br />
== Incremental Learning ==<br />
<br />
= Conclusion =<br />
<br />
The MbPA model can successfully overcome several shortcomings associated with neural networks through its non-parametric, episodic memory. In fact, many other works in the context of classification and language modelling among others have successfully used variants of this architecture, where traditional neural network systems are augmented with memories. Likewise, the experiments in incremental and continual learning presented in this paper use a memory architecture similar to the Differential Neural Dictionary (DND) used in Neural Episodic Control (NEC) found in \cite{Pritzel2017}, though the gradients from the memory in the MbPA model are not used during training. In conclusion, MbPA presents a natural way to improve the performance of standard deep networks.<br />
<br />
=References=<br />
* <sup>[[1]]</sup>Sprechmann. Pablo, Jayakumar. Siddhant, Rae. Jack, Pritzel. Alexander,Badia. Adria, Uria. Benigno, Vinyals. Oriol, Hassabis. Demis, Pascanu.Razvan, and Blundell. Charles. Memory-based parameter adaptation.ICLR, 2018.<br />
<br />
* <sup>[[2]]</sup>Kumaran. Dhushan, Hassabis. Demis, and McClelland. James. Whatlearning systems do intelligent agents need?Trends in Cognitive Sciences,2016.<br />
<br />
* <sup>[[3]]</sup>Goodfellow. Ian, Warde-Farley. David, Mirza. Mehdi, Courville. Aaron,and Bengio. Yohsua. Maxout networks.arXiv preprint, 2013.<br />
<br />
* <sup>[[4]]</sup>Russakovsky. Olga, Deng. Jia, Su. Hao, Krause. Jonathan, Satheesh. San-jeev, Ma. Sean, Huang. Zhiheng, Karpathy. Andrej, Khosla. Aditya, andBernstein. Michael. Imagenet large scale visual recognition challenge.International Journal of Computer Vision, 2015.<br />
<br />
* <sup>[[5]]</sup>He. Kaiming, Zhang. Xiangyu, Ren. Shaoqing, and Sun. Jian. Deepresidual learning for image recognition.IEEE conference on computervision and pattern recognition, 2016.<br />
<br />
* <sup>[[6]]</sup>Pritzel. Alexander, Uria. Benigno, Srinivasan. Sriram, Puigdomenech.Adria, Vinyals. Oriol, Hassabis. Demis, Wierstra. Daan, and Blundell.Charles. Neural episodic control.ICML, 2017.</div>Z5abbashttp://wiki.math.uwaterloo.ca/statwiki/index.php?title=Memory-Based_Parameter_Adaptation&diff=38575Memory-Based Parameter Adaptation2018-11-09T23:09:26Z<p>Z5abbas: /* Conclusion */</p>
<hr />
<div>This is a summary based on the paper, Memory-based Parameter Adaptation by Sprechmann et al.<sup>[[#References|[1]]]</sup> <br />
<br />
The paper generalizes some approaches in language modelling that seek to overcome some of the shortcomings of neural networks including the phenomenon of catastrophic forgetting using memory-based adaptation. Catastrophic forgetting occurs when neural networks perform poorly on old tasks after they have been trained to perform well on a new task. The paper also presents experimental results where the model in question is applied to continual and incremental learning tasks.<br />
<br />
= Presented by = <br />
*J.Walton<br />
*J.Schneider<br />
*Z.Abbas<br />
*A.Na<br />
<br />
= Introduction = <br />
<br />
Model-based parameter adaptation (MbPA) is based on the theory of complementary learning systems which states that intelligent agents must possess two learning systems, one that allows the gradual acquisition of knowledge and another that allows rapid learning of the specifics of individual experiences<sup>[[#References|[2]]]</sup> . Similarly, MbPA consists of two components: a parametric component and a non-parametric component. The parametric component is the standard neural network which learns slowly (low learning rates) but generalizes well. The non-parametric component, on the other hand, is a neural network augmented with an episodic memory that allows storing of previous experiences and local adaptation of the weights of the parametric component. The parametric and non-parametric components therefore serve different purposes during the training and testing phases.<br />
<br />
= Model Architecture = <br />
[[File:MbPA_model_architecture.PNG|700px|thumb|center|Architecture for the MbPA model. Left: Training Usage. Right: Testing Setting.]]<br />
<br />
== Training Phase == <br />
<br />
The model consists of three components: an embedding network <math>f_{\gamma}</math>, a memory <math>M</math> and an output network <math>g_{\theta}</math>. The embedding network and the output network can be thought of as the standard feedforward neural networks for our purposes, with parameters (weights) <math>\gamma</math> and <math>\theta</math>, respectively. The memory, denoted by <math>M</math>, stores “experiences” in the form of key and value pairs <math>\{(h_{i},v_{i})\}</math> where the keys <math>h_{i}</math> are the outputs of the embedding network <math>f_{\gamma}(x_{i})</math> and the values <math>v_{i}</math>, in the context of classification, are simply the true class labels <math>y_{i}</math>. Thus, for a given input <math>x_{j}</math><br />
<br />
<center><br />
<math><br />
f_{\gamma}(x_{j}) \rightarrow h_{j},<br />
</math><br />
</center><br />
<br />
<center><br />
<math><br />
y_{j} \rightarrow v_{j}.<br />
</math><br />
</center> <br />
<br />
Note that the memory has a fixed size; thus when it is full, the oldest data is discarded first.<br />
<br />
During training, the authors sample of a set of <math>b</math> training examples randomly (ie. mini-batch size <math>b</math>), say <math>\{(x_{b},y_{b})\}_{b}</math>, from the training data that they input into the embedding network <math>f_{\gamma}</math>, followed by the output network <math>g_{\theta}</math>. The parameters of the embedding and output networks are updated by maximizing the likelihood function (equivalently, minimizing the loss function) of the target values<br />
<br />
<center><br />
<math><br />
p(y|x,\gamma,\theta)=g_{\theta}(f_{\gamma}(x)).<br />
</math><br />
</center><br />
<br />
The last layer of the output network <math>g_{\theta}</math> is a softmax layer, such that the output can be interpreted as a probability distribution. This process is also known as backpropagation with mini-batch gradient descent. Finally, the embedded samples <math>\{(f_{\gamma}(x_{b}),y_{b})\}_{b}</math> are stored into the memory. No local adaptation takes place during this phase.<br />
<br />
== Testing Phase == <br />
<br />
= Examples =<br />
<br />
== Continual Learning ==<br />
<br />
== Incremental Learning ==<br />
<br />
= Conclusion =<br />
<br />
The MbPA model can successfully overcome several shortcomings associated with neural networks through its non-parametric, episodic memory. In fact, many other works in the context of classification and language modelling among others have successfully used variants of this architecture, where traditional neural network systems are augmented with memories. Likewise, the experiments in incremental and continual learning presented in this paper use a memory architecture similar to the Differential Neural Dictionary (DND) used in Neural Episodic Control (NEC) found in \cite{Pritzel2017}, though the gradients from the memory in the MbPA model are not used during training. In conclusion, MbPA presents a natural way to improve the performance of standard deep networks.<br />
<br />
=References=<br />
* <sup>[[1]]</sup>Sprechmann. Pablo, Jayakumar. Siddhant, Rae. Jack, Pritzel. Alexander,Badia. Adria, Uria. Benigno, Vinyals. Oriol, Hassabis. Demis, Pascanu.Razvan, and Blundell. Charles. Memory-based parameter adaptation.ICLR, 2018.<br />
<br />
* <sup>[[2]]</sup>Kumaran. Dhushan, Hassabis. Demis, and McClelland. James. Whatlearning systems do intelligent agents need?Trends in Cognitive Sciences,2016.<br />
<br />
* <sup>[[3]]</sup>Goodfellow. Ian, Warde-Farley. David, Mirza. Mehdi, Courville. Aaron,and Bengio. Yohsua. Maxout networks.arXiv preprint, 2013.<br />
<br />
* <sup>[[4]]</sup>Russakovsky. Olga, Deng. Jia, Su. Hao, Krause. Jonathan, Satheesh. San-jeev, Ma. Sean, Huang. Zhiheng, Karpathy. Andrej, Khosla. Aditya, andBernstein. Michael. Imagenet large scale visual recognition challenge.International Journal of Computer Vision, 2015.<br />
<br />
* <sup>[[5]]</sup>He. Kaiming, Zhang. Xiangyu, Ren. Shaoqing, and Sun. Jian. Deepresidual learning for image recognition.IEEE conference on computervision and pattern recognition, 2016.<br />
<br />
* <sup>[[6]]</sup>Pritzel. Alexander, Uria. Benigno, Srinivasan. Sriram, Puigdomenech.Adria, Vinyals. Oriol, Hassabis. Demis, Wierstra. Daan, and Blundell.Charles. Neural episodic control.ICML, 2017.</div>Z5abbashttp://wiki.math.uwaterloo.ca/statwiki/index.php?title=Memory-Based_Parameter_Adaptation&diff=38574Memory-Based Parameter Adaptation2018-11-09T23:08:55Z<p>Z5abbas: </p>
<hr />
<div>This is a summary based on the paper, Memory-based Parameter Adaptation by Sprechmann et al.<sup>[[#References|[1]]]</sup> <br />
<br />
The paper generalizes some approaches in language modelling that seek to overcome some of the shortcomings of neural networks including the phenomenon of catastrophic forgetting using memory-based adaptation. Catastrophic forgetting occurs when neural networks perform poorly on old tasks after they have been trained to perform well on a new task. The paper also presents experimental results where the model in question is applied to continual and incremental learning tasks.<br />
<br />
= Presented by = <br />
*J.Walton<br />
*J.Schneider<br />
*Z.Abbas<br />
*A.Na<br />
<br />
= Introduction = <br />
<br />
Model-based parameter adaptation (MbPA) is based on the theory of complementary learning systems which states that intelligent agents must possess two learning systems, one that allows the gradual acquisition of knowledge and another that allows rapid learning of the specifics of individual experiences<sup>[[#References|[2]]]</sup> . Similarly, MbPA consists of two components: a parametric component and a non-parametric component. The parametric component is the standard neural network which learns slowly (low learning rates) but generalizes well. The non-parametric component, on the other hand, is a neural network augmented with an episodic memory that allows storing of previous experiences and local adaptation of the weights of the parametric component. The parametric and non-parametric components therefore serve different purposes during the training and testing phases.<br />
<br />
= Model Architecture = <br />
[[File:MbPA_model_architecture.PNG|700px|thumb|center|Architecture for the MbPA model. Left: Training Usage. Right: Testing Setting.]]<br />
<br />
== Training Phase == <br />
<br />
The model consists of three components: an embedding network <math>f_{\gamma}</math>, a memory <math>M</math> and an output network <math>g_{\theta}</math>. The embedding network and the output network can be thought of as the standard feedforward neural networks for our purposes, with parameters (weights) <math>\gamma</math> and <math>\theta</math>, respectively. The memory, denoted by <math>M</math>, stores “experiences” in the form of key and value pairs <math>\{(h_{i},v_{i})\}</math> where the keys <math>h_{i}</math> are the outputs of the embedding network <math>f_{\gamma}(x_{i})</math> and the values <math>v_{i}</math>, in the context of classification, are simply the true class labels <math>y_{i}</math>. Thus, for a given input <math>x_{j}</math><br />
<br />
<center><br />
<math><br />
f_{\gamma}(x_{j}) \rightarrow h_{j},<br />
</math><br />
</center><br />
<br />
<center><br />
<math><br />
y_{j} \rightarrow v_{j}.<br />
</math><br />
</center> <br />
<br />
Note that the memory has a fixed size; thus when it is full, the oldest data is discarded first.<br />
<br />
During training, the authors sample of a set of <math>b</math> training examples randomly (ie. mini-batch size <math>b</math>), say <math>\{(x_{b},y_{b})\}_{b}</math>, from the training data that they input into the embedding network <math>f_{\gamma}</math>, followed by the output network <math>g_{\theta}</math>. The parameters of the embedding and output networks are updated by maximizing the likelihood function (equivalently, minimizing the loss function) of the target values<br />
<br />
<center><br />
<math><br />
p(y|x,\gamma,\theta)=g_{\theta}(f_{\gamma}(x)).<br />
</math><br />
</center><br />
<br />
The last layer of the output network <math>g_{\theta}</math> is a softmax layer, such that the output can be interpreted as a probability distribution. This process is also known as backpropagation with mini-batch gradient descent. Finally, the embedded samples <math>\{(f_{\gamma}(x_{b}),y_{b})\}_{b}</math> are stored into the memory. No local adaptation takes place during this phase.<br />
<br />
== Testing Phase == <br />
<br />
= Examples =<br />
<br />
== Continual Learning ==<br />
<br />
== Incremental Learning ==<br />
<br />
= Conclusion =<br />
<br />
=References=<br />
* <sup>[[1]]</sup>Sprechmann. Pablo, Jayakumar. Siddhant, Rae. Jack, Pritzel. Alexander,Badia. Adria, Uria. Benigno, Vinyals. Oriol, Hassabis. Demis, Pascanu.Razvan, and Blundell. Charles. Memory-based parameter adaptation.ICLR, 2018.<br />
<br />
* <sup>[[2]]</sup>Kumaran. Dhushan, Hassabis. Demis, and McClelland. James. Whatlearning systems do intelligent agents need?Trends in Cognitive Sciences,2016.<br />
<br />
* <sup>[[3]]</sup>Goodfellow. Ian, Warde-Farley. David, Mirza. Mehdi, Courville. Aaron,and Bengio. Yohsua. Maxout networks.arXiv preprint, 2013.<br />
<br />
* <sup>[[4]]</sup>Russakovsky. Olga, Deng. Jia, Su. Hao, Krause. Jonathan, Satheesh. San-jeev, Ma. Sean, Huang. Zhiheng, Karpathy. Andrej, Khosla. Aditya, andBernstein. Michael. Imagenet large scale visual recognition challenge.International Journal of Computer Vision, 2015.<br />
<br />
* <sup>[[5]]</sup>He. Kaiming, Zhang. Xiangyu, Ren. Shaoqing, and Sun. Jian. Deepresidual learning for image recognition.IEEE conference on computervision and pattern recognition, 2016.<br />
<br />
* <sup>[[6]]</sup>Pritzel. Alexander, Uria. Benigno, Srinivasan. Sriram, Puigdomenech.Adria, Vinyals. Oriol, Hassabis. Demis, Wierstra. Daan, and Blundell.Charles. Neural episodic control.ICML, 2017.</div>Z5abbashttp://wiki.math.uwaterloo.ca/statwiki/index.php?title=Memory-Based_Parameter_Adaptation&diff=38573Memory-Based Parameter Adaptation2018-11-09T23:07:53Z<p>Z5abbas: </p>
<hr />
<div>This is a summary based on the paper, Memory-based Parameter Adaptation by Sprechmann et al.<sup>[[#References|[1]]]</sup> <br />
<br />
The paper generalizes some approaches in language modelling that seek to overcome some of the shortcomings of neural networks including the phenomenon of catastrophic forgetting using memory-based adaptation. Catastrophic forgetting occurs when neural networks perform poorly on old tasks after they have been trained to perform well on a new task. The paper also presents experimental results where the model in question is applied to continual and incremental learning tasks.<br />
<br />
= Presented by = <br />
*J.Walton<br />
*J.Schneider<br />
*Z.Abbas<br />
*A.Na<br />
<br />
= Introduction = <br />
<br />
Model-based parameter adaptation (MbPA) is based on the theory of complementary learning systems which states that intelligent agents must possess two learning systems, one that allows the gradual acquisition of knowledge and another that allows rapid learning of the specifics of individual experiences<sup>[[#References|[2]]]</sup> . Similarly, MbPA consists of two components: a parametric component and a non-parametric component. The parametric component is the standard neural network which learns slowly (low learning rates) but generalizes well. The non-parametric component, on the other hand, is a neural network augmented with an episodic memory that allows storing of previous experiences and local adaptation of the weights of the parametric component. The parametric and non-parametric components therefore serve different purposes during the training and testing phases.<br />
<br />
= Model Architecture = <br />
[[File:MbPA_model_architecture.PNG|700px|thumb|center|Architecture for the MbPA model. Left: Training Usage. Right: Testing Setting.]]<br />
<br />
== Training Phase == <br />
<br />
The model consists of three components: an embedding network <math>f_{\gamma}</math>, a memory <math>M</math> and an output network <math>g_{\theta}</math>. The embedding network and the output network can be thought of as the standard feedforward neural networks for our purposes, with parameters (weights) <math>\gamma</math> and <math>\theta</math>, respectively. The memory, denoted by <math>M</math>, stores “experiences” in the form of key and value pairs <math>\{(h_{i},v_{i})\}</math> where the keys <math>h_{i}</math> are the outputs of the embedding network <math>f_{\gamma}(x_{i})</math> and the values <math>v_{i}</math>, in the context of classification, are simply the true class labels <math>y_{i}</math>. Thus, for a given input <math>x_{j}</math><br />
<br />
<center><br />
<math><br />
f_{\gamma}(x_{j}) \rightarrow h_{j},<br />
</math><br />
</center><br />
<br />
<center><br />
<math><br />
y_{j} \rightarrow v_{j}.<br />
</math><br />
</center> <br />
<br />
Note that the memory has a fixed size; thus when it is full, the oldest data is discarded first.<br />
<br />
During training, the authors sample of a set of <math>b</math> training examples randomly (ie. mini-batch size <math>b</math>), say <math>\{(x_{b},y_{b})\}_{b}</math>, from the training data that they input into the embedding network <math>f_{\gamma}</math>, followed by the output network <math>g_{\theta}</math>. The parameters of the embedding and output networks are updated by maximizing the likelihood function (equivalently, minimizing the loss function) of the target values<br />
<br />
<center><br />
<math><br />
p(y|x,\gamma,\theta)=g_{\theta}(f_{\gamma}(x)).<br />
</math><br />
</center><br />
<br />
The last layer of the output network <math>g_{\theta}</math> is a softmax layer, such that the output can be interpreted as a probability distribution. This process is also known as backpropagation with mini-batch gradient descent. Finally, the embedded samples <math>\{(f_{\gamma}(x_{b}),y_{b})\}_{b}</math> are stored into the memory. No local adaptation takes place during this phase.<br />
<br />
== Testing Phase == <br />
<br />
=References=<br />
* <sup>[[1]]</sup>Sprechmann. Pablo, Jayakumar. Siddhant, Rae. Jack, Pritzel. Alexander,Badia. Adria, Uria. Benigno, Vinyals. Oriol, Hassabis. Demis, Pascanu.Razvan, and Blundell. Charles. Memory-based parameter adaptation.ICLR, 2018.<br />
<br />
* <sup>[[2]]</sup>Kumaran. Dhushan, Hassabis. Demis, and McClelland. James. Whatlearning systems do intelligent agents need?Trends in Cognitive Sciences,2016.<br />
<br />
* <sup>[[3]]</sup>Goodfellow. Ian, Warde-Farley. David, Mirza. Mehdi, Courville. Aaron,and Bengio. Yohsua. Maxout networks.arXiv preprint, 2013.<br />
<br />
* <sup>[[4]]</sup>Russakovsky. Olga, Deng. Jia, Su. Hao, Krause. Jonathan, Satheesh. San-jeev, Ma. Sean, Huang. Zhiheng, Karpathy. Andrej, Khosla. Aditya, andBernstein. Michael. Imagenet large scale visual recognition challenge.International Journal of Computer Vision, 2015.<br />
<br />
* <sup>[[5]]</sup>He. Kaiming, Zhang. Xiangyu, Ren. Shaoqing, and Sun. Jian. Deepresidual learning for image recognition.IEEE conference on computervision and pattern recognition, 2016.<br />
<br />
* <sup>[[6]]</sup>Pritzel. Alexander, Uria. Benigno, Srinivasan. Sriram, Puigdomenech.Adria, Vinyals. Oriol, Hassabis. Demis, Wierstra. Daan, and Blundell.Charles. Neural episodic control.ICML, 2017.</div>Z5abbashttp://wiki.math.uwaterloo.ca/statwiki/index.php?title=Memory-Based_Parameter_Adaptation&diff=38572Memory-Based Parameter Adaptation2018-11-09T23:07:18Z<p>Z5abbas: </p>
<hr />
<div>This is a summary based on the paper, Memory-based Parameter Adaptation by Sprechmann et al.<sup>[[#References|[1]]]</sup> <br />
<br />
The paper generalizes some approaches in language modelling that seek to overcome some of the shortcomings of neural networks including the phenomenon of catastrophic forgetting using memory-based adaptation. Catastrophic forgetting occurs when neural networks perform poorly on old tasks after they have been trained to perform well on a new task. The paper also presents experimental results where the model in question is applied to continual and incremental learning tasks.<br />
<br />
= Presented by = <br />
*J.Walton<br />
*J.Schneider<br />
*Z.Abbas<br />
*A.Na<br />
<br />
= Introduction = <br />
<br />
Model-based parameter adaptation (MbPA) is based on the theory of complementary learning systems which states that intelligent agents must possess two learning systems, one that allows the gradual acquisition of knowledge and another that allows rapid learning of the specifics of individual experiences<sup>[[#References|[2]]]</sup> . Similarly, MbPA consists of two components: a parametric component and a non-parametric component. The parametric component is the standard neural network which learns slowly (low learning rates) but generalizes well. The non-parametric component, on the other hand, is a neural network augmented with an episodic memory that allows storing of previous experiences and local adaptation of the weights of the parametric component. The parametric and non-parametric components therefore serve different purposes during the training and testing phases.<br />
<br />
= Model Architecture = <br />
[[File:MbPA_model_architecture.PNG|700px|thumb|center|Architecture for the MbPA model. Left: Training Usage. Right: Testing Setting.]]<br />
<br />
== Training Phase == <br />
<br />
The model consists of three components: an embedding network <math>f_{\gamma}</math>, a memory <math>M</math> and an output network <math>g_{\theta}</math>. The embedding network and the output network can be thought of as the standard feedforward neural networks for our purposes, with parameters (weights) <math>\gamma</math> and <math>\theta</math>, respectively. The memory, denoted by <math>M</math>, stores “experiences” in the form of key and value pairs <math>\{(h_{i},v_{i})\}</math> where the keys <math>h_{i}</math> are the outputs of the embedding network <math>f_{\gamma}(x_{i})</math> and the values <math>v_{i}</math>, in the context of classification, are simply the true class labels <math>y_{i}</math>. Thus, for a given input <math>x_{j}</math><br />
<br />
<center><br />
<math><br />
f_{\gamma}(x_{j}) \rightarrow h_{j},<br />
</math><br />
</center><br />
<br />
<center><br />
<math><br />
y_{j} \rightarrow v_{j}.<br />
</math><br />
</center> <br />
<br />
Note that the memory has a fixed size; thus when it is full, the oldest data is discarded first.<br />
<br />
During training, the authors sample of a set of <math>b</math> training examples randomly (ie. mini-batch size <math>b</math>), say <math>\{(x_{b},y_{b})\}_{b}</math>, from the training data that they input into the embedding network <math>f_{\gamma}</math>, followed by the output network <math>g_{\theta}</math>. The parameters of the embedding and output networks are updated by maximizing the likelihood function (equivalently, minimizing the loss function) of the target values<br />
<br />
<center><br />
<math><br />
p(y|x,\gamma,\theta)=g_{\theta}(f_{\gamma}(x)).<br />
</math><br />
</center><br />
<br />
The last layer of the output network <math>g_{\theta}</math> is a softmax layer, such that the output can be interpreted as a probability distribution. This process is also known as backpropagation with mini-batch gradient descent. Finally, the embedded samples <math>\{(f_{\gamma}(x_{b}),y_{b})\}_{b}</math> are stored into the memory. No local adaptation takes place during this phase.<br />
<br />
=References=<br />
* <sup>[[1]]</sup>Sprechmann. Pablo, Jayakumar. Siddhant, Rae. Jack, Pritzel. Alexander,Badia. Adria, Uria. Benigno, Vinyals. Oriol, Hassabis. Demis, Pascanu.Razvan, and Blundell. Charles. Memory-based parameter adaptation.ICLR, 2018.<br />
<br />
* <sup>[[2]]</sup>Kumaran. Dhushan, Hassabis. Demis, and McClelland. James. Whatlearning systems do intelligent agents need?Trends in Cognitive Sciences,2016.<br />
<br />
* <sup>[[3]]</sup>Goodfellow. Ian, Warde-Farley. David, Mirza. Mehdi, Courville. Aaron,and Bengio. Yohsua. Maxout networks.arXiv preprint, 2013.<br />
<br />
* <sup>[[4]]</sup>Russakovsky. Olga, Deng. Jia, Su. Hao, Krause. Jonathan, Satheesh. San-jeev, Ma. Sean, Huang. Zhiheng, Karpathy. Andrej, Khosla. Aditya, andBernstein. Michael. Imagenet large scale visual recognition challenge.International Journal of Computer Vision, 2015.<br />
<br />
* <sup>[[5]]</sup>He. Kaiming, Zhang. Xiangyu, Ren. Shaoqing, and Sun. Jian. Deepresidual learning for image recognition.IEEE conference on computervision and pattern recognition, 2016.<br />
<br />
* <sup>[[6]]</sup>Pritzel. Alexander, Uria. Benigno, Srinivasan. Sriram, Puigdomenech.Adria, Vinyals. Oriol, Hassabis. Demis, Wierstra. Daan, and Blundell.Charles. Neural episodic control.ICML, 2017.</div>Z5abbashttp://wiki.math.uwaterloo.ca/statwiki/index.php?title=Memory-Based_Parameter_Adaptation&diff=38571Memory-Based Parameter Adaptation2018-11-09T23:05:41Z<p>Z5abbas: </p>
<hr />
<div>This is a summary based on the paper, Memory-based Parameter Adaptation by Sprechmann et al.<br />
<br />
The paper generalizes some approaches in language modelling that seek to overcome some of the shortcomings of neural networks including the phenomenon of catastrophic forgetting using memory-based adaptation. Catastrophic forgetting occurs when neural networks perform poorly on old tasks after they have been trained to perform well on a new task. The paper also presents experimental results where the model in question is applied to continual and incremental learning tasks.<br />
<br />
= Presented by = <br />
*J.Walton<br />
*J.Schneider<br />
*Z.Abbas<br />
*A.Na<br />
<br />
= Introduction = <br />
<br />
Model-based parameter adaptation (MbPA) is based on the theory of complementary learning systems which states that intelligent agents must possess two learning systems, one that allows the gradual acquisition of knowledge and another that allows rapid learning of the specifics of individual experiences. Similarly, MbPA consists of two components: a parametric component and a non-parametric component. The parametric component is the standard neural network which learns slowly (low learning rates) but generalizes well. The non-parametric component, on the other hand, is a neural network augmented with an episodic memory that allows storing of previous experiences and local adaptation of the weights of the parametric component. The parametric and non-parametric components therefore serve different purposes during the training and testing phases.<br />
<br />
= Model Architecture = <br />
[[File:MbPA_model_architecture.PNG|700px|thumb|center|Architecture for the MbPA model. Left: Training Usage. Right: Testing Setting.]]<br />
<br />
== Training Phase == <br />
<br />
The model consists of three components: an embedding network <math>f_{\gamma}</math>, a memory <math>M</math> and an output network <math>g_{\theta}</math>. The embedding network and the output network can be thought of as the standard feedforward neural networks for our purposes, with parameters (weights) <math>\gamma</math> and <math>\theta</math>, respectively. The memory, denoted by <math>M</math>, stores “experiences” in the form of key and value pairs <math>\{(h_{i},v_{i})\}</math> where the keys <math>h_{i}</math> are the outputs of the embedding network <math>f_{\gamma}(x_{i})</math> and the values <math>v_{i}</math>, in the context of classification, are simply the true class labels <math>y_{i}</math>. Thus, for a given input <math>x_{j}</math><br />
<br />
<center><br />
<math><br />
f_{\gamma}(x_{j}) \rightarrow h_{j},<br />
</math><br />
</center><br />
<br />
<center><br />
<math><br />
y_{j} \rightarrow v_{j}.<br />
</math><br />
</center> <br />
<br />
Note that the memory has a fixed size; thus when it is full, the oldest data is discarded first.<br />
<br />
During training, the authors sample of a set of <math>b</math> training examples randomly (ie. mini-batch size <math>b</math>), say <math>\{(x_{b},y_{b})\}_{b}</math>, from the training data that they input into the embedding network <math>f_{\gamma}</math>, followed by the output network <math>g_{\theta}</math>. The parameters of the embedding and output networks are updated by maximizing the likelihood function (equivalently, minimizing the loss function) of the target values<br />
<br />
<center><br />
<math><br />
p(y|x,\gamma,\theta)=g_{\theta}(f_{\gamma}(x)).<br />
</math><br />
</center><br />
<br />
The last layer of the output network <math>g_{\theta}</math> is a softmax layer, such that the output can be interpreted as a probability distribution. This process is also known as backpropagation with mini-batch gradient descent. Finally, the embedded samples <math>\{(f_{\gamma}(x_{b}),y_{b})\}_{b}</math> are stored into the memory. No local adaptation takes place during this phase.<br />
<br />
=References=<br />
* <sup>[[1]]</sup>Sprechmann. Pablo, Jayakumar. Siddhant, Rae. Jack, Pritzel. Alexander,Badia. Adria, Uria. Benigno, Vinyals. Oriol, Hassabis. Demis, Pascanu.Razvan, and Blundell. Charles. Memory-based parameter adaptation.ICLR, 2018.<br />
<br />
* <sup>[[2]]</sup>Kumaran. Dhushan, Hassabis. Demis, and McClelland. James. Whatlearning systems do intelligent agents need?Trends in Cognitive Sciences,2016.<br />
<br />
* <sup>[[3]]</sup>Goodfellow. Ian, Warde-Farley. David, Mirza. Mehdi, Courville. Aaron,and Bengio. Yohsua. Maxout networks.arXiv preprint, 2013.<br />
<br />
* <sup>[[4]]</sup>Russakovsky. Olga, Deng. Jia, Su. Hao, Krause. Jonathan, Satheesh. San-jeev, Ma. Sean, Huang. Zhiheng, Karpathy. Andrej, Khosla. Aditya, andBernstein. Michael. Imagenet large scale visual recognition challenge.International Journal of Computer Vision, 2015.<br />
<br />
* <sup>[[5]]</sup>He. Kaiming, Zhang. Xiangyu, Ren. Shaoqing, and Sun. Jian. Deepresidual learning for image recognition.IEEE conference on computervision and pattern recognition, 2016.<br />
<br />
* <sup>[[6]]</sup>Pritzel. Alexander, Uria. Benigno, Srinivasan. Sriram, Puigdomenech.Adria, Vinyals. Oriol, Hassabis. Demis, Wierstra. Daan, and Blundell.Charles. Neural episodic control.ICML, 2017.</div>Z5abbashttp://wiki.math.uwaterloo.ca/statwiki/index.php?title=Memory-Based_Parameter_Adaptation&diff=38570Memory-Based Parameter Adaptation2018-11-09T22:52:56Z<p>Z5abbas: </p>
<hr />
<div>This is a summary based on the paper, Memory-based Parameter Adaptation by Sprechmann et al.<br />
<br />
The paper generalizes some approaches in language modelling that seek to overcome some of the shortcomings of neural networks including the phenomenon of catastrophic forgetting using memory-based adaptation. Catastrophic forgetting occurs when neural networks perform poorly on old tasks after they have been trained to perform well on a new task. The paper also presents experimental results where the model in question is applied to continual and incremental learning tasks.<br />
<br />
= Presented by = <br />
*J.Walton<br />
*J.Schneider<br />
*Z.Abbas<br />
*A.Na<br />
<br />
= Introduction = <br />
<br />
Model-based parameter adaptation (MbPA) is based on the theory of complementary learning systems which states that intelligent agents must possess two learning systems, one that allows the gradual acquisition of knowledge and another that allows rapid learning of the specifics of individual experiences. Similarly, MbPA consists of two components: a parametric component and a non-parametric component. The parametric component is the standard neural network which learns slowly (low learning rates) but generalizes well. The non-parametric component, on the other hand, is a neural network augmented with an episodic memory that allows storing of previous experiences and local adaptation of the weights of the parametric component. The parametric and non-parametric components therefore serve different purposes during the training and testing phases.<br />
<br />
= Model Architecture = <br />
[[File:MbPA_model_architecture.PNG|700px|thumb|center|Architecture for the MbPA model. Left: Training Usage. Right: Testing Setting.]]<br />
<br />
== Training Phase == <br />
<br />
The model consists of three components: an embedding network <math>f_{\gamma}</math>, a memory <math>M</math> and an output network <math>g_{\theta}</math>. The embedding network and the output network can be thought of as the standard feedforward neural networks for our purposes, with parameters (weights) <math>\gamma</math> and <math>\theta</math>, respectively. The memory, denoted by <math>M</math>, stores “experiences” in the form of key and value pairs <math>\{(h_{i},v_{i})\}</math> where the keys <math>h_{i}</math> are the outputs of the embedding network <math>f_{\gamma}(x_{i})</math> and the values <math>v_{i}</math>, in the context of classification, are simply the true class labels <math>y_{i}</math>. Thus, for a given input <math>x_{j}</math><br />
<br />
<center><br />
<math><br />
f_{\gamma}(x_{j}) \rightarrow h_{j},<br />
</math><br />
</center><br />
<br />
<center><br />
<math><br />
y_{j} \rightarrow v_{j}.<br />
</math><br />
</center> <br />
<br />
Note that the memory has a fixed size; thus when it is full, the oldest data is discarded first.<br />
<br />
During training, the authors sample of a set of <math>b</math> training examples randomly (ie. mini-batch size <math>b</math>), say <math>\{(x_{b},y_{b})\}_{b}</math>, from the training data that they input into the embedding network <math>f_{\gamma}</math>, followed by the output network <math>g_{\theta}</math>. The parameters of the embedding and output networks are updated by maximizing the likelihood function (equivalently, minimizing the loss function) of the target values<br />
<br />
<center><br />
<math><br />
p(y|x,\gamma,\theta)=g_{\theta}(f_{\gamma}(x)).<br />
</math><br />
</center><br />
<br />
The last layer of the output network <math>g_{\theta}</math> is a softmax layer, such that the output can be interpreted as a probability distribution. This process is also known as backpropagation with mini-batch gradient descent. Finally, the embedded samples <math>\{(f_{\gamma}(x_{b}),y_{b})\}_{b}</math> are stored into the memory. No local adaptation takes place during this phase.</div>Z5abbashttp://wiki.math.uwaterloo.ca/statwiki/index.php?title=Memory-Based_Parameter_Adaptation&diff=38569Memory-Based Parameter Adaptation2018-11-09T22:51:46Z<p>Z5abbas: </p>
<hr />
<div>This is a summary based on the paper, Memory-based Parameter Adaptation by Sprechmann et al.<br />
<br />
The paper generalizes some approaches in language modelling that seek to overcome some of the shortcomings of neural networks including the phenomenon of catastrophic forgetting using memory-based adaptation. Catastrophic forgetting occurs when neural networks perform poorly on old tasks after they have been trained to perform well on a new task. The paper also presents experimental results where the model in question is applied to continual and incremental learning tasks.<br />
<br />
== Presented by == <br />
*J.Walton<br />
*J.Schneider<br />
*Z.Abbas<br />
*A.Na<br />
<br />
== Introduction == <br />
<br />
Model-based parameter adaptation (MbPA) is based on the theory of complementary learning systems which states that intelligent agents must possess two learning systems, one that allows the gradual acquisition of knowledge and another that allows rapid learning of the specifics of individual experiences. Similarly, MbPA consists of two components: a parametric component and a non-parametric component. The parametric component is the standard neural network which learns slowly (low learning rates) but generalizes well. The non-parametric component, on the other hand, is a neural network augmented with an episodic memory that allows storing of previous experiences and local adaptation of the weights of the parametric component. The parametric and non-parametric components therefore serve different purposes during the training and testing phases.<br />
<br />
== Model Architecture == <br />
[[File:MbPA_model_architecture.PNG|700px|thumb|center|Architecture for the MbPA model. Left: Training Usage. Right: Testing Setting.]]<br />
<br />
== Training Phase == <br />
<br />
The model consists of three components: an embedding network <math>f_{\gamma}</math>, a memory <math>M</math> and an output network <math>g_{\theta}</math>. The embedding network and the output network can be thought of as the standard feedforward neural networks for our purposes, with parameters (weights) <math>\gamma</math> and <math>\theta</math>, respectively. The memory, denoted by <math>M</math>, stores “experiences” in the form of key and value pairs <math>\{(h_{i},v_{i})\}</math> where the keys <math>h_{i}</math> are the outputs of the embedding network <math>f_{\gamma}(x_{i})</math> and the values <math>v_{i}</math>, in the context of classification, are simply the true class labels <math>y_{i}</math>. Thus, for a given input <math>x_{j}</math><br />
<br />
<center><br />
<math><br />
f_{\gamma}(x_{j}) \rightarrow h_{j},<br />
</math><br />
</center><br />
<br />
<center><br />
<math><br />
y_{j} \rightarrow v_{j}.<br />
</math><br />
</center> <br />
<br />
Note that the memory has a fixed size; thus when it is full, the oldest data is discarded first.<br />
<br />
During training, the authors sample of a set of <math>b</math> training examples randomly (ie. mini-batch size <math>b</math>), say <math>\{(x_{b},y_{b})\}_{b}</math>, from the training data that they input into the embedding network <math>f_{\gamma}</math>, followed by the output network <math>g_{\theta}</math>. The parameters of the embedding and output networks are updated by maximizing the likelihood function (equivalently, minimizing the loss function) of the target values<br />
<br />
<center><br />
<math><br />
p(y|x,\gamma,\theta)=g_{\theta}(f_{\gamma}(x)).<br />
</math><br />
</center><br />
<br />
The last layer of the output network <math>g_{\theta}</math> is a softmax layer, such that the output can be interpreted as a probability distribution. This process is also known as backpropagation with mini-batch gradient descent. Finally, the embedded samples <math>\{(f_{\gamma}(x_{b}),y_{b})\}_{b}</math> are stored into the memory. No local adaptation takes place during this phase.</div>Z5abbashttp://wiki.math.uwaterloo.ca/statwiki/index.php?title=Memory-Based_Parameter_Adaptation&diff=38568Memory-Based Parameter Adaptation2018-11-09T22:50:23Z<p>Z5abbas: /* Model Architecture */</p>
<hr />
<div>The paper generalizes some approaches in language modelling that seek to overcome some of the shortcomings of neural networks including the phenomenon of catastrophic forgetting using memory-based adaptation. Catastrophic forgetting occurs when neural networks perform poorly on old tasks after they have been trained to perform well on a new task. The paper also presents experimental results where the model in question is applied to continual and incremental learning tasks.<br />
<br />
== Presented by == <br />
*J.Walton<br />
*J.Schneider<br />
*Z.Abbas<br />
*A.Na<br />
<br />
== Introduction == <br />
<br />
Model-based parameter adaptation (MbPA) is based on the theory of complementary learning systems which states that intelligent agents must possess two learning systems, one that allows the gradual acquisition of knowledge and another that allows rapid learning of the specifics of individual experiences. Similarly, MbPA consists of two components: a parametric component and a non-parametric component. The parametric component is the standard neural network which learns slowly (low learning rates) but generalizes well. The non-parametric component, on the other hand, is a neural network augmented with an episodic memory that allows storing of previous experiences and local adaptation of the weights of the parametric component. The parametric and non-parametric components therefore serve different purposes during the training and testing phases.<br />
<br />
== Model Architecture == <br />
[[File:MbPA_model_architecture.PNG|700px|thumb|center|Architecture for the MbPA model. Left: Training Usage. Right: Testing Setting.]]<br />
<br />
== Training Phase == <br />
<br />
The model consists of three components: an embedding network <math>f_{\gamma}</math>, a memory <math>M</math> and an output network <math>g_{\theta}</math>. The embedding network and the output network can be thought of as the standard feedforward neural networks for our purposes, with parameters (weights) <math>\gamma</math> and <math>\theta</math>, respectively. The memory, denoted by <math>M</math>, stores “experiences” in the form of key and value pairs <math>\{(h_{i},v_{i})\}</math> where the keys <math>h_{i}</math> are the outputs of the embedding network <math>f_{\gamma}(x_{i})</math> and the values <math>v_{i}</math>, in the context of classification, are simply the true class labels <math>y_{i}</math>. Thus, for a given input <math>x_{j}</math><br />
<br />
<center><br />
<math><br />
f_{\gamma}(x_{j}) \rightarrow h_{j},<br />
</math><br />
</center><br />
<br />
<center><br />
<math><br />
y_{j} \rightarrow v_{j}.<br />
</math><br />
</center> <br />
<br />
Note that the memory has a fixed size; thus when it is full, the oldest data is discarded first.<br />
<br />
During training, the authors sample of a set of <math>b</math> training examples randomly (ie. mini-batch size <math>b</math>), say <math>\{(x_{b},y_{b})\}_{b}</math>, from the training data that they input into the embedding network <math>f_{\gamma}</math>, followed by the output network <math>g_{\theta}</math>. The parameters of the embedding and output networks are updated by maximizing the likelihood function (equivalently, minimizing the loss function) of the target values<br />
<br />
<center><br />
<math><br />
p(y|x,\gamma,\theta)=g_{\theta}(f_{\gamma}(x)).<br />
</math><br />
</center><br />
<br />
The last layer of the output network <math>g_{\theta}</math> is a softmax layer, such that the output can be interpreted as a probability distribution. This process is also known as backpropagation with mini-batch gradient descent. Finally, the embedded samples <math>\{(f_{\gamma}(x_{b}),y_{b})\}_{b}</math> are stored into the memory. No local adaptation takes place during this phase.</div>Z5abbashttp://wiki.math.uwaterloo.ca/statwiki/index.php?title=Memory-Based_Parameter_Adaptation&diff=38567Memory-Based Parameter Adaptation2018-11-09T22:49:42Z<p>Z5abbas: /* Model Architecture */</p>
<hr />
<div>The paper generalizes some approaches in language modelling that seek to overcome some of the shortcomings of neural networks including the phenomenon of catastrophic forgetting using memory-based adaptation. Catastrophic forgetting occurs when neural networks perform poorly on old tasks after they have been trained to perform well on a new task. The paper also presents experimental results where the model in question is applied to continual and incremental learning tasks.<br />
<br />
== Presented by == <br />
*J.Walton<br />
*J.Schneider<br />
*Z.Abbas<br />
*A.Na<br />
<br />
== Introduction == <br />
<br />
Model-based parameter adaptation (MbPA) is based on the theory of complementary learning systems which states that intelligent agents must possess two learning systems, one that allows the gradual acquisition of knowledge and another that allows rapid learning of the specifics of individual experiences. Similarly, MbPA consists of two components: a parametric component and a non-parametric component. The parametric component is the standard neural network which learns slowly (low learning rates) but generalizes well. The non-parametric component, on the other hand, is a neural network augmented with an episodic memory that allows storing of previous experiences and local adaptation of the weights of the parametric component. The parametric and non-parametric components therefore serve different purposes during the training and testing phases.<br />
<br />
== Model Architecture == <br />
[[File:MbPA_model_architecture.PNG|1000px|thumb|left|Architecture for the MbPA model. Left: Training Usage. Right: Testing Setting.]]<br />
<br />
== Training Phase == <br />
<br />
The model consists of three components: an embedding network <math>f_{\gamma}</math>, a memory <math>M</math> and an output network <math>g_{\theta}</math>. The embedding network and the output network can be thought of as the standard feedforward neural networks for our purposes, with parameters (weights) <math>\gamma</math> and <math>\theta</math>, respectively. The memory, denoted by <math>M</math>, stores “experiences” in the form of key and value pairs <math>\{(h_{i},v_{i})\}</math> where the keys <math>h_{i}</math> are the outputs of the embedding network <math>f_{\gamma}(x_{i})</math> and the values <math>v_{i}</math>, in the context of classification, are simply the true class labels <math>y_{i}</math>. Thus, for a given input <math>x_{j}</math><br />
<br />
<center><br />
<math><br />
f_{\gamma}(x_{j}) \rightarrow h_{j},<br />
</math><br />
</center><br />
<br />
<center><br />
<math><br />
y_{j} \rightarrow v_{j}.<br />
</math><br />
</center> <br />
<br />
Note that the memory has a fixed size; thus when it is full, the oldest data is discarded first.<br />
<br />
During training, the authors sample of a set of <math>b</math> training examples randomly (ie. mini-batch size <math>b</math>), say <math>\{(x_{b},y_{b})\}_{b}</math>, from the training data that they input into the embedding network <math>f_{\gamma}</math>, followed by the output network <math>g_{\theta}</math>. The parameters of the embedding and output networks are updated by maximizing the likelihood function (equivalently, minimizing the loss function) of the target values<br />
<br />
<center><br />
<math><br />
p(y|x,\gamma,\theta)=g_{\theta}(f_{\gamma}(x)).<br />
</math><br />
</center><br />
<br />
The last layer of the output network <math>g_{\theta}</math> is a softmax layer, such that the output can be interpreted as a probability distribution. This process is also known as backpropagation with mini-batch gradient descent. Finally, the embedded samples <math>\{(f_{\gamma}(x_{b}),y_{b})\}_{b}</math> are stored into the memory. No local adaptation takes place during this phase.</div>Z5abbashttp://wiki.math.uwaterloo.ca/statwiki/index.php?title=Memory-Based_Parameter_Adaptation&diff=38566Memory-Based Parameter Adaptation2018-11-09T22:49:29Z<p>Z5abbas: /* Model Architecture */</p>
<hr />
<div>The paper generalizes some approaches in language modelling that seek to overcome some of the shortcomings of neural networks including the phenomenon of catastrophic forgetting using memory-based adaptation. Catastrophic forgetting occurs when neural networks perform poorly on old tasks after they have been trained to perform well on a new task. The paper also presents experimental results where the model in question is applied to continual and incremental learning tasks.<br />
<br />
== Presented by == <br />
*J.Walton<br />
*J.Schneider<br />
*Z.Abbas<br />
*A.Na<br />
<br />
== Introduction == <br />
<br />
Model-based parameter adaptation (MbPA) is based on the theory of complementary learning systems which states that intelligent agents must possess two learning systems, one that allows the gradual acquisition of knowledge and another that allows rapid learning of the specifics of individual experiences. Similarly, MbPA consists of two components: a parametric component and a non-parametric component. The parametric component is the standard neural network which learns slowly (low learning rates) but generalizes well. The non-parametric component, on the other hand, is a neural network augmented with an episodic memory that allows storing of previous experiences and local adaptation of the weights of the parametric component. The parametric and non-parametric components therefore serve different purposes during the training and testing phases.<br />
<br />
== Model Architecture == <br />
[[File:MbPA_model_architecture.PNG|800px|thumb|left|Architecture for the MbPA model. Left: Training Usage. Right: Testing Setting.]]<br />
<br />
== Training Phase == <br />
<br />
The model consists of three components: an embedding network <math>f_{\gamma}</math>, a memory <math>M</math> and an output network <math>g_{\theta}</math>. The embedding network and the output network can be thought of as the standard feedforward neural networks for our purposes, with parameters (weights) <math>\gamma</math> and <math>\theta</math>, respectively. The memory, denoted by <math>M</math>, stores “experiences” in the form of key and value pairs <math>\{(h_{i},v_{i})\}</math> where the keys <math>h_{i}</math> are the outputs of the embedding network <math>f_{\gamma}(x_{i})</math> and the values <math>v_{i}</math>, in the context of classification, are simply the true class labels <math>y_{i}</math>. Thus, for a given input <math>x_{j}</math><br />
<br />
<center><br />
<math><br />
f_{\gamma}(x_{j}) \rightarrow h_{j},<br />
</math><br />
</center><br />
<br />
<center><br />
<math><br />
y_{j} \rightarrow v_{j}.<br />
</math><br />
</center> <br />
<br />
Note that the memory has a fixed size; thus when it is full, the oldest data is discarded first.<br />
<br />
During training, the authors sample of a set of <math>b</math> training examples randomly (ie. mini-batch size <math>b</math>), say <math>\{(x_{b},y_{b})\}_{b}</math>, from the training data that they input into the embedding network <math>f_{\gamma}</math>, followed by the output network <math>g_{\theta}</math>. The parameters of the embedding and output networks are updated by maximizing the likelihood function (equivalently, minimizing the loss function) of the target values<br />
<br />
<center><br />
<math><br />
p(y|x,\gamma,\theta)=g_{\theta}(f_{\gamma}(x)).<br />
</math><br />
</center><br />
<br />
The last layer of the output network <math>g_{\theta}</math> is a softmax layer, such that the output can be interpreted as a probability distribution. This process is also known as backpropagation with mini-batch gradient descent. Finally, the embedded samples <math>\{(f_{\gamma}(x_{b}),y_{b})\}_{b}</math> are stored into the memory. No local adaptation takes place during this phase.</div>Z5abbashttp://wiki.math.uwaterloo.ca/statwiki/index.php?title=Memory-Based_Parameter_Adaptation&diff=38565Memory-Based Parameter Adaptation2018-11-09T22:49:18Z<p>Z5abbas: /* Model Architecture */</p>
<hr />
<div>The paper generalizes some approaches in language modelling that seek to overcome some of the shortcomings of neural networks including the phenomenon of catastrophic forgetting using memory-based adaptation. Catastrophic forgetting occurs when neural networks perform poorly on old tasks after they have been trained to perform well on a new task. The paper also presents experimental results where the model in question is applied to continual and incremental learning tasks.<br />
<br />
== Presented by == <br />
*J.Walton<br />
*J.Schneider<br />
*Z.Abbas<br />
*A.Na<br />
<br />
== Introduction == <br />
<br />
Model-based parameter adaptation (MbPA) is based on the theory of complementary learning systems which states that intelligent agents must possess two learning systems, one that allows the gradual acquisition of knowledge and another that allows rapid learning of the specifics of individual experiences. Similarly, MbPA consists of two components: a parametric component and a non-parametric component. The parametric component is the standard neural network which learns slowly (low learning rates) but generalizes well. The non-parametric component, on the other hand, is a neural network augmented with an episodic memory that allows storing of previous experiences and local adaptation of the weights of the parametric component. The parametric and non-parametric components therefore serve different purposes during the training and testing phases.<br />
<br />
== Model Architecture == <br />
[[File:MbPA_model_architecture.PNG|500px|thumb|left|Architecture for the MbPA model. Left: Training Usage. Right: Testing Setting.]]<br />
<br />
== Training Phase == <br />
<br />
The model consists of three components: an embedding network <math>f_{\gamma}</math>, a memory <math>M</math> and an output network <math>g_{\theta}</math>. The embedding network and the output network can be thought of as the standard feedforward neural networks for our purposes, with parameters (weights) <math>\gamma</math> and <math>\theta</math>, respectively. The memory, denoted by <math>M</math>, stores “experiences” in the form of key and value pairs <math>\{(h_{i},v_{i})\}</math> where the keys <math>h_{i}</math> are the outputs of the embedding network <math>f_{\gamma}(x_{i})</math> and the values <math>v_{i}</math>, in the context of classification, are simply the true class labels <math>y_{i}</math>. Thus, for a given input <math>x_{j}</math><br />
<br />
<center><br />
<math><br />
f_{\gamma}(x_{j}) \rightarrow h_{j},<br />
</math><br />
</center><br />
<br />
<center><br />
<math><br />
y_{j} \rightarrow v_{j}.<br />
</math><br />
</center> <br />
<br />
Note that the memory has a fixed size; thus when it is full, the oldest data is discarded first.<br />
<br />
During training, the authors sample of a set of <math>b</math> training examples randomly (ie. mini-batch size <math>b</math>), say <math>\{(x_{b},y_{b})\}_{b}</math>, from the training data that they input into the embedding network <math>f_{\gamma}</math>, followed by the output network <math>g_{\theta}</math>. The parameters of the embedding and output networks are updated by maximizing the likelihood function (equivalently, minimizing the loss function) of the target values<br />
<br />
<center><br />
<math><br />
p(y|x,\gamma,\theta)=g_{\theta}(f_{\gamma}(x)).<br />
</math><br />
</center><br />
<br />
The last layer of the output network <math>g_{\theta}</math> is a softmax layer, such that the output can be interpreted as a probability distribution. This process is also known as backpropagation with mini-batch gradient descent. Finally, the embedded samples <math>\{(f_{\gamma}(x_{b}),y_{b})\}_{b}</math> are stored into the memory. No local adaptation takes place during this phase.</div>Z5abbashttp://wiki.math.uwaterloo.ca/statwiki/index.php?title=Memory-Based_Parameter_Adaptation&diff=38564Memory-Based Parameter Adaptation2018-11-09T22:48:25Z<p>Z5abbas: </p>
<hr />
<div>The paper generalizes some approaches in language modelling that seek to overcome some of the shortcomings of neural networks including the phenomenon of catastrophic forgetting using memory-based adaptation. Catastrophic forgetting occurs when neural networks perform poorly on old tasks after they have been trained to perform well on a new task. The paper also presents experimental results where the model in question is applied to continual and incremental learning tasks.<br />
<br />
== Presented by == <br />
*J.Walton<br />
*J.Schneider<br />
*Z.Abbas<br />
*A.Na<br />
<br />
== Introduction == <br />
<br />
Model-based parameter adaptation (MbPA) is based on the theory of complementary learning systems which states that intelligent agents must possess two learning systems, one that allows the gradual acquisition of knowledge and another that allows rapid learning of the specifics of individual experiences. Similarly, MbPA consists of two components: a parametric component and a non-parametric component. The parametric component is the standard neural network which learns slowly (low learning rates) but generalizes well. The non-parametric component, on the other hand, is a neural network augmented with an episodic memory that allows storing of previous experiences and local adaptation of the weights of the parametric component. The parametric and non-parametric components therefore serve different purposes during the training and testing phases.<br />
<br />
== Model Architecture == <br />
[[File:MbPA_model_architecture.PNG|700px|thumb|left|Architecture for the MbPA model. Left: Training Usage. Right: Testing Setting.]]<br />
<br />
== Training Phase == <br />
<br />
The model consists of three components: an embedding network <math>f_{\gamma}</math>, a memory <math>M</math> and an output network <math>g_{\theta}</math>. The embedding network and the output network can be thought of as the standard feedforward neural networks for our purposes, with parameters (weights) <math>\gamma</math> and <math>\theta</math>, respectively. The memory, denoted by <math>M</math>, stores “experiences” in the form of key and value pairs <math>\{(h_{i},v_{i})\}</math> where the keys <math>h_{i}</math> are the outputs of the embedding network <math>f_{\gamma}(x_{i})</math> and the values <math>v_{i}</math>, in the context of classification, are simply the true class labels <math>y_{i}</math>. Thus, for a given input <math>x_{j}</math><br />
<br />
<center><br />
<math><br />
f_{\gamma}(x_{j}) \rightarrow h_{j},<br />
</math><br />
</center><br />
<br />
<center><br />
<math><br />
y_{j} \rightarrow v_{j}.<br />
</math><br />
</center> <br />
<br />
Note that the memory has a fixed size; thus when it is full, the oldest data is discarded first.<br />
<br />
During training, the authors sample of a set of <math>b</math> training examples randomly (ie. mini-batch size <math>b</math>), say <math>\{(x_{b},y_{b})\}_{b}</math>, from the training data that they input into the embedding network <math>f_{\gamma}</math>, followed by the output network <math>g_{\theta}</math>. The parameters of the embedding and output networks are updated by maximizing the likelihood function (equivalently, minimizing the loss function) of the target values<br />
<br />
<center><br />
<math><br />
p(y|x,\gamma,\theta)=g_{\theta}(f_{\gamma}(x)).<br />
</math><br />
</center><br />
<br />
The last layer of the output network <math>g_{\theta}</math> is a softmax layer, such that the output can be interpreted as a probability distribution. This process is also known as backpropagation with mini-batch gradient descent. Finally, the embedded samples <math>\{(f_{\gamma}(x_{b}),y_{b})\}_{b}</math> are stored into the memory. No local adaptation takes place during this phase.</div>Z5abbashttp://wiki.math.uwaterloo.ca/statwiki/index.php?title=Memory-Based_Parameter_Adaptation&diff=38563Memory-Based Parameter Adaptation2018-11-09T22:47:51Z<p>Z5abbas: /* Model Architecture */</p>
<hr />
<div>The paper generalizes some approaches in language modelling that seek to overcome some of the shortcomings of neural networks including the phenomenon of catastrophic forgetting using memory-based adaptation. Catastrophic forgetting occurs when neural networks perform poorly on old tasks after they have been trained to perform well on a new task. The paper also presents experimental results where the model in question is applied to continual and incremental learning tasks.<br />
<br />
== Presented by == <br />
*J.Walton<br />
*J.Schneider<br />
*Z.Abbas<br />
*A.Na<br />
<br />
== Introduction == <br />
<br />
Model-based parameter adaptation (MbPA) is based on the theory of complementary learning systems which states that intelligent agents must possess two learning systems, one that allows the gradual acquisition of knowledge and another that allows rapid learning of the specifics of individual experiences. Similarly, MbPA consists of two components: a parametric component and a non-parametric component. The parametric component is the standard neural network which learns slowly (low learning rates) but generalizes well. The non-parametric component, on the other hand, is a neural network augmented with an episodic memory that allows storing of previous experiences and local adaptation of the weights of the parametric component. The parametric and non-parametric components therefore serve different purposes during the training and testing phases.<br />
<br />
== Model Architecture == <br />
<br />
[[File:MbPA_model_architecture.PNG|700px|thumb|left|Architecture for the MbPA model. Left: Training Usage. Right: Testing Setting.]]<br />
<br />
== Training Phase == <br />
<br />
The model consists of three components: an embedding network <math>f_{\gamma}</math>, a memory <math>M</math> and an output network <math>g_{\theta}</math>. The embedding network and the output network can be thought of as the standard feedforward neural networks for our purposes, with parameters (weights) <math>\gamma</math> and <math>\theta</math>, respectively. The memory, denoted by <math>M</math>, stores “experiences” in the form of key and value pairs <math>\{(h_{i},v_{i})\}</math> where the keys <math>h_{i}</math> are the outputs of the embedding network <math>f_{\gamma}(x_{i})</math> and the values <math>v_{i}</math>, in the context of classification, are simply the true class labels <math>y_{i}</math>. Thus, for a given input <math>x_{j}</math><br />
<br />
<center><br />
<math><br />
f_{\gamma}(x_{j}) \rightarrow h_{j},<br />
</math><br />
</center><br />
<br />
<center><br />
<math><br />
y_{j} \rightarrow v_{j}.<br />
</math><br />
</center> <br />
<br />
Note that the memory has a fixed size; thus when it is full, the oldest data is discarded first.<br />
<br />
During training, the authors sample of a set of <math>b</math> training examples randomly (ie. mini-batch size <math>b</math>), say <math>\{(x_{b},y_{b})\}_{b}</math>, from the training data that they input into the embedding network <math>f_{\gamma}</math>, followed by the output network <math>g_{\theta}</math>. The parameters of the embedding and output networks are updated by maximizing the likelihood function (equivalently, minimizing the loss function) of the target values<br />
<br />
<center><br />
<math><br />
p(y|x,\gamma,\theta)=g_{\theta}(f_{\gamma}(x)).<br />
</math><br />
</center><br />
<br />
The last layer of the output network <math>g_{\theta}</math> is a softmax layer, such that the output can be interpreted as a probability distribution. This process is also known as backpropagation with mini-batch gradient descent. Finally, the embedded samples <math>\{(f_{\gamma}(x_{b}),y_{b})\}_{b}</math> are stored into the memory. No local adaptation takes place during this phase.</div>Z5abbashttp://wiki.math.uwaterloo.ca/statwiki/index.php?title=Memory-Based_Parameter_Adaptation&diff=38562Memory-Based Parameter Adaptation2018-11-09T22:47:41Z<p>Z5abbas: /* Model Architecture */</p>
<hr />
<div>The paper generalizes some approaches in language modelling that seek to overcome some of the shortcomings of neural networks including the phenomenon of catastrophic forgetting using memory-based adaptation. Catastrophic forgetting occurs when neural networks perform poorly on old tasks after they have been trained to perform well on a new task. The paper also presents experimental results where the model in question is applied to continual and incremental learning tasks.<br />
<br />
== Presented by == <br />
*J.Walton<br />
*J.Schneider<br />
*Z.Abbas<br />
*A.Na<br />
<br />
== Introduction == <br />
<br />
Model-based parameter adaptation (MbPA) is based on the theory of complementary learning systems which states that intelligent agents must possess two learning systems, one that allows the gradual acquisition of knowledge and another that allows rapid learning of the specifics of individual experiences. Similarly, MbPA consists of two components: a parametric component and a non-parametric component. The parametric component is the standard neural network which learns slowly (low learning rates) but generalizes well. The non-parametric component, on the other hand, is a neural network augmented with an episodic memory that allows storing of previous experiences and local adaptation of the weights of the parametric component. The parametric and non-parametric components therefore serve different purposes during the training and testing phases.<br />
<br />
== Model Architecture == <br />
<br />
[[File:MbPA_model_architecture.png|700px|thumb|left|Architecture for the MbPA model. Left: Training Usage. Right: Testing Setting.]]<br />
<br />
== Training Phase == <br />
<br />
The model consists of three components: an embedding network <math>f_{\gamma}</math>, a memory <math>M</math> and an output network <math>g_{\theta}</math>. The embedding network and the output network can be thought of as the standard feedforward neural networks for our purposes, with parameters (weights) <math>\gamma</math> and <math>\theta</math>, respectively. The memory, denoted by <math>M</math>, stores “experiences” in the form of key and value pairs <math>\{(h_{i},v_{i})\}</math> where the keys <math>h_{i}</math> are the outputs of the embedding network <math>f_{\gamma}(x_{i})</math> and the values <math>v_{i}</math>, in the context of classification, are simply the true class labels <math>y_{i}</math>. Thus, for a given input <math>x_{j}</math><br />
<br />
<center><br />
<math><br />
f_{\gamma}(x_{j}) \rightarrow h_{j},<br />
</math><br />
</center><br />
<br />
<center><br />
<math><br />
y_{j} \rightarrow v_{j}.<br />
</math><br />
</center> <br />
<br />
Note that the memory has a fixed size; thus when it is full, the oldest data is discarded first.<br />
<br />
During training, the authors sample of a set of <math>b</math> training examples randomly (ie. mini-batch size <math>b</math>), say <math>\{(x_{b},y_{b})\}_{b}</math>, from the training data that they input into the embedding network <math>f_{\gamma}</math>, followed by the output network <math>g_{\theta}</math>. The parameters of the embedding and output networks are updated by maximizing the likelihood function (equivalently, minimizing the loss function) of the target values<br />
<br />
<center><br />
<math><br />
p(y|x,\gamma,\theta)=g_{\theta}(f_{\gamma}(x)).<br />
</math><br />
</center><br />
<br />
The last layer of the output network <math>g_{\theta}</math> is a softmax layer, such that the output can be interpreted as a probability distribution. This process is also known as backpropagation with mini-batch gradient descent. Finally, the embedded samples <math>\{(f_{\gamma}(x_{b}),y_{b})\}_{b}</math> are stored into the memory. No local adaptation takes place during this phase.</div>Z5abbashttp://wiki.math.uwaterloo.ca/statwiki/index.php?title=Memory-Based_Parameter_Adaptation&diff=38561Memory-Based Parameter Adaptation2018-11-09T22:47:16Z<p>Z5abbas: /* Model Architecture */</p>
<hr />
<div>The paper generalizes some approaches in language modelling that seek to overcome some of the shortcomings of neural networks including the phenomenon of catastrophic forgetting using memory-based adaptation. Catastrophic forgetting occurs when neural networks perform poorly on old tasks after they have been trained to perform well on a new task. The paper also presents experimental results where the model in question is applied to continual and incremental learning tasks.<br />
<br />
== Presented by == <br />
*J.Walton<br />
*J.Schneider<br />
*Z.Abbas<br />
*A.Na<br />
<br />
== Introduction == <br />
<br />
Model-based parameter adaptation (MbPA) is based on the theory of complementary learning systems which states that intelligent agents must possess two learning systems, one that allows the gradual acquisition of knowledge and another that allows rapid learning of the specifics of individual experiences. Similarly, MbPA consists of two components: a parametric component and a non-parametric component. The parametric component is the standard neural network which learns slowly (low learning rates) but generalizes well. The non-parametric component, on the other hand, is a neural network augmented with an episodic memory that allows storing of previous experiences and local adaptation of the weights of the parametric component. The parametric and non-parametric components therefore serve different purposes during the training and testing phases.<br />
<br />
== Model Architecture == <br />
<br />
[[File:MbPA model architecture.png|700px|thumb|left|Architecture for the MbPA model. Left: Training Usage. Right: Testing Setting.]]<br />
<br />
== Training Phase == <br />
<br />
The model consists of three components: an embedding network <math>f_{\gamma}</math>, a memory <math>M</math> and an output network <math>g_{\theta}</math>. The embedding network and the output network can be thought of as the standard feedforward neural networks for our purposes, with parameters (weights) <math>\gamma</math> and <math>\theta</math>, respectively. The memory, denoted by <math>M</math>, stores “experiences” in the form of key and value pairs <math>\{(h_{i},v_{i})\}</math> where the keys <math>h_{i}</math> are the outputs of the embedding network <math>f_{\gamma}(x_{i})</math> and the values <math>v_{i}</math>, in the context of classification, are simply the true class labels <math>y_{i}</math>. Thus, for a given input <math>x_{j}</math><br />
<br />
<center><br />
<math><br />
f_{\gamma}(x_{j}) \rightarrow h_{j},<br />
</math><br />
</center><br />
<br />
<center><br />
<math><br />
y_{j} \rightarrow v_{j}.<br />
</math><br />
</center> <br />
<br />
Note that the memory has a fixed size; thus when it is full, the oldest data is discarded first.<br />
<br />
During training, the authors sample of a set of <math>b</math> training examples randomly (ie. mini-batch size <math>b</math>), say <math>\{(x_{b},y_{b})\}_{b}</math>, from the training data that they input into the embedding network <math>f_{\gamma}</math>, followed by the output network <math>g_{\theta}</math>. The parameters of the embedding and output networks are updated by maximizing the likelihood function (equivalently, minimizing the loss function) of the target values<br />
<br />
<center><br />
<math><br />
p(y|x,\gamma,\theta)=g_{\theta}(f_{\gamma}(x)).<br />
</math><br />
</center><br />
<br />
The last layer of the output network <math>g_{\theta}</math> is a softmax layer, such that the output can be interpreted as a probability distribution. This process is also known as backpropagation with mini-batch gradient descent. Finally, the embedded samples <math>\{(f_{\gamma}(x_{b}),y_{b})\}_{b}</math> are stored into the memory. No local adaptation takes place during this phase.</div>Z5abbashttp://wiki.math.uwaterloo.ca/statwiki/index.php?title=Memory-Based_Parameter_Adaptation&diff=38560Memory-Based Parameter Adaptation2018-11-09T22:41:58Z<p>Z5abbas: </p>
<hr />
<div>The paper generalizes some approaches in language modelling that seek to overcome some of the shortcomings of neural networks including the phenomenon of catastrophic forgetting using memory-based adaptation. Catastrophic forgetting occurs when neural networks perform poorly on old tasks after they have been trained to perform well on a new task. The paper also presents experimental results where the model in question is applied to continual and incremental learning tasks.<br />
<br />
== Presented by == <br />
*J.Walton<br />
*J.Schneider<br />
*Z.Abbas<br />
*A.Na<br />
<br />
== Introduction == <br />
<br />
Model-based parameter adaptation (MbPA) is based on the theory of complementary learning systems which states that intelligent agents must possess two learning systems, one that allows the gradual acquisition of knowledge and another that allows rapid learning of the specifics of individual experiences. Similarly, MbPA consists of two components: a parametric component and a non-parametric component. The parametric component is the standard neural network which learns slowly (low learning rates) but generalizes well. The non-parametric component, on the other hand, is a neural network augmented with an episodic memory that allows storing of previous experiences and local adaptation of the weights of the parametric component. The parametric and non-parametric components therefore serve different purposes during the training and testing phases.<br />
<br />
== Model Architecture == <br />
<br />
[[File:MbPA model architecture.PNG]]<br />
<br />
== Training Phase == <br />
<br />
The model consists of three components: an embedding network <math>f_{\gamma}</math>, a memory <math>M</math> and an output network <math>g_{\theta}</math>. The embedding network and the output network can be thought of as the standard feedforward neural networks for our purposes, with parameters (weights) <math>\gamma</math> and <math>\theta</math>, respectively. The memory, denoted by <math>M</math>, stores “experiences” in the form of key and value pairs <math>\{(h_{i},v_{i})\}</math> where the keys <math>h_{i}</math> are the outputs of the embedding network <math>f_{\gamma}(x_{i})</math> and the values <math>v_{i}</math>, in the context of classification, are simply the true class labels <math>y_{i}</math>. Thus, for a given input <math>x_{j}</math><br />
<br />
<center><br />
<math><br />
f_{\gamma}(x_{j}) \rightarrow h_{j},<br />
</math><br />
</center><br />
<br />
<center><br />
<math><br />
y_{j} \rightarrow v_{j}.<br />
</math><br />
</center> <br />
<br />
Note that the memory has a fixed size; thus when it is full, the oldest data is discarded first.<br />
<br />
During training, the authors sample of a set of <math>b</math> training examples randomly (ie. mini-batch size <math>b</math>), say <math>\{(x_{b},y_{b})\}_{b}</math>, from the training data that they input into the embedding network <math>f_{\gamma}</math>, followed by the output network <math>g_{\theta}</math>. The parameters of the embedding and output networks are updated by maximizing the likelihood function (equivalently, minimizing the loss function) of the target values<br />
<br />
<center><br />
<math><br />
p(y|x,\gamma,\theta)=g_{\theta}(f_{\gamma}(x)).<br />
</math><br />
</center><br />
<br />
The last layer of the output network <math>g_{\theta}</math> is a softmax layer, such that the output can be interpreted as a probability distribution. This process is also known as backpropagation with mini-batch gradient descent. Finally, the embedded samples <math>\{(f_{\gamma}(x_{b}),y_{b})\}_{b}</math> are stored into the memory. No local adaptation takes place during this phase.</div>Z5abbashttp://wiki.math.uwaterloo.ca/statwiki/index.php?title=File:MbPA_model_architecture.PNG&diff=38559File:MbPA model architecture.PNG2018-11-09T22:40:53Z<p>Z5abbas: Architecture for the MbPA model. Left: Training Usage. Right: Testing Setting.</p>
<hr />
<div>Architecture for the MbPA model. Left: Training Usage. Right: Testing Setting.</div>Z5abbashttp://wiki.math.uwaterloo.ca/statwiki/index.php?title=Memory-Based_Parameter_Adaptation&diff=38558Memory-Based Parameter Adaptation2018-11-09T22:34:20Z<p>Z5abbas: </p>
<hr />
<div>The paper generalizes some approaches in language modelling that seek to overcome some of the shortcomings of neural networks including the phenomenon of catastrophic forgetting using memory-based adaptation. Catastrophic forgetting occurs when neural networks perform poorly on old tasks after they have been trained to perform well on a new task. The paper also presents experimental results where the model in question is applied to continual and incremental learning tasks.<br />
<br />
== Presented by == <br />
*J.Walton<br />
*J.Schneider<br />
*Z.Abbas<br />
*A.Na<br />
<br />
== Introduction == <br />
<br />
Model-based parameter adaptation (MbPA) is based on the theory of complementary learning systems which states that intelligent agents must possess two learning systems, one that allows the gradual acquisition of knowledge and another that allows rapid learning of the specifics of individual experiences. Similarly, MbPA consists of two components: a parametric component and a non-parametric component. The parametric component is the standard neural network which learns slowly (low learning rates) but generalizes well. The non-parametric component, on the other hand, is a neural network augmented with an episodic memory that allows storing of previous experiences and local adaptation of the weights of the parametric component. The parametric and non-parametric components therefore serve different purposes during the training and testing phases.<br />
<br />
== Model Architecture == <br />
<br />
== Training Phase == <br />
<br />
The model consists of three components: an embedding network <math>f_{\gamma}</math>, a memory <math>M</math> and an output network <math>g_{\theta}</math>. The embedding network and the output network can be thought of as the standard feedforward neural networks for our purposes, with parameters (weights) <math>\gamma</math> and <math>\theta</math>, respectively. The memory, denoted by <math>M</math>, stores “experiences” in the form of key and value pairs <math>\{(h_{i},v_{i})\}</math> where the keys <math>h_{i}</math> are the outputs of the embedding network <math>f_{\gamma}(x_{i})</math> and the values <math>v_{i}</math>, in the context of classification, are simply the true class labels <math>y_{i}</math>. Thus, for a given input <math>x_{j}</math><br />
<br />
<center><br />
<math><br />
f_{\gamma}(x_{j}) \rightarrow h_{j},<br />
</math><br />
</center><br />
<br />
<center><br />
<math><br />
y_{j} \rightarrow v_{j}.<br />
</math><br />
</center> <br />
<br />
Note that the memory has a fixed size; thus when it is full, the oldest data is discarded first.<br />
<br />
During training, the authors sample of a set of <math>b</math> training examples randomly (ie. mini-batch size <math>b</math>), say <math>\{(x_{b},y_{b})\}_{b}</math>, from the training data that they input into the embedding network <math>f_{\gamma}</math>, followed by the output network <math>g_{\theta}</math>. The parameters of the embedding and output networks are updated by maximizing the likelihood function (equivalently, minimizing the loss function) of the target values<br />
<br />
<center><br />
<math><br />
p(y|x,\gamma,\theta)=g_{\theta}(f_{\gamma}(x)).<br />
</math><br />
</center><br />
<br />
The last layer of the output network <math>g_{\theta}</math> is a softmax layer, such that the output can be interpreted as a probability distribution. This process is also known as backpropagation with mini-batch gradient descent. Finally, the embedded samples <math>\{(f_{\gamma}(x_{b}),y_{b})\}_{b}</math> are stored into the memory. No local adaptation takes place during this phase.</div>Z5abbashttp://wiki.math.uwaterloo.ca/statwiki/index.php?title=Memory-Based_Parameter_Adaptation&diff=38557Memory-Based Parameter Adaptation2018-11-09T22:29:33Z<p>Z5abbas: /* Training Phase */</p>
<hr />
<div>The paper generalizes some approaches in language modelling that seek to overcome some of the shortcomings of neural networks including the phenomenon of catastrophic forgetting using memory-based adaptation. Catastrophic forgetting occurs when neural networks perform poorly on old tasks after they have been trained to perform well on a new task. The paper also presents experimental results where the model in question is applied to continual and incremental learning tasks.<br />
<br />
== Presented by == <br />
*J.Walton<br />
*J.Schneider<br />
*Z.Abbas<br />
*A.Na<br />
<br />
== Introduction == <br />
<br />
Model-based parameter adaptation (MbPA) is based on the theory of complementary learning systems which states that intelligent agents must possess two learning systems, one that allows the gradual acquisition of knowledge and another that allows rapid learning of the specifics of individual experiences. Similarly, MbPA consists of two components: a parametric component and a non-parametric component. The parametric component is the standard neural network which learns slowly (low learning rates) but generalizes well. The non-parametric component, on the other hand, is a neural network augmented with an episodic memory that allows storing of previous experiences and local adaptation of the weights of the parametric component. The parametric and non-parametric components therefore serve different purposes during the training and testing phases.<br />
<br />
== Training Phase == <br />
<br />
The model consists of three components: an embedding network <math>f_{\gamma}</math>, a memory <math>M</math> and an output network <math>g_{\theta}</math>. The embedding network and the output network can be thought of as the standard feedforward neural networks for our purposes, with parameters (weights) <math>\gamma</math> and <math>\theta</math>, respectively. The memory, denoted by <math>M</math>, stores “experiences” in the form of key and value pairs <math>\{(h_{i},v_{i})\}</math> where the keys <math>h_{i}</math> are the outputs of the embedding network <math>f_{\gamma}(x_{i})</math> and the values <math>v_{i}</math>, in the context of classification, are simply the true class labels <math>y_{i}</math>. Thus, for a given input <math>x_{j}</math><br />
<br />
<center><br />
<math><br />
f_{\gamma}(x_{j}) \rightarrow h_{j},<br />
</math><br />
</center><br />
<br />
<center><br />
<math><br />
y_{j} \rightarrow v_{j}.<br />
</math><br />
</center> <br />
<br />
Note that the memory has a fixed size; thus when it is full, the oldest data is discarded first.<br />
<br />
During training, the authors sample of a set of <math>b</math> training examples randomly (ie. mini-batch size <math>b</math>), say <math>\{(x_{b},y_{b})\}_{b}</math>, from the training data that they input into the embedding network <math>f_{\gamma}</math>, followed by the output network <math>g_{\theta}</math>. The parameters of the embedding and output networks are updated by maximizing the likelihood function (equivalently, minimizing the loss function) of the target values<br />
<br />
<center><br />
<math><br />
p(y|x,\gamma,\theta)=g_{\theta}(f_{\gamma}(x)).<br />
</math><br />
</center><br />
<br />
The last layer of the output network <math>g_{\theta}</math> is a softmax layer, such that the output can be interpreted as a probability distribution. This process is also known as backpropagation with mini-batch gradient descent. Finally, the embedded samples <math>\{(f_{\gamma}(x_{b}),y_{b})\}_{b}</math> are stored into the memory. No local adaptation takes place during this phase.</div>Z5abbashttp://wiki.math.uwaterloo.ca/statwiki/index.php?title=Memory-Based_Parameter_Adaptation&diff=38556Memory-Based Parameter Adaptation2018-11-09T22:29:15Z<p>Z5abbas: </p>
<hr />
<div>The paper generalizes some approaches in language modelling that seek to overcome some of the shortcomings of neural networks including the phenomenon of catastrophic forgetting using memory-based adaptation. Catastrophic forgetting occurs when neural networks perform poorly on old tasks after they have been trained to perform well on a new task. The paper also presents experimental results where the model in question is applied to continual and incremental learning tasks.<br />
<br />
== Presented by == <br />
*J.Walton<br />
*J.Schneider<br />
*Z.Abbas<br />
*A.Na<br />
<br />
== Introduction == <br />
<br />
Model-based parameter adaptation (MbPA) is based on the theory of complementary learning systems which states that intelligent agents must possess two learning systems, one that allows the gradual acquisition of knowledge and another that allows rapid learning of the specifics of individual experiences. Similarly, MbPA consists of two components: a parametric component and a non-parametric component. The parametric component is the standard neural network which learns slowly (low learning rates) but generalizes well. The non-parametric component, on the other hand, is a neural network augmented with an episodic memory that allows storing of previous experiences and local adaptation of the weights of the parametric component. The parametric and non-parametric components therefore serve different purposes during the training and testing phases.<br />
<br />
== Training Phase == <br />
<br />
The model consists of three components: an embedding network <math>f_{\gamma}</math>, a memory <math>M</math> and an output network <math>g_{\theta}</math>. The embedding network and the output network can be thought of as the standard feedforward neural networks for our purposes, with parameters (weights) <math>\gamma</math> and <math>\theta</math>, respectively. The memory, denoted by <math>M</math>, stores “experiences” in the form of key and value pairs <math>\{(h_{i},v_{i})\}</math> where the keys <math>h_{I}</math> are the outputs of the embedding network <math>f_{\gamma}(x_{i})</math> and the values <math>v_{i}</math>, in the context of classification, are simply the true class labels <math>y_{i}</math>. Thus, for a given input <math>x_{j}</math><br />
<br />
<center><br />
<math><br />
f_{\gamma}(x_{j}) \rightarrow h_{j},<br />
</math><br />
</center><br />
<br />
<center><br />
<math><br />
y_{j} \rightarrow v_{j}.<br />
</math><br />
</center> <br />
<br />
Note that the memory has a fixed size; thus when it is full, the oldest data is discarded first.<br />
<br />
During training, the authors sample of a set of <math>b</math> training examples randomly (ie. mini-batch size <math>b</math>), say <math>\{(x_{b},y_{b})\}_{b}</math>, from the training data that they input into the embedding network <math>f_{\gamma}</math>, followed by the output network <math>g_{\theta}</math>. The parameters of the embedding and output networks are updated by maximizing the likelihood function (equivalently, minimizing the loss function) of the target values<br />
<br />
<center><br />
<math><br />
p(y|x,\gamma,\theta)=g_{\theta}(f_{\gamma}(x)).<br />
</math><br />
</center><br />
<br />
The last layer of the output network <math>g_{\theta}</math> is a softmax layer, such that the output can be interpreted as a probability distribution. This process is also known as backpropagation with mini-batch gradient descent. Finally, the embedded samples <math>\{(f_{\gamma}(x_{b}),y_{b})\}_{b}</math> are stored into the memory. No local adaptation takes place during this phase.</div>Z5abbashttp://wiki.math.uwaterloo.ca/statwiki/index.php?title=Memory-Based_Parameter_Adaptation&diff=38555Memory-Based Parameter Adaptation2018-11-09T22:28:49Z<p>Z5abbas: </p>
<hr />
<div>The paper generalizes some approaches in language modelling that seek to overcome some of the shortcomings of neural networks including the phenomenon of catastrophic forgetting using memory-based adaptation. Catastrophic forgetting occurs when neural networks perform poorly on old tasks after they have been trained to perform well on a new task. The paper also presents experimental results where the model in question is applied to continual and incremental learning tasks.\\<br />
<br />
== Presented by == <br />
*J.Walton<br />
*J.Schneider<br />
*Z.Abbas<br />
*A.Na<br />
<br />
== Introduction == <br />
<br />
Model-based parameter adaptation (MbPA) is based on the theory of complementary learning systems which states that intelligent agents must possess two learning systems, one that allows the gradual acquisition of knowledge and another that allows rapid learning of the specifics of individual experiences. Similarly, MbPA consists of two components: a parametric component and a non-parametric component. The parametric component is the standard neural network which learns slowly (low learning rates) but generalizes well. The non-parametric component, on the other hand, is a neural network augmented with an episodic memory that allows storing of previous experiences and local adaptation of the weights of the parametric component. The parametric and non-parametric components therefore serve different purposes during the training and testing phases.\\<br />
<br />
== Training Phase == <br />
<br />
The model consists of three components: an embedding network <math>f_{\gamma}</math>, a memory <math>M</math> and an output network <math>g_{\theta}</math>. The embedding network and the output network can be thought of as the standard feedforward neural networks for our purposes, with parameters (weights) <math>\gamma</math> and <math>\theta</math>, respectively. The memory, denoted by <math>M</math>, stores “experiences” in the form of key and value pairs <math>\{(h_{i},v_{i})\}</math> where the keys <math>h_{I}</math> are the outputs of the embedding network <math>f_{\gamma}(x_{i})</math> and the values <math>v_{i}</math>, in the context of classification, are simply the true class labels <math>y_{i}</math>. Thus, for a given input <math>x_{j}</math><br />
<br />
<center><br />
<math><br />
f_{\gamma}(x_{j}) \rightarrow h_{j},<br />
</math><br />
</center><br />
<br />
<center><br />
<math><br />
y_{j} \rightarrow v_{j}.<br />
</math><br />
</center> <br />
<br />
Note that the memory has a fixed size; thus when it is full, the oldest data is discarded first.<br />
<br />
During training, the authors sample of a set of <math>b</math> training examples randomly (ie. mini-batch size <math>b</math>), say <math>\{(x_{b},y_{b})\}_{b}</math>, from the training data that they input into the embedding network <math>f_{\gamma}</math>, followed by the output network <math>g_{\theta}</math>. The parameters of the embedding and output networks are updated by maximizing the likelihood function (equivalently, minimizing the loss function) of the target values<br />
<br />
<center><br />
<math><br />
p(y|x,\gamma,\theta)=g_{\theta}(f_{\gamma}(x)).<br />
</math><br />
</center><br />
<br />
The last layer of the output network <math>g_{\theta}</math> is a softmax layer, such that the output can be interpreted as a probability distribution. This process is also known as backpropagation with mini-batch gradient descent. Finally, the embedded samples <math>\{(f_{\gamma}(x_{b}),y_{b})\}_{b}</math> are stored into the memory. No local adaptation takes place during this phase.</div>Z5abbashttp://wiki.math.uwaterloo.ca/statwiki/index.php?title=Memory-Based_Parameter_Adaptation&diff=38554Memory-Based Parameter Adaptation2018-11-09T22:28:23Z<p>Z5abbas: </p>
<hr />
<div>The paper generalizes some approaches in language modelling that seek to overcome some of the shortcomings of neural networks including the phenomenon of catastrophic forgetting using memory-based adaptation. Catastrophic forgetting occurs when neural networks perform poorly on old tasks after they have been trained to perform well on a new task. The paper also presents experimental results where the model in question is applied to continual and incremental learning tasks.\\<br />
<br />
== Presented by == <br />
*J.Walton<br />
*J.Schneider<br />
*Z.Abbas<br />
*A.Na<br />
<br />
== Introduction == <br />
<br />
Model-based parameter adaptation (MbPA) is based on the theory of complementary learning systems which states that intelligent agents must possess two learning systems, one that allows the gradual acquisition of knowledge and another that allows rapid learning of the specifics of individual experiences \cite{Kumaran2016}. Similarly, MbPA consists of two components: a parametric component and a non-parametric component. The parametric component is the standard neural network which learns slowly (low learning rates) but generalizes well. The non-parametric component, on the other hand, is a neural network augmented with an episodic memory that allows storing of previous experiences and local adaptation of the weights of the parametric component. The parametric and non-parametric components therefore serve different purposes during the training and testing phases.\\<br />
<br />
== Training Phase == <br />
<br />
The model consists of three components: an embedding network <math>f_{\gamma}</math>, a memory <math>M</math> and an output network <math>g_{\theta}</math>. The embedding network and the output network can be thought of as the standard feedforward neural networks for our purposes, with parameters (weights) <math>\gamma</math> and <math>\theta</math>, respectively. The memory, denoted by <math>M</math>, stores “experiences” in the form of key and value pairs <math>\{(h_{i},v_{i})\}</math> where the keys <math>h_{I}</math> are the outputs of the embedding network <math>f_{\gamma}(x_{i})</math> and the values <math>v_{i}</math>, in the context of classification, are simply the true class labels <math>y_{i}</math>. Thus, for a given input <math>x_{j}</math><br />
<br />
<center><br />
<math><br />
f_{\gamma}(x_{j}) \rightarrow h_{j},<br />
</math><br />
</center><br />
<br />
<center><br />
<math><br />
y_{j} \rightarrow v_{j}.<br />
</math><br />
</center> <br />
<br />
Note that the memory has a fixed size; thus when it is full, the oldest data is discarded first.<br />
<br />
During training, the authors sample of a set of <math>b</math> training examples randomly (ie. mini-batch size <math>b</math>), say <math>\{(x_{b},y_{b})\}_{b}</math>, from the training data that they input into the embedding network <math>f_{\gamma}</math>, followed by the output network <math>g_{\theta}</math>. The parameters of the embedding and output networks are updated by maximizing the likelihood function (equivalently, minimizing the loss function) of the target values<br />
<br />
<center><br />
<math><br />
p(y|x,\gamma,\theta)=g_{\theta}(f_{\gamma}(x)).<br />
</math><br />
</center><br />
<br />
The last layer of the output network <math>g_{\theta}</math> is a softmax layer, such that the output can be interpreted as a probability distribution. This process is also known as backpropagation with mini-batch gradient descent. Finally, the embedded samples <math>\{(f_{\gamma}(x_{b}),y_{b})\}_{b}</math> are stored into the memory. No local adaptation takes place during this phase.</div>Z5abbashttp://wiki.math.uwaterloo.ca/statwiki/index.php?title=Memory-Based_Parameter_Adaptation&diff=38553Memory-Based Parameter Adaptation2018-11-09T22:27:41Z<p>Z5abbas: </p>
<hr />
<div>The paper generalizes some approaches in language modelling that seek to overcome some of the shortcomings of neural networks including the phenomenon of catastrophic forgetting using memory-based adaptation. Catastrophic forgetting occurs when neural networks perform poorly on old tasks after they have been trained to perform well on a new task. The paper also presents experimental results where the model in question is applied to continual and incremental learning tasks.\\<br />
<br />
== Presented by == <br />
*J.Walton<br />
*J.Schneider<br />
*Z.Abbas<br />
*A.Na<br />
<br />
== Introduction == <br />
<br />
Model-based parameter adaptation (MbPA) is based on the theory of complementary learning systems which states that intelligent agents must possess two learning systems, one that allows the gradual acquisition of knowledge and another that allows rapid learning of the specifics of individual experiences \cite{Kumaran2016}. Similarly, MbPA consists of two components: a parametric component and a non-parametric component. The parametric component is the standard neural network which learns slowly (low learning rates) but generalizes well. The non-parametric component, on the other hand, is a neural network augmented with an episodic memory that allows storing of previous experiences and local adaptation of the weights of the parametric component. The parametric and non-parametric components therefore serve different purposes during the training and testing phases.\\<br />
<br />
== Training Phase == <br />
<br />
The model consists of three components: an embedding network <math>f_{\gamma}</math>, a memory <math>M</math> and an output network <math>g_{\theta}</math>. The embedding network and the output network can be thought of as the standard feedforward neural networks for our purposes, with parameters (weights) <math>\gamma</math> and <math>\theta</math>, respectively. The memory, denoted by <math>M</math>, stores “experiences” in the form of key and value pairs <math>\{(h_{i},v_{i})\}</math> where the keys <math>h_{I}</math> are the outputs of the embedding network <math>f_{\gamma}(x_{i})</math> and the values <math>v_{I}</math>, in the context of classification, are simply the true class labels <math>y_{I}</math>. Thus, for a given input <math>x_{j}</math><br />
<br />
<center><br />
<math><br />
f_{\gamma}(x_{j}) \rightarrow h_{j},<br />
</math><br />
</center><br />
<br />
<center><br />
<math><br />
y_{j} \rightarrow v_{j}.<br />
</math><br />
</center> <br />
<br />
Note that the memory has a fixed size; thus when it is full, the oldest data is discarded first.<br />
<br />
During training, the authors sample of a set of <math>b</math> training examples randomly (ie. mini-batch size <math>b</math>), say <math>\{(x_{b},y_{b})\}_{b}</math>, from the training data that they input into the embedding network <math>f_{\gamma}</math>, followed by the output network <math>g_{\theta}</math>. The parameters of the embedding and output networks are updated by maximizing the likelihood function (equivalently, minimizing the loss function) of the target values<br />
<br />
<center><br />
<math><br />
p(y|x,\gamma,\theta)=g_{\theta}(f_{\gamma}(x)).<br />
</math><br />
</center><br />
<br />
The last layer of the output network <math>g_{\theta}</math> is a softmax layer, such that the output can be interpreted as a probability distribution. This process is also known as backpropagation with mini-batch gradient descent. Finally, the embedded samples <math>\{(f_{\gamma}(x_{b}),y_{b})\}_{b}</math> are stored into the memory. No local adaptation takes place during this phase.</div>Z5abbashttp://wiki.math.uwaterloo.ca/statwiki/index.php?title=Memory-Based_Parameter_Adaptation&diff=38552Memory-Based Parameter Adaptation2018-11-09T22:27:19Z<p>Z5abbas: /* Introduction */</p>
<hr />
<div>== Presented by == <br />
*J.Walton<br />
*J.Schneider<br />
*Z.Abbas<br />
*A.Na<br />
<br />
== Introduction == <br />
<br />
Model-based parameter adaptation (MbPA) is based on the theory of complementary learning systems which states that intelligent agents must possess two learning systems, one that allows the gradual acquisition of knowledge and another that allows rapid learning of the specifics of individual experiences \cite{Kumaran2016}. Similarly, MbPA consists of two components: a parametric component and a non-parametric component. The parametric component is the standard neural network which learns slowly (low learning rates) but generalizes well. The non-parametric component, on the other hand, is a neural network augmented with an episodic memory that allows storing of previous experiences and local adaptation of the weights of the parametric component. The parametric and non-parametric components therefore serve different purposes during the training and testing phases.\\<br />
<br />
== Training Phase == <br />
<br />
The model consists of three components: an embedding network <math>f_{\gamma}</math>, a memory <math>M</math> and an output network <math>g_{\theta}</math>. The embedding network and the output network can be thought of as the standard feedforward neural networks for our purposes, with parameters (weights) <math>\gamma</math> and <math>\theta</math>, respectively. The memory, denoted by <math>M</math>, stores “experiences” in the form of key and value pairs <math>\{(h_{i},v_{i})\}</math> where the keys <math>h_{I}</math> are the outputs of the embedding network <math>f_{\gamma}(x_{i})</math> and the values <math>v_{I}</math>, in the context of classification, are simply the true class labels <math>y_{I}</math>. Thus, for a given input <math>x_{j}</math><br />
<br />
<center><br />
<math><br />
f_{\gamma}(x_{j}) \rightarrow h_{j},<br />
</math><br />
</center><br />
<br />
<center><br />
<math><br />
y_{j} \rightarrow v_{j}.<br />
</math><br />
</center> <br />
<br />
Note that the memory has a fixed size; thus when it is full, the oldest data is discarded first.<br />
<br />
During training, the authors sample of a set of <math>b</math> training examples randomly (ie. mini-batch size <math>b</math>), say <math>\{(x_{b},y_{b})\}_{b}</math>, from the training data that they input into the embedding network <math>f_{\gamma}</math>, followed by the output network <math>g_{\theta}</math>. The parameters of the embedding and output networks are updated by maximizing the likelihood function (equivalently, minimizing the loss function) of the target values<br />
<br />
<center><br />
<math><br />
p(y|x,\gamma,\theta)=g_{\theta}(f_{\gamma}(x)).<br />
</math><br />
</center><br />
<br />
The last layer of the output network <math>g_{\theta}</math> is a softmax layer, such that the output can be interpreted as a probability distribution. This process is also known as backpropagation with mini-batch gradient descent. Finally, the embedded samples <math>\{(f_{\gamma}(x_{b}),y_{b})\}_{b}</math> are stored into the memory. No local adaptation takes place during this phase.</div>Z5abbashttp://wiki.math.uwaterloo.ca/statwiki/index.php?title=Memory-Based_Parameter_Adaptation&diff=38551Memory-Based Parameter Adaptation2018-11-09T22:25:54Z<p>Z5abbas: /* Presented by */</p>
<hr />
<div>== Presented by == <br />
*J.Walton<br />
*J.Schneider<br />
*Z.Abbas<br />
*A.Na<br />
<br />
== Introduction == <br />
The paper generalizes some approaches in language modelling that seek to overcome some of the shortcomings of neural networks including the phenomenon of catastrophic forgetting using memory-based adaptation. Catastrophic forgetting occurs when neural networks perform poorly on old tasks after they have been trained to perform well on a new task. The paper also presents experimental results where the model in question is applied to continual and incremental learning tasks.\\<br />
<br />
Model-based parameter adaptation (MbPA) is based on the theory of complementary learning systems which states that intelligent agents must possess two learning systems, one that allows the gradual acquisition of knowledge and another that allows rapid learning of the specifics of individual experiences \cite{Kumaran2016}. Similarly, MbPA consists of two components: a parametric component and a non-parametric component. The parametric component is the standard neural network which learns slowly (low learning rates) but generalizes well. The non-parametric component, on the other hand, is a neural network augmented with an episodic memory that allows storing of previous experiences and local adaptation of the weights of the parametric component. The parametric and non-parametric components therefore serve different purposes during the training and testing phases.\\<br />
<br />
== Training Phase == <br />
<br />
The model consists of three components: an embedding network <math>f_{\gamma}</math>, a memory <math>M</math> and an output network <math>g_{\theta}</math>. The embedding network and the output network can be thought of as the standard feedforward neural networks for our purposes, with parameters (weights) <math>\gamma</math> and <math>\theta</math>, respectively. The memory, denoted by <math>M</math>, stores “experiences” in the form of key and value pairs <math>\{(h_{i},v_{i})\}</math> where the keys <math>h_{I}</math> are the outputs of the embedding network <math>f_{\gamma}(x_{i})</math> and the values <math>v_{I}</math>, in the context of classification, are simply the true class labels <math>y_{I}</math>. Thus, for a given input <math>x_{j}</math><br />
<br />
<center><br />
<math><br />
f_{\gamma}(x_{j}) \rightarrow h_{j},<br />
</math><br />
</center><br />
<br />
<center><br />
<math><br />
y_{j} \rightarrow v_{j}.<br />
</math><br />
</center> <br />
<br />
Note that the memory has a fixed size; thus when it is full, the oldest data is discarded first.<br />
<br />
During training, the authors sample of a set of <math>b</math> training examples randomly (ie. mini-batch size <math>b</math>), say <math>\{(x_{b},y_{b})\}_{b}</math>, from the training data that they input into the embedding network <math>f_{\gamma}</math>, followed by the output network <math>g_{\theta}</math>. The parameters of the embedding and output networks are updated by maximizing the likelihood function (equivalently, minimizing the loss function) of the target values<br />
<br />
<center><br />
<math><br />
p(y|x,\gamma,\theta)=g_{\theta}(f_{\gamma}(x)).<br />
</math><br />
</center><br />
<br />
The last layer of the output network <math>g_{\theta}</math> is a softmax layer, such that the output can be interpreted as a probability distribution. This process is also known as backpropagation with mini-batch gradient descent. Finally, the embedded samples <math>\{(f_{\gamma}(x_{b}),y_{b})\}_{b}</math> are stored into the memory. No local adaptation takes place during this phase.</div>Z5abbashttp://wiki.math.uwaterloo.ca/statwiki/index.php?title=Memory-Based_Parameter_Adaptation&diff=38550Memory-Based Parameter Adaptation2018-11-09T22:24:17Z<p>Z5abbas: /* Training Phase */</p>
<hr />
<div>== Presented by == <br />
J.Walton, J.Schneider, Z.Abbas, A.Na<br />
<br />
== Introduction == <br />
The paper generalizes some approaches in language modelling that seek to overcome some of the shortcomings of neural networks including the phenomenon of catastrophic forgetting using memory-based adaptation. Catastrophic forgetting occurs when neural networks perform poorly on old tasks after they have been trained to perform well on a new task. The paper also presents experimental results where the model in question is applied to continual and incremental learning tasks.\\<br />
<br />
Model-based parameter adaptation (MbPA) is based on the theory of complementary learning systems which states that intelligent agents must possess two learning systems, one that allows the gradual acquisition of knowledge and another that allows rapid learning of the specifics of individual experiences \cite{Kumaran2016}. Similarly, MbPA consists of two components: a parametric component and a non-parametric component. The parametric component is the standard neural network which learns slowly (low learning rates) but generalizes well. The non-parametric component, on the other hand, is a neural network augmented with an episodic memory that allows storing of previous experiences and local adaptation of the weights of the parametric component. The parametric and non-parametric components therefore serve different purposes during the training and testing phases.\\<br />
<br />
== Training Phase == <br />
<br />
The model consists of three components: an embedding network <math>f_{\gamma}</math>, a memory <math>M</math> and an output network <math>g_{\theta}</math>. The embedding network and the output network can be thought of as the standard feedforward neural networks for our purposes, with parameters (weights) <math>\gamma</math> and <math>\theta</math>, respectively. The memory, denoted by <math>M</math>, stores “experiences” in the form of key and value pairs <math>\{(h_{i},v_{i})\}</math> where the keys <math>h_{I}</math> are the outputs of the embedding network <math>f_{\gamma}(x_{i})</math> and the values <math>v_{I}</math>, in the context of classification, are simply the true class labels <math>y_{I}</math>. Thus, for a given input <math>x_{j}</math><br />
<br />
<center><br />
<math><br />
f_{\gamma}(x_{j}) \rightarrow h_{j},<br />
</math><br />
</center><br />
<br />
<center><br />
<math><br />
y_{j} \rightarrow v_{j}.<br />
</math><br />
</center> <br />
<br />
Note that the memory has a fixed size; thus when it is full, the oldest data is discarded first.<br />
<br />
During training, the authors sample of a set of <math>b</math> training examples randomly (ie. mini-batch size <math>b</math>), say <math>\{(x_{b},y_{b})\}_{b}</math>, from the training data that they input into the embedding network <math>f_{\gamma}</math>, followed by the output network <math>g_{\theta}</math>. The parameters of the embedding and output networks are updated by maximizing the likelihood function (equivalently, minimizing the loss function) of the target values<br />
<br />
<center><br />
<math><br />
p(y|x,\gamma,\theta)=g_{\theta}(f_{\gamma}(x)).<br />
</math><br />
</center><br />
<br />
The last layer of the output network <math>g_{\theta}</math> is a softmax layer, such that the output can be interpreted as a probability distribution. This process is also known as backpropagation with mini-batch gradient descent. Finally, the embedded samples <math>\{(f_{\gamma}(x_{b}),y_{b})\}_{b}</math> are stored into the memory. No local adaptation takes place during this phase.</div>Z5abbashttp://wiki.math.uwaterloo.ca/statwiki/index.php?title=Memory-Based_Parameter_Adaptation&diff=38549Memory-Based Parameter Adaptation2018-11-09T22:23:34Z<p>Z5abbas: Created page with "== Presented by == J.Walton, J.Schneider, Z.Abbas, A.Na == Introduction == The paper generalizes some approaches in language modelling that seek to overcome some of the sho..."</p>
<hr />
<div>== Presented by == <br />
J.Walton, J.Schneider, Z.Abbas, A.Na<br />
<br />
== Introduction == <br />
The paper generalizes some approaches in language modelling that seek to overcome some of the shortcomings of neural networks including the phenomenon of catastrophic forgetting using memory-based adaptation. Catastrophic forgetting occurs when neural networks perform poorly on old tasks after they have been trained to perform well on a new task. The paper also presents experimental results where the model in question is applied to continual and incremental learning tasks.\\<br />
<br />
Model-based parameter adaptation (MbPA) is based on the theory of complementary learning systems which states that intelligent agents must possess two learning systems, one that allows the gradual acquisition of knowledge and another that allows rapid learning of the specifics of individual experiences \cite{Kumaran2016}. Similarly, MbPA consists of two components: a parametric component and a non-parametric component. The parametric component is the standard neural network which learns slowly (low learning rates) but generalizes well. The non-parametric component, on the other hand, is a neural network augmented with an episodic memory that allows storing of previous experiences and local adaptation of the weights of the parametric component. The parametric and non-parametric components therefore serve different purposes during the training and testing phases.\\<br />
<br />
== Training Phase == <br />
<br />
The model consists of three components: an embedding network <math>f_{\gamma}</math>, a memory <math>M</math> and an output network <math>g_{\theta}</math>. The embedding network and the output network can be thought of as the standard feedforward neural networks for our purposes, with parameters (weights) <math>\gamma</math> and <math>\theta</math>, respectively. The memory, denoted by <math>M</math>, stores “experiences” in the form of key and value pairs <math>\{(h_{i},v_{i})\}</math> where the keys <math>h_{I}</math> are the outputs of the embedding network <math>f_{\gamma}(x_{i})</math> and the values <math>v_{I}</math>, in the context of classification, are simply the true class labels <math>y_{I}</math>. Thus, for a given input <math>x_{j}</math><br />
<br />
<center><br />
<math><br />
f_{\gamma}(x_{j}) \rightarrow h_{j},<br />
y_{j} \rightarrow v_{j}.<br />
</math><br />
</center> <br />
<br />
Note that the memory has a fixed size; thus when it is full, the oldest data is discarded first.<br />
<br />
During training, the authors sample of a set of <math>b</math> training examples randomly (ie. mini-batch size <math>b</math>), say <math>\{(x_{b},y_{b})\}_{b}</math>, from the training data that they input into the embedding network <math>f_{\gamma}</math>, followed by the output network <math>g_{\theta}</math>. The parameters of the embedding and output networks are updated by maximizing the likelihood function (equivalently, minimizing the loss function) of the target values<br />
<br />
<center><br />
<math><br />
p(y|x,\gamma,\theta)=g_{\theta}(f_{\gamma}(x)).<br />
</math><br />
</center><br />
<br />
The last layer of the output network <math>g_{\theta}</math> is a softmax layer, such that the output can be interpreted as a probability distribution. This process is also known as backpropagation with mini-batch gradient descent. Finally, the embedded samples <math>\{(f_{\gamma}(x_{b}),y_{b})\}_{b}</math> are stored into the memory. No local adaptation takes place during this phase.</div>Z5abbas