<?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 Istabrak Abbes on Medium]]></title>
        <description><![CDATA[Stories by Istabrak Abbes on Medium]]></description>
        <link>https://medium.com/@istabrak.abbes_65953?source=rss-f618e333663e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*Vrr9WQ-6wLLXg2S7</url>
            <title>Stories by Istabrak Abbes on Medium</title>
            <link>https://medium.com/@istabrak.abbes_65953?source=rss-f618e333663e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 16:52:31 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@istabrak.abbes_65953/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[Revisiting Replay and Gradient Alignment for Continual Pre-Training of Large Language Models]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-snippet">Introduction&#xA0;:</p><p class="medium-feed-link"><a href="https://medium.com/@istabrak.abbes_65953/revisiting-replay-and-gradient-alignment-for-continual-pre-training-of-large-language-models-591d9988e274?source=rss-f618e333663e------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@istabrak.abbes_65953/revisiting-replay-and-gradient-alignment-for-continual-pre-training-of-large-language-models-591d9988e274?source=rss-f618e333663e------2</link>
            <guid isPermaLink="false">https://medium.com/p/591d9988e274</guid>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[lifelong-learning]]></category>
            <category><![CDATA[continual-learning]]></category>
            <category><![CDATA[pretrained-model]]></category>
            <category><![CDATA[pre-training]]></category>
            <dc:creator><![CDATA[Istabrak Abbes]]></dc:creator>
            <pubDate>Sat, 09 Aug 2025 23:54:57 GMT</pubDate>
            <atom:updated>2025-08-09T23:54:57.867Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[DoRA: Weight-Decomposed Low-Rank Adaptation ( A variant of LoRA )]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@istabrak.abbes_65953/dora-weight-decomposed-low-rank-adaptation-a-variant-of-lora-aa9334da6da8?source=rss-f618e333663e------2"><img src="https://cdn-images-1.medium.com/max/600/1*ufu-Mbroq7IdVUkEkHjq3A.png" width="600"></a></p><p class="medium-feed-link"><a href="https://medium.com/@istabrak.abbes_65953/dora-weight-decomposed-low-rank-adaptation-a-variant-of-lora-aa9334da6da8?source=rss-f618e333663e------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@istabrak.abbes_65953/dora-weight-decomposed-low-rank-adaptation-a-variant-of-lora-aa9334da6da8?source=rss-f618e333663e------2</link>
            <guid isPermaLink="false">https://medium.com/p/aa9334da6da8</guid>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[large-language-models]]></category>
            <category><![CDATA[llm]]></category>
            <dc:creator><![CDATA[Istabrak Abbes]]></dc:creator>
            <pubDate>Fri, 01 Mar 2024 20:35:04 GMT</pubDate>
            <atom:updated>2024-03-03T09:38:09.899Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[RAG Explained]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@istabrak.abbes_65953/rag-explained-40b38526b7fa?source=rss-f618e333663e------2"><img src="https://cdn-images-1.medium.com/max/1200/0*gFrEzXyHlMg49Id1.png" width="1200"></a></p><p class="medium-feed-snippet">In your interactions with ChatGPT, you may have encountered statements prefaced by &#x201C;I&#x2019;m sorry, but as of my last update in January 2022,&#x201D;&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/@istabrak.abbes_65953/rag-explained-40b38526b7fa?source=rss-f618e333663e------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@istabrak.abbes_65953/rag-explained-40b38526b7fa?source=rss-f618e333663e------2</link>
            <guid isPermaLink="false">https://medium.com/p/40b38526b7fa</guid>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[rags]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[chatbots]]></category>
            <dc:creator><![CDATA[Istabrak Abbes]]></dc:creator>
            <pubDate>Mon, 26 Feb 2024 03:19:27 GMT</pubDate>
            <atom:updated>2024-02-26T03:19:27.644Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Sharpness Aware Minimization]]></title>
            <link>https://medium.com/@istabrak.abbes_65953/sharpness-aware-minimization-bb565251f874?source=rss-f618e333663e------2</link>
            <guid isPermaLink="false">https://medium.com/p/bb565251f874</guid>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[continual-learning]]></category>
            <category><![CDATA[sharpness]]></category>
            <category><![CDATA[lifelong-learning]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Istabrak Abbes]]></dc:creator>
            <pubDate>Tue, 25 Jul 2023 14:11:29 GMT</pubDate>
            <atom:updated>2023-07-25T14:20:22.633Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*U8nxiMwSg8Avm2DG" /><figcaption>Photo by <a href="https://unsplash.com/@theshubhamdhage?utm_source=medium&amp;utm_medium=referral">Shubham Dhage</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>“Sharpness-Aware Minimization for Efficiently Improving Generalization” (2020):</p><p><a href="https://arxiv.org/abs/2010.01412">Sharpness-Aware Minimization for Efficiently Improving Generalization</a></p><h3>What is a sharp point and why is it important?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/553/1*4fd859sMpg5PUjy0WzRpgw.png" /></figure><p>As the picture shows, sharp minimum correspond to high curvature and low curvature correspond to flat minimum. In order to prevent overfitting, in traditional machine learning we try to work with flat minimum.To get flatten minima:</p><ul><li>we vary hyper-parameters: batch size, learning rate, and dropout regularization (Xie et al., 2021).</li></ul><p>But, can we search for the best hyperparameters in a continual learning context? Obviously, the answer is no because we don’t know the apriori.</p><p>To address this limitation, in this paper, the authors optimize the loss sharpness (alternatively flatter minima) during lifelong learning as follow:</p><p>We try to encourage the model to optimize along directions where the loss function has low curvature and discourage updates in directions with high curvature.</p><p>Sharpness-Aware Minimization (SAM) procedure to simultaneously minimize task loss value and loss sharpness.</p><h3>SAM STEPS</h3><p>SAM searches for parameters that lie in neighborhoods with uniformly low loss regions, right? So we are trying to minimize the following loss sharpness (for model f with parameters w)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/244/1*wseaCFGFvG8r9_uapSlSvQ.png" /></figure><p>where ε (epsilon) represents a small perturbation to the model’s parameters. The term “f(w + ε)” refers to the loss value when the parameters are perturbed by a small amount ε, and “f(w)” is the loss value at the current parameters “w”.</p><p>The maximization region is defined as a 2-ball (a ball in two-dimensional space) centered at “w” with a radius denoted by “ρ.” A 2-ball is simply a circle in two dimensions, and the radius “ρ” determines the size of the region that SAM considers around the current parameters.</p><p><strong>The optimization task is to find the value of “ε” that maximizes the difference between the loss at “w + ε” and the loss at “w,” while constraining the magnitude of “ε” to be within the ball with a radius ρ.</strong></p><p>Formally, the SAM procedure comprises solving the following minimax optimization problem:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/509/1*_eBQy2daKSCZ19fAUGa_8g.png" /></figure><p>In order to solve this optimization problem,</p><ol><li>we calculate the first-order Taylor expansion of f(w + ε) w.r.t. ε around 0 : f(w + ε) ≈ f(w) + ∇f(w)^T * ε</li><li>By substituting in the min max equation:</li></ol><p>min max [f(w) + ∇f(w)^T ε + λ||w||2²] subject to ||ε||2 ≤ ρ</p><p>3. We continue the calculation and we solve the Dual</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/717/1*qtAKsIp5TyZAn6FzrbaEEg.png" /></figure><p>dropping the second order gradient term:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/424/1*bO8Sj33wgTh8bGcVzhp4aQ.png" /></figure><h3>Algorithm</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/642/1*KgslnSfYZxFRprrucWOdfw.png" /></figure><h3>Ressources</h3><p><a href="https://arxiv.org/pdf/2010.01412v1.pdf">https://arxiv.org/pdf/2010.01412v1.pdf</a></p><p><a href="https://arxiv.org/abs/2207.04354">https://arxiv.org/abs/2207.04354</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bb565251f874" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is continual Learning?]]></title>
            <link>https://medium.com/@istabrak.abbes_65953/what-is-continual-learning-491ed9e3874d?source=rss-f618e333663e------2</link>
            <guid isPermaLink="false">https://medium.com/p/491ed9e3874d</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[catastrophic-forgetting]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[lifelong-learning]]></category>
            <category><![CDATA[continual-learning]]></category>
            <dc:creator><![CDATA[Istabrak Abbes]]></dc:creator>
            <pubDate>Sat, 22 Jul 2023 12:30:50 GMT</pubDate>
            <atom:updated>2023-07-22T13:25:50.165Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*I8xf0DtuYMxXPEpY" /><figcaption>Photo by <a href="https://unsplash.com/@possessedphotography?utm_source=medium&amp;utm_medium=referral">Possessed Photography</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>The definition of artificial intelligence is <strong>the simulation of human intelligence in machines that are programmed to think and</strong> act like humans <a href="https://www.investopedia.com/terms/a/artificial-intelligence-ai.asp">[1]</a>. But are we really simulating human intelligence?</p><h3>Human Learning Vs Machine Learning</h3><p><strong>Examples of Human Learning:</strong></p><ul><li>When a person moves to a new city, he adapts to the new environment.</li><li>Also, we learn a new programming language much faster than the first one.</li><li>We incrementally learn new things without forgetting previous knowledge</li></ul><p><strong>Machine Learning:</strong></p><ul><li>Supervised learning: learn on a fixed dataset with a fixed number of classes</li><li>Reinforcement learning: learn in stationary, self-contained environments</li><li>Gradient-based optimization assumes that the dataset is balanced (i.i.d.)</li><li>Machine learning leak of adaptation to new enviormnt and tasks</li></ul><h3>Motivation for Continual Learning</h3><p>The world is a constantly changing and non-stationary place. For instance, a machine learning model that classifies a dog and a Cat can be asked to classify between a dog, a cat, and torture. In such dynamic environments, Continual Learning becomes crucial. It involves learning from a sequence of tasks, one after the other, without having access to all tasks simultaneously, like in multi-task learning.</p><h3>Desiderata of Continual Learning</h3><p>Continual learning involves balancing objectives:</p><ul><li><strong>Minimal access to previous tasks: </strong>as the memory is limited, we cannot stock all previous data in the memory</li><li><strong>Minimal increase in model capacity and computation: </strong>we cannot add a model whenever a new task is demanded</li><li><strong>Fast adaptation and recovery: </strong>If a robot changes its environment, it must adapt to the new environment</li><li><strong>Minimizing catastrophic forgetting (CF): </strong>Training on new tasks should not significantly reduce the performance of previously learned tasks. ( I will be writing an article about catastrophic forgetting soon but the idea is that in machine learning, when we learn a new task, we forget the previous tasks )</li><li><strong>Maintaining plasticity:</strong> The model should keep learning whenever a new task is observed.</li></ul><h3>Approaches to Continual Learning</h3><p>The Continual Learning approaches can be divided into three categories:</p><ol><li><strong>Regularization Techniques: </strong>Methods like Elastic Weight Consolidation (EWC) and Synaptic Intelligence introduce regularization terms to protect important parameters learned during previous tasks.</li><li><strong>Replay Methods: </strong>These approaches store a subset of previous data to periodically retrain the model on both old and new samples.</li><li><strong>Parameter isolation methods: </strong>is divided into<strong> </strong>Dynamic networks which can grow or adapt their architecture based on the complexity of new tasks, allowing the model to allocate more resources for crucial information and Fixed networks.</li></ol><h3>Conclusion:</h3><p>Continual learning is the missing piece in modern machine learning pipelines.</p><p>In the next few articles, we will be discussing continual learning approaches in detail, metrics, and benchmarks.</p><h3>Reference</h3><p>[1] <a href="https://www.investopedia.com/terms/a/artificial-intelligence-ai.asp">https://www.investopedia.com/terms/a/artificial-intelligence-ai.asp</a></p><p>[2] <a href="https://www.cs.hhu.de/fileadmin/redaktion/Fakultaeten/Mathematisch-Naturwissenschaftliche_Fakultaet/Informatik/Dialog_Systems_and_Machine_Learning/ContinualLearningPresentation.pdf">https://www.cs.hhu.de/fileadmin/redaktion/Fakultaeten/Mathematisch-Naturwissenschaftliche_Fakultaet/Informatik/Dialog_Systems_and_Machine_Learning/ContinualLearningPresentation.pdf</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=491ed9e3874d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>