版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、Meta-Learning Representations for Continual Learning Khurram Javed, Martha White Department of Computing Science University of Alberta T6G 1P8 kjavedualberta.ca, whitemualberta.ca Abstract A continual learning agent should be able to build on top of existing knowledge to learn on new data quickly wh
2、ile minimizing forgetting. Current intelligent systems based on neural network function approximators arguably do the oppositethey are highly prone to forgetting and rarely trained to facilitate future learning. One reason for this poor behavior is that they learn from a representation that is not e
3、xplicitly trained for these two goals. In this paper, we proposeOML, an objective that directly minimizes catastrophic interference by learning representations that accelerate future learning and are robust to forgetting under online updates in con- tinual learning. We show that it is possible to le
4、arn naturally sparse representations that are more effective for online updating. Moreover, our algorithm is comple- mentary to existing continual learning strategies, such as MER and GEM. Finally, we demonstrate that a basic online updating strategy on representations learned by OML is competitive
5、with rehearsal based methods for continual learning. 1 1Introduction Continual learningalso called cumulative learning and lifelong learningis the problem setting where an agent faces a continual stream of data, and must continually make and learn new predictions. The two main goals of continual lea
6、rning are (1) to exploit existing knowledge of the world to quickly learn predictions on new samples (accelerate future learning) and (2) reduce interference in updates, particularly avoiding overwriting older knowledge. Humans, as intelligence agents, are capable of doing both. For instance, an exp
7、erienced programmer can learn a new programming language signifi cantly faster than someone who has never programmed before and does not need to forget the old language to learn the new one. Current state-of-the-art learning systems, on the other hand, struggle with both (French, 1999; Kirkpatrick e
8、t al., 2017). Several methods have been proposed to address catastrophic interference. These can generally be categorized into methods that (1) modify the online update to retain knowledge, (2) replay or generate samples for more updates and (3) use semi-distributed representations. Knowledge retent
9、ion methods prevent important weights from changing too much, by introducing a regularization term for each parameter weighted by its importance (Kirkpatrick et al., 2017; Aljundi et al., 2018; Zenke et al., 2017; Lee et al., 2017; Liu et al., 2018). Rehearsal methods interleave online updates with
10、updates on samples from a model. Samples from a model can be obtained by replaying samples from older data (Lin, 1992; Mnih et al., 2015; Chaudhry et al., 2019; Riemer et al., 2019; Rebuffi et al., 2017; Lopez-Paz and Ranzato, 2017; Aljundi et al., 2019), by using a generative model learned on previ
11、ous data (Sutton, 1990; Shin et al., 2017), or using knowledge distillation which generates targets using 1We release an implementation of our method at 33rd Conference on Neural Information Processing Systems (NeurIPS 2019), Vancouver, Canada. Representation Learning Network (RLN) x1 x2 xn . Input
12、Prediction Learning Network (PLN) Learned representation y Output Meta-parameters (Only updated in the outer loop during meta-training) Adaptation Parameters (Updated in the inner loop and at meta-testing) . r1 r2 r3 r4 Network Connections Could be any diff erentiable layer e.g a conv layer + relu o
13、r fc layer + relu rd Network Connections Network Connections Network Connections Network Connections Network Connections Network Connections Figure 1: An example of our proposed architecture for learning representations for continual learning. During the inner gradient steps for computing the meta-o
14、bjective, we only update the parameters in the prediction learning network (PLN). We then update both the representation learning network (RLN) and the prediction learning network (PLN) by taking a gradient step with respect to our meta-objective. The online updates for continual learning also only
15、modify the PLN. Both RLN and PLN can be arbitrary models. predictions from an older predictor (Li and Hoiem, 2018). These ideas are all complementary to that of learning representations that are suitable for online updating. Early work on catastrophic interference focused on learning semi-distribute
16、d (also called sparse) representations (French, 1991, 1999). Recent work has revisited the utility of sparse representations for mitigating interference (Liu et al., 2019) and for using model capacity more conservatively to leave room for future learning (Aljundi et al., 2019). These methods, howeve
17、r, use sparsity as a proxy, which alone does not guarantee robustness to interference. A recently proposed online update for neural networks implicitly learns representations to obtain non-interfering updates (Riemer et al., 2019). Their objective maximizes the dot product between gradients computed
18、 for different samples. The idea is to encourage the network to reach an area in the parameter space where updates to the entire network have minimal interference and positive generalization. This idea is powerful: to specify an objective to explicitly mitigate interferencerather than implicitly wit
19、h sparse representations. In this work, we propose to explicitly learn a representation for continual learning that avoids interference and promotes future learning. We propose to train the representation withOML a meta-objective that uses catastrophic interference as a training signal by directly o
20、ptimizing through an online update. The goal is to learn a representation such that the stochastic online updates the agent will use at meta-test time improve the accuracy of its predictions in general. We show that using our objective, it is possible to learn representations that are more effective
21、 for online updating in sequential regression and classifi cation problems. Moreover, these representations are naturally highly sparse. Finally, we show that existing continual learning strategies, like Meta Experience Replay (Riemer et al., 2019), can learn more effectively from these representati
22、ons. 2Problem Formulation A Continual Learning Prediction (CLP) problem consists of an unending stream of samples T = (X1,Y1),(X2,Y2),.,(Xt,Yt),. for inputsXtand prediction targetsYt, from setsXandYrespectively.2The random vectorYtis sam- pled according to an unknown distributionp(Y |Xt). We assume
23、the processX1,X2,.,Xt,.has a marginal distribution : X 0,) , that refl ects how often each input is observed. This assump- tionallowsforavarietyofcorrelatedsequences. Forexample,Xtcouldbesampledfromadistribution 2 This defi nition encompasses the continual learning problem where the tuples also incl
24、ude task descriptors Tt(Lopez-Paz and Ranzato, 2017). Ttin the tuple (Xt,Tt,Yt) can simply be considered as part of the inputs. 2 Solution Manifold for Task 1 Solution manifolds in a representation space not optimized for continual learning Joint Training Soluion Parameter Space Solution manifolds i
25、n a representation space ideal for continual learning W W p1 p2p3 p1 p2 p3 Figure 2: Effect of the representation on continual learning, for a problem where targets are generated from three different distributionsp1(Y |x),p2(Y |x)andp3(Y |x). The representation results in different solution manifold
26、s for the three distributions; we depict two different possibilities here. We show the learning trajectory when training incrementally from data generates fi rst byp1, thenp2 andp3. On the left, the online updates interfere, jumping between distant points on the manifolds. On the right, the online u
27、pdates either generalize appropriatelyfor parallel manifoldsor avoid interference because manifolds are orthogonal. potentially dependent on past variablesXt1andXt2. The targetsYt, however, are dependent only onXt, and not on pastXi . We defi neSk= (Xj+1Yj+1),(Xj+2Yj+2).,(Xj+k,Yj+k), a random trajec
28、tory of lengthksampled from theCLPproblemT. Finally,p(Sk|T )gives a distribution over all trajectories of length k that can be sampled from problem T . For a given CLP problem, our goal is to learn a functionfW,that can predictYtgivenXt. More concretely, let : Y Y R be the function that defi nes los
29、s between a prediction y Yand target yas( y,y). If we assume that inputsXare seen proportionally to some density : X 0,), then we want to minimize the following objective for a CLP problem: LCLP(W,) def = E(fW,(X),Y ) = Z ?Z (fW,(x),y)p(y|x)dy ? (x)dx.(1) whereWandrepresent the set of parameters tha
30、t are updated to minimize the objective. To minimizeLCLP, we limit ourselves to learning by online updates on a singleklength trajectory sampled fromp(Sk|T ). This changes the learning problem from the standard iid setting the agent sees a single trajectory of correlated samples of lengthk, rather t
31、han getting to directly sample from p(x,y) = p(y|x)(x) . This modifi cation can cause signifi cant issues when simply applying standard algorithms for the iid setting. Instead, we need to design algorithms that take this correlation into account. A variety of continual problems can be represented by
32、 this formulation. One example is an online regression problem, such as predicting the next spatial location for a robot given the current location; another is the existing incremental classifi cation benchmarks. The CLP formulation also allows for targetsYtthat are dependent on a history of the mos
33、t recentmobservations. This can be obtained by defi ning eachXtto be the lastmobservations. The overlap betweenXtandXt1does not violate the assumptions on the correlated sequence of inputs. Finally, the prediction problem in reinforcement learningpredicting the value of a policy from a statecan be r
34、epresented by considering the inputs Xtto be states and the targets to be sampled returns or bootstrapped targets. 3Meta-learning Representations for Continual Learning Neural networks, trained end-to-end, are not effective at minimizing theCLPloss using a single trajectory sampled fromp(Sk|T ) for
35、two reasons. First, they are extremely sample-ineffi cient, requiring multiple epochs of training to converge to reasonable solutions. Second, they suffer from catastrophic interference when learning online from a correlated stream of data (French, 1991). Meta- learning is effective at making neural
36、 networks more sample effi cient (Finn et al., 2017). Recently, Nagabandi et al. (2019); Al-Shedivat et al. (2018) showed that it can also be used for quick adaptation from a stream of data. However, they do not look at the catastrophic interference problem. Moreover, 3 their work meta-learns a mode
37、l initialization, an inductive bias we found insuffi cient for solving the catastrophic interference problem (See Appendix C.1). To apply neural network to the CLP problem, we propose meta-learning a function(X)a deep Representation Learning Network (RLN) parametrized byfromX Rd. We then learn anoth
38、er functiongWfromRd Y, called a Prediction Learning Network (PLN). By composing the two functions we getfW,(X) = gW(X), which constitute our model for the CLP tasks as shown in Figure 1. We treatas meta-parameters that are learned by minimizing a meta-objective and then later fi xed at meta-test tim
39、e. After learning, we learngWfromRd Yfor a CLP problem from a single trajectorySusing fully online SGD updates in a single pass. A similar idea has been proposed by Bengio et al. (2019) for learning causal structures. For meta-training, we assume a distribution over CLP problems given byp(T ). We co
40、nsider two meta-objectives for updating the meta-parameters. (1) MAML-Rep, a MAML (Finn et al., 2017) like few-shot-learning objective that learns an RLN instead of model initialization, andOML(Online aware Meta-learning) an objective that also minimizes interference in addition to maximizing fast a
41、daptation for learning the RLN. Our OML objective is defi ned as: min W, X Tip(T ) OML(W,) def = X Tip(T ) X Sj kp(Sk|Ti) h LCLPi ? U(W,Sj k) i (2) whereSj k = (Xi j+1Y i j+1),(Xij+2Y i j+2),.,(Xij+kY i j+k).U(Wt,S j k) = (Wt+k,) represents an update function whereWt+kis the weight vector afterkstep
42、s of stochastic gradient descent. Thejth update step in U is taken using parameters (Wt+j1,) on sample (Xi t+j,Y i t+j) to give (Wt+j,). MAML-Rep andOMLobjectives can be implemented as Algorithm 1 and 2 respectively, with the primary difference between the two highlighted in blue. Note that MAML-Rep
43、 uses the complete batch of dataSkto dolinner updates (wherelis a hyper-parameter) whereasOMLuses one data point fromSkfor one update. This allowsOMLto take the effects of online continual learning such as catastrophic forgetting into account. Algorithm 1: Meta-Training : MAML-Rep Require: p(T ): di
44、stribution over CLP problems Require: , : step size hyperparameters Require: l: No of inner gradient steps 1:randomly initialize 2:while not done do 3:randomly initialize W 4:Sample CLP problem Ti p(T ) 5:Sample Strainfrom p(Sk|Ti) 6:W0= W 7:for j in 1,2,.,l do 8:Wj= Wj1 Wj1i(f,Wl(Strain:,0),Strain:
45、,1) 9:end for 10:Sample Stestfrom p(Sk|Ti) 11:Update i(f,Wl(Stest:,0),Stest:,1) 12:end while The goal of theOMLob- jective is to learn represen- tations suitable for online continual learnings. For an illustration of what would constitute an effective rep- resentation for continual learning, suppose
46、 that we have three clusters of inputs, which have signifi cantly dif- ferentp(Y |x), correspond- ing top1,p2andp3. For a fi xed 2-dimensional repre- sentation: X R2, we can consider the manifold of solutionsW R2given by a linear model that pro- vide equivalently accurate solutions for eachpi. These
47、 three manifolds are depicted as three different colored lines in theW R2 parameter space in Figure 2. The goal is to fi nd one parameter vector Wthat is effective for all three distributions by learning online on samples from three distributions sequentially. For two different representations, thes
48、e manifolds, and their intersections can look very different. The intuition is that online updates from aWare more effective when the manifolds are either parallelallowing for positive generalizationor orthogonalavoiding interference. It is unlikely that a representation producing such manifolds wou
49、ld emerge naturally. Instead, we will have to explicitly fi nd it. By taking into account the effects of online continual learning, theOML objective optimizes for such a representation. We can optimize this objective similarly to other gradient-based meta-learning objectives. Early work on learning-
50、to-learn considered optimizing parameters through learning updates themselves, though typically considering approaches using genetic algorithms (Schmidhuber, 1987). Improvements 4 in automatic differentiation have made it more feasible to compute gradient-based meta-learning updates (Finn, 2018). So
51、me meta-learning algorithms have similarly considered optimizations through multiple steps of updating for the few-shot learning setting (Finn et al., 2017; Li et al., 2017; Al-Shedivat et al., 2018; Nagabandi et al., 2019) for learning model initializations. The successes in these previous works in
52、 optimizing similar objectives motivateOMLas a feasible objective for Meta-learning Representations for Continual Learning. 4Evaluation Algorithm 2: Meta-Training : OML Require: p(T ): distribution over CLP problems Require: , : step size hyperparameters 1:randomly initialize 2:while not done do 3:r
53、andomly initialize W 4:Sample CLP problem Ti p(T ) 5:Sample Strainfrom p(Sk|Ti) 6:W0= W 7:for j = 1,2,.,k do 8:(Xj,Yj) = Strainj 9:Wj= Wj1 Wj1i(f,Wj1(Xj),Yj) 10:end for 11:Sample Stestfrom p(Sk|Ti) 12:Update i(f,Wk(Stest:,0),Stest:,1) 13:end while In this section, we investigate the question: can we
54、 learn a representa- tion for continual learning that pro- motes future learning and reduces interference? We investigate this question by meta-learning the repre- sentations offl ine on a meta-training dataset. At meta-test time, we ini- tializethecontinuallearnerwiththis representation and measure
55、 predic- tion error as the agent learns the PLN online on a new set of CLP problems (See Figure 1). 4.1CLP Benchmarks We evaluate on a simulated regres- sion problem and a sequential clas- sifi cation problem using real data. Incremental Sine Waves: An Incremental Sine Wave CLP problem is defi ned b
56、y ten (randomly generated) sine functions, withx = (z,n)forz 5,5as input to the sine function andna one-hot vector for1,.,10indicating which function to use. The targets are deterministic, where (x,y)corresponds toy = sinn(z). Each sine function is generated once by randomly selecting an amplitude i
57、n the range0.1,5and phase in0,. A trajectoryS400from the CLP problem consists of 40 mini-batches from the fi rst sine function in the sequence (Each mini-batch has eight elements), and then 40 from the second and so on. Such a trajectory has suffi cient information to minimize loss for the complete
58、CLP problem. We use a single regression head to predict all ten functions, where the input idnmakes it possible to differentiate outputs for the different functions. Though learnable, this input results in signifi cant interference across different functions. Split-Omniglot:Omniglotisadatasetofover1
59、623charactersfrom50differentalphabets(Lakeetal., 2015). Each character has 20 hand-written images. The dataset is divided into two parts. The fi rst 963 classes constitute the meta-training dataset whereas the remaining 660 the meta-testing dataset. To defi ne a CLP problem on this dataset, we sample an ordered set of 200 classes(C1,C2,C3,.,C200). XandY, then, constitute of all images of these classes. A tra
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2026年汽车安全带指示灯故障
- 2026港航船员面试题及答案大全
- 双汇发展企业分析
- 数控机床个人实习心得体会
- 2026管道行业面试题及答案
- 2026国安面试题真题及答案大全
- 2026过滤器面试题及答案
- 双减背景下《小学语文作业设计的层次性》课题研究计划范文8篇
- 手术室医院感染管理年度工作总结
- 2026绘本馆幼师面试题及答案
- 2025年执业医师考试(临床执业医师)试题及答案
- 医学静脉疗法考试试卷集
- 道路勘测设计说课课件
- T-CAWABJ 002-2025 疗愈犬服务标准
- DB13-T2342-2016-商业物业管理服务规范-河北省
- 行业标准立项答辩
- DBJ45 024-2016 岩溶地区建筑地基基础技术规范
- 第十三届全国黄金行业职业技能竞赛(首饰设计师赛项)考试题库(含答案)
- 城市道路养护与管理北京城市道路养护管理中心
- GB/T 24820-2024实验室家具通用技术条件
- 精神病学智慧树知到期末考试答案章节答案2024年齐鲁医药学院
评论
0/150
提交评论