<?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[Stories by Saurav Jha on Medium]]></title>
        <description><![CDATA[Stories by Saurav Jha on Medium]]></description>
        <link>https://medium.com/@sauravonn?source=rss-7d059f9f2516------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*kBQ21XG_SkeK_9OPs6uKQA.jpeg</url>
            <title>Stories by Saurav Jha on Medium</title>
            <link>https://medium.com/@sauravonn?source=rss-7d059f9f2516------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 16:25:56 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sauravonn/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Neural Processes for Uncertainty-Aware Continual Learning]]></title>
            <link>https://medium.com/@sauravonn/neural-processes-for-uncertainty-aware-continual-learning-5ae51911ac9c?source=rss-7d059f9f2516------2</link>
            <guid isPermaLink="false">https://medium.com/p/5ae51911ac9c</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[continual-learning]]></category>
            <category><![CDATA[bayesian-inference]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Saurav Jha]]></dc:creator>
            <pubDate>Tue, 31 Oct 2023 04:33:12 GMT</pubDate>
            <atom:updated>2023-10-31T23:45:21.190Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>With this blog post, I intend to explain our<strong> </strong><a href="http://arxiv.org/abs/2310.19272"><strong>NeurIPS paper</strong></a><strong> </strong>(going by the same title) in simple terms. This blog does not cover all the aspects of our paper. In particular, I am leaving out the experimental results and of course, the equations to keep the content focused on our methodology.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m09jLyQ0zdEEdoZttWNUVA.jpeg" /><figcaption>Image Source: Unsplash</figcaption></figure><h3>Motivation</h3><p>Let us assume an image classification model that has been trained on millions of images of cats and dogs, and can discriminate well between these. Let us also consider the scenario where this classifier has been deployed in the real-world. Here, the model is continuously fed with streaming images of cats and dogs. Further, with time, we assume that our streaming data has new images of koalas. Now, to expand the performance of our cat vs. dog classifier on the new class images, we must train it on the images of koalas alongside cats and dogs. However, the problem we face is that we no longer have access to those millions of cats and dogs images that we originally trained our classifier on (due to privacy limits on pet images). Voila! we have stumbled upon the need for the Continual learning setting.</p><p><strong>Continual learning (CL) </strong>aims to train deep neural networks (like our image classifier) efficiently on streaming data (koalas) while retaining the previously acquired knowledge (cats vs. dogs). To achieve this, CL agents target alleviating the <strong>catastrophic forgetting</strong> issue with restricted computational and memory costs (imagine a subset of the original cats vs. dog dataset).</p><p>Now, let us assume an even more realistic scenario where we know that our streaming data is bound to contain new (koala) classes over time. Here, we desire that upon observing a koala image, our cat vs. dog classifier should reliably allude this in its predictions. One way to achieve this is by looking at the model’s output probabilities. Namely, if our classifier is confident about an input image x containing a cat or a dog, then it should assign a high probability (p) to its predicted class (e.g. p(cat | x) = 95%, p(dog | x) = 5%). Otherwise, the assigned probability distribution of classes should have a high entropy (e.g. p(cat | x) = 45%, p(dog | x) = 55%).</p><p>Despite sounding trivial at first, the aforesaid <strong>uncertainty-awareness </strong>property has been the <em>Achilles heel</em> of most of the CL methods based on deterministic networks. One reason for this being that deterministic models usually ignore modeling the generative nature of the inputs, i.e., modeling the uncertainty inherent to the process that generated the input.</p><p>Put together, we have arrived at the key motivation for our work:</p><blockquote>designing Continual learning methods that are uncertainty-aware, and thus can be deployed reliably in (safety-critical) real-world scenarios.</blockquote><h3>What are Neural Processes?</h3><p>To achieve our aforesaid goal, we turn to probabilistic modeling of CL. A popular approach to go probabilistic is the Bayesian inference paradigm where we capture our existing belief about a real-world phenomenon using a prior distribution. Upon observing more data, we update the prior (our belief) to a posterior distribution. The CL setting, as such, has a natural fit for a Bayesian inference framework. That is, we can treat the data from our newly arrived task as posterior while the knowledge we acquired from previous task data (our previous posterior) becomes our new prior [2]. We will revisit this elegant property in designing NPs for CL next.</p><p>Neural Processes (NPs) are one such class of probabilistic <em>Bayesian</em> meta-learners that rely on data-driven priors. Too many jargons already? Well, let us break them down:</p><p><strong>#1</strong> NPs are Bayesian because they use prior distributions derived from partially observed data, a.k.a., the context points. Upon observing data points in addition to the context set, a.k.a., the target points, the priors get updated into posteriors.</p><p><strong>#2</strong> NPs are meta-learners because their Bayesian inference framework meta learns to predict/complete the outputs for a set of unlabelled target data points based on the labelled context data points. For example, NPs can learn to in-paint all the pixels of an image upon having seen a subset of these.</p><p><strong>#3</strong> Finally, NPs can be probabilistic by sampling latent variables from a distribution of the set-based inputs (see the figure below). Such a latent variable captures a summary of the input data points. For more details on NPs, we refer the reader to [1].</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N3q62jP2zmNNFsvnApEbNQ.png" /><figcaption>Image taken from [1] with consent from the authors.</figcaption></figure><h4>How to adapt Neural Processes for Continual Learning?</h4><p>A hurdle in applying existing NPs for CL is that these are based on a single latent variable that captures the global summary of the inputs. Since, in CL, our inputs can span multiple tasks, using a global summary just happens to be sub-optimal. To adapt NPs for CL, we propose preserving this global latent variable and adding another layer of task-specific latent variables conditioned on it. This makes our framework use a hierarchical latent variable model.</p><p>The first layer of our hierarchical framework consists of the global latent variable that can help facilitate cross-task knowledge transfer among CL tasks. This helps achieve the forward and backward transfer of knowledge. The second layer of our hierarchical framework comprises the task-specific latent variables that maintain fine-grained knowledge per task for a superior task-specific performance. However, instead of deriving the task-specific latent variables from the task-specific data points alone, we additionally condition these on the global latent variable. This conditioning is to endow cross-task knowledge factors on to our task-specific distributions.</p><p>Now, let us return to leveraging the Bayesian framework of NPs for CL. To do so, we propose incorporating the <strong>global</strong> and <strong>task-specific</strong> regularization terms into the learning objective of the NPCL. The global regularization loss term uses the global distribution from the past task as the prior while ensuring the current global distribution (the posterior upon seeing new task data) matches this prior. Similarly, the task-specific regularization losses use past task-specific head distributions as priors and act only on the past-task data, whose posterior is regularized.</p><p>The resulting framework is shown below where we end up with one global encoder and several task-specific encoders where each encoder was originally trained upon receiving the new task.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d0fnjYUBsCR3RR4ke7PVgQ.png" /><figcaption>Overview of the framework of the NPCL. Image taken from [4] with consent from the authors.</figcaption></figure><h4>Task-head inference in NPCL</h4><p>Task-head inference is a fundamental problem in class-incremental learning — a challenging variant of CL where at test time, we have no task IDs for a given input. As a result, our model must learn to infer the correct task component for a given input point. Now, since NPCL maintains task-specific heads, each of these are capable of producing a unique set of predictions. At training time, we can use the task IDs of inputs to select the right task head. However, at test time, we do not have such task IDs and are therefore left with the problem of inferring predictions from the correct task head.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/549/1*22j4Go6Ge-cpO-9PMmgF8g.png" /><figcaption>Overview of the uncertainty-aware inference mechanism in the NPCL. Image taken from [4] with consent from the authors.</figcaption></figure><p>Fortunately, we present uncertainty as the elegant solution to this fundamental CL issue. As shown in the figure above, at test time decoding, we simply choose the task-head that produces output probabilities with the least entropy score. The resulting model gives us accuracy scores that are on par with several state-of-the-art deterministic models (see Table 1 in the main paper).</p><h4>Anything else that ``uncertainty” could help us with?</h4><p>Besides task-head inference, we study the scope of uncertainty in CL for a range of tasks. Below is a brief one-liner comment on these:</p><ol><li>Low model calibration errors: Compared to the SOTA deterministic CL methods, the predicted output probabilities of NPCL are more aligned with the actual probabilities of the ground truth label distribution (Table 2, main paper).</li><li>Few-shot replay settings: NPCL retains better accuracy on CL settings with extremely small rehearsal memory sizes — for e.g. a total replay buffer size of 5 on CIFAR-100 (Table 12, Appendix).</li><li>Novel data identification: The variance scores of NPCL’s output predictions show a marked difference on in-domain and out-of-distribution input data — thus offering a key to identifying novel data (Table 4, main paper). Note that due to their deterministic nature, the state-of-the art CL methods cannot produce such output variances.</li><li>Instance-level model confidence evaluation: Finally, we show that the confidence evaluation framework of Han et al. [3] is applicable to NPCL too. In a nutshell, what this means is that NPCL’s variances of predicted class labels are smaller when its predictions are correct (Table 5, main paper). It is worth noting that as a precursor test to this framework, we first observe that the differences of the top-two predicted probability scores of NPCL is normally distributed (see the GIF below).</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*-EH7_HcmoZTQDnc8STGtxw.gif" /><figcaption>Q-Q quantile plots showing the normality of differences between top-two predicted probabilities. Image taken from [4] with consent from the authors.</figcaption></figure><h4>Conclusion</h4><p>Our work proposes Neural Processes for Continual Learning (NPCL), a hierarchical latent variable setup designed to jointly model the task-agnostic and task-specific data generating functions in continual learning. We study the potential forgetting aspects in NPCL and propose to regularize the previously learned distributions at a global and a per-task granularity. We further demonstrate that using entropy as an uncertainty quantification metric helps NPCL infer correct task heads and<br>boost the performance of baseline experience replay to even surpass state-of-the-art deterministic models on several CL settings. We further show out-of-the-box applications of the uncertainty estimation capabilities of NPCL for a range of downstream applications.</p><h4>References:</h4><p>[1] Jha, S., Gong, D., Wang, X., Turner, R.E., &amp; Yao, L. (2022). The Neural Process Family: Survey, Applications and Perspectives. <em>ArXiv, abs/2209.00517</em>.</p><p>[2] Nguyen, C.V., Li, Y., Bui, T.D., &amp; Turner, R.E. (2017). Variational Continual Learning. <em>ArXiv, abs/1710.10628</em>.</p><p>[3] Han, X., Zheng, H., &amp; Zhou, M. (2022). CARD: Classification and Regression Diffusion Models. <em>ArXiv, abs/2206.07275</em>.</p><p>[4] Jha, S., Gong, D., Zhao, H., &amp; Yao, L. (2023). NPCL: Neural Processes for Uncertainty-Aware Continual Learning. <em>ArXiv, abs/2310.19272.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5ae51911ac9c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[On generalization capability of randomly initialized vs pre-trained weights]]></title>
            <link>https://medium.com/@sauravonn/do-randomly-initialized-network-parameters-generalize-better-than-pre-trained-ones-80a649a23cd9?source=rss-7d059f9f2516------2</link>
            <guid isPermaLink="false">https://medium.com/p/80a649a23cd9</guid>
            <category><![CDATA[computer-vision]]></category>
            <category><![CDATA[ml-so-good]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[transfer-learning]]></category>
            <category><![CDATA[neural-networks]]></category>
            <dc:creator><![CDATA[Saurav Jha]]></dc:creator>
            <pubDate>Fri, 11 Feb 2022 04:34:33 GMT</pubDate>
            <atom:updated>2022-02-20T03:59:25.062Z</atom:updated>
            <content:encoded><![CDATA[<p><em>TLDR; Q: “Can training neural networks from randomly initialized weights lead to better generalization than from pre-trained weights?” A: They can. However, understanding the dynamics of training can help bridge the gap.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/612/1*0yiNAftg_CCUsVo83pGLZw.jpeg" /><figcaption>Image Source: Unsplash</figcaption></figure><p>Initializing neural networks parameters with that of pre-trained models has been well-known for finding efficient solutions to convex as well as non-convex optimization problems. Recent works have however suggested that such warm-starting of neural network training can lead to performances lagging behind the ones trained from randomly initialized parameters. In this blog post, I intend to reproduce the results of recent papers along this line of work while investigating few measures to mitigate the lag.</p><h4>Warm-starting training leads to drop in generalization</h4><p>The foundational work of Ash &amp; Adams (2020) showed how warm-starting hurts generalization in deep neural networks without damaging the training accuracy. In what I term as the <em>A+B</em> training setting, they pre-train their model on the first 50% of the training data, <em>i.e.</em>, A, and use it to warm-start training, a.k.a. <em>tuning</em> on 100% of the training data, <em>i.e.</em>, B. The plots below reproduce the effects of such warm-starting training on CIFAR-10 and SVHN datasets and contrast them against training a randomly initialized model.</p><p>For domains such as task-incremental continual learning where the majority of setups rely on initializing the parameters of the backbone network with those obtained from optimizing on a previous time step task, such a drop in generalization is particularly bad as it can inflict an upper bound on the viable performance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/848/1*kNBDT6fGBBMDVR7YauRQ0Q.png" /><figcaption>The training and test accuracy (averaged over 3 runs) of pre-trained (first 200 epochs), warm-started (Blue), and randomly initialized (Orange) ResNet18 models (200–400 epochs) on CIFAR-10 and SVHN datasets. Training setting uses SGD optimizer with zero weight decay, an initial LR of 0.001 without scheduling and no data augmentation.</figcaption></figure><h4>A remedy</h4><p>Ash &amp; Adams (2020) propose the Shrink, Perturb and Repeat (SPR) initialization algorithm as a remedy for the gradient imbalance arising from training on new, unseen data at each round using the parameters initialized from the pre-trained model. Namely, if <em>Θ_i^t</em> be the <em>i</em>-th training parameter at <em>t</em>-th training round then the SPR initialization can be formulated as: <em>Θ_i^t</em> = <em>Θ_i^(t-1)</em> + <em>p^t</em>, <em>i.e.</em>, the parameter value found in the preceding training round is first shrunk towards zero by a factor <em>λ </em><strong><em>∈</em></strong><em>(0,1)</em> and then perturbed by adding a noise <em>p^t</em> drawn from a distribution of mean zero and standard deviation <em>σ </em><strong><em>∈</em></strong><em>[0,1]</em>. The plots below show the superior results of SPR over random initialization on CIFAR-10 and SVHN test sets.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/848/1*rF5bbr0dC2nShHSsi8WRmA.png" /><figcaption>Figures showing the effect of SPR technique when initializing the warm-start training of neural networks (Blue) in contrast to random initialization (Orange).</figcaption></figure><h4>Understanding the generalization gap</h4><p>Recently, Berariu <em>et al. </em>(2021) proposed increasing the learning rate during tuning by a magnitude as an alternate to SPR in the above setting. To understand the incentive behind this, let us investigate why the generalization of warm started training lags in the first place.</p><p>In their paper, Berariu <em>et al. </em>(2021) use the setup of Ash &amp; Adams (2020) to study the occurrence of warm-starting generalization gap. In particular, they ground their reasoning on the two phases of learning in neural networks: (a) the <em>exploration</em> phase helps parameters in finding basins of attractions of the loss minima that are wide enough to trap the optimization, (b) the <em>refinement</em> phase then helps the parameters converge to the critical point in the basin based on the gradient flow. The authors conjecture that pretraining stages mainly effect the exploration phases of learning by reducing the amount of noise in the gradients required to search for wider basins of attraction. This in turn increases the chances of convergence to narrower minima, hence leading to poorer generalization. Increasing the learning rate during tuning can be seen as an equivalent to re-inducing the noise during the parameter updates.</p><p>The effectiveness of tuning with higher learning rates can also be explained from the perspective of reaching well-conditioned loss surface regions. Jastrzebski <em>et al.</em> (2020) show the existence of break-even points in the early phase optimization trajectories of neural networks beyond which gradient descent oscillates along the direction of the loss surface with the sharpest curvature. Using larger learning rates prior to reaching such break-even points thus lead to reduced variance of mini-batch gradients which in turn improves the conditioning of their co-variance as well as the loss surface.</p><h4>Bridging the generalization gap by checking replay of the previously seen data</h4><p>Drawing inspiration from the aforementioned <em>two-phase learning</em> regime, I experimented with a steady reintroduction of seen examples into the model’s training data <em>instead</em> of starting with 100% of the training data at once.</p><p>Formally, the tuning phase now begins with training the model on the unseen <em>(the rest 50%)</em> data for the first <em>N</em> epochs followed by the mixing of <em>k% </em>of the seen examples (sampled without replacement from the first <em>50%</em>) into the training data on every <em>n</em>-th epoch. The hypothesis here is that such a partial yet steady reintroduction of seen examples during training can help prolong the model’s exploration phase. This can offer more chances of finding wider basins of attraction despite the training being subject to the same resource budget.</p><p>The above setup calls for labeling the model trained on all available training data from the beginning as the naive baseline while the performance achieved using random initialization of parameters as the upper bound. The results below show that such a steady reintroduction of seen training examples indeed helps achieve superior performance over the baseline.</p><p>The accuracy however varies depending on the value of <em>k. </em>Even for the same <em>k</em>, the value of<em> n</em> further effects the performance. In general, the performance gain over the baseline improves when the model gets ample training epochs prior to seeing next new batch of replayed data. However, increasing <em>n </em>to further larger values can impact the performance negatively. A possible explanation to this could be that the larger <em>n </em>values allow the training to progress well into the <em>refinement</em> phase and thus repeatedly switching between the two phases lead to the damping of noise required for effective exploration over time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/841/1*CE8ygNAbAs1FtjLK-GVivw.png" /></figure><h4>Should we be looking beyond bridging the generalization gap?</h4><p>As training from random initialization might lead to slower learning of parameters, a yet another way of examining the performance of warm-starting training could be prioritizing <em>convergence speed</em> over <em>performance</em>. I investigated using a few such techniques towards the end goal of attaining faster convergence below.</p><p>The first among these was proposed by Maennel <em>et al.</em> (2020) and is based on pre-training using random labels to facilitate faster convergence during tuning in contrast to training from scratch. They attribute the alignment between the principal components of network parameters and data as the primary reason behind the observed gain in speed. The second method uses the GradInit technique proposed by Zhu <em>et al.</em> (2021) that finds adjusting multiplier factors for scaling the norm of each network layer. This is done by adding a minimal overhead of a single SGD step with prescribed hyperparameters over the training data before the starting of training.</p><p>The efficiency comparison of the aforementioned alternatives to SPR initilization is shown in the line plot below. I chose to plot the tuning iterations against the accuracy to better depict the convergence speed of the models. It is clear that the initialization from scratch leads to the slowest convergence (also reported in Maennel <em>et al.</em> 2020). The takeaway here lies in deciding the right metric for evaluating the efficiency of warm-starting training: an efficient initial parameter space should not only target attaining better generalization but should also attain it faster.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*niY6_leDHFzhX7e_QAs7Ww.png" /><figcaption>Figure showing the effect of various parameter initialization techniques on the convergence speed of the model during tuning. Warm-started models (even when pre-trained with random labels) tend to converge faster.</figcaption></figure><h4>Summary</h4><p>As a reader, you should have understood what imposes a restriction on the generalization capacity of models when initialized with the parameters of a pre-trained model prior to training. I tried investigating limitations of warm-starting training through better utilization of previously seen data. Finally, while a naive warm-starting of neural network training might offer sub-optimal generalization capability compared to those trained using randomly initialized parameters, they certainly do lead to faster training convergence. The question then lies at deciding what a better evaluation metric is based on the problem in hand.</p><h4>References</h4><p>Jordan Ash and Ryan P Adams. On warm-starting neural network training. In<em> NeurIP</em>S, 2020.</p><p>Tudor Berariu, Wojciech Czarnecki, Soham De, Jorg Bornschein, Samuel Smith, Razvan Pas-canu, and Claudia Clopath. A study on the plasticity of neural networks. <em>arXiv</em>, 2021.</p><p>Stanislaw Jastrzebski, Maciej Szymczak, Stanislav Fort, Devansh Arpit, Jacek Tabor, KyunghyunCho, and Krzysztof Geras. The break-even point on optimization trajectories of deep neural networks. In<em> ICLR</em>, 2020.</p><p>Justin Gilmer, Behrooz Ghorbani, Ankush Garg, Sneha Kudugunta, Behnam Neyshabur, David Car-doze, George Dahl, Zachary Nado, and Orhan Firat. A loss curvature perspective on training instability in deep learning.<em> arXiv</em>, 2021.</p><p>Hartmut Maennel, Ibrahim Alabdulmohsin, Ilya Tolstikhin, Robert JN Baldock, Olivier Bousquet, Sylvain Gelly, and Daniel Keysers. What do neural networks learn when trained with random labels? <em>arXiv</em>, 2020.</p><p>Chen Zhu, Renkun Ni, Zheng Xu, Kezhi Kong, W Ronny Huang, and Tom Goldstein. Gradinit: Learning to initialize neural networks for stable and efficient training.<em> arXiv</em>, 2021</p><h4>Acknowledgement</h4><p>Work done with the <a href="http://www.cvc.uab.es/LAMP/">Learning and Machine Perception Team</a>, Autonomous University of Barcelona.</p><p><a href="https://medium.com/mlearning-ai/mlearning-ai-submission-suggestions-b51e2b130bfb">Mlearning.ai Submission Suggestions</a></p><p>🟠 Become a <a href="https://medium.com/mlearning-ai/mlearning-ai-submission-suggestions-b51e2b130bfb"><strong>Writer at MLearning.ai</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=80a649a23cd9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My European Master’s: An EMA-zing journey]]></title>
            <link>https://medium.com/@sauravonn/my-european-masters-an-ema-zing-journey-ffa779171be8?source=rss-7d059f9f2516------2</link>
            <guid isPermaLink="false">https://medium.com/p/ffa779171be8</guid>
            <category><![CDATA[erasmus]]></category>
            <category><![CDATA[erasmus-plus]]></category>
            <category><![CDATA[european-union]]></category>
            <category><![CDATA[study-in-uk]]></category>
            <category><![CDATA[erasmus-mundus]]></category>
            <dc:creator><![CDATA[Saurav Jha]]></dc:creator>
            <pubDate>Mon, 30 Aug 2021 14:06:16 GMT</pubDate>
            <atom:updated>2021-10-20T18:33:03.804Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Update: A republication of this blog post is now available on <a href="https://www.em-a.eu/post/my-european-master-s-an-ema-zing-journey">Erasmus Mundus</a>’s website!</blockquote><p>On 5th of April, 2019, I received a conditional acceptance to the Erasmus Mundus Joint Master’s Degree (EMJMD) in <a href="https://mscdepend.ie/">Advanced Systems Dependability</a> (DEPEND) program — the third of the three Erasmus Mundus master’s programs I had applied to that year. Fast forward two years and I have wrapped up my master’s having studied a year each in the UK and France. As it happens, it was not merely by chance that I applied to DEPEND despite having applied to couple of other EMJMD programs beforehand.</p><p>That said, my aim in writing this blog post is two-fold: (a) pointing every generic “guide me on Erasmus Mundus” spam in my social media circle to this post, and (b) briefing the key takeaways from my EMJMD experience while answering bunch of FAQs (that I receive) along the way. My target audience groups remain the prospective applicants as well as the students already pursuing their master’s. Though the technical details mostly adhere to the domain of Computer Science, I have tried making sure my account is generic enough to readers from other domains. So let’s get going: first the FAQs!</p><h4>What is an Erasmus Mundus scholarship?</h4><p>It is a fund covering your participation costs to an EMJMD program. An EMJMD program is hosted by a consortium of two or more European universities which may or may not be situated in the same country. Given the geographical diversity of the consortium, an EMJMD master’s provides you with a refreshing opportunity to pursue your field of study while getting to know the people, landscapes, culture and history of Europe.</p><p>The maximum amount of the scholarship is 49,000 Euros (EUR) which covers your tuition fees, health insurance as well as travel and relocation costs. A breakdown of the scholarship can be found on <a href="https://mscdepend.ie/node/5">DEPEND’s website</a>. The structure remains the same for other EMJMD programs too.</p><h4>Who can apply for an Erasmus Mundus scholarship?</h4><p>TLDR; every national with a bachelor’s degree. However, the scholarship criteria might be different depending on whether you are a program country or a partner country student. Further details about these alongside the description of the scholarship fund can be found <a href="https://www.master-tribos.eu/application_info/scholarship_possibilities/erasmus_mundus_scholarships/">here</a>. At the moment, I can recall having met students from: Albania, Azerbaijan, Bangladesh, Belarus, Brazil, China, Colombia, Ethiopia, Finland, France, Georgia, Honduras, Indonesia, India, Iran, Jordan, Kazakhstan, Mexico, Nepal, Nigeria, Pakistan, Russia, Tajikistan, Ukraine, United States, Uzbekistan, and Zimbabwe. Borders barely matter!</p><h4>How do I choose which program(s) to apply to?</h4><p>The <a href="https://www.eacea.ec.europa.eu/scholarships/emjmd-catalogue_en">European Commission’s website</a> maintains an online catalogue of all such EMJMD programs that have received a grant for the upcoming academic year. Your task as an applicant boils down to navigate through the websites of the programs that interest you, check the relevance of your background, and follow their online application procedures. While doing so, you should bear in mind that: (a) you can apply to a maximum of three such programs for a given academic year, and (b) most of the programs start accepting applications from mid-November all the way till late-February (though you should check with the individual websites to confirm the exact dates).</p><p>For instance, I went on to choose DEPEND because of its unique half taught — half research curriculum with the possibility of centering my focus around a range of Computer Science domains including but not limited to Artificial Intelligence, Formal Methods, Cryptography, Quantum Computing, and Software Engineering. Moreover, the program required undertaking two dissertation projects (one per year) which could either be research-based or industrial. This seemed to offer me a degree of freedom (unlike a conventional taught master’s) at exploring my topic of interest apart from the coursework each year.</p><h4>What are the essentials for my application?</h4><p>This is the age-old question. And I am not even going to try answering it. There are plenty of detailed resources on the Internet guiding grad school applications including how to write your motivation letter and prepare for English language tests, reaching out to your referees, proper scheduling of your application timeline, etc. For example, <a href="https://www.topuniversities.com/blog/common-mistakes-made-when-writing-cover-letter">this blog post</a> is a good starter on what to avoid while writing a cover letter.</p><p>A point worth mentioning here is the students who get in touch with some form of consulting organizations who manage to convince them in securing a scholarship. Not only is this a waste of money but several EMJMD programs might go as far as cancelling your scholarship if once found that you were involved with such firms. In short, be genuine with your application.</p><h4>Can I still apply if I am in the last year of my bachelor’s studies?</h4><p>Yes, you can. As long as you expect to finish your bachelor’s before the starting date of your master’s program. Your scholarship offer will then be subject to the condition that you present your bachelor’s degree at the time of registering for the first university in your mobility track.</p><p>Alright, done with the FAQs. Now, only good things. Let me walk you through my personal journey to give a glimpse of what your life might look like while pursuing an Erasmus Mundus master’s.</p><h3>Year I</h3><p>I kicked off my first year at the University of St Andrews — the oldest university of Scotland located in the seaside town of St Andrews. Besides its astounding beauty and popular golf culture, the town is well known for its student life and university culture (one third of the town’s residents are affiliated to the university).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/316/1*QwOLeNtMvJEvPsPQRj3Agg.png" /><figcaption>A snap from my raisin weekend (with my academic parents) post the annual foam fight at St Andrews!</figcaption></figure><h4>How to survive an expensive place on the Erasmus Mundus scholarship?</h4><p>With a lively university culture (<a href="https://www.st-andrews.ac.uk/about/governance/university-strategy/global/">45% of its student/staff population being international</a>), St Andrews has all it takes to put a dent in your wallet if you are not careful about your living expenses. The housing, in particular, is very expensive with the cheapest of university dorms starting at 550 GBP.</p><p>One trick I found useful (and so did my classmates) was to ask the university to distribute my travel and installation costs (which amounted to 6000 EUR for the first year) around the year instead of handling the amount at once in the beginning. And turns out, it did help me keeping a check on my primitive impulses over the year. You can make a similar request to your university’s finance department to see if they can distribute your installation costs over the year rather than a lump sum payment.</p><h4>My student life there..</h4><p>Ranking within the QS top 100, St Andrews lives up to its expectations of enriching your student experience in numerous ways. The best thing that happened to us (DEPEND classmates) was to share the lectures with the rest of the Master’s students from the school of Computer Science. This in turn helped us getting acquainted to a good number of genius minds. Further, the computer science labs are shared among the undergraduates and the postgraduates, and are usually bustling with key strokes thriving to meet weekly deadlines.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P_Fzo5yJ2z20aBPv7xH7tA.jpeg" /><figcaption>From <a href="https://2021.hacktheburgh.com/">Hack the Burgh VI</a> at the University of Edinburgh. Our team of four from St Andrews won the Barclays chatbot challenge.</figcaption></figure><p>What’s more exciting about St Andrews is its location — a two hour drive from Edinburgh and an overnight drive from the Scottish highlands. It is very well a sin to not have enjoyed the best of the highlands whilst there.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4xB4QeBM-mZ2sEKgF6rt0Q.jpeg" /><figcaption>From our trip to the Scottish highlands.</figcaption></figure><h3>Year II</h3><p>My second year was based at the Université de Lorraine in the French city of Nancy (situated midway between Paris and the French-German border). Coming from St Andrews, the living expenses in Nancy was of course a relief. Plus, the French government’s reimbursements for student’s accommodation costs (through the <a href="https://www.caf.fr/">CAF services</a>) was well in my favor.</p><h4>My student life there..</h4><p>A merit of studying Computer Science at Lorraine is the university’s collaboration with the <a href="https://www.loria.fr/en/loria/">Loria</a> lab — which hosts both <a href="https://es.wikipedia.org/wiki/Institut_National_de_Recherche_en_Informatique_et_en_Automatique">INRIA</a> and <a href="https://en.wikipedia.org/wiki/French_National_Centre_for_Scientific_Research">CNRS</a>, the elite French national and state research organizations. As a part of our master’s dissertation in the second semester, the DEPEND program offers an internship at the Loria lab. My internship, in particular, was based in the MULTISPEECH group within the Inria lab, which is the biggest research group of Inria working on speech processing. This indeed remains one of the greatest perks of my student experience at Lorraine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J3sr6d052KnYv4ZEQww7AQ.jpeg" /><figcaption>From our last class dinner in Nancy.</figcaption></figure><p>Being a host to at least five different Erasmus Mundus programs (DEPEND, <a href="https://densys.univ-lorraine.fr/">DENSYS</a>, <a href="https://lct-master.org/">LCT</a>, <a href="https://genial.univ-lorraine.fr/">GENIAL</a>, <a href="https://www.emlex.phil.fau.eu/">EMLex</a>),<strong>¹</strong> Nancy truly stands as the capital of EMJMD studies. And this can be a boon to one’s student life here since it means meeting a lot of mobility students who are precisely in your shoes. Further, as a university with more than 40,000 enrolled students, the <a href="https://www.facebook.com/Esnnancy/groups">Erasmus Students Network (ESN</a>) of Nancy is quite an active community with a good number of international students.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZfYjiLKFAMrEtJRcEGGdSQ.jpeg" /><figcaption>Bumping into the students of the DENSYS program in Strasbourg —we happened to have boarded the same train from Nancy that morning. Nancy hosts students from at least five different EMJMD programs.</figcaption></figure><h3>Putting it together</h3><p>Overall, the two year span of my EMJMD program turned out to be neither too long nor too short. Among the perks of my master’s journey include the breadth of knowledge about computer science domains gained from my coursework / internships, and about global culture and traveling gained on so many international dinner tables.</p><p>On a side note, the stars were aligned and I got opportunities to participate and win a leading British <a href="https://2021.hacktheburgh.com/">hackathon</a>, present my opinion on <a href="http://ethics4eu.eu/3rdworkshop/">Digital Ethics for EU</a> (my poster stood out first in the competition), work on the projects I cared about, and volunteer as the program representative for my EMJMD program. However, the experience overshadowing all these has been meeting a bunch of international friends — some of which turned out to be very special. I must admit that the past two years of my stay abroad have shaped me (and continue doing so) as a learner, a professional, and a human. That’s it on my journey. Wishing you the best on yours!</p><h4>Footnote</h4><p>[1] Five different Erasmus Mundus programs to the best of my knowledge. It is rumored that several others could be staying camouflaged in the city.</p><p>P.S., In case you’re wondering what the “EMA” in the title of this blog post stands for — it’s the <a href="https://www.em-a.eu/">Erasmus Mundus Students and Alumni Association</a>. They offer a range of volunteering opportunities which include serving as the representative for your program/country as well as in the domain of finances, IT, legal and internal affairs. Further, you might be invited to attend the annual EMA’s <a href="https://www.em-a.eu/general-assemblies">General Assembly</a> in person — a great networking opportunity!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ffa779171be8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Continual learning — where are we?]]></title>
            <link>https://medium.com/data-science/continual-learning-where-are-we-d5706e78a295?source=rss-7d059f9f2516------2</link>
            <guid isPermaLink="false">https://medium.com/p/d5706e78a295</guid>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[domain-adaptation]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[continual-learning]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Saurav Jha]]></dc:creator>
            <pubDate>Wed, 16 Sep 2020 21:22:22 GMT</pubDate>
            <atom:updated>2021-07-16T14:00:08.859Z</atom:updated>
            <content:encoded><![CDATA[<h3>Continual learning — where are we?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*ul9R1EYmppTiTpeO8eGOcw.jpeg" /><figcaption><a href="https://www.flickr.com/photos/121186423@N04/50653514297/in/photolist-2kb5v4p-8ojvNz-bvCfkg-dsyg1G-CZ4RY-gNjxWB-6jKCWG-vbQDGZ-7kw7AS-8LyV8g-vbQDtT-ddypn-2kM32gk-ddyoC-65XXyG-6CF9M3-Di42Wr-a7jmSK-7jXxpe-adDot6-4CD1nY-5nPGVA-wXYXi-26gezah-5n8dew-27RDc9C-26ge98Y-29HJU91-2bBVhrQ-Mg4soo-27EEy1b-4JkdF1-25raCX5-25donCP-8JChtr-9SmyuU-5Wu2DC-233jEmg-LysHyW-2jb4WQ9-BP39hB-2kj7NHv-EZ5vvA-8XgBHy-Ur3foH-Cm4Y6C-sQcbEn-E51kaP-F2opLF-6dx5jk">Image Source</a></figcaption></figure><p>As the deep learning community aims to bridge the gap between human and machine intelligence, the need for agents that can adapt to continuously evolving environments is growing more than ever. This was evident at the ICML 2020 which hosted two different workshop tracks on <a href="https://icml.cc/Conferences/2020/ScheduleMultitrack?event=5743">continual</a> and <a href="https://icml.cc/Conferences/2020/ScheduleMultitrack?event=5735">lifelong</a> learning. As an attendee, the key takeaways that I amassed and that I believe are going to shape the imminent developments in the field are two folds: (a) <em>experience replay</em> (whether real or augmented) is integral for optimal performances, and (b) a temporally evolving agent must be aware of <em>task semantics</em>. Throughout this blog post, I will try to shed light on the effectiveness of these traits for continual learning (CL) agents.</p><p><em>[Although a background on the above terms would help, the post is intended for readers with no prior knowledge of continual learning literature.]</em></p><p><strong>A quick refresher:</strong> In a task-incremental setup, a continuously learning agent at a time step <em>‘t’</em> is trained to recognize the tasks <em>1, .., t-1, t</em> while the data for the tasks <em>1, …, t-1</em> may or may not be available. Such learning dynamic has two main hurdles to overcome. The first of these being <em>forward transfer (FT)</em> which measures how learning incrementally up to task <em>t</em> influences the agent’s knowledge about it. In terms of performance, a <strong>positive</strong> FT suggests that the agent should deliver better accuracy on the task <em>t </em>if allowed to learn it incrementally through tasks <em>1, …, t-1</em>.</p><p>The other desirable feature is the <em>backward transfer (BT) </em>which measures the influence that learning a task <em>t</em> has on the performance of a previous task. A <strong>positive</strong> BT means that learning a new task <em>t </em>would increase the performance of the model on the previously learned tasks <em>1, …, t-1</em>. This compromise between learning a new task while also preserving the knowledge on previously learned tasks is referred to as <strong>plasticity-stability</strong> trade-off.</p><figure><img alt="Three trade-offs for a continual learning agent" src="https://cdn-images-1.medium.com/max/346/1*d4cxP9zD0AB2PVgeglZxNA.png" /><figcaption>Three trade-offs for a continual learning agent: Scalability comes into play when a computationally efficient agent is equally desirable.</figcaption></figure><p>Based on the steps taken while training on an incremental task, continual learning literature comprises mainly of two categories of agents to handle the aforementioned trade-off: (a) <em>experience replay-based</em> agents usually store a finite amount of examples (either real or generative) from previous tasks and mix these together with the train data of the new task, and (b) <em>regularisation-based</em> methods use additional loss terms to consolidate previous knowledge. Keeping these in mind, let us now dive into the real questions!</p><h4>1. Why memory rehearsal-based methods work better?</h4><p>A spotlight in the field of CL at ICML 2020 was the work of Knoblauch <em>et al.</em> who by the means of set theory show that an optimal continual learning algorithm needs to solve the NP-hard problem of the set intersection decision problem, <em>i.e., </em>given two tasks A and B, it needs to discern the parameters that are common to learning of both A and B (A ∩ B). However, determining this is at least as hard as determining <a href="https://research.cs.queensu.ca/home/cisc365/2010F/365%20SetIntersectionNPC.pdf">whether A ∩ B is empty or not</a> (and can possibly be thought of as a generalization of the <a href="https://en.wikipedia.org/wiki/Exact_cover#Exact_hitting_set">Hitting Set Problem</a>?) and the solution requires a perfect memory of previous task examples.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/517/1*oU76_W9jcLz0m4EtZdIymw.png" /><figcaption>Image Source: Knoblauch <em>et al (2020). Left: an optimal CL algorithm searches for parameters satisfying the task distributions of all observed tasks. Right: Replay-based CL algorithms try to find the parameters that satisfy the reconstructed approximation — SAT(Q1:3) — of the actual task distributions (SAT1:3).</em></figcaption></figure><p>Such a perfect memory facilitates the reconstruction of an approximation for the joint distribution over all observed tasks so that the algorithm now effectively learns to solve a single temporally distributed task, <em>i.e., </em>for a time step <em>t</em>, this amounts to finding common representations across task distributions spanning over <em>1:t</em>. Our work from the CL workshop further advocates for the empirical effectiveness of replay-based methods in the context of human activity recognition [2].</p><p>Alongside set theory, the benefit of replay can also be looked at through the dynamics of parameter training by treating learning continuously as a <em>credit assignment problem</em>. As we know, gradient descent works by iteratively updating the parameters of a neural network with the objective of minimizing the overall loss on the train set. The training process can thus be viewed as a tug-of-war game where the objective function leads the values of each parameter to either increase or decrease, with a larger positive value indicating that the parameter should be assigned more credit and is more important.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/341/1*HDGRNNOfAGTZ2hmnwqxy7w.gif" /><figcaption>Image source: <a href="https://www.soccercoachweekly.net/soccer-drills-and-skills/tug-of-war-soccer-drill-to-build-teamwork/">Soccer Coach</a></figcaption></figure><p>At a given incremental time step, we can thus view each task as a team trying to pull the tug with a tension equivalent to the momentum that the training algorithm requires for minimizing the loss on the task. A repercussion of this is that at each incremental step, the model needs to be evaluated on all previous and current tasks so as to balance the tension. In case a given task is absent at a particular instance, the parameter space of the model will be updated to be occupied by the remaining tasks. The simultaneous presence of data from all previous tasks in experience replay-based methods thus helps at the better balancing of the tension among all sides of the tug-of-war game while no single task objective fully dominates over the training criterion.</p><h4>2. How task semantics affect the performance of a CL agent?</h4><p>A yet another highlight from the CL workshop has been the work of Ramesesh <em>et al.</em> (2020) investigating how the similarity between tasks influence the degree of forgetting. They conclude that a network has maximum forgetting when the similarity of representations between a previous task and a subsequent task is intermediate.</p><p>To understand this, we need to think CL of subsequent tasks in terms of the components of weight vectors learned by the model. For tasks that are unrelated, the learned weight vectors remain orthogonal to each other while for those with high similarities, the weight vector components have minimal angular separation. The only component of the weight vector <em>θ</em> that is affected by the gradient descent training is the component that lies in the training data subspace and the one that is least affected by the training is that orthogonal to the train data subspace (see the figure below adapted from their talk).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/322/1*nWOjcGYt73Kq8YNQvln2JA.png" /><figcaption>The components of the weight vector for a toy linear regression model</figcaption></figure><p>Ramesesh <em>et al.</em> offer two descriptive CL setups to support their hypothesis. In Setup 1, where the model is trained to classify ship-truck as the first task, and then cat-horse or plane-car as the second task, we see that the cat-horse recognition task suffers more forgetting. In setup 2, where the model is first trained to recognize deer-dog-ship-truck, followed by plane-car recognition, the performance degrades the most for ship-truck.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/871/1*p8gEmmv4rzkzJ130Uaqdkg.png" /><figcaption><em>Two incremental learning setups of Ramasesh et al. (2019): (a) Setup 1 trains the model first on the ship-truck classification problem followed by Task 2 which can be either cat-horse or plane-car classification, (b) Setup 2 trains the model to recognize deer, dog, ship and truck first followed by plane-car recognition.</em></figcaption></figure><p>The authors make a point that in setup 1, the model builds its representations only for vehicles, and thus the increasingly dissimilar representations for animals (cat-horse) in the second task cause more forgetting of the previously learned vehicle representations. Setup 2, however, involves training the model simultaneously on vehicles as well as animals, and thus the representations of animals now occupy a different region in the latent space than the vehicles. As a result, when presented with the latter task, the learned representations for animals are orthogonal to those for plane-car and suffer lesser degradation.</p><p>The rest of this section tries to explain this from a <em>transfer-interference</em> point of view. Riemer et al. (2019) were the first to look at continual learning from a transfer-interference trade-off viewpoint. To grasp this, let us first dive into the limitations of the <em>stability-plasticity</em> dilemma. As we saw before, the dilemma states that the stability of the learned model can be improved by reducing forgetting, <em>i.e., </em>so far it keeps a check on the transfer of weights due to learning of the current task while minimizing their interference due to the sharing of weights that are important to the previous tasks.</p><p>However, since we have limited knowledge of what the future tasks may look like, minimizing the weight sharing for previous tasks tackles only half the problem — a future task that is quite related to one of the previously learned tasks might demand further sharing of these weights and the model must be able to do so without disrupting the performance on the previous tasks. We notice that there is an obvious need to extend the temporal limitations of the stability-plasticity dilemma so as to account for the uncertainty from the future tasks.</p><p>Transfer-Interference trade-off takes care of the backward interference due to learning of an incremental task while also keeping check of the transfer of representations among weights so that they do not harm future learning. Riemer <em>et al. </em>thus show that tasks that are learned using the same weight components have a high potential for both interference and transfer between examples while those learned using dissimilar components suffer lesser transfer and interference.</p><p>Keeping the above point of view in mind, let us now look at the two CL setups of Ramasesh <em>et al.</em> In setup 1, the ship-truck classification task is dissimilar to the incremental cat-horse task and since the model tries to learn them using the same weight component, the high interference causes larger forgetting of the previous task.</p><p>In setup 2, however, we see that the model is forced to have a dissimilar representation for deer-dog than ship-truck. Since the representations for plane-car are more similar to the ship-truck classification task and are to be learned using the same weight component, this catalyzes the transfer of weights between them thus resulting in larger forgetting. On the other hand, the representations for deer and dog have components orthogonal to those of plane and car, and thus are unaffected by the inhibited transfer of weights between these.</p><p><strong>Conclusion:</strong> Put short, we saw how a continuously learning agent faces a credit assignment problem at each training step and how experience replay reinforces the credibility of each task in hand. Further, the semantics of the tasks play an important role in the amount of forgetting that an agent will suffer and this can be explained from the transfer-interference point of view. As the field continues sprouting towards large-scale and domain-independent learning, a better understanding of these trade-offs is indeed the key to more advanced training strategies such as meta-learners [3].</p><h4>References</h4><ol><li>Knoblauch, J., Husain, H., &amp; Diethe, T. (2020). Optimal Continual Learning has Perfect Memory and is NP-hard. <em>ArXiv, abs/2006.05188</em>.</li><li>Jha, S., Schiemer, M., &amp; Ye, J. (2020). Continual Learning in Human Activity Recognition: an Empirical Analysis of Regularization. <em>ArXiv, abs/2007.03032</em>.</li><li>Riemer, M., Cases, I., Ajemian, R., Liu, M., Rish, I., Tu, Y., &amp; Tesauro, G. (2019). Learning to Learn without Forgetting By Maximizing Transfer and Minimizing Interference. <em>ArXiv, abs/1810.11910</em>.</li><li>Ramasesh, V., Dyer, E., &amp; Raghu, M. (2020). Anatomy of Catastrophic Forgetting: Hidden Representations and Task Semantics. <em>ArXiv, abs/2007.07400</em>.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d5706e78a295" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/continual-learning-where-are-we-d5706e78a295">Continual learning — where are we?</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Visualizing the Scimago journal ranking database with Pandas]]></title>
            <link>https://medium.com/data-science/visualizing-the-scimago-journal-ranking-database-with-pandas-7e7aaad54904?source=rss-7d059f9f2516------2</link>
            <guid isPermaLink="false">https://medium.com/p/7e7aaad54904</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data-visualisation]]></category>
            <category><![CDATA[pandas]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[journal]]></category>
            <dc:creator><![CDATA[Saurav Jha]]></dc:creator>
            <pubDate>Fri, 22 Feb 2019 10:34:44 GMT</pubDate>
            <atom:updated>2019-02-25T08:22:33.922Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/757/1*aL-mHPQtsmws1niEtf72MQ.png" /></figure><blockquote><em>SCImago Journal Rank (SJR indicator) is a measure of scientific influence of scholarly journals that accounts for both the number of citations received by a journal and the importance or prestige of the journals where such citations come from.</em></blockquote><p>The <a href="https://www.scimagojr.com/">website</a> for scimago journal maintains thorough information on journal and country rankings. Unlike other similar sites, it further offers some peculiar visualization tools providing information visualization graphs on the structure of various sciences, real time and bubble chart maps built upon a range of indicators such as H Index, Total Documents, Citable Documents, Citations, Self-Citations, Citations per Document and Countries.</p><p><strong>In this blog post, I will be using Scimago’s database for creating similar visualizations alongside analyzing the curious trends that these visualizations shall unfold.</strong> The csv data file is available for download <a href="https://www.scimagojr.com/journalrank.php">here</a>. The libraries used are pandas, seaborn, matplotlib, and plotly. For the impatient souls, code with outputs can be found in <a href="https://github.com/Saurav0074/Just-a-Peek/blob/master/main.ipynb">this</a> jupyter notebook.</p><h3>Loading the database</h3><p>I use pandas for loading the csv file. The figure below shows various fields of the database:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zI1X3X1kjRiD3evS" /></figure><p>In the figure above, ‘title’ refers to the name of the publishing entity. These can be of types <em>journal, trade journal, book series</em> or <em>conference and proceedings</em>. Also, among listed are the <em>SCImago Journal Ranks (SJR)</em>, <em>country names</em> hosting these, the<em> publisher </em>organisation, the <em>categories</em> they belong to alongside other metrics.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/380/0*xf8b86tYwYdkHU65" /></figure><p>The figure on the left shows the number of columns and data types of the fields obtained by calling info() method on the data frame. We can observe that the database is pretty clean with only a few columns (SJR, Country, Publisher) containing missing values.</p><h3>Visualizing the H-index</h3><p>H-index refers to the journal’s number of articles (<em>h</em>) that have received at least h citations. With the elegance in its simplicity, H-index can be thought of as the most important metric of <a href="https://www.researchgate.net/post/Is_H-index_the_most_important_metric_of_publication_performance">publication performance today</a>.</p><p>Let us begin with visualizing the distribution of H-index values so as to infer all the possible occurring values and along with their respective frequencies. We can use Seaborn’s <a href="http://seaborn.pydata.org/generated/seaborn.distplot.html#seaborn.distplot">distplot</a> for this.</p><pre>sns.distplot(df.loc[df[&#39;Country&#39;] == &#39;United States&#39;][&#39;H index&#39;].dropna(), kde=True)<br>print(df.loc[df[&#39;Country&#39;] == &#39;United States&#39;][&#39;H index&#39;].dropna())</pre><p>The figures below show the distribution for the United States and India. The blue curves over the plots denote Gaussian kernel density estimates. We can easily infer a few sharp differences between the two. For instance, a majority of the Indian journals have H-index in the range 0–20 while those for the U.S. cover 0–100. Also, none of the Indian journals exceed the H-index of 200.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*mBpY85OWWpVwSQv8" /></figure><p>Moving further, I tried visualizing the number of total cites of each country (in the previous 3 years) compared to their total H-indices using bubble chart. For this, we need to impart sizes to the bubbles based on the total number of documents published by these countries in the last three years duration:</p><pre>plt.figure(figsize=(10,8))<br>sns.set_context(&quot;notebook&quot;, font_scale=1.1)<br>sns.set_style(&quot;ticks&quot;)</pre><pre>sizes = [10, 60, 90, 130, 200] <br>marker_size = pd.cut(df[&#39;Total Docs. (3years)&#39;]/10, [0, 40, 80, 120, 160, 200], labels=sizes)<br>sns.lmplot(&#39;H index&#39;, &#39;Total Cites (3years)&#39;, data ​=df, hue=&#39;Country&#39;, fit_reg=False, scatter_kws={&#39;s&#39;:marker_size})<br>plt.title(&#39;H index vs Total Cites (3 years)&#39;)<br>plt.xlabel(&#39;H index&#39;)<br>plt.ylabel(&#39;Total Cites&#39;)<br>plt.ylim((0, 50000))<br>plt.xlim((0, 600))<br>plt.savefig(&#39;sns.png&#39;)</pre><p>Due to the image size limitations of LinkedIn, I could not attach the entire image and have instead provided the google drive link. From the chart, we can easily distinguish the countries producing the top and the least citable documents. As expected, <em>United States </em>lies at the top, followed by the<em> United Kingdom, Netherlands, Austria, </em>and <em>Germany</em> while those at the bottom of the list are: <em>Zimbabwe, Vatican city, Fiji </em>and<em> Liechtenstein</em>. I also used plotly to obtain a similar yet more interactive chart. However, it was too heavy to be attached here as I experienced plotly’s page crashing multiple times while navigating through the interactive graph. (Any suggestions on alternatives are welcome.)</p><p><a href="https://drive.google.com/file/d/1ZnqdeWCC6WVmKAHF8u7bABd7MlvS2CEf/view?usp=drive_open&amp;usp=embed_facebook">hindex_vs_totalCites.png</a></p><h3>Visualizing the correlation amongst various metrics</h3><p>Next, we would like to learn the correlation patterns among the various metrics. This is where Seaborn’s <a href="http://seaborn.pydata.org/generated/seaborn.jointplot.html#seaborn.jointplot">jointplot</a> comes to rescue. Using jointplot, we can display data points according to two variables, both their distributions, kernel density estimators, and an optional regression line fitting the data:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*nZZFWedNeRfAocD6" /></figure><p>The graph (last sub-plot) shows the number of citable documents being highly correlated to the total number of references with a pearson correlation coefficient (pearsonr) of 0.78. Also, the regression line for their graph shows a strong upward tendency which explains that as the total number of references grow, the number of citable documents also witness an increase. Both these observations give worse results while evaluating H-index with respect to total documents, i.e. pearsonr = 0.35, and a regression line with a very small upward tendency.</p><p>Further on correlation, we can use Seaborn’s <a href="http://seaborn.pydata.org/generated/seaborn.heatmap.html#seaborn.heatmap">heatmap</a> to visualize the correlation among multiple metrics of the dataframe at once. This can be achieved using <a href="https://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.corr.html">corr()</a> method called upon pandas dataframe which calculates correlation coefficients between all couples of numeric columns of the DataFrame using one of the specified methods (Pearson, by default).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/466/0*6wPHET54b5yCmXbY" /></figure><p>One particular trend to be noticed is that the no. of citable documents are nearly in perfect correlation with the total no. of documents published. However, neither of these metrics have a strong impact on the H-index. The best possible metric affecting the H-index of a journal thus could be thought of as the <strong>total number of cites the journal has received</strong>.</p><p>The trend in above heat map when supported by the observations of the joint plots could suggest the intrinsic flaw in the calculation of H-index, as stated in <a href="http://pubs.sciepub.com/bb/1/2/2/index.html"><em>Ramana et. al. (2013)</em></a><em>:</em></p><blockquote><em>Despite a large number of your papers being heavily cited (total cites, in our case), it considers only those papers that are cited to a minimum number as your h-index and for your h-index to improve, citations of your other papers should also increase.</em></blockquote><h3>Visualizing the countries</h3><p>We have been studying the relationships among pairs of various numeric metrics till now. So far, that&#39;s all good. But what if we want to know the trend in these metrics for the individual countries (or, for some third feature)?</p><p>One solution to this is using <a href="https://seaborn.pydata.org/generated/seaborn.pairplot.html">pairplots</a>. Pairplots are important in case of exploring correlations between multidimensional data, when we might to plot all pairs of values against each other. For my purpose, I chose the first 1000 instances of the CSV file while specifying the values of the field ‘Country’ in order to map plot aspects to different colors:</p><pre>sns.pairplot(df[:1000], hue=&#39;Country&#39;, size=2.5)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_iyK-wRx7jzh3Z0o" /></figure><p>We can now study the performance of the individual countries. Here are some quick inferences:</p><ul><li>The countries lying in the pink spectrum (Bulgaria, Canada and India) can be seen to have lower H-index and citable documents, those in the blue-green spectrum have moderate while the orange-red spectrum denotes the highest performing countries.</li><li>The graphs along the diagonal can be seen to consist of bar plots so as to show the univariate distribution of the data for the respective variables in that column.</li><li>The perfect correlation that we observed between the no. of citable documents and the total no. of documents published holds here too as we can see that most of the data points (i.e., countries) are concentrated along the diagonal line in the above graph (fifth row, last column). This means that we can fit a smooth regression line along the diagonal in order to cover the majority of the data points.</li></ul><h3>Visualizing the categories</h3><p>We might as well like to know more about the different category of sciences mentioned in the database. However, the category cells host multiple semi-colons separated fields. Therefore, I first replicated the rows based on the different ‘;’ separated values in the categories.</p><pre>new_df = pd.DataFrame(df.Categories.str.split(&#39;;&#39;).tolist(), index=df.Country).stack()<br>new_df = new_df.reset_index()[[0, &#39;Country&#39;]] <em># categories variable is currently labeled 0</em><br>new_df.columns = [&#39;Categories&#39;, &#39;Country&#39;] <em># renaming categories</em><br>new_df = new_df.dropna()<br>new_df.info()<br>new_df.head()</pre><p>Now, let us observe the categories with the most and the least number of publishing entities. For this, we need to convert the string values for the Categories into numeric. Pandas has an inbuilt method for this purpose: value_counts() returns the count of unique values in a pandas series.</p><pre>fig, ax = plt.subplots()<br>new_df[&#39;Categories&#39;].value_counts()[:20].plot(ax=ax, kind=&#39;bar&#39;)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*UirII5kQ82j8iWEP" /></figure><blockquote>As expected, computer sciences atop!</blockquote><p>Also, the aforementioned visualizations can be carried out with this new data frame as well.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7e7aaad54904" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/visualizing-the-scimago-journal-ranking-database-with-pandas-7e7aaad54904">Visualizing the Scimago journal ranking database with Pandas</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hierarchical RNNs, training bottlenecks and the future.]]></title>
            <link>https://medium.com/data-science/hierarchical-rnns-training-bottlenecks-and-the-future-415788192773?source=rss-7d059f9f2516------2</link>
            <guid isPermaLink="false">https://medium.com/p/415788192773</guid>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[recurrent-neural-network]]></category>
            <category><![CDATA[computational-linguistics]]></category>
            <category><![CDATA[naturallanguageprocessing]]></category>
            <dc:creator><![CDATA[Saurav Jha]]></dc:creator>
            <pubDate>Fri, 15 Feb 2019 10:49:08 GMT</pubDate>
            <atom:updated>2021-07-16T13:54:19.750Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*bLlEjwU5tGOX_M0edysdGQ.jpeg" /><figcaption><a href="https://www.flickr.com/photos/hellowchan/28511137926/in/photolist-Krr2Zy-FN8VyT-2kW7Kb2-7nZoqk-2kXPPf2-2hPvCRu-2hTpPSv-E1zfwC-2hEuPYk-rooNSX-DE7eLn-LH8xdq-upDP2Q-DRqd47-2j1jwH6-SZ8Qku-rgst9T-qY9o3R-Q5Dm3y-dMScTp-QPTRJd-8ZqYWa-8Z6LQy-H91VSN-e3y9Bz-NLYJZa-zdWLTe-HFd8nY-2kh1Lnc-qegMZY-2dUgATk-2iTSLHJ-2kLyWUC-dAU1xB-6fZ2Ms-2kZ5bup-2kF1NGy-26c1Xq1-HqeLa3-zvF9rU-H7aWrz-TSpkPs-bTksTK-9rX2Mt-STEyvz-Mw4qXz-Ree9bZ-2irHnhi-oCn7se-s3Chhj">Image source</a></figcaption></figure><p>As we know, the standard backpropagation algorithm is the most efficient procedure to compute the exact gradients of a loss function in a neural network with respect to its parameters. By efficient, I mean that given a fixed network architecture, its computational cost remains always the same as that of computing the loss (for instance, given a feed forward network of 4 layers with i, j, k, and l nodes respectively, the total time complexity for one epoch with ‘t’ training instances will always be <a href="https://ai.stackexchange.com/questions/5728/time-complexity-for-training-a-neural-network">O(t*(ij + jk + kl))</a>).</p><p>The axiom of differentiability and continuity tells us that for a function to be differentiable at a point <em>x_</em>0, it must be continuous at every point in its domain. This further demands that all the parameters involved in the backprop. must possess continuous values. However, the case might not be the same every time; we might instead desire for a network composing neurons that take hard stochastic decisions about temporal events at different time scales — a 0/1 value denoting a word/phrase boundary in a text or the end of a story segment in a video. Such binary outputs further introduce sparse representations which could serve as a regularization technique, thus allowing to design gating units to select which part of the model actually needs to be computed for a given instance.[1]</p><p>This can be explained with the following example. Let, x be the input to a neuron whose value decides whether the neuron outputs a spike (1) or not (0). One way to define the function <em>f </em>is the binarized ReLU activation:</p><blockquote>f(x) = {1 if x ≥ 0 else 0</blockquote><p>We can then observe that the derivatives of <em>f</em> are 0 everywhere but the threshold, i.e., 0 where it equals ∞. This means that any gradient-based learning would be impossible at these points while training the network with <em>f</em> since the weights would be multiplied with zero gradients, thus witnessing no update. Thus, backpropagation fails !</p><p><strong>ℚ. Wait, but what kind of networks could possibly require such neurons?</strong></p><p>That’s exactly what takes us to our deal — hierarchical recurrent neural networks (HRNNs). Put short, HRNNs are a class of stacked RNN models designed with the objective of modeling hierarchical structures in sequential data (texts, video streams, speech, programs, etc.). In context of texts, these hierarchies could constitute characters at the lowest level combining to form words, words combining to form sentences, while in the context of computer programs, these could refer to modules calling a sub-module. The key idea, therefore, lies in updating the weights of neurons belonging to different layers of stack corresponding to the layers of hierarchies in the data.</p><p>So, how do we decide on the content belonging to different layers of the stack? One possible idea is to have the binary neurons, as described above, with a 0/1 output indicating whether the input at the current time step belongs to the same hierarchy as that of the previously processed inputs or not. Well, HRNNs are based on the same principle. Being able to capture such hierarchies is what helps them address the drawbacks of typical RNNs that can construct order-sensitive yet structure ignorant representations of words in texts.</p><p><strong>ℚ. Okay, so how do we train networks requiring such binary decisions?</strong></p><p>So far, there exist two widely used methods for training such networks: (a) Gradient estimation techniques, that train binary neurons as an integral component of the network, and (b) Policy gradient-based reinforcement learning methods that bypass the necessity for binary neurons by instead creating a map of state-action pairs to decide on what action to take on observing a particular input. We shall go through both of them using two classes of HRNNs that can learn multi-layer abstractions in texts.</p><h3>1. Hierarchical Multiscale Recurrent Neural Networks (HM-RNN)</h3><p>The figure below depicts a clear structure of an HM-RNN model <strong>[1]</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/467/0*PU7uZVuCfPewy7kP" /></figure><p>In order to decide on the 0/1 boundary decision mentioned above, HM-RNN employs boundary detectors (say, <em>z</em>) at each layer. These adaptively determine update times for weights based on three operations:</p><ul><li><strong>UPDATE</strong>: similar to the usual update rule in LSTMs.</li><li><strong>COPY</strong>: retains the whole states of current layer without any loss of information, and</li><li><strong>FLUSH</strong>: ejects the summarized representation of the current segment to the upper layer followed by re-initialization of the states to process the next segment.</li></ul><p>It should have been clear by now that the boundary detectors are nothing but the same binary neurons we had been talking of earlier. But is there any other purpose that they possibly serve? The answer is yes, and depends upon the values of <em>z </em>at current time step <em>t </em>and the current layer <em>l</em> along with the previous time step <em>t-1</em> and layer <em>l-1</em>:</p><ul><li>If z = 0 at layer l and step t-1 and z = 1 at layer l-1 and step t, this means that a boundary has been detected at the lower layer (i.e., word ends) and therefore, an update is performed to reflect upon the summarized information obtained from the lower layer.</li><li>If z = 0 at (l, t-1) and (l-1, t), this means that no boundaries have been identified at either levels and thus, the COPY operation is performed to simply preserve the information from the prior neuron.</li><li>If z =1 at (l, t-1), this implies a boundary was detected at the previous time step (i.e, a phrase ended) and now, a FLUSH operation is performed to transmit the representation of the current neuron to an upper-layer neuron while re-initializing its cell state.</li></ul><p>Thus, the use of boundary detector eliminates the update operations at each time step. Since, the UPDATE action comprises a major portion of the operational complexity in an RNN cell, omitting it imparts a good gain on the overall time cost <strong>[2]</strong>. Now, the question remains: how do we compute the gradient of the boundary detector neuron (0/1 output)?</p><p>This is where <strong>straight-through estimator</strong> comes into play. The idea is pretty simple. Let us recall the function <em>f</em> we defined above. We now carry a two-step tweak for training:</p><ol><li>During the forward pass, we keep the output of the neuron as it is. As the output consists of 0/1 values, we can elegantly replace most arithmetic operations with bit-wise operations. Thus, binary neurons are known to drastically reduce memory size and accesses <strong>[3]</strong>.</li><li>During the backward pass, instead of computing the derivative of <em>f,</em> we set its incoming gradients to a threshold function equal to its outgoing gradients. Since the backward pass involves setting the gradients to a fixed value, straight-through estimators fall into the category of biased estimators.</li></ol><h3>2. Hierarchically Structured LSTMs (HS-LSTMs):</h3><p>Having studied the essentials of HMRNN, let us now go through the other model, viz. HS-LSTMs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*93c410vFnlFOMVOS" /></figure><p>The framework <strong>[4]</strong> consists of three components: the Structured Representation network assigns a state ’s’ to each input word and receives feedback from the Policy network (P-net) that samples an action ’a’ at each state based on a stochastic policy π(α|s;θ). The two structured representation models used are: information distilled LSTM (ID-LSTM) and HS-LSTM, both of which translate the actions into structured representations. The Classification network (C-net) then employs the learned representations to make predictions and delivers reward accordingly to the P-net for the learning of a policy.</p><p>Coming back to the HS-LSTM, the model has a similar architecture to the aforementioned HRNNs. However, instead of a 0/1 boundary detector, we now rely on a policy gradient method that gradually learns a policy to choose better actions (i.e., either an END of phrase or INSIDE the phrase) for each state (i.e., word). The HS-LSTM determines a structured representation for a sentence only after the p-net has sampled actions for all its words. The p-net thus operates on a <a href="https://www.cs.cmu.edu/afs/cs/project/jair/pub/volume4/kaelbling96a-html/node16.html">delayed reward</a> strategy.</p><p>The next vital step is the use of <strong>REINFORCE</strong> algorithm which is a gradient-based technique to update the policy weights by increasing the probability that a policy will make a rewarding action given a state:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eppk7FD3yXyljLCbyvPDNw.png" /></figure><h3>The Future</h3><p>To summarize, we saw that the family of hierarchical RNNs, with an end goal of capturing hierarchies in temporal sequences, rely on identifying boundaries to segregate multiple layers of hierarchy. At the fundamental level, the objective is to model the compositionality in the underlying data. As explained elegantly in a very recent <a href="https://thegradient.pub/the-limitations-of-visual-deep-learning-and-how-we-might-fix-them/">blog post</a> by <a href="http://www.cs.jhu.edu/~ayuille/">Alan L. Yuille</a>, a Bloomberg distinguished professor of Cognitive Science, <strong><em>compositional models</em></strong> work by learning structured representations of structures and sub-structures of the data. Due to the combinatorial explosion problem arising in most real-world data, the principle of compositionality aims to develop models that are interpretable and can generate samples thus making the errors easier to be diagnosed. While this property has been found to be of great help in the field of Vision (by introducing robustness to adversarial attacks), the field of NLP too has a foreseeable benefit.</p><blockquote>“The world is compositional or God exists.” — Stuart Geman</blockquote><p>At this point, you must be wondering what made me arrive at the compositionality principle while concluding this post. In fact, there is a deep-seated link between the structured representations that the hierarchical RNNs intend to capture and the compositional semantics [3] that we are talking of. And this brings us to our final destination — <strong><em>the distributional hypothesis</em></strong>. The hypothesis, in terms of the semantic theory of language, states that a word is characterized by the company it keeps. Thus, words that are used in the same context tend to profess similar meanings. Thinking this in terms of the substructures that we identify through hierarchical RNNs gives a clear view. Each substructure/phrase can now be thought of words that carry similar distributions and are semantically coherent. Consequently, it is evident that compositional models such as the Neural Module Networks <strong>[5]</strong> — models composing collections of jointly-trained neural modules with an architecture flexible enough to capture the representational capacity of deep networks and the compositional linguistic structure in texts, could be a possible future to hierarchical recurrent neural networks!</p><h3>References:</h3><p>[1] Chung, J., Ahn, S., &amp; Bengio, Y. (2017). Hierarchical Multiscale Recurrent Neural Networks. <em>CoRR, abs/1609.01704</em>.</p><p>[2] Zhang, S., Wu, Y., Che, T., Lin, Z., Memisevic, R., Salakhutdinov, R., &amp; Bengio, Y. (2016). Architectural Complexity Measures of Recurrent Neural Networks. <em>NIPS</em>.</p><p>[3] Hubara, I., Courbariaux, M., Soudry, D., El-Yaniv, R., &amp; Bengio, Y. (2016). Binarized Neural Networks. <em>NIPS</em>.</p><p>[4] Zhang, T., Huang, M., &amp; Zhao, L. (2018). Learning Structured Representation for Text Classification via Reinforcement Learning. <em>AAAI</em>.</p><p>[5] Andreas, J., Rohrbach, M., Darrell, T., &amp; Klein, D. (2016). Neural Module Networks. <em>2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR)</em>, 39–48.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=415788192773" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/hierarchical-rnns-training-bottlenecks-and-the-future-415788192773">Hierarchical RNNs, training bottlenecks and the future.</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>