<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[ContinualAI - Medium]]></title>
        <description><![CDATA[A Non-profit Research Organization and Open Community on Continual Learning for AI | Join us @ ContinualAI.org/join_us - Medium]]></description>
        <link>https://medium.com/continual-ai?source=rss----4a4418e36c33---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>ContinualAI - Medium</title>
            <link>https://medium.com/continual-ai?source=rss----4a4418e36c33---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 10:22:05 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/continual-ai" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com" rel="hub"/>
        <item>
            <title><![CDATA[ContinualAI: Democratizing AI is not only about accessibility, it is about control]]></title>
            <link>https://medium.com/continual-ai/continualai-democratizing-ai-is-not-only-about-accessibility-it-is-about-control-4cc9bce408de?source=rss----4a4418e36c33---4</link>
            <guid isPermaLink="false">https://medium.com/p/4cc9bce408de</guid>
            <category><![CDATA[lifelong-learning]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[continualai]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[continual-learning]]></category>
            <dc:creator><![CDATA[Vincenzo Lomonaco]]></dc:creator>
            <pubDate>Thu, 26 May 2022 07:59:37 GMT</pubDate>
            <atom:updated>2022-05-26T07:59:37.891Z</atom:updated>
            <content:encoded><![CDATA[<h4>ContinualAI elections are officially on!</h4><p><em>by Vincenzo Lomonaco, Keiland Cooper, Andrea Cossu, Tyler Hayes</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RT-eaB3kHgWPZJAod852rA.png" /><figcaption><a href="https://www.continualai.org/">ContinualAI Official Website</a></figcaption></figure><p>ContinualAI is an <strong>official non-profit research organization</strong> and the largest open community on Continual Learning for AI, founded in <em>January 2018</em>.</p><p>Our <strong>core mission</strong> is to <em>fuel continual learning research</em> by connecting researchers from across the field and offering a platform to share, discuss, and produce original research on a topic we consider fundamental for the future of AI.</p><p>However, ContinualAI is much more than that: it is a collaborative experiment to make AI research and its resulting assets <strong>more democratic</strong>. On one hand, we are trying to build an organization which produces tangible (meta-)research assets (such as <a href="https://avalanche.continualai.org/">Avalanche</a>, a framework for rapid continual learning AI development, which is ContinualAI copyrighted), on the other hand, we are organized as a formal <strong>democratic association</strong> (following the <em>Italian Law</em>). This means that we are following the most stringent rules to enforce democratic control over everything we produce and organize.</p><p>Indeed, to “<em>Democratize AI”, </em>we believe that <strong>control </strong>may be more important than <strong>accessibility </strong>(faster training assets or open data, know-how, etc.). Conferences, software tools, research assets around us are often open and inclusive, but their control is often in the hands of a fixed few. Within ContinualAI you can finally make a difference: join the organization and help us make important decisions for the future of this field; <em>your vote will count as any other vote!</em></p><h4>ContinualAI elections are officially on!</h4><p>After the first three years of the organization with the original co-founders as board members, today we are finally ready to run our first election with all the official ContinualAI members.</p><p>Are you not an official ContinualAI member yet? You can join the organization now here: <a href="https://www.continualai.org/about-us/join-us">Join Us! — ContinualAI</a></p><p>If you are an official ContinualAI member you’ll be able to <strong>participate in the elections</strong> as both a <strong>candidate </strong>and a <strong>voter</strong>. In this election we are asking potential candidates to be part of a unique “list” (a set of ContinualAI members that would like to work together as board members, plus a candidate President). This list will compete with other potential lists and ContinualAI members will be able to cast a single vote. All official members will be notified via email when the lists are available. They will also be notified via email of the voting modalities. Voting will be anonymous. A simple majority will decree the winning list and hence the new board composition for the <strong>next 2 years</strong>.</p><p>For more information, you may recall that the ContinualAI assembly and board members rights are described in the <a href="https://www.continualai.org/about-us/people-and-governance#docs-1">statute of the organization</a>.</p><h4>Important Dates</h4><p><strong>List application Deadline</strong>: 1–07–2022 (send an email with the name of the list and ContinualAI members composing it to vincenzo.lomonaco@continualai.org)</p><p><strong>Election Day(s)</strong>: 5–07–2022, 6–07–2022</p><p><strong>Results posted</strong>: 11–07–2022</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4cc9bce408de" width="1" height="1" alt=""><hr><p><a href="https://medium.com/continual-ai/continualai-democratizing-ai-is-not-only-about-accessibility-it-is-about-control-4cc9bce408de">ContinualAI: Democratizing AI is not only about accessibility, it is about control</a> was originally published in <a href="https://medium.com/continual-ai">ContinualAI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Top-down Domain Inference for Lifelong Learning]]></title>
            <link>https://medium.com/continual-ai/top-down-domain-inference-for-lifelong-learning-fdca6d619d43?source=rss----4a4418e36c33---4</link>
            <guid isPermaLink="false">https://medium.com/p/fdca6d619d43</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[catastrophic-forgetting]]></category>
            <category><![CDATA[continual-learning]]></category>
            <dc:creator><![CDATA[Romain Mouret]]></dc:creator>
            <pubDate>Wed, 15 Sep 2021 11:45:32 GMT</pubDate>
            <atom:updated>2022-07-12T04:01:14.195Z</atom:updated>
            <content:encoded><![CDATA[<h3>Content of this article</h3><ul><li>Making the case for prior identification of domains/contexts in lifelong learning systems.</li><li>Showing that detecting discrepancies between expected macro state and actual macro state allows lifelong learning systems to infer domains with the promise of achieving arbitrarily high accuracy with very large models.</li><li>Getting away with having to detect domain boundaries during training.</li><li>Advocating for lifelong learning systems that exhibit the property “the larger the model, the less it forgets.”</li></ul><h3>Catastrophic forgetting in a nutshell</h3><p>Machine learning models excel at fitting data, so if you feed them with data from a certain distribution <em>D[t]</em>, they will do well on data sampled from <em>D[t]</em>, but we can’t expect them to perform well on any other distribution, including distributions <em>D[0], …, D[t-1]</em> that the model has already seen in previous cycles.</p><p>In short, with <em>D[t]</em> coming in, <em>D[0],…,D[t-1]</em> risk to be forgotten. This phenomenon is called catastrophic forgetting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/730/1*yBee2dIKLPeBT7VmxgAt7A.png" /><figcaption>This illustrates the parallel between speciation and learning. Woolly mammoths are not well adapted to the environment of their ancestors. The new species has “forgotten” how to survive in warmer climates.</figcaption></figure><p>The two most common groups of methods for overcoming catastrophic forgetting are (1) replay and (2) regularization-based methods. <a href="https://arxiv.org/abs/2104.04132">Replay and generative replay</a> circumvent the problem by arranging the data into a single distribution <em>D[0…t]</em>, often at a great cost in terms of memory and compute, while regularization-based methods (e.g. <a href="https://arxiv.org/abs/1612.00796">EWC</a>) discourage the model from changing too much when it is fitting a new distribution <em>D[t]</em>.</p><p>The method I will present belongs to a less popular category: (3) domain inference combined with a domain-aware or task-aware architecture.</p><h3>Domain inference</h3><p>For now, we will be working within a domain incremental learning setting, a.k.a. <a href="https://arxiv.org/abs/1904.07734">domain IL</a>. For example, a system that categorizes cars under different lighting conditions by having access to weather domains (sunny day, night, overcast sky) one at a time.</p><p>In a domain IL setting, the set of classes is fixed. This contrasts with class incremental scenarios in which new classes are observed on the fly.</p><p><em>Accurate domain inference completely eliminates catastrophic forgetting in domain IL scenarios.</em></p><p>As you can instantiate a separate model for each domain without any sort of interference between them, you can readily build a robust continual learning system. Such a system would make predictions in two steps:</p><p>1) Infer the domain of the current input.</p><p>2) Route the input to the adequate domain-specialized model.</p><p>The second step implements the simplest form of domain awareness. In the more general case, domain-specialized models might share some parameters and might even be completely meshed together. In such a case, it may not be possible to completely eliminate catastrophic forgetting. Nevertheless, catastrophic forgetting can be greatly mitigated by conditioning the main model on the domain or the task identifier, as demonstrated <a href="https://arxiv.org/abs/2001.08714">here </a>and <a href="https://arxiv.org/abs/2009.09139">there</a>.</p><h3>Top-down Architecture</h3><p>The proposed architecture, dubbed TDDI for Top Down Domain Inference, is composed of 3 modules,</p><ul><li>Feature Model: in its simplest form, it’s an ensemble of <em>N</em> processors predicting the current macro state from the sensory inputs, where <em>N</em> is the number of domains.</li><li>Center: a feed-forward neural net predicting the next macro state from the current macro state.</li><li>ActionModel: a neural net mapping a sequence of macro states to an output sequence.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*24I6DnTtmeA9zZSMpOgROg.png" /><figcaption>“Center” is depicted in green</figcaption></figure><p>The macro states predicted by Center act like priors on the sensory inputs. They dictate how the observations must be interpreted.</p><p>When the fully trained system is deployed, we pick the domain hypothesis that minimizes the discrepancy between Center’s macro state and the actual macro state computed via the sensory input processors.</p><p>Macro states are represented by high-dimensional vectors. As we widen them, the system becomes increasingly precise in detecting discrepancies. This is due to the decrease in the number of accidental false positives, and this is why the system exhibits the desired property “the larger the system, the less it forgets”.</p><h3>Experiment</h3><p>The architecture was evaluated on a dataset of<a href="https://eightportions.com/datasets/Recipes/"> cooking recipes</a> over 7 domains. The words of the recipes are randomly mapped to integers with a different random seed for each domain. This is essentially the NLP equivalent of <a href="https://paperswithcode.com/dataset/permuted-mnist">Permuted MNIST</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/576/1*GssdORrZcgwrBV6evyiPDw.png" /></figure><p>As shown on the figure, the domain identification error rate quickly drops as we increase the size of the macro states, i.e. the size of the bottleneck layer. From size=16 to size=32, it is divided by 3.3. From size=32 to size=48, it is further divided by 2.9. At size = 48, the average domain identification accuracy is 99.23%, nearly eliminating catastrophic forgetting for non-overlapping neural networks on 7 domains or less.</p><h3>Training domain boundaries</h3><p>In general, we cannot expect domain boundaries to be known at training. Take for instance an autonomous robot roaming in the street. Passersby might point at cars and educate the robot about car brands. Ideally, the robot should be given a clear description of the current context too, such as the weather conditions, but passersby aren’t likely to make the extra effort. With the coming of the first snow, if the robot cannot strike a good balance between plasticity and stability, it might not remember how to distinguish cars in snowy conditions, even though it saw snowy streets the year before.</p><p>Unlike some <a href="https://arxiv.org/abs/1812.03596">other continual learning algorithms</a>, TDDI is not naturally equipped to cope with the lack of domain boundaries during the training phase. While a discrepancy threshold can be tuned to detect new domains, TDDI cannot easily guess that two observations belong to the same new domain, a prerequisite to instantiating one processor for each new domain.</p><p>To solve this problem, it is tempting to keep all the recent observations in a buffer and run a <a href="https://en.wikipedia.org/wiki/Cluster_analysis">clustering algorithm</a> once the buffer is large enough, but this raises new challenges, such as choosing a distance function between observations. The distance module would have to be continually learned as well.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/336/1*QGzfV1GkFR8U6DT8Ygr7Fw.png" /><figcaption>Infinite regress, a common problem when building continual learning systems by assembling modules. In “CF-immune”, CF stands for Catastrophic Forgetting.</figcaption></figure><p>For TDDI-like architectures, I suggest that we simply give up on detecting domain boundaries. Instead of creating a new processor for each domain, we would do so for each new “context”.</p><p>Contexts are created by lumping together any new observations if they happen in the same timeframe, e.g. 24 hours, regardless of whether they belong to the same domain or not. One could also skip any observation that is already correctly processed.</p><p>Domains carry with them a lot of abstract baggage whereas contexts are free of any high-level concepts, thereby steering clear of the <a href="https://en.wikipedia.org/wiki/Homunculus_argument">homunculus fallacy</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/530/1*BVPZub0ugmXGn8-r0Ow6kA.png" /><figcaption>Domain 0 is utilized to train ActionModel and Center</figcaption></figure><p>This setup was tested with 105 contexts spanning over 7 domains. The results show trends in line with those of the first experiment, albeit less pronounced. Refer to the <a href="https://github.com/rom1mouret/domain_identification">github page</a> for reproducing this experiment.</p><h3>Regularization and other approaches</h3><p>Regularization-based methods have their own merits in a variety of continual learning settings but they are arguably ill-equipped for large time scales. Regularization only delays the inevitable: sooner than later, the model will have to erase useful knowledge to make room for new knowledge. The model has to sacrifice stability for plasticity, or vice versa.</p><p>This leads me to my main point: If one wants to reach a stability-plasticity tradeoff suitable for lifelong learning, we need to create a virtuous relationship between the tradeoff and something that machine learning engineers have control over.</p><p>To that end, I suggest that we work on making the tradeoff vary with the size of the models. Tackling complex tasks with large models is also an objective of ours, so I believe this is a sound long-term plan for the algorithms that are held back by the stability-plasticity dilemma. After all, this worked out well for deep learning: Scaling up models unlocked performance that could not be achieved with shallow models alone.</p><p>I proposed an architecture that satisfies the desired criteria, but I should point out that there can be other approaches that also fit the bill. For instance, it has been theorized that <a href="https://numenta.com/blog/2021/02/04/why-neural-networks-forget-and-lessons-from-the-brain">sparsity can help with mitigating forgetting</a>, and, conveniently, sparsity also provides greater benefits with larger models, since large models generally have proportionally more room to spare.</p><p>For domain inference, <a href="https://en.wikipedia.org/wiki/One-class_classification">one-class domain classification</a> could be in contention, but it is facing an uphill battle against <a href="https://onlinelibrary.wiley.com/doi/10.1002/sam.11161">irrelevant attributes and other problems</a> plaguing anomaly detection on high-dimensional data.</p><h3>References</h3><ul><li>Training and evaluation scripts for TDDI (<a href="https://github.com/rom1mouret/domain_identification">Github repo</a>)</li><li>“<a href="https://vixra.org/abs/2107.0124">Breaking Free from the Stability-Plasticity Dilemma with Incremental Domain Inference on Sequential Data</a>”, July 2021. The paper explains TDDI in detail with the exception of domain-free training.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fdca6d619d43" width="1" height="1" alt=""><hr><p><a href="https://medium.com/continual-ai/top-down-domain-inference-for-lifelong-learning-fdca6d619d43">Top-down Domain Inference for Lifelong Learning</a> was originally published in <a href="https://medium.com/continual-ai">ContinualAI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Continual Learning with Recurrent Neural Networks]]></title>
            <link>https://medium.com/continual-ai/continual-learning-with-recurrent-neural-networks-ce631c913b0?source=rss----4a4418e36c33---4</link>
            <guid isPermaLink="false">https://medium.com/p/ce631c913b0</guid>
            <category><![CDATA[lifelong-learning]]></category>
            <category><![CDATA[recurrent-neural-network]]></category>
            <category><![CDATA[review]]></category>
            <category><![CDATA[continual-learning]]></category>
            <dc:creator><![CDATA[Andrea Cossu]]></dc:creator>
            <pubDate>Thu, 05 Aug 2021 13:01:23 GMT</pubDate>
            <atom:updated>2021-08-24T07:23:47.584Z</atom:updated>
            <content:encoded><![CDATA[<h3>Continual Learning for Recurrent Neural Networks</h3><h4>Opportunities and pitfalls when learning continuously from a stream of sequential data</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/452/1*rVdtljIOUL83uRew09QiGg.png" /><figcaption><em>Continual Learning on a sequence of experiences. Each experience introduces 2 new classes of objects taken from the Quick, Draw! dataset which have to be classified by the model.</em></figcaption></figure><h3>Walking like a robot</h3><p>Back when you were a baby, you learned how to walk without falling. After many trials and (painful) errors, you finally mastered that ability and now you enjoy wandering around in the streets, running on a beach or climbing a snowy mountain.</p><p>Now, imagine you are a robot trying to learn how to do the same. Despite the intrinsic difficulties a robot may experience in achieving such a hard challenge, let’s suppose you eventually learn how to walk on the smooth paved road in front of your house. Since it is sunny, you then decide to go to the beach. The changes in the new terrain cause you some problems at the beginning, but you quickly discover how to adapt and walk effectively. <br>Quite strangely, when you come back to the street, you find yourself unable to proceed properly. You basically have to learn again how to address the paved road.</p><p>The destruction of previous knowledge when facing new situations is a phenomenon called <em>catastrophic forgetting </em>and currently affects many of the most advanced artificial intelligent systems. However, this is not something we would expect from a truly intelligent agent. Instead, we would like to see one able to quickly learn new information when exposed to different environments <em>and </em>also to retain existing knowledge in order to reuse it when needed.<br>Building such intelligent agent is precisely the focus of <strong><em>continual learning.</em></strong></p><blockquote><em>Forgetting</em> previous knowledge when learning new things is a prominent challenge of <strong>continual learning</strong>, whose objective is to design agents which adapt continuously to the environment.</blockquote><h3>Time matters</h3><p>The field of continual learning is moving fast, with new approaches introduced every day. More and more, artificial neural networks are becoming the most studied models within continual learning. And computer vision the most investigated application. The combination of computer vision and neural networks naturally leads to the use of feedforward and convolutional neural networks. This has been (and continues to be) the focus of most of the continual learning works.</p><p>The robot example discussed above highlights a rather complex environment, in which data comes continuously in various forms and in a temporally-correlated fashion. Robot sensors constantly detect the current position of its legs and joints, the vision system processes the light reflected by surrounding objects to avoid obstacles and so on.</p><blockquote>Of course, time-series and sequential data (where the order between samples matters) are very important for a walking robot. But if you think about finance, activity recognition, natural language processing and similar applications, you can easily find additional examples.</blockquote><p><em>Recurrent neural networks</em> are machine learning models which <strong>naturally deal with time</strong> and whose study in continual learning is starting to gain momentum. While there are different approaches to tackle specific continual learning problems with recurrent models, <em>the research is still missing a clear direction</em>.</p><h3>A review</h3><p>That said, what did <a href="http://pai.di.unipi.it/">we</a> do? Well, we looked at the existing literature on continual learning with recurrent neural networks and we tried to put it together in a way that can be useful for others (you know, like a review).</p><p>We recognized 4 different classes of contributions:</p><ol><li><strong>Seminal: </strong>the authors worked on continual learning with recurrent models when few or nobody did. They studied recurrent models of various kinds on very simple (often synthetic) benchmarks.</li><li><strong>Natural Language Processing (NLP): </strong>natural language processing is one of the most studied application for continual learning and recurrent models nowadays. Even if these works are often specific to this domain, they propose concrete solutions to address the continual NLP challenge.</li><li><strong>Bio-inspired: </strong>recurrent networks goes hand in hand with neuroscience (e.g. spiking neural networks). The way recurrent networks learn in machine learning does not always satisfy neuroscientists (and not only them). This family of approaches tries to tackle continual learning with ad-hoc recurrent networks leveraging alternative learning algorithms or custom architectures.</li><li><strong>Deep Learning: </strong>the study of deep recurrent networks like LSTM is at the center of this group of work. Almost all of them introduce new strategies and approaches to mitigate catastrophic forgetting in recurrent networks.</li></ol><p>The shallow categorization proposed above comes bundled with a description of datasets and benchmarks used in all these works. You may want to take a look at the <a href="https://arxiv.org/abs/2103.07492">paper</a> if you are interested in using them for your own work.</p><h3>An empirical evaluation</h3><p>What can we derive from this review? At least 2 observations.</p><ol><li>No matter the family of works, there are few insights on what happens when recurrent neural networks are combined with traditional continual learning strategies (originally proposed for computer vision applications). <strong>The introduction of new methods and approaches often takes the priority</strong> with respect to a careful analysis of what already exists and could be adapted to different contexts.</li><li><strong>The number of benchmarks used in the literature is quite large considering the actual number of papers</strong>. It seems that no clear winner exists among the current proposals. One of the reason this happens is that each benchmark is either application-specific or too “simple” when compared to real-world applications.</li></ol><p>To address these two problems, we conducted an <strong>experimental evaluation</strong> with <strong>6 continual learning strategies</strong> on <strong>4 sequence classification benchmarks</strong>. The 6 strategies were originally evaluated on computer vision tasks.</p><p>The <em>Synthetic Speech Commands</em> benchmark involves the incremental classification of audio samples into the corresponding words. <br>The<em> Quick, Draw!</em> benchmark requires to classify a sketch (a sequence of pen strokes) into the corresponding object.</p><p>We also used classic benchmarks like Permuted MNIST and Split MNIST. These are continual learning benchmarks built on top of the MNIST dataset of handwritten digits (each of size 28x28). We transformed each pattern of the dataset into a sequence by taking a certain amount of pixels at a time (e.g. taking 28 pixels at a time means reading each image row by row and produces sequences of 28 steps). By varying the number of pixels read at a time we can produce sequences of different lengths.<br>Analyze the effect of the sequence length on forgetting helps to study the peculiarity of recurrent models.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/776/1*Iy5PxKLRYQBesBhdyaRvkg.png" /><figcaption>Sequence classification task: time steps of the input sequence are represented by the circles. The square represents the target class which has to be predicted by the model when reaching the end of the sequence.</figcaption></figure><p>Since we are interested in studying the behavior of deep recurrent networks, we chose <strong>LSTM </strong>as representatives of the recurrent models. We also experimented with <strong>feedforward neural networks (MLP)</strong> to compare the results.</p><blockquote>We found out that the input sequence length impacts the final performance in terms of catastrophic forgetting (the amount of knowledge forgotten by the model). The longer the sequence length, the larger the forgetting showed by the models. This result holds, with different trends, for all the 6 strategies we tried.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Bo3Lea2hunleFZ3_AkSVeQ.png" /><figcaption>Average Accuracy for growing sequence lengths on Permuted MNIST benchmark (10 experiences). The sequence length is increased by taking fewer pixels per time step in the sequence: from 784 to 4, thus obtaining sequences with length from 1 to 196. The decreasing trend shows the negative effect of sequence length on the final performance.</figcaption></figure><p>By comparing the performance across all the 4 benchmarks, we discovered that popular strategies like LwF are unable to scale well to more complex scenarios (like <em>Synthetic Speech Commands</em> and <em>Quick, Draw!</em>). Instead, replay and orthogonal projection methods like GEM works quite well.</p><p>However, an in-depth analysis shows that the training performance of GEM decreases as new data is encountered. Moreover, GEM requires larger training times than the other strategies. Replay still remains the best option when looking for a simple, yet effective solution to catastrophic forgetting.</p><h4>Future directions</h4><p>Where we can go from here? As it turns out, in many different directions. <strong>We are just scratching the surface of recurrent models in continual learning!</strong> You can have fun and try to:</p><ol><li><strong>Adapt existing continual learning strategies</strong> to work better with recurrent models (e.g. replay with few patterns, alternative and more efficient versions of GEM).</li><li><strong>Improve recurrent models with ad-hoc solutions</strong> (long sequence lengths often causes gradient issues which in turn may affect continual learning strategies). Previous attempts summarized in our review already started the journey.</li><li><strong>Design realistic scenario on which evaluate new solutions</strong> (e.g. based on online streaming learning). This will be required for the field to scale up to complex and more interesting problems than the current ones. But be patient, we just started, didn’t we?</li></ol><p>So, try not to forget that the world surrounding us provides lots of data, usually in the form of sequences. Time and temporal information provide critical knowledge that help us to learn. We should take it into account as well when building continual learning agents which are expected to operate autonomously in real environments. <br>Stay tuned for more!</p><p>Feel free to check out <a href="https://www.sciencedirect.com/science/article/pii/S0893608021002847">the complete work </a>:)</p><blockquote>Andrea Cossu, Antonio Carta, Vincenzo Lomonaco, Davide Bacciu. <em>Continual Learning for Recurrent Neural Networks: an Empirical Evaluation. Neural Networks, 2021. Preprint available on </em><a href="https://arxiv.org/abs/2103.07492"><em>arXiv</em></a><em>.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/250/1*6zl3mz2Zt9KYfJE2lh79QA.jpeg" /></figure><p>I am a PhD student in Data Science at <a href="https://www.sns.it/">Scuola Normale Superiore</a> and <a href="https://www.unipi.it/">University of Pisa</a>. I am a member of the <a href="http://pai.di.unipi.it/">Pervasive AI Lab</a> and Board Member at <a href="https://www.continualai.org/">ContinualAI</a>. I work on Continual Learning with applications to recurrent models and sequential data processing.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ce631c913b0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/continual-ai/continual-learning-with-recurrent-neural-networks-ce631c913b0">Continual Learning with Recurrent Neural Networks</a> was originally published in <a href="https://medium.com/continual-ai">ContinualAI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Towards Adaptive AI with Continual Learning]]></title>
            <link>https://medium.com/continual-ai/towards-adaptive-ai-with-continual-learning-f493fd0d698?source=rss----4a4418e36c33---4</link>
            <guid isPermaLink="false">https://medium.com/p/f493fd0d698</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[incremental-learning]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[continual-learning]]></category>
            <category><![CDATA[deep-learning]]></category>
            <dc:creator><![CDATA[De Lange Matthias]]></dc:creator>
            <pubDate>Wed, 16 Jun 2021 02:38:51 GMT</pubDate>
            <atom:updated>2021-06-16T02:38:51.317Z</atom:updated>
            <content:encoded><![CDATA[<p><em>This content was reposted with permission from </em><a href="https://ai.kuleuven.be/"><em>Leuven.AI</em></a><em>.</em></p><p>Machine learning (ML) is a type of Artificial Intelligence (AI) where machines can learn from huge amounts of data, such as images or text, containing highly complex patterns. Previously, these patterns had to be discovered based on hand-crafted rules of thumb, whereas today the horse-power of machine learning algorithms resides in discovering these patterns automatically. Many contemporary successes are mainly thanks to the resurgence of a specific machine learning algorithm, called artificial neural networks. These neural networks excel in a wide range of relevant tasks, ranging from detecting pedestrians and cars in videos to <a href="https://www.nature.com/articles/d41586-021-00530-0">generating convincing articles</a>, and even greatly f<a href="https://deepmind.com/blog/article/alphafold-a-solution-to-a-50-year-old-grand-challenge-in-biology">acilitating drug discovery by predicting protein structures</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*COl8ZI4O2ffGop1FcOAFXA.png" /></figure><p>Traditional machine learning typically first learns a model using all the available examples in the data and is then deployed for real-world use. This means that whenever a model has finished learning, it remains unchanged when used in practice. The model’s static nature is problematic as it doesn’t befit our ever-changing world. For example, with the rise of autonomous vehicles and the internet of things (IoT), data becomes available at previously unprecedented rates and continuously changes over time. This leaves many contemporary machine learning approaches in the dark, as the static model at deployment can’t put the never-ending flow of data to use. <strong>Continual Learning</strong> aims to tackle this problem by taking a closer look at <em>adaptive machine learning</em> models, adapting flexibly and continuously to the never-ending stream of data.</p><h4><strong>Overcoming a Catastrophe</strong></h4><p>Let’s consider an object detection system for a self-driving car. For safe operation, we give our car the task to detect pedestrians and cyclists. By training our neural network with a large number of samples, it does a remarkable job. However, new object categories emerge all around, such as hoverboards and electrical steps. If we were to update our detection system now with a host of corresponding images for this new task, again it would do a remarkable job at detecting hoverboards and electrical steps. But there is a catch: our system would completely forget about the pedestrians and cyclists in the old task, hence leaving them undetected! This is a phenomenon known as <strong>catastrophic forgetting</strong> in neural networks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Yz5ZamvuO470rZDa_Ydghw.jpeg" /><figcaption><em>An illustration of catastrophic forgetting in neural networks. Cartoon credits @Jasper De Lange.</em></figcaption></figure><p>Continual Learning explores how to learn sequentially without this catastrophic forgetting, such that the neural network remembers all learned concepts over time. The most obvious way to remember what is learned from the data is by simply storing it all and revisiting it later whenever we are about to learn a new task. However, we have to take into account that these data streams might be never-ending, which doesn’t abide with the certainly-ending memory in our machines. Therefore, it is paramount to overcome catastrophic forgetting within the predefined memory constraints of our system.</p><p>A body of Continual Learning methods has been proposed to deal with this issue and can be mainly <a href="https://arxiv.org/abs/1909.08383">divided into three families</a>.</p><ol><li>The first family of <em>regularization methods</em> typically constrains connections between neurons to remain unchanged when they are deemed to be important for an old task. The importance of each connection is tracked to urge new tasks to learn only with connections irrelevant to the old tasks, which <a href="https://openaccess.thecvf.com/content_ECCV_2018/html/Rahaf_Aljundi_Memory_Aware_Synapses_ECCV_2018_paper.html">greatly alleviates catastrophic forgetting</a>.</li><li>Secondly, the family of <em>parameter isolation methods</em> takes another approach by directly allocating a part of the network to each task. As each task is only able to alter its own part of the network, the other tasks can’t interfere when learning a new task.</li><li>Finally, the family of <em>replay methods</em> stores a small part of the seen data, which is then reused later while learning a new task. It’s a simple approach but with some additional benefits, which we’ll explore in more detail later in this article! But first, we need to explain how neural networks learn and represent the world.</li></ol><h4><strong>Representing the world</strong></h4><p>Whenever we think about a concept, say a <em>donut</em>, we can imagine such delight in many varieties, differing in properties such as color and size. Even more so, if we would encounter a sugarcoated torus-shaped pastry in a color we’ve never seen before, we are still able to allocate it to this same semantic concept. This is because our human brains often use <a href="https://www.sciencedirect.com/science/article/abs/pii/0010028572900163">representativeness heuristics</a>, where each concept is represented by a most representative prototype.</p><p>Neural networks are built by multiple consecutive layers of neuron-like units, remotely based on neurons in the human brain. Typically, many consecutive layers are used, which is why it is often referred to as <strong>deep learning</strong>. This hierarchy of layers allows building increasingly complex representations. In the case of the donut example, early layers would have some low-level processing like the curved lines and the color, whereas later layers combine these properties to form the representation of the donut. If we now observe a lot of donut images, we can combine all of their representations to make the donut prototype. You can think of this prototype as the most generic, plain donut any other donut would resemble.</p><p>Eventually, we want such a representative prototype for each of the concepts in our data. In fact, these prototypes capture the most important characteristics of the related concept so well, that when we give a new image to our network it has never seen before (e.g. take a picture with your smartphone), it could tell you which concept’s prototype it corresponds to (you took a picture of a donut). This predicting of unseen images is called the <strong>testing</strong> phase, and can be visualized as in the following:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9-avoK55CiC5XOH3aLFWCg.png" /><figcaption><em>In the testing phase, the neural network takes in a new data sample, such as an image of a donut, and produces a representation containing the sample’s characteristics. By matching this representation to the prototypes of the concepts, we can predict the concept with the most similar prototype, which is in this case ideally the donut.</em></figcaption></figure><p>But in order to obtain these prototypes, we need the neural network to learn in some way from the images it gets presented, this process is called the <strong>training</strong> phase. First of all, the neural network needs an indication of the concepts in an image, such that its corresponding prototype can be identified. Typically, a human supervisor comes into play, annotating each image with a label, indicating it contains one or the other concept and hence which prototype each image belongs to.</p><p>Now that each image is associated with a certain prototype, we can train the neural network by means of an <strong>error function</strong>. When the representation of the image ends up far from the prototype, we tell the network to make changes in its connections between the neurons, such that the representation becomes more similar to its prototype, and matches less with the other concepts’ prototypes. This standard error in machine learning is called the Cross-Entropy error but has severe limitations when used for continual learning. As we only see images from concepts in our current task, the prototypes of the old task’s concepts are uncontrollably changed, such that they are no longer the most generic representation.</p><p>In other words, the old prototypes lose their ability to serve as a good approximation to detect future instances of their related concept. Hence, the old task concepts are prone to catastrophic forgetting. This indicates that for Continual Learning, training clearly needs an alternative for this Cross-Entropy error, maintaining the quality of our prototypes.</p><h4><strong>Evolving prototypes</strong></h4><p>Recent work in the lab of Prof. Tinne Tuytelaars addresses the problem of deteriorating prototypes by means of <strong>Continual Prototype Evolution</strong>, referred to as <a href="https://arxiv.org/abs/2009.00919">CoPE</a>. The primary goal of this Continual Learning approach is to keep the prototypes for all concepts up-to-date at all times. As the knowledge about our previous concepts resides within our adaptive prototypes, we don’t need to store all data for retraining as in standard machine learning approaches. Therefore, if we would determine to add images of new concepts, such as <em>pretzels</em>, to our collection of pastry images, we don’t need to start retraining the neural network all over again, but we can learn from them much like we humans do, without catastrophic forgetting.</p><p>CoPE belongs to the family of <em>replay</em> methods, which means it stores a few images from the old tasks in a small buffer. When we learn now from the new pretzel images, we mix them with those from the small buffer to give our neural network the illusion that we actually had all pretzel and other pastry data available at once.</p><p>In fact, the training phase in CoPE can be divided into two stages. First, it refreshes the prototypes and then uses them to learn better representations. This addresses a first problem with the previously discussed Cross-Entropy error, which updates the prototypes and representations at the same time. In contrast, CoPE first updates the prototypes with the available representations of the new task images mixed with images from the small replay buffer. Only then, the neural network itself is improved to get better representations, while already exploiting the improved prototypes. This can be seen as a type of look-ahead, where the prototype of better quality is used immediately instead of in the next update.</p><p><strong>1. Update Prototype</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*26w7Yb_YadW6U_crPwHL6w.png" /><figcaption><em>The donut prototype is slightly changed towards the representation of the donut image. This makes the prototype better at representing all the donut images.</em></figcaption></figure><p><strong>2. Update representation using the prototypes</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*75KrijIsTTKPxyM_sG4VOQ.png" /><figcaption><em>The neural network connections are changed to make the representation of the donut image more similar to its prototype and more dissimilar to other concept prototypes such as the croissant prototype.</em></figcaption></figure><p>A second problem in the Cross-Entropy error is that it blindly changes all the other concept prototypes, leading to catastrophic forgetting of old concepts. To tackle this issue, CoPE proposes a new Pseudo-Prototypical Proxy error function (PPP error), which doesn’t alter <em>any</em> of the prototypes. Instead, it updates only the representations. This PPP error makes the representations of a concept more similar to their prototype and decreases similarity to the other concept prototypes. This is reminiscent of contrastive error functions often used in representation learning.</p><p>However, in the PPP error, the representation of each image also acts as a pseudo-prototype for the other representations being processed. Basically, this means that when multiple images of the same <em>donut</em> concept are being processed, the representation of one image will also be used for the other as a stand-in of the donut prototype. This gives incentive for all images of the same concept to become similar to their prototype, reducing the chance that they end up matching better with a wrong prototype.</p><p><strong>Using pseudo-prototypes in the PPP error function:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-80v--3KmOynPa79RsNABA.png" /><figcaption><em>The representation of the second donut image is updated to better match the donut prototype, but also the representation of the first donut image, which acts as a pseudo-prototype.</em></figcaption></figure><p>In conclusion, mixing the next task data with a small replay buffer, combined with addressing these two problems in the Cross-entropy error, shows to have striking improvements over other replay methods when learning from data streams.</p><p>This introduction to the surging field of Continual Learning and one of its methods are part of a much larger effort towards adaptive AI. <a href="https://www.esat.kuleuven.be/psi">Prof. Tuytelaars’ lab</a> has worked on many other aspects of continual learning, among which <a href="https://arxiv.org/abs/2104.07446">a fundamental study of replay</a>, <a href="https://openaccess.thecvf.com/content_ECCV_2018/html/Rahaf_Aljundi_Memory_Aware_Synapses_ECCV_2018_paper.html">regularization methods</a>, <a href="https://openaccess.thecvf.com/content_CVPR_2019/papers/Aljundi_Task-Free_Continual_Learning_CVPR_2019_paper.pdf">task-free continual learning</a>, <a href="https://openaccess.thecvf.com/content_CVPR_2020/html/De_Lange_Unsupervised_Model_Personalization_While_Preserving_Privacy_and_Scalability_An_Open_CVPR_2020_paper.html">scalable user adaptation</a>, and an <a href="https://arxiv.org/abs/1909.08383">extensive survey</a>. Furthermore, her lab is an active contributor to <a href="https://www.continualai.org/">ContinualAI</a>, which maintains a <a href="https://wiki.continualai.org/">wiki</a>, <a href="https://github.com/ContinualAI/avalanche">open-source code</a>, and <a href="https://sites.google.com/view/clvision2021/overview">workshops</a> that make Continual Learning easily accessible for everyone, and where you can continue your journey if you can’t get enough of this topic. Note that we are not responsible for catastrophic forgetting upon reading this article.</p><p><em>This blog was reposted with permission from </em><a href="https://ai.kuleuven.be/"><em>Leuven.AI</em></a>, the KU Leuven Institute for Artificial Intelligence. <em>You can find the original article </em><a href="https://ai.kuleuven.be/stories/post/2021-05-10-continual-learning/"><em>here</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f493fd0d698" width="1" height="1" alt=""><hr><p><a href="https://medium.com/continual-ai/towards-adaptive-ai-with-continual-learning-f493fd0d698">Towards Adaptive AI with Continual Learning</a> was originally published in <a href="https://medium.com/continual-ai">ContinualAI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Continuum: A Data Loader for Continual Learning]]></title>
            <link>https://medium.com/continual-ai/continuum-a-data-loader-for-continual-learning-bb45ce9ef0ef?source=rss----4a4418e36c33---4</link>
            <guid isPermaLink="false">https://medium.com/p/bb45ce9ef0ef</guid>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[continual-learning]]></category>
            <category><![CDATA[deep-learning]]></category>
            <dc:creator><![CDATA[Timothee L]]></dc:creator>
            <pubDate>Fri, 04 Sep 2020 09:22:08 GMT</pubDate>
            <atom:updated>2020-09-04T09:22:08.844Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/327/1*jxn4_2lh-OyTxRmHEziUhg.png" /></figure><p>Continual Learning, Incremental Learning, Lifelong Learning, or Online Learning are similar research fields which aim at learning an ever-growing amount of knowledge while trying to forget the less as little as possible (More details <a href="https://arthurdouillard.com/post/incremental-learning/">here</a>).</p><p>One implementation difficulty in those fields is how to create the stream of data that feed the new knowledge to an algorithm. <strong>**Continuum**</strong> aims to make it simple and to avoid problems with data loader for researchers. The goal is to not waste time anymore to reproduce the continual learning settings, and starts directly to work on the algorithm.</p><p>Continuum proposes different existing scenarios. Moreover, it is developed such as making it easy to create your personnal dream scenarios.</p><p>Here is a short presentation :</p><h3>Installation</h3><p>Continuum is available on PiPy plateforms, it can be installed with:</p><pre>pip3 install continuum</pre><p>Continuum project is also available <a href="https://github.com/Continvvm/continuum">here</a>.</p><h3>Organization</h3><p>To create continual learning scenarios, Continuum decompose the data management into three levels of data structures: Datasets, Tasksets, Scenarios</p><ul><li><strong>Datasets</strong>: Datasets are the raw data that will be used to create tasks and scenarios.</li><li><strong>Tasksets</strong>: The taskset contains the data specific to a task. The data are selected from the original dataset and eventually transformed.</li><li><strong>Scenarios</strong>: A scenario is a sequence of tasks. It composes the curriculum of learning experience fed to the algorithms.</li></ul><h3>Example:</h3><p>A simple example to understand the organization of Continuum scenarios. For more snippet of code, you can look at Continuum <a href="https://continuum.readthedocs.io/en/latest/_tutorials/scenarios/scenarios.html">documentation</a>.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0492baae9356414dc0f1506fc1c64f32/href">https://medium.com/media/0492baae9356414dc0f1506fc1c64f32/href</a></iframe><p><strong>Main Supported Scenarios:</strong></p><p>Continuum supports various types of scenarios, but mainly it can be for most scenarios of the continual learning literature.</p><ul><li><em>Classes Incremental scenarios</em> (similar to disjoint/new classes/split scenarios from the literature )</li><li><em>Transformation Incremental</em> e.g. Permutation MNIST, Rotation MNIST</li><li>More scenarios in Continuum <a href="https://continuum.readthedocs.io/en/latest/_tutorials/scenarios/scenarios.html">documentation</a></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UvEgvBI7btWU79NZmQy_6A.png" /><figcaption>Samples from the code in the example section: Split MNIST 5 tasks.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NG1uPhSx1tlSoYXozqie0A.png" /><figcaption>Samples from Rotation MNIST with 5 tasks from 0 degrees to 90.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*-cDbSrbsXVc-T-A2byePSQ.png" /><figcaption>Samples from imagenet100, class incremental, 50 + 50</figcaption></figure><p><strong>Supported Datasets:</strong></p><p>Continuum supports all the basic datasets from <a href="https://pytorch.org/docs/stable/torchvision/datasets.html">pytorch.datasets</a> (MNIST, CIFAR10, CIFAR100) as well as larger datasets such as ImageNet or CORe50. We provide also tools to create manually new datasets. For example, the fellowships class make possible to concatenate several datasets into one for specific scenarios. You can find a complete list of supported datasets <a href="https://continuum.readthedocs.io/en/latest/_tutorials/datasets/dataset.html">here</a>.</p><h3>Conclusion</h3><p>Continuum is an open -ource project which aims at simplifying data management for continual learning algorithms. It is developed such as being easily adaptable to specific needs. If you have an idea of new scenarios that should be added don’t hesitate to put an issue or a pull request to <a href="https://github.com/Continvvm/continuum">Continuum Github Repository</a>.</p><p>Continuum is made to save you time, reduce code size in your project, and avoid you dev problems! We hope you will enjoy it :)</p><p>Arthur Douillard, PhD Student @ Sorbonne + Research Scientist @ Heuritech<br>Timothée LESORT, Postdoctoral Researcher @ MILA</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bb45ce9ef0ef" width="1" height="1" alt=""><hr><p><a href="https://medium.com/continual-ai/continuum-a-data-loader-for-continual-learning-bb45ce9ef0ef">Continuum: A Data Loader for Continual Learning</a> was originally published in <a href="https://medium.com/continual-ai">ContinualAI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Continual learning]]></title>
            <link>https://medium.com/continual-ai/continual-learning-da7995c24bca?source=rss----4a4418e36c33---4</link>
            <guid isPermaLink="false">https://medium.com/p/da7995c24bca</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Eugenio Culurciello]]></dc:creator>
            <pubDate>Wed, 11 Mar 2020 15:27:41 GMT</pubDate>
            <atom:updated>2020-03-11T15:27:41.905Z</atom:updated>
            <content:encoded><![CDATA[<p>How to keep learning without forgetting</p><p><em>By Eugenio Culurciello and </em><a href="https://www.vincenzolomonaco.com/"><em>Vincenzo Lomonaco</em></a></p><p>Today we mostly train neural network based on fixed pre-determined datasets. This gives very good results on a large variety of tasks. On the other hand, many tasks will require the dataset to <em>evolve</em> with the experience of the agent or the life of the agent. Imagine a robot that needs to learn new objects or new tasks or new concepts while operating! How can we do this?</p><h3>Forgetting</h3><p>Suppose you have a neural network beautifully trained for your task. Let us say that we learned to identify N classes, where N is 2 in the figure below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/237/1*HIsE-3XsInw0fkc8wR70EQ.png" /><figcaption>Fig. 1: Initial neural network, with Ln as final layer</figcaption></figure><p>Now, we would like to extend this neural network to more classes, from N to N1, say 2 more classes as we show in the image below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/237/1*yp0l66qv-sSt1SkFHb6YgQ.png" /><figcaption>Fig. 2: We now want to add two more categories to our neural network, the yellow neurons / outputs</figcaption></figure><p>Turns out this is quite easy to do in practice: we take the previous dataset D that we used for the N classes, and add the new classes to it, so now we have a new dataset D1 with N1 classes. We can again train our neural network with gradient descent and get good results. Business as usual.</p><h3>The problem</h3><p>But there is a problem: imagine we need to use this algorithm on a robot that constantly has to learn new categories as it explores an environment. The robot may not have resources on-board to keep a copy of the training dataset D and also may not have the resources to re-train an entire model from scratch.</p><p>In the previous section, when we mentioned that we would re-train the network, we did not explicitly say that it was the <em>full</em> network! That requires some large resources. Recently you can train an ImageNet in 20 minutes or so, but only with large TPU or GPU hardware.</p><p>Clearly if we could train just the last layer of the network, that would be better. But <em>we can do that!</em> For example, we can just store the embedding of all dataset D1 at the output of layer L_(n-1), and then be able to train the last layer on the robot with limited resources.</p><p>If we want to re-train the entire model, we could send data collected by the robot to a cloud system, if we had the connectivity, bandwidth and power to do so. But that would be a better approach, so multiple robots could update a single giant model in the cloud, and maybe receive an update every now and then. If we do this, however, we have to consider the effort we pose on our system: training a large neural network from scratch is onerous and expensive, and it not always possible or economical.</p><p>The issue then becomes: how can I learn new categories with the minimal footprint? Using the least resources in terms of data and computation (proportional to energy, cost)? This is what this article is about!</p><p>But continuing to learn is not just about learning new classes or categories, sometimes it is also about multiple tasks.</p><h3>Multiple tasks</h3><p>Our neural network could be used for multiple tasks, say it was ready for task T1, but then want it to learn also task T2 and T3. We can learn 3 separate classifiers of part of the network to solve each task.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/291/1*ckvMLuGQJTQRFbxEQZrwZQ.png" /><figcaption>Fig. 3: Example neural network with multiple tasks: each one is a different classifier added to perform a different task</figcaption></figure><p>If we train on each of them, and each classifier is not sharing weight, then we will be ok. But if we have the 3 tasks share weights or part of the network, then we will witness the phenomenon of <em>catastrophic forgetting</em>, meaning that when learning a new tasks, old ones are <em>forgotten</em>! An example of catastrophic forgetting in PyTorch examples is available <a href="https://github.com/ContinualAI/colab/blob/master/notebooks/intro_to_continual_learning.ipynb">here</a>.</p><h3>What to do?</h3><p><a href="https://www.vincenzolomonaco.com/">Vincenzo</a>’s work and thesis has been devoted to helping to solve these issues. We will summarize them here to help our audience understand how to tackle this interesting problem of deep learning today.</p><p>There are many proposed solutions, but we will focus here on some that Vincenzo and his team have found to be superior and effective. In particular we suggest to focus on:</p><ul><li>Copy-weights with Re-init (CWR)</li><li>Architect and Regularize (AR1)</li></ul><h3>Learning without Forgetting (LWF)</h3><p>Imagine we are in the situation of Fig. 2. If we want to add new classes and re-train part of the network, in order to prevent forgetting, we will have to make sure that the original neurons output is kept as close as possible to the original values. This means we try not to change the original weights and neuron outputs, we only modify the new weights affecting the new neurons.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/810/1*KreG_kSv-PHh8-t0FLCHaQ.jpeg" /><figcaption>New loss: cross-entropy plus a term to limit change in outputs of previous neurons</figcaption></figure><p>The original paper is <a href="https://arxiv.org/abs/1606.09282">here</a>.</p><h3>Elastic Weights Consolidation (EWC)</h3><p>Find out which weights have the most importance and try to change them as little as possible when continuing to learn new tasks or categories.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/712/1*gxI2Bo_IZ0AOT0SpE3vERQ.jpeg" /><figcaption>New loss: add cross entropy loss to a penalty square term for changing important weights.</figcaption></figure><p>F_k can be computed by summing all the derivative of the loss with respect to the weight k for a given batch.</p><p>The original paper is <a href="https://arxiv.org/abs/1612.00796"><em>here</em></a>. <a href="https://arxiv.org/abs/1703.04200">Synaptic Intelligence</a> (SI) is a variant.</p><h3>Copy-weights with Re-init (CWR)</h3><p>This is a simple yet effective methodology to prevent forgetting by Vincenzo and team.</p><p>Suppose we have a neural network with some weight we keep fixed (Wb or consolidated weights):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/238/1*EfzxFH6-d2P3Ci97Ux2hJA.png" /><figcaption>Part of the networks is fixed (consolidated weights)</figcaption></figure><p>We then train for 1ask T1 exemplified by the new green added neurons, the weight Wt are temporary weights we use for training only.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/239/1*qK6xNtcLSax3gxP30vu9_w.png" /><figcaption>We train for task T1 on the green neurons</figcaption></figure><p>After, we copy the weights to a consolidated weight storage called Wc</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/513/1*rwsPMZe7Kcis82Tksu8wLw.png" /></figure><p>Then we proceed to learn task T2 on the new neurons and weights in green.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/513/1*cBSZ9WfA9Nr7T5kCB7H-rg.png" /></figure><p>We then copy only the new green weight to the consolidated weights. This way we do not interfere with the training and weights previously learned for task T1. Note that we will have to scale the weight as we copy them to Wc, since there may be a difference in the training batch sizes. Without scaling, if we present a sample of T2, the activation of neurons learned in T1 may activate more that the ones for T2, when actually T2 activations should have been higher. In other words we will need to scale the weights appropriately so that tasks that were never learned together (in the same training batch) can now appropriately compete when trained in isolation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/513/1*ttZLkc4eubfjn0BPMTB8lw.png" /></figure><p>Finally, we use Wb and Wc to test our model in actual applications.</p><p>An improvement of CRW is CRW+ which removes the need to rescale the weight when copying from Wt to Wc. CRW+ instead subtracts the mean of the weights before copying them to Wc.</p><h3>Architect and Regularize (AR1)</h3><p>This method combines techniques of regularization such as CRW+ and architecture (<a href="https://arxiv.org/abs/1703.04200">Synaptic intelligence</a> or SI). CRW+ alone had the requirement to freeze the Wb weights, which limits applicability and performance. In order to improve CRW+, the ability to change pre-trained weights was added using SI.</p><p>The effect of AR1 (CwR+Syn) is displayed in the figure below. This is on the <a href="https://arxiv.org/abs/1705.03550">CORe50 dataset</a>. Other methods are also evaluated. <em>Cumulative</em> is the method where one creates a large dataset from all the dataset and trains from scratch.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/644/1*TNhs2-QHivjNYxYFdDF9gw.png" /><figcaption>Training accuracy versus number of new tasks (classes) learned</figcaption></figure><p><em>Note: all this is material is from </em><a href="https://www.vincenzolomonaco.com/"><em>Vincenzo Lomonaco</em></a><em> and his thesis work on continual and life-long learning (</em><a href="https://www.continualai.org/"><em>continualai</em></a><em>)</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=da7995c24bca" width="1" height="1" alt=""><hr><p><a href="https://medium.com/continual-ai/continual-learning-da7995c24bca">Continual learning</a> was originally published in <a href="https://medium.com/continual-ai">ContinualAI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Latent Replay for Real-Time Continual Learing at the Edge]]></title>
            <link>https://medium.com/continual-ai/latent-replay-for-real-time-continual-learing-at-the-edge-9a083c899856?source=rss----4a4418e36c33---4</link>
            <guid isPermaLink="false">https://medium.com/p/9a083c899856</guid>
            <category><![CDATA[robotics]]></category>
            <category><![CDATA[computer-vision]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[continual-learning]]></category>
            <dc:creator><![CDATA[Vincenzo Lomonaco]]></dc:creator>
            <pubDate>Thu, 05 Mar 2020 17:35:51 GMT</pubDate>
            <atom:updated>2020-03-05T17:35:32.820Z</atom:updated>
            <content:encoded><![CDATA[<h4>Bringing State-of-the-art Continual Learning to Embedded Devices</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_MaOqv0ZzDfjwiVsBc2BFQ.png" /><figcaption>Fig.1:<strong> iCub</strong> Robotic Platforms and the <strong>CORe </strong>Android Application.</figcaption></figure><p>Artificial Intelligence (AI) technologies have the potential to radically transform the way we experience the world and connect with other people by making the objects around us “<em>smarter</em>”: gathering and processing information, making decisions, adapting to changes, and interacting with humans and other objects, rather than being simply hard-programmed in advance to execute very specific functions.</p><p>However, most “<em>smart</em>” devices today operate as <strong>mere gateways to remote computing and AI infrastructures</strong>; this imposes limitations on the <em>usability</em> and <em>response speed</em>, due to the <em>latency of remote communication</em>, and also raises potential <em>privacy concerns</em>.</p><p>Indeed, one of the key challenges faced by the modern AI technologies such as gradient-based deep learning systems is their well-recognized limitations when it comes to the <em>continual learning</em>, i.e. the ability to learn incrementally, online from <em>non-stationary</em> data streams, changing environments and tasks, their limited ability to generalize out-of-distribution and perform <em>transfer </em>and <em>meta-learning</em>.</p><p>While some steps in this direction have been recently moved, training on the edge remains often unfeasible and considered impractical. In fact, given the high demand in terms of memory and computation, <em>the industry standard de facto</em> today is training models on powerful multi-GPUs servers, and <em>deploy them to edge devices </em><strong><em>for inference only</em></strong>.</p><blockquote>In our recent paper “<a href="https://arxiv.org/abs/1912.01100"><strong>Latent Replay for Real-Time Continual Learning</strong></a>” we focus on <strong>real-time CL</strong> and prove that <em>continual training with small non-i.i.d. batches</em> (~300 images from a short video) can be compatible with the limited computing power made available by CPU-only embedded devices and robotic platforms.</blockquote><h3>Native Rehearsal</h3><p>Let’s start with the basics. In [<a href="https://arxiv.org/abs/1806.08568">1</a>] it was shown that a very simple rehearsal implementation (hereafter denoted as <em>“native rehearsal”)</em>, where for every training batch a random subset of the batch patterns is added to the external storage to replace a (equally random) subset of the external memory, is not less effective than more sophisticated approaches such as <a href="https://arxiv.org/abs/1611.07725">iCaRL</a>.</p><p>Therefore, in our work, we started by expanding CWR* and AR1* [<a href="https://arxiv.org/abs/1907.03799">2</a>] with the trivial <em>native rehearsal</em> approach. In Fig. 2 you can see the learning trend of CWR* and AR1* of a <a href="https://arxiv.org/abs/1704.04861">MobileNetV1</a> trained with and without rehearsal on <a href="https://arxiv.org/abs/1907.03799">CORe50 NICv2–391</a>.</p><p>It is well evident that even a moderate external memory (<strong>~1.27%</strong> of the total training set) is very effective to improve the accuracy of both approaches and to reduce the gap with the cumulative upper bound (obtained by training the model on the entire training set) that for this model is <strong>~85%</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/391/1*cXd4weGHXLLT9Pmiy47vSg.png" /><figcaption>Fig. 2: <strong>Comparison of CWR* and AR1* on CORe50 NICv2–391 with and without rehearsal </strong>(external memory size of 1500). Each experiment was averaged on 5 runs with different batch ordering: colored areas represent the standard deviation of each curve. The black dashed line denotes the reference accuracy of the cumulative upper bound.</figcaption></figure><h3>Latent Replay</h3><p>Even if in the CORe50 setting the extra memory required by <em>native rehearsal</em> is not an issue (we store only 30 patterns for each of the 50 classes), a constant refresh significantly increases the required amount of computation <strong>because of the extra forward and backward steps</strong> and this makes the resulting training too resource demanding for real-time applications.</p><p>In deep neural networks the layers close to the input (often denoted as representation layers) usually perform low-level feature extraction and, after a proper pre-training on a large dataset (e.g., ImageNet), their weights are quite stable and reusable across applications. On the other hand, higher layers tend to extract class-specific discriminant features and their tuning is often important to maximize accuracy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MjUSvlkhwbo_yKetBeahGA.png" /><figcaption>Fig.3: <strong>Architectural diagram of Latent Replay</strong>.</figcaption></figure><blockquote>With latent replay (see Fig. 3) we denote an approach where, instead of maintaining copies of input patterns in the external memory in the form of raw data, we store the activations volumes at a given layer (denoted as “<em>Latent Replay layer”</em>).</blockquote><p>To keep the representation stable and the stored activations valid we propose to slow-down the learning at all the layers below the latent replay one and to leave the layers above free to learn at full pace.</p><p>In the limit case, where lower layers are completely frozen (i.e., slow-down to 0), latent replay is functionally equivalent to rehearsal from the input, but <strong><em>achieves a computational and storage saving</em></strong> (<strong>x69 and x394 w.r.t. the cumulative strategy, respectively</strong>) thanks to the smaller fraction of patterns that need to flow forward and backward across the entire network and the typical information compression that networks perform at higher layers.</p><p>In the general case where the representation layers are not completely frozen, the activations stored in the external memory suffer from an aging effect (i.e., as the time passes they tend to increasingly deviate from the activations that the same pattern would produce if feed-forwarded from the input layer). However, if the training of these layers is sufficiently slow, the aging effect is not disruptive since the external memory has enough time to be rejuvenated with fresh patterns.</p><p>When latent replay is implemented with mini-batch SGD training:</p><ul><li>In the forward step,<em> a concatenation is performed at the replay layer</em> (on the mini-batch dimension) to join patterns coming from the input layer with activations coming from the external storage;</li><li><em>The backward step is stopped</em> just before the replay layer for the replay patterns.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/447/1*8tpnUO8E4aCPyNfipBQeXA.png" /><figcaption>Fig.4: <strong>Comparison with other CL strategies</strong>: Accuracy results on the CORe50 NICv2–391 benchmark of CWR*, AR1*, DSLDA, iCaRL, AR1*free (for different choices of the rehearsal layer reported between parenthesis). More details about these experiments are reported in [<a href="https://arxiv.org/abs/1912.01100">2</a>] and the code to reproduce them is available <a href="https://github.com/lrzpellegrini/Latent-Replay">here</a>.</figcaption></figure><h3>Real-World Deployment on Embedded Devices</h3><p>Now, let’s see where we can go with this simple yet effective idea. Below we report a demo of <strong>CORe</strong>: an Android app we developed for commonly used android smartphones. To the best of our knowledge, <strong>this is the first time a deep continual learning strategy is shown to be effective on a smartphone device</strong>.</p><p>The app will be open-sourced upon publication of our paper, but the apk can be already downloaded <a href="https://github.com/lrzpellegrini/CL-CORe-App#source-code">here</a>.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fround-lake.dustinice.workers.dev%3A443%2Fhttps%2Fwww.youtube.com%2Fembed%2FBs3tSjwbHa4%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fround-lake.dustinice.workers.dev%3A443%2Fhttps%2Fwww.youtube.com%2Fwatch%3Fv%3DBs3tSjwbHa4&amp;image=https%3A%2F%2Fround-lake.dustinice.workers.dev%3A443%2Fhttps%2Fi.ytimg.com%2Fvi%2FBs3tSjwbHa4%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/ecef1c2676db002ae96245c488c71890/href">https://medium.com/media/ecef1c2676db002ae96245c488c71890/href</a></iframe><p>The app comes pre-trained with 10 classes (corresponding to the 10 CORe50 categories) and allows to:</p><ul><li><strong>continually train existing classes</strong> (by learning new object/poses)</li><li><strong>learn up to 5 brand new classes</strong>.</li></ul><p>As the app is started, it switches to inference mode and classifies the framed objects with an inference efficiency of about <strong>~5 fps</strong> (<em>CPU-only with no hardware acceleration</em>). When learning is triggered, a short video of 20 seconds (<em>at 5 fps</em>) is acquired and the resulting 100 frames are used for continual learning that completes <strong>in less than 1 seconds</strong> after the end of the acquisition.</p><p>Behind the scenes the app is running a customized Caffe version cross-compiled for Android and using the same MobileNetV1 architecture introduced before, here initialized to work with 15 classes. Latent replay in this case is implemented at the “<em>pool6</em>” layer with an external memory of 500 patterns.</p><p>Low level code is written in C++ and the app interface in Java. A training session consists of 8 epochs, 5 iterations per epoch with a mini-batch size of 120 patterns: each mini-batch includes 20 original frames (from the current batch) and 100 replay patterns.</p><p>In order to speed up training during the video acquisition, a second thread immediately moves available frames forward in the CNN and caches activations at latent replay layer so that, when the acquisition is concluded, we can directly train the class specific discriminative layers. Further details and precise timings of the different phases are provided <a href="https://arxiv.org/abs/1912.01100">here</a>.</p><h3>Take-Home Message</h3><p><em>Latent Replay</em> is an efficient technique to continually learn new classes and new instances of known classes even from small and non i.i.d. batches.</p><blockquote>State-of-the-art CL approaches, such as AR1*, extended with latent replay, are able to learn efficiently and, at the same time, the achieved accuracy is not far from the cumulative upper bound (about 5% in some cases).</blockquote><p>The <em>computation-storage-accuracy</em> trade-off can be defined (<em>based on the latent replay layer choice</em>) according to both the target application and the available resources so that <em>even edge devices with no GPUs can learn continually from short videos</em>, as we proved through the development of an Android application.</p><p>We hope this will spark a new interest in <em>continual learning </em>at the edge, which has been always thought to be impractical for deep learning models before, but we believe it may constitute the backbone of pervasive and distributed AI computing in the future.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*UdF8Ff3MAilE1jh4.jpeg" /><figcaption><strong>Vincenzo Lomonaco</strong>, the author of this story.</figcaption></figure><p>If you’d like to see more posts on AI and <em>Continual Learning</em> follow me on <a href="https://medium.com/@vlomonaco">Medium</a> or join <a href="http://continualai.org/"><strong>ContinualAI.org</strong></a>: an open community of more than 7<strong>00 researchers</strong> working together on this fascinating topic! (Join us <a href="https://continualai.herokuapp.com/">on slack</a> today! 😄 🍻)<br>If you want to get in touch, visit my website <a href="http://vincenzolomonaco.com/"><strong>vincenzolomonaco.com</strong></a>! 😃</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9a083c899856" width="1" height="1" alt=""><hr><p><a href="https://medium.com/continual-ai/latent-replay-for-real-time-continual-learing-at-the-edge-9a083c899856">Latent Replay for Real-Time Continual Learing at the Edge</a> was originally published in <a href="https://medium.com/continual-ai">ContinualAI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Task Label and Continual learning, what is going on?]]></title>
            <link>https://medium.com/continual-ai/task-label-and-continual-learning-what-is-going-on-8f655d7e506?source=rss----4a4418e36c33---4</link>
            <guid isPermaLink="false">https://medium.com/p/8f655d7e506</guid>
            <category><![CDATA[task-labels]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[continual-learning]]></category>
            <dc:creator><![CDATA[Timothee L]]></dc:creator>
            <pubDate>Tue, 19 Nov 2019 18:04:07 GMT</pubDate>
            <atom:updated>2019-11-20T12:52:43.568Z</atom:updated>
            <content:encoded><![CDATA[<p>After a discussion on the Continual Learning Slack (<a href="https://www.continualai.org/join_us/">continualai.slack.com</a> join us !), it looks like the use of task labels is not always clear in continual learning (CL) approaches. So I decided to create a small post-blog resuming the discussion and proposition.</p><blockquote>First, what is a task label?</blockquote><p>The task label is an abstract representation of a learning experience.<br>In continual learning, the learning algorithms learn from a data distribution that is not static (I will call the full continual learning process the “continuum”), the task label allows splitting this continuum into smaller pieces of learning experiences.<br>So us humans, decide to split the learning continuum into pieces we call tasks. The task label is the ID we give to those subparts. It is important to notice that it is completely arbitrary and only depends on the point of view of the continual learning setting creator.</p><p>However, we can define a few particular use cases of the task label that could help to disentangle different kinds of continual learning scenario:</p><h3><strong>1- Continual Learning Scenarios</strong></h3><p>We can described three different use cases of the task labels [1].</p><ul><li><strong>Single-Incremental-Task (SIT):</strong></li></ul><p>Whatever happens, the task label is always the same, there is only one task.</p><ul><li><strong>Multi-Task (MT) :</strong></li></ul><p>There are several tasks that are learned only once, the task label will never indicate two times the same task.</p><ul><li><strong>Multi-Incremental-Task (MT) :</strong></li></ul><p>There are several tasks that are learned but tasks can be learned several times, the task label can indicate two times the same task.</p><p>This classification helps to distinguish use cases of the task label but it does not consider the assumption made on the task labels concerning the variation in the data distribution: i.e. the concept drift.</p><h3><strong>2- Task labels and concept drift</strong></h3><p>The task labels are virtual wall we put to divide our learning curriculum, however, depending on the setting, the assumptions made on the task labels are different. In the following figure, are presented the three different cases.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iKMzv9SCw37SVfjHXHZN5w.jpeg" /><figcaption>Task labels and concept drift: the different settings</figcaption></figure><ul><li><strong><em>No task label:</em></strong><br>The data stream is provided to the learning algorithm without any supplementary information. It could be similar to classical machine learning but the data distribution is not assumed static and catastrophic forgetting may happen as soon as the distribution change (when concept drift happens). This would be the setting of a completely autonomous agent that should learn from a stream of data, therefore close to real-life settings but hard to solve and generalize.</li><li><strong><em>Sparse task labels</em></strong><br>As the “<strong><em>No task label</em></strong>” case, this scenario is quite close to a real-life setting. The algorithms learn autonomously but from time to time, it gets a new label when data distribution changes. Nevertheless, the data distribution might also change while no new task label is provided. The change in the data distribution can be called “concept drift”, described in [5].</li><li><strong><em>Oracle task labels</em></strong><br>This is the case of most continual learning existing approaches nowadays. Every concept drift in the data distribution is indicated by the task label. This is a particularly convenient case because since the algorithm exactly knows when the distribution change, it can better handle risks of forgetting.</li></ul><p>So here, we categorize the different hypotheses made on the task label. However, there is one more distinction that can be done concerning the task labels: its availability.</p><h3><strong>3- Task label availability</strong></h3><p>When a task label is provided, we should know it which occasion the algorithm has access to it. We define then two cases:</p><ul><li><strong><em>The Learning Task Label [4]</em></strong><br>This case can also be referred to as “Domain Incremental Learning” [2]. It is also described in [3] (in Section 3.C).<br>In this case, we consider that we provide task labels to help the algorithms to learn but at test time, the algorithms will make its decision autonomously. This is the case, for class incremental learning. The algorithms are aware when a new class arises but at test time, the algorithms have no information about data a should find the right class.</li><li><strong><em>The Permanent Task Label [4]</em></strong><br>This case has also been described in [2] as “Task-Incremental Learning” <br>In this case, the task label is used for learning as well as for inference. This is the case in the algorithms called “multi-head”, where an output layer (a head) is specific to a task. At test time the algorithms should know which head to use and need then the task label. This scenario makes training greatly easier (a trivial solution is a model per task), however, this scenario is considered in the CL community as not really related to what continual learning aims at solving. CL aims at developing algorithms that learn continually and can be deployed autonomously after. If the model needs a label at deployment it is not autonomous.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FOUG__qam4NqMEDCFpd2ZA.jpeg" /><figcaption>task labels available vs task label unavailable : visualization</figcaption></figure><p>So to resume the order of difficulty for training an algorithm:</p><p><strong><em>No task label </em></strong>&gt; <strong><em>Sparse task label</em></strong> &gt;&gt; <strong><em>Oracle task label</em></strong></p><p>And</p><p><strong><em>Learning task label</em></strong> &gt;&gt; <strong><em>Permanent Task Label</em></strong></p><p>The particular difficulty of “<strong><em>No task label</em></strong>” and “<strong><em>Sparse task label</em></strong>” is to detect data distribution drift to prevent forgetting.<br>“<strong><em>Oracle task label</em></strong>” cases target essentially the forgetting problems. “<strong><em>Oracle task label</em></strong>” combined with “<strong><em>Permanent Task Label</em></strong>” might face forgetting depending on how it is implemented but the trivial solution of one model per task does not face it.</p><p>One could think about “special case” not mention in this blog post such as “label only available at test time and not for learning” but the idea of task label is intrinsically linked to learning. Task labels available only for testing does not make much sense in my opinion :)</p><p>A framework similar to what is presented in this article is proposed in [4] to present continual learning approaches and describes how the task label is used. Anyway, to understand clearly the use of a task label it is fundamental to understand the CL scenario, the assumptions and the availability of the task label.</p><p>If you want to discuss/comment on the different use of task labels, don’t hesitate to come to the continualAI slack!</p><p>Timothée LESORT<br>PhD Candidate @ Thales / Ensta-Paris<br>Board member and co-founder of ContinualAI, <a href="https://www.continualai.org/">https://www.continualai.org/</a></p><p>Thanks to Vincenzo Lomonaco and Massimo Caccia for helping me in the realization of this article.</p><p>[1] “Continuous Learning in Single-Incremental-Task Scenarios”, <em>Davide Maltoni, Vincenzo Lomonaco</em>, Neural Networks, 2019<br>[2] “Three scenarios for continual learning”, <em>Gido M. van de Ven, Andreas S. Tolias<br></em>[3] “Towards Robust Evaluation of Continual Learning” <em>Sebastian Farquhar, Yarin Gal<br></em>[4] “Continual Learning for Robotics: Definition, Framework, Learning Strategies, Opportunities and Challenges”, <em>Timothée Lesort, Vincenzo Lomonaco, Andrei Stoian, Davide Maltoni, David Filliat, Natalia Díaz-Rodríguez<br></em>[5] “Incremental learning algorithms and applications”, Alexander Gepperth and Barbara Hammer, ESANN 2016</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8f655d7e506" width="1" height="1" alt=""><hr><p><a href="https://medium.com/continual-ai/task-label-and-continual-learning-what-is-going-on-8f655d7e506">Task Label and Continual learning, what is going on?</a> was originally published in <a href="https://medium.com/continual-ai">ContinualAI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Continual Learning for Production Systems]]></title>
            <link>https://medium.com/continual-ai/continual-learning-for-production-systems-304cc9f60603?source=rss----4a4418e36c33---4</link>
            <guid isPermaLink="false">https://medium.com/p/304cc9f60603</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[continual-learning]]></category>
            <category><![CDATA[production-system]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[automl]]></category>
            <dc:creator><![CDATA[Vincenzo Lomonaco]]></dc:creator>
            <pubDate>Sat, 24 Aug 2019 11:12:55 GMT</pubDate>
            <atom:updated>2019-08-24T14:44:08.142Z</atom:updated>
            <content:encoded><![CDATA[<h4>The new “Agile” in the Machine Learning Era</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/941/1*jxq1kopGTJhdMurqnVEJJQ.png" /><figcaption>Fig. 1:<strong> The Machine Learning Lifecycle</strong>, © copyright [<a href="https://www.ntconcepts.com/introduction-to-the-machine-learning-lifecycle-hidden-challenges-blog-series/">1</a>]</figcaption></figure><h4>Introduction</h4><p>The <a href="https://en.wikipedia.org/wiki/Agile_software_development">Agile software development</a> approach, popularized around 2010 by the <a href="https://en.wikipedia.org/wiki/Agile_software_development#The_Agile_Manifesto"><em>Manifesto for Agile Software Development</em></a>, advocates adaptive planning, evolutionary development, early delivery, and continual improvement as key properties in order to provide a rapid and flexible response to increasingly fast changes of the market and its requisites.</p><p>As the linear <a href="https://en.wikipedia.org/wiki/Waterfall_model">waterfall models</a>, originated in the manufacturing and construction industries, were proved to be unable to provide the competitive edge in the increasingly complex and fast-changing software world, Agile and <a href="https://www.mountaingoatsoftware.com/agile/scrum">Scrum</a> models became the standard the facto for software development these days.</p><p>But what happens as we move towards <a href="https://medium.com/@karpathy/software-2-0-a64152b37c35">Software 2.0</a>? In his 2017 blog post, <a href="https://medium.com/u/ac9d9a35533e">Andrej Karpathy</a> was foreseeing a fundamental shift in the software development world:</p><blockquote>I sometimes see people refer to neural networks as just “another tool in your machine learning toolbox”. They have some pros and cons, they work here or there, and sometimes you can use them to win Kaggle competitions. Unfortunately, this interpretation completely misses the forest for the trees. Neural networks are not just another classifier, they represent the beginning of a fundamental shift in how we write software. They are Software 2.0.</blockquote><p>Machine learning is now slowly conquering and pervasively transforming every industry with more and more “<em>end-to-end</em>” predictive modules that are now integrated in almost every product and service pipeline out there (<a href="https://medium.com/app-affairs/9-applications-of-machine-learning-from-day-to-day-life-112a47a429d0">see a couple of example here</a>).</p><p>However, current machine learning models are inefficiently trained from scratch and statically deployed <em>at every iteration cycle</em>, making it somehow similar to the pure sequential <em>waterfall</em> model (rigid and difficult to adapt).</p><blockquote>In essence, the parallelism in based on the assumption that data are the new software requirements (they keep coming and changing through time) and the training process is the “design &amp; development” phase, resulting in the software product (our prediction function).</blockquote><p>What if we could translate what we have learned in the last 50 years of Software 1.0 to Software 2.0?</p><h4>Continual Learning as the Agile of Machine Learning</h4><p>It turns out that we can! In the last few years we have witnessed a tremendous progress in a sub-field of Machine Learning, named “<a href="https://medium.com/continual-ai/why-continuous-learning-is-the-key-towards-machine-intelligence-1851cb57c308"><em>Continual Learning</em></a>”, where the basic idea is to continually train our prediction models, <strong>incrementally</strong> as new data (requirements) become available and with huge benefits as for the Agile methodology:</p><ul><li><strong>Efficiency</strong>: as the process is continuous we don’t need to start from scratch every time with an enormous computational waste, re-learning things we have already learned.</li><li><strong>Adaptiveness</strong>: being the learning process very fast, efficient and flexible we can guarantee adaptation and customization capabilities at unprecedented levels.</li><li><strong>Scalability</strong>: The computational and memory overhead stays bounded (and low) throughout the entire product/service life-cycle, allowing us to scale in terms of intelligence while processing more and more data.</li></ul><p>While continual learning is often thought as just a nice property to explore for future <em>Artificial General Intelligence</em> (AGI) agents and its practical use to be limited to applications in embedded compute platforms (with no cloud), in this post I argue that in the next few years <strong><em>it will</em></strong><em> </em><strong><em>pervasively become a must-have property in every ML system</em></strong><em> </em><strong><em>and</em></strong><em> </em><strong><em>extensively used in production environments as well</em></strong>.</p><h4>The importance of Continual Training</h4><p>Sometimes you can hear people at conferences saying “<em>Aaah, ML systems are incredibly inefficient w.r.t. the brain!</em>”, “<em>ML approaches are incredible data hungry!</em>”, “<em>ML algorithms are just for HPC enviroments!</em>”. Of course they are. In the context of vision, for example, it has been estimated that a child takes up to 3-5 years to develop a reasonably good vision system, then <strong>refining</strong> it and <strong>adapting</strong> to the surrounding environment for the rest of his life. Why for machine learning systems it should be any different?</p><p>We expect a ML system to be trainable in a matter of minutes and learn a perfect model of the external world. But we should rather aim at a continual learning system that <em>can build its prediction capabilities on top of what it has previously learned</em>, <em>making up for its previous biases and shortages</em> and <em>efficiently adapting to novel environmental conditions </em>as new data become available.</p><p>Pretty much as in Software 1.0, after more than 50 years of experience in “<em>software engineering</em>” we acknowledged<em> the impossibility to create a complex system with a pure linear development model</em>, I argue we are going to realize soon the same for Software 2.0.</p><p>Turns out that some folks in the industry are already starting to acknowledge the shift, for example for Google Play and other Google services with <a href="http://stevenwhang.com/tfx_paper.pdf">Tensorflow Extended</a>:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fround-lake.dustinice.workers.dev%3A443%2Fhttps%2Fwww.youtube.com%2Fembed%2FfPTwLVCq00U%3Ffeature%3Doembed&amp;url=https%3A%2F%2Fround-lake.dustinice.workers.dev%3A443%2Fhttp%2Fwww.youtube.com%2Fwatch%3Fv%3DfPTwLVCq00U&amp;image=https%3A%2F%2Fround-lake.dustinice.workers.dev%3A443%2Fhttps%2Fi.ytimg.com%2Fvi%2FfPTwLVCq00U%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/e99679abd23f84cef34a46ff356fe6da/href">https://medium.com/media/e99679abd23f84cef34a46ff356fe6da/href</a></iframe><p>Probably <a href="https://vimeo.com/274274744">at <strong>Tesla</strong></a> to some extent:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Uct3JzEJFtrwEO_RTlzZPQ.jpeg" /><figcaption>Fig. 2: <a href="https://vimeo.com/274274744">Building the Software 2.0 Stack Andrej Karpathy (Tesla)</a>.</figcaption></figure><p>And in many other companies providing MLaaS such as <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/incremental-training.html">Amazon SageMaker</a>, <a href="https://dataplatform.cloud.ibm.com/docs/content/wsj/analyze-data/ml-continuous-learning.html">IBM Watson</a>, etc., or in startup such as <a href="https://www.neurala.com/press-releases/edge-deep-learning-without-cloud">Neurala</a>, <a href="https://www.cogitai.com/">Cogitai</a>.</p><p>Why so many company are now starting to invest in continual learning? Well because it’s so much cheaper! Let’s take a look at the practical example below.</p><h4>A simple example: Cutting down your AWS Bill by 45% or more</h4><p>So, let’s say for the sake of simplicity that you have a web company and you want to recognize the content of the images posted on your web platform by its users.</p><p>Unfortunately, <em>you don’t have all the data in advance</em> but you have small batches of new images with labels (user tags for example) at the end of every day (iteration cycle) and you still want to adapt your prediction models as fast as possible to improve the user experience and recommend them the best content on the platform.</p><p>By today standards it would mean to <strong>re-train the whole ML model from scratch on all the accumulated data</strong> and <strong>re-deploy it</strong> in place of the old one. However this is incredibly wasteful in terms of computations and memory, as you learn the same things all over again.</p><p>What if we can just update it with the new images available? In our last paper “<a href="https://arxiv.org/abs/1907.03799"><em>Fine-grained Continual Learning</em></a>” (take the following numbers with a grain of salt, as they are not all part of the paper but projected for the sake of this post) we show that a rather simple CL strategy<strong> AR1*</strong> assessed in a continual learning scenario of 391 training batch can:</p><ul><li><strong>reduce computations needed by an average of ~45% </strong>across its life-cycle:<strong> </strong>it starts with a 0% advantage over the <em>re-train &amp; re-deploy</em> approach and it ends with <strong>~92% </strong>less computation at the 391<em>th </em>training batch. This considering that the <em>re-train &amp; re-deploy</em> approach needs an increasing number of epochs (from 4 to 50) for every batch, while AR1* stays fixed to 4 epochs.</li><li><strong>reduce working memory overhead by an average of ~49% </strong>across its life-cycle: as we don’t need to keep in memory all the training data encountered so far but just the ones contained in the current training batch the memory overhead can be reduced from <strong>0%</strong> at the first training batch to <strong>~99%</strong> at the 391<em>th </em>training w.r.t. the <em>re-train &amp; re-deploy</em> strategy).</li></ul><p>for a trade-off in terms of accuracy lost of just <strong>~20%</strong> points at the end of the life-cycle of our object recognition system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8wtfN5eKAWBHigAkyD9MZg.png" /><figcaption>Fig. 4: Continual learning accuracy over three scenario of increasingly complexity with 79, 196 and 391 training batches. Each experiment was averaged on 10 runs. Colored areas represent the standard deviation of each curve. Accuracy performance for the cumulative upper bound, not reported for visual convenience, is∼85%. Results in tabular form and more information are available at <a href="https://vlomonaco.github.io/core50">https://vlomonaco.github.io/core50</a>.</figcaption></figure><p>As the continual learning strategies become better and better in limiting the performance gap w.r.t. the inefficient <em>re-train &amp; re-deploy</em> strategy (a.k.a. “<em>Cumulative</em>”), we can still spare more than ~45% of computation throughout our life-cycle and ~49% in memory usage.</p><p>Furthermore, It is worth noting that, in this simple example, we considered just a limited number of incremental training batches (391), where a continual learning strategy really show its advantages when the number of batches is potentially higher. This means that the ~45% and ~49%, could further grow along with the life-cycle length: <em>The longer the life-cycle, the better the efficiency improvements</em>.</p><p>To sum up, CL systems are not yet ready for taking over ML systems as we know them today (re-train &amp; re-deploy). However, I think many mixed approaches would be very helpful in a number of real-world applications with<em> a good trade-off</em> between <strong>adaptation speed/efficiency</strong> and <strong>accuracy performance</strong>.</p><p>As we look at the future of <em>Software 2.0</em>, I cannot see a different way for efficiently patching your system, improving its features and adapting to the requisites of an increasingly fast changing global market.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/250/0*CQ7ilhTeTWd123A5.png" /></figure><p><strong>ContinualAI</strong> is an official <em>non-profit research organization</em> and the <em>largest open community</em> on <em>Continual Learning for AI</em>. Visit our official website: <a href="http://www.continualai.org">continualai.org</a> to learn more about the organization and <a href="https://www.continualai.org/join_us/">join us</a> as a member, or consider <a href="https://www.continualai.org/supporters">supporting us</a> with a small donation! Follow us on <a href="https://www.facebook.com/ContinualAI/?modal=admin_todo_tour">Facebook</a>, <a href="https://twitter.com/ContinualAI">Twitter</a>, <a href="https://www.instagram.com/continual_ai/?hl=en">Instagram</a>, <a href="https://medium.com/continual-ai">Medium</a>, <a href="https://github.com/ContinualAI">Github</a>, <a href="https://www.youtube.com/channel/UCD9_bqN3gX-TLxcr47vvMmA">YouTube</a>!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=304cc9f60603" width="1" height="1" alt=""><hr><p><a href="https://medium.com/continual-ai/continual-learning-for-production-systems-304cc9f60603">Continual Learning for Production Systems</a> was originally published in <a href="https://medium.com/continual-ai">ContinualAI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ContinualAI: a Non-Profit Research Organization  on Continual Learning for AI]]></title>
            <link>https://medium.com/continual-ai/continualai-a-non-profit-research-organization-on-continual-learning-for-ai-a2df70a68d2c?source=rss----4a4418e36c33---4</link>
            <guid isPermaLink="false">https://medium.com/p/a2df70a68d2c</guid>
            <category><![CDATA[community]]></category>
            <category><![CDATA[continual-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[research]]></category>
            <dc:creator><![CDATA[Vincenzo Lomonaco]]></dc:creator>
            <pubDate>Mon, 01 Jul 2019 18:08:19 GMT</pubDate>
            <atom:updated>2019-07-02T17:03:43.628Z</atom:updated>
            <content:encoded><![CDATA[<h3>ContinualAI: a Non-Profit Research Organization on Continual Learning for AI</h3><h4><a href="https://medium.com/u/bf2760649b14">Vincenzo Lomonaco</a>, <a href="https://medium.com/u/cbf346d07aa8">Keiland Cooper</a>, <a href="https://medium.com/u/f7d918996162">Natalia Díaz Rodríguez</a>, Timothée Lesort, German I. Parisi, Davide Maltoni, Lorenzo Pellegrini, <a href="https://medium.com/u/95ca052a38b0">Giacomo Bartoli</a>, <a href="https://medium.com/u/db2ff639f7fa">Jidin Dinesh</a>, Manish Agnihotri, <a href="https://medium.com/u/3875b065315e">Martin Mundt</a></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3t7mzFFQB9vqf52WplqMGQ.png" /><figcaption>Fig. 1: ContinualAI official website at <a href="https://www.continualai.org">www.ContinualAI.org</a>.</figcaption></figure><p>Humans have the extraordinary ability to <strong>learn continually</strong> from experience. Not only can we apply previously learned knowledge and skills to new situations, we can also use these as the foundation for later learning. One of the grand goals of <em>Artificial Intelligence</em> (AI) is building an artificial <em>“Continual Learning”</em> agent that constructs a sophisticated understanding of the world from its own experience through the autonomous<strong> incremental </strong>development of ever more complex skills and knowledge.</p><p><strong>ContinualAI</strong> is an official <em>non-profit research organization</em> and the <em>largest open community</em> on <em>Continual Learning </em>for<em> AI</em>. We aim at connecting people and working better together on this fascinating topic we consider fundamental for the future of AI!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xrZ4PczGr02K3m9NIQmkLw.png" /><figcaption>Fig. 2: Growing interest in CL as shown by the number of papers published each year on the subject. Based on Scopus indexed papers, limiting the category to Computer Science and searching for the exact keywords in the legend.</figcaption></figure><p><em>ContinualAI</em> is also a striving effort to make research in continual learning and AI more <strong><em>open</em></strong>, <strong><em>collaborative</em></strong>, <strong><em>democratic</em></strong> and <strong><em>transparent</em></strong>. We support <strong><em>open science</em></strong> at every level. Everything made at <em>ContinualAI</em> is open and freely accessible but maybe more importantly, all the projects are open-source and collaborative since the beginning (especially in the decision processes) and reflect the needs and the ideas of the entire community, rather than an handful of elite groups.</p><h3>ContinualAI: From 1 to 400+ Members!</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/250/1*cbAqygK29GtQgzXu22NcMw.png" /><figcaption>Fig 3:<strong> </strong><a href="http://www.continualai.org"><strong>ContinualAI</strong></a>, an <em>non-profit research organization</em> and <em>open community</em> on <em>Continual Learning for AI.</em></figcaption></figure><p><em>ContinualAI</em> was started in January 2018 by <a href="http://vincenzolomonaco.com">Vincenzo Lomonaco</a> and made possible with the early contribution of <a href="http://kwcooper.xyz">Keiland Cooper</a> and <a href="https://www.linkedin.com/in/martin-cimmino-23a87086/">Martin Cimmino</a>, who were finding very difficult to collaborate and discuss with other researchers working on the same topic. Information were also hard to find and gather in a single place!</p><p>Now, we are very excited to see our community grow so fast and steady, even reaching and exceeding the number of <strong>448 members</strong>! 🔥 😮 We are always happy to add new members and get some help with our open projects or simply discuss about CL, so <a href="https://www.continualai.org/join_us/">join us today</a>!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/701/1*YiMpeH2LUodEaMeJiArtXA.png" /><figcaption>Fig 4: ContinualAI <a href="https://join.slack.com/t/continualai/shared_invite/enQtNjQxNDYwMzkxNzk0LTgzNGM4ZDE0YzFiNWY3OTAwYjVhMGU0Mzg1ZDQ3MmY5OTRmMjY2ZWQzMTBmZTllYjY0NTVkNTgxYWE1YWJjNDI">slack channel</a> statistics.</figcaption></figure><h3>Board Members and Top Contributors</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z6PLkzEMMYAScLa3X_6CmQ.png" /><figcaption><em>ContinualAI </em><strong>Board Members</strong>.</figcaption></figure><p><em>ContinualAI</em> is based on the democratic structure of a classic european <em>non-profit association</em> (more details <a href="https://www.continualai.org/join_us/">here</a>) where board members are elected every 24 months by the members of the community.</p><p>At the moment ContinualAI board members are, <a href="http://vincenzolomonaco.com">Vincenzo Lomonaco</a>, <em>Postdoctoral Researcher @ University of Bologna</em>, <a href="http://kwcooper.xyz">Keiland Cooper</a>, <em>Cognitive Science &amp; Neuroscience Researcher</em> <em>@ Indiana University Bloomington</em>, <a href="https://nataliadiaz.github.io/">Natalia Díaz Rodríguez</a>, <em>Assitant Professor @ ENSTA ParisTech, </em><a href="https://scholar.google.com/citations?user=5NttkuoAAAAJ&amp;hl=en">Timothée Lesort</a>, <em>PhD student @ ENSTA ParisTech and Thales, </em><a href="https://www.inf.uni-hamburg.de/en/inst/ab/wtm/people/parisi.html">German I. Parisi</a>, <em>Postdoctoral Research Associate @ University of Hamburg </em>and <a href="https://www.unibo.it/sitoweb/davide.maltoni/en">Davide Maltoni</a><em>, Full Professor @ University of Bologna. </em>Moreover, other 6 board members will be elected by all the members within the the end of 2019.</p><p>Exceptional members who have also greatly contributed to the ContinualAI projects include: <a href="https://www.linkedin.com/in/lrzpellegrini/">Lorenzo Pellegrini</a>, PhD Student @ University of Bologna, <a href="https://www.linkedin.com/in/giacomobartolism/">Giacomo Bartoli</a>, Consultant @ IBM, <a href="http://jidroid404.github.io">Jidin Dinesh</a>, <em>CS Bachelor Student @ Cochin University of Science and Technology</em>, <a href="http://www.linkedin.com/in/manish-agnihotri-50b9ab135">Manish Agnihotri</a>, <em>Undergraduate Researcher @ Manipal Institute of Technology.</em></p><h3>Advisory Board</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Xsm7DNIp93BbB2J43Em4kA.png" /><figcaption>Fig. 6: ContinualAI <strong>Advisory Board</strong>.</figcaption></figure><p>We are also very happy to announce an exceptional lineup in our advisory board, composed of <a href="https://ai.google/research/people/MarcPickett">Marc Pickett</a>, <em>Research Scientist @ Google AI</em>, <a href="https://e-lab.github.io/html/contact-eugenio-culurciello.html">Eugenio Culurciello</a>, <em>Professor @ Purdue University</em>, <a href="https://lopezpaz.org/">David Lopez-Paz</a>, Research Scientist @ <em>Facebook AI Research</em>, <a href="https://sites.google.com/view/razp">Razvan Pascanu</a>, <em>Research Scientist @ DeepMind, </em><a href="http://maxversace.com/">Massimiliano Versace</a>, <em>CEO at Neurala, </em><a href="http://www.subutai.com/">Subutai Ahmad</a>, VP Research @ Numenta. All of them have shown a great expertise and interest in Continual Learning over the last few years and we are excited and honored to benefit from they precious advice!</p><h3>Fundamental Goals</h3><p>Being grown from a single GitHub page<em> </em>to an <em>official non-profit research organization, ContinualAI</em> has now three main objectives:</p><ul><li><a href="http://continualai.org//connect"><strong>Connect</strong></a>: Despite the rise of the open-source adoption in the AI community, research labs work pretty much in isolation. Staying informed is also becoming more and more difficult given the speed of research in this area. Connecting researchers working on continual learning for AI is one of the reason <em>ContinualAI</em> exists today and one of the main goal of the organization, stimulating the exchange of information, ideas and resources on a daily basis.</li><li><a href="http://continualai.org//research"><strong>Research</strong></a>: In the last few years we have witnessed a renewed and steadily growing interest in the ability to learn continuously from high-dimensional data. At <em>ContinualAI</em> we work to create a <em>distributed</em> and <em>inclusive</em> virtual research lab on <em>Continual Learning</em>, where anyone can contribute and learn more about this fascinating topic, while producing cutting edge research results. While in recent years the AI community has started open-sourcing the final research products (e.g. paper and/or code), research is still conducted within closed doors in small research labs. We believe in a more inclusive approach where research is conducted openly <em>at every stage</em> with huge benefits for the community.</li><li><a href="http://continualai.org//educate"><strong>Educate</strong></a>: Researchers should not only produce awesome research results but should be also concerned in making them accessible to anyone. This is why many projects are underway at <em>ContinualAI</em> to disseminate research in Continual Learning and related areas.</li></ul><h3>ContinualAI Open Initiatives</h3><p>We are currently working together on many completely open-source/collaborative projects:</p><ul><li><a href="https://github.com/ContinualAI/virtual-lab"><strong>ContinualAI VirtualLab</strong></a><strong><br></strong>A collection of tools and resources that let researchers communicate and collaborate better remotely on a daily basis. Up to date, the <em>ContinualAI</em> Virtual Lab is based on <a href="https://gitter.im/ContinualAI/community">Gitter</a> and <a href="https://join.slack.com/t/continualai/shared_invite/enQtNjQxNDYwMzkxNzk0LTgzNGM4ZDE0YzFiNWY3OTAwYjVhMGU0Mzg1ZDQ3MmY5OTRmMjY2ZWQzMTBmZTllYjY0NTVkNTgxYWE1YWJjNDI">Slack</a>, G Suit for Non Profit, a GitHub organization account, all the major social platforms, a Slack and a Twitter bot and much more.</li><li><a href="http://wiki.continualai.org"><strong>ContinualAI Wiki</strong></a><strong><br></strong>A collaboratively maintained central hub of information and didactic/dissemination materials for Continual Learning and AI, hosted on Github pages and available at <a href="http://wiki.continualai.org">wiki.continualai.org</a></li><li><strong>ContinualAI </strong><a href="https://github.com/ContinualAI/avalanche"><strong>Avalanche</strong></a><strong><br></strong>A comprehensive framework for Continual Learning Research. It aims at unifying a set of popular CL baselines, environments and benchmarks to help algorithm prototyping and experimenting, with flexibility, reproducibility, efficiency and maintainability in mind.</li><li><a href="https://github.com/ContinualAI/colab"><strong>ContinualAI Colab</strong></a><strong><br></strong>A number of notebooks and scripts (for demo, showcasing &amp; tutorials) which can be directly imported into <a href="https://colab.research.google.com/">Google Co-laboratory</a> and are related to Continual Learning.</li><li><a href="https://medium.com/continual-ai"><strong>ContinualAI Medium Publication</strong></a><strong><br></strong> At <em>ContinualAI</em> we value scientific dissemination. We think that to advance science it is important to promote cutting-edge research and make it accessible to a larger audience of people. This is why we maintain a <em>Medium Publication</em> where we try to distill and simplify the continual learning ideas with as little technical details as possible.</li><li><a href="https://groups.google.com/forum/#!forum/continualai"><strong>ContinualAI News Mailing list</strong></a><strong> and Newsletter<br></strong>For people on-the-run, we also thought about a monthly newsletter with all the major breakthrough and news within this area (write us if you’d like to contribute or see your next article published!). We also maintain a Google group for the exchange of information within and outside the <em>ContinualAI</em> community.</li><li><strong>ContinualAI Papers Database<br></strong>Given the amount of papers published each month on the topic within different venues, it is starting to become very difficult to keep track of the progress and the different ideas emerging in this topic. This is why one of the main projects at <em>ContinualAI</em> is a public papers database, with a rich-full set of attributes to help researchers find interesting papers related to their research.</li><li><strong>ContinualAI Short-Science<br></strong>We love <a href="https://www.shortscience.org/">short-science!</a> this is why we plan to contribute to it with a short description of as many continual learning papers as possible. Join us to be always updated about recent continual learning research progresses.</li></ul><h3>Over 500 Members and Beyond!</h3><p><em>ContinualAI</em> is an <em>official non-profit research organization</em> with a clear democratic structure with shared goals and intentions. However, we need <strong>YOUR HELP</strong> to support the <em>ContinualAI</em> cause! At the moment, we need new “<em>Top Contributors</em>” (a.k.a “<em>Maintainers</em>”) for the following roles (no particular experience needed, we’ll help you out! 😃):</p><ul><li><a href="https://github.com/ContinualAI/virtual-lab">ContinualAI VirtualLab</a> Maintainer.</li><li><a href="https://groups.google.com/forum/#!forum/continualai">ContinualAI News Mailing list</a>/Newsletter Maintainer.</li><li><a href="https://github.com/ContinualAI/colab">ContinualAI Colab</a> Maintainer.</li><li><a href="https://github.com/ContinualAI/avalanche">ContinualAI Avalanche</a> Maintainer.</li><li><a href="https://www.continualai.org">ContinualAI Website</a> Maintainer.</li><li><a href="http://wiki.continualai.org">ContinualAI Wiki</a> Maintainer.</li><li>ContinualAI Paper Database Maintainer.</li><li>ContinualAI Short-Science Maintainer.</li><li>Editor and Writer for the <a href="https://medium.com/continual-ai">ContinualAI Medium Publication</a>.</li></ul><p>Every little effort can help the community, <a href="https://www.continualai.org/join_us/"><strong>JOIN US TODAY</strong></a>! 💯<br>or consider <a href="https://www.continualai.org/supporters">supporting us</a> with a small donation! In the meanwhile, happy continual learning! 😃</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/250/1*cbAqygK29GtQgzXu22NcMw.png" /></figure><p><strong>ContinualAI</strong> is an official <em>non-profit research organization</em> and the <em>largest open community</em> on <em>Continual Learning for AI</em>. Visit our official website: <a href="http://www.continualai.org">continualai.org</a> to learn more about the organization and <a href="https://www.continualai.org/join_us/">join us</a> as a member, or consider <a href="https://www.continualai.org/supporters">supporting us</a> with a small donation! Follow us on <a href="https://www.facebook.com/ContinualAI/?modal=admin_todo_tour">Facebook</a>, <a href="https://twitter.com/ContinualAI">Twitter</a>, <a href="https://www.instagram.com/continual_ai/?hl=en">Instagram</a>, <a href="https://medium.com/continual-ai">Medium</a>, <a href="https://github.com/ContinualAI">Github</a>, <a href="https://www.youtube.com/channel/UCD9_bqN3gX-TLxcr47vvMmA">YouTube</a>!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a2df70a68d2c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/continual-ai/continualai-a-non-profit-research-organization-on-continual-learning-for-ai-a2df70a68d2c">ContinualAI: a Non-Profit Research Organization  on Continual Learning for AI</a> was originally published in <a href="https://medium.com/continual-ai">ContinualAI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>