<?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 Saumya Pandey on Medium]]></title>
        <description><![CDATA[Stories by Saumya Pandey on Medium]]></description>
        <link>https://medium.com/@saumya.april1?source=rss-b59ff01e331------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*iLhNC2Iaz1y_753nxYJlGg@2x.jpeg</url>
            <title>Stories by Saumya Pandey on Medium</title>
            <link>https://medium.com/@saumya.april1?source=rss-b59ff01e331------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 20:25:23 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@saumya.april1/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[   ]]></title>
            <link>https://medium.com/@saumya.april1/-c4f9bba890ca?source=rss-b59ff01e331------2</link>
            <guid isPermaLink="false">https://medium.com/p/c4f9bba890ca</guid>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[transformer-model]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[generative-ai-tools]]></category>
            <dc:creator><![CDATA[Saumya Pandey]]></dc:creator>
            <pubDate>Sat, 06 Dec 2025 12:55:04 GMT</pubDate>
            <atom:updated>2025-12-06T18:23:38.589Z</atom:updated>
            <content:encoded><![CDATA[<p>From GPT-3 to Agentic AI — And the World We’ve Already Stepped Into</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/848/1*TW5iqhe2zQEQ-vQ9LbHR_Q.png" /></figure><blockquote>We blinked — and GPT-3 became GPT-4.<br>We blinked again — and open source models were here.<br>It feels like AI didn’t arrive slowly.<br>It arrived all at once.<br>Though it all started in the early 1900s, it is hard to deny the fact that in recent years, there has been the fastest technological shift of our lifetime.</blockquote><p>Here’s a crisp map of where we started, what we built, and where we are:</p><h4>The Slow Build (2020–2022)</h4><ul><li><strong>GPT-3</strong> made its entry, marking a major step in natural language generation.</li><li><strong>BERT -&gt; RoBERTa -&gt; DeBERTa</strong> refined the understanding.</li><li>The momentum was forming.</li></ul><h4>2022: The pivotal moment</h4><p><strong>ChatGPT</strong> was launched.<br>That’s when even non-techie was curious and amazed about AI. <br>AI went mainstream overnight!</p><p>People realized that the scope that was just in talks, was now reality.</p><h4>2023: The Explosion</h4><blockquote>This was when it was not just a handful of entities or org that were contributing, the race was now global!!</blockquote><ul><li><strong>GPT-4</strong> rewrote what intelligence seemed.</li><li><strong>Claude</strong> made its entry with stable reasoning.</li><li><strong>LLaMA</strong> democratized access to powerful AI to developers and researchers with open weights.</li><li><strong>Falcon &amp; Mistral</strong> also joined the diversity.</li></ul><h4><strong>2024: Scale meets Speed</strong></h4><blockquote>Everything got faster, cheaper and lighter.</blockquote><ul><li><strong>GPT-4 Turbo &amp; 4o</strong> — Multimodal capabilities at scale</li><li><strong>Claude 3 (Opus, Sonnet) </strong>— Improved reasoning stability</li><li><strong>Gemini 1.5/2.0 </strong>— substantially large context window across modalities</li><li>Early AI agent like <strong>Devin and AutoGPT (</strong><em>AutoGPT was released in 2023</em><strong>)</strong></li></ul><p>This was the year that saw LLMs becoming infrastructure.</p><h4>2025: The Next Leap Forward</h4><blockquote>A year defined by sharper reasoning, efficient open models, and an era of AI agents that finally work in the real quotidian world.</blockquote><ul><li>OpenAI released <strong>GPT-5</strong> and upgraded o-series reasoning models, along with releasing open models <strong>GPT-OSS</strong>.</li><li>DeepSeek advanced efficiency with <strong>V3.1 </strong>and <strong>DeepSeek R1-Distill</strong></li><li><strong>Qwen3 series</strong> with specialities including MoE (Mixture-of-Experts) architecture, hybrid reasoning modes, superior agentic performance, long context window.</li><li><strong>Anthropic, Google, Meta, Mistral</strong> refine their flagship models, making them more stable, agentic ready, and multimodal.</li><li><strong>Cohere</strong> brought advancement in agentic AI and introduced <strong>Command A</strong> reasoning model.</li></ul><p><em>Today, AI is no longer speculative.</em></p><ul><li><em>It is fully operational.</em></li><li><em>It is multimodal.</em></li><li><em>It is embedded in our everyday workflows.</em></li></ul><p><em>Its growth in recent years has become exponential, which is both overwhelming and extraordinary!!</em></p><p><em>In 2023 we were building chatbots and just in a few years, by 2025, developing agentic, multimodal, and increasingly autonomous systems. We are literally living in a world where AI think with us, works with us, and builds with us. It no longer just predicts the next token. It goes far beyond that..</em></p><p><strong><em>Hope this quick article helped you pick up at least some speed with the developments in the world of LLMs.</em></strong></p><p><em>(PS: This article covers the major LLMs in recent years, though there are many more emerging across the ecosystem.)</em></p><p>Keep Learning!<br>Stay Happy •‿•</p><p>RESOURCES</p><ul><li><a href="https://www.anthropic.com/news/claude-3-family">https://www.anthropic.com/news/claude-3-family</a></li><li><a href="https://blog.google/technology/ai/google-gemini-next-generation-model-february-2024/">https://blog.google/technology/ai/google-gemini-next-generation-model-february-2024/</a></li><li><a href="https://huggingface.co/Qwen/Qwen3-8B">https://huggingface.co/Qwen/Qwen3-8B</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c4f9bba890ca" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[JEPA — Joint Embedding Predictive Architecture]]></title>
            <link>https://medium.com/@saumya.april1/jepa-joint-embedding-predictive-architecture-5b1ee798c8b7?source=rss-b59ff01e331------2</link>
            <guid isPermaLink="false">https://medium.com/p/5b1ee798c8b7</guid>
            <category><![CDATA[representation-learning]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[transformers]]></category>
            <category><![CDATA[yann-lecun]]></category>
            <dc:creator><![CDATA[Saumya Pandey]]></dc:creator>
            <pubDate>Sun, 09 Nov 2025 23:46:37 GMT</pubDate>
            <atom:updated>2025-11-10T00:17:25.211Z</atom:updated>
            <content:encoded><![CDATA[<h3>JEPA — Joint Embedding Predictive Architecture</h3><p>What is this new thing “JEPA”? One of the pioneers in the field of AI, Yann LeCun proposed JEPA and he believes that this could be a potential seed for the next evolution of intelligence in machines.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z8XeWqIGYfm1eUXzLPAsYA.jpeg" /></figure><p><em>Let us try to go over JEPA in a simple, short and intuitive way so that it feels easy to grasp. :)</em></p><p><strong>Motivation:</strong><br>Humans build intuitive models, plan, remember, and reason without training their brains on huge data. This is not yet achieved by machine intelligence. Machines cannot think the way humans are capable of. And this is the very motivation behind JEPA, a framework proposed by LeCun as a promising step towards truly intelligent systems.</p><p>We have sure come so far in AI, which is so amazing. For instance, we have <strong>Transformers</strong> and they have proved to be quite the game changers in recent years. But they cannot be called intelligent. For example, they are great at pattern prediction.<br>BUT, there are limitations:<br>1. They lack real-world understanding, and they often hallucinate.<br>2. They rely heavily on massive datasets.<br>3. They are unable to model deep structure, and are limited to modeling surface correlations.<br>This is where JEPA comes to the scene.</p><blockquote>“The idea that humans, animals, and intelligent systems use world models goes back many decades in psychology and in fields of engineering such as control and robotics.”<br>- Professor Yann LeCun</blockquote><p><strong>The Core Idea:<br></strong>JEPA predicts representations — high-level abstract embeddings. These embeddings capture the meaning of data.</p><p><strong>Let us see how it works:</strong><br>The model receives two related inputs (for eg., sequential frames in a video). Then it learns to:<br><strong>1) </strong>encode each input into compact, abstract representations.<br><strong>2) </strong>It predicts the next representation from the current representation<br><strong>3) </strong>It focuses on the essential part while ignoring the irrelevant ones<br><strong>4) </strong>It models missing factors with latent variables that helps in handling uncertainty<br>So, as we see from above, <em>the aim is to get the essence rather than focusing on memorizing the pixel values. This is an effort to replicate how human perception works.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/626/1*tVwNXlAgIYYw58zLbDXLnA.png" /></figure><p><strong>Well, Abstract Prediction matters! </strong>The focus of JEPA is on:<br>1) Semantics<br>2) Structure<br>3) Dynamics<br>4) Causal Relations<br>It <strong>learns how the world works</strong> rather than just the superficial part as in how it looks.</p><p><strong>Vision:<br>JEPA</strong> is a part of an umbrella vision of <strong>objective-driven autonomous intelligence</strong> that consists of:<strong><br>1) </strong>Perception modules that build state representation<strong><br>2) </strong>Cost modules that evaluate potential actions<strong><br>3) </strong>Actor modules that make decisions<strong><br>4) </strong>World models that simulate outcomes<strong><br>5) </strong>Memory systems that store experience and context<strong><br>6) </strong>Configurators that orchestrate all components</p><blockquote>Neuroscience, Psychology, and control theory are the three major players that inspire JEPA architecture. So, it is beyond just scale and compute.</blockquote><blockquote><strong><em>So, is JEPA going to achieve AGI (Artificial General Intelligence) ? <br>We don’t know yet. But we know that JEPA is going to be an important milestone when we achieve AGI. The approach of JEPA is indeed compelling and give the researchers a strong direction to work II..</em></strong></blockquote><p><strong>References</strong><br>[1]. <a href="https://ai.meta.com/blog/yann-lecun-advances-in-ai-research/">https://ai.meta.com/blog/yann-lecun-advances-in-ai-research</a><br>[2]. <a href="https://www.turingpost.com/p/jepa">https://www.turingpost.com/p/jepa</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5b1ee798c8b7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[In the Valleys, We Grow Stronger ✨]]></title>
            <link>https://medium.com/@saumya.april1/in-the-valleys-we-grow-stronger-a4788867abba?source=rss-b59ff01e331------2</link>
            <guid isPermaLink="false">https://medium.com/p/a4788867abba</guid>
            <dc:creator><![CDATA[Saumya Pandey]]></dc:creator>
            <pubDate>Thu, 09 Oct 2025 22:04:16 GMT</pubDate>
            <atom:updated>2025-10-09T22:06:06.657Z</atom:updated>
            <content:encoded><![CDATA[<p>I’ve always believed that life is a sinusoidal wave, with its highs and lows. And that’s what makes it a roller coaster ride. 🎢</p><p>Well, it’s easy to talk philosophy, but when we are at the minima of life’s graph, philosophy is often left for the books and sermons. But sometimes, going by that philosophy can change our mindset — and help a lot.</p><p>Not every journey is seamless. Sometimes, we experience unexpected detours — plans shift, desired opportunities pause, and the path ahead feels hazy. But the good news is — that’s when resilience enters the picture, in this so-called “movie of life.” 🎥</p><p>Actually, we’re all protagonists in our own stories. 🫶</p><p>It’s easy to stay motivated toward our ambitions when everything aligns. The real test — and real growth — happens when things are not conducive; when they fall apart, yet we keep going. 🏃‍♀️</p><p>Progress is not a straight line. It’s not glamorous — it’s showing up again and again, ignoring the noise, and staying true to the purpose.🌿</p><p>⭐️ Have faith in the long game. Be persistent with your purpose.</p><p>#Resilience #GrowthMindset #Persistence #Purpose #Motivation #LifeLessons #MentalHealth #MindsetMatters #KeepGoing #LongGame</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a4788867abba" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[gpt-oss-120b & gpt-oss-20b Models by OpenAI]]></title>
            <link>https://medium.com/@saumya.april1/gpt-oss-120b-gpt-oss-20b-models-by-openai-2631283ef7af?source=rss-b59ff01e331------2</link>
            <guid isPermaLink="false">https://medium.com/p/2631283ef7af</guid>
            <category><![CDATA[ai-tools]]></category>
            <category><![CDATA[gpt]]></category>
            <category><![CDATA[open-weight-model]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[openai]]></category>
            <dc:creator><![CDATA[Saumya Pandey]]></dc:creator>
            <pubDate>Mon, 11 Aug 2025 02:37:11 GMT</pubDate>
            <atom:updated>2025-08-11T02:37:11.837Z</atom:updated>
            <content:encoded><![CDATA[<p>The Recent Talk of the Town in AI</p><blockquote>gpt-oss-120b &amp; gpt-oss-20b are OpenAI’s Latest Open-Weight Reasoning Models. <br>📌You may download the 20b model <a href="https://huggingface.co/openai/gpt-oss-20b">here</a>. 🔗</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sYFvZd2TL-vO1X0vANHZeQ.png" /></figure><p>This blog comes in <strong>two flavors</strong> so everyone can dig in:<br><em>(Don’t worry, I have tried to make it short and crisp 🤓)</em></p><p><strong>Story Mode</strong> — a smooth, jargon-free ride for folks who just want the “what” and “why.”</p><p><strong>Tech Deep Dive</strong> — the same tale, but with all the gears, wires, and secret levers exposed.</p><blockquote>Just want the gist? Cruise in Story Mode.</blockquote><blockquote>Want to peek under the hood? Strap in for the Deep Dive.</blockquote><h3>Story Mode 📖</h3><p>Let’s begin with a little bedtime story (and yes, I mean the kind we used to hear before sleep — so get comfy!).</p><p>Once upon a time, in a dazzling city ✨,there lived mighty AI models in towering, grand castles 🏰. To speak with these models, visitors had to approach the magnificent front gate — the API — send their message, and wait patiently for a reply… hoping they might be granted another chance to send another.</p><p>In our real world, that city is <strong>OpenAI</strong>. And recently, the city has opened the gates to two of its grand castles: <strong>gpt-oss-120b</strong> and <strong>gpt-oss-20b</strong>. These are <em>open-weight</em> models — meaning you can take them home, explore how they think, and even teach them clever new tricks.</p><p><strong><em>gpt-oss-120b</em></strong> is the bigger, stronger sibling 💪— powerful but a bit demanding in resources.<br><strong><em>gpt-oss-20b</em></strong> is the lighter, more agile sibling ❄️— happy to run on a modest server.</p><p><em>(The numbers — </em><strong><em>20B</em></strong><em> and </em><strong><em>120B</em></strong><em> — represent how many parameters each has.)</em> Think of parameters as the model’s “brain cells.” The more parameters, the bigger and more capable the brain.</p><p>Both models are skilled at following instructions, reasoning, analyzing, and even using tools like web search or Python coding. They can adjust their thinking style for simple to moderately complex reasoning. Pretty cool, right?</p><p>But, as with all magical gifts, great power comes with responsibility…</p><ul><li>Once released into the world, these models can be used for both good and not-so-good purposes.</li><li>OpenAI says they don’t possess dangerous levels of skill in areas like biology, chemistry, or hacking — even if fine-tuned.</li><li>Still, it’s up to each of us to use them wisely and constructively.</li></ul><p>It’s a bit like giving someone a hypercar 🏎— thrilling and full of possibilities for a skilled, responsible driver… but reckless use can lead to disaster. Just like speed limits on the road, safety and responsibility aren’t optional — they’re essential.</p><p>Now, let’s move on to a bit technical version of the same story! 😎</p><h3>The technical Deep Dive 👩‍💻</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4Suifh8h6Bt6Kmbdy7CX8Q.png" /><figcaption>For gpt-oss-20b model</figcaption></figure><h3><strong>Core Architecture</strong></h3><ol><li>These models are <em>autoregressive transformers</em>: they read tokens from left to right and predict the next one using all tokens seen so far, also called growing history usage.</li><li>They also use <strong>Mixture-of-Experts (MoE)</strong> layers:</li></ol><ul><li>Each layer has many “experts” (for the 20B model, there are 32 experts).</li><li>A <em>router</em> scores each expert for the current token using a small projection (s = h Wᵣ).</li><li>The router picks the <strong>Top-k</strong> experts (e.g., 4) for that token.</li><li>Only those experts run, so you don’t compute all experts at once.</li></ul><p><em>(Basically, In Mixture of Experts (MoE) routing, each token’s hidden state </em><em>his passed through a learned projection </em><em>Wᵣto produce a score vector s, where each entry measures how relevant an expert is for that token; the router then selects the top-k experts with the highest scores, and only those experts’ feed-forward networks process </em><em>h; their outputs are then combined using weights obtained by normalizing the selected scores (typically via softmax), producing a weighted sum that becomes the token’s output, allowing the model to scale to many experts while keeping computation efficient.)</em></p><p>For instance, for the 20B model:</p><ul><li>Total parameters: ~20.9B.</li><li>Active parameters per token: ~3.6B</li></ul><h3><strong>Attention &amp; Context</strong></h3><ol><li><strong>RoPE</strong> (Rotary Position Embeddings): encodes position by rotating embedding dimensions with angles based on position — helps with generalizing to long text.</li><li><strong>YaRN</strong>: adjusts frequency scaling to prevent “position collapse” (where far-apart tokens start looking the same).</li></ol><h3><strong>Activations &amp; Efficiency</strong></h3><ul><li><strong>SwiGLU</strong> activation: improves gradient flow in MLPs.</li><li><strong>Grouped-Query Attention</strong>: saves memory by letting multiple queries share the same keys/values.</li><li><strong>MXFP4 quantization</strong>: uses ~4.25-bit precision for weights — lets the 20B model run on ~16GB VRAM.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WEk1jujCf2O3b_vjEMmzjw.png" /><figcaption><a href="https://openai.com/index/introducing-gpt-oss/">Source</a></figcaption></figure><h3><strong>Safety Profile</strong></h3><ul><li>Tested with OpenAI’s <em>Preparedness Framework</em> for bio/chem/cyber risks.</li><li>Even with adversarial fine-tuning, it didn’t hit “high capability” danger levels.</li><li>Responsibility for safeguards is on the deployer.</li></ul><h3><strong>Opportunities</strong></h3><ul><li><strong>Researchers</strong>: direct access, no API rate limits.</li><li><strong>Enterprises</strong>: can run locally for privacy-critical work.</li><li><strong>Developers</strong>: fine-tune for specialized agents or retrieval-augmented generation (RAG).</li></ul><p><strong>Trade-off:</strong> You get full control, but safety is now your responsibility. ⛑</p><blockquote>I hope this blog gave you a clearer picture of how open models work and helped demystify some of the ideas behind them.. 😀</blockquote><p><em>📌You may download the 20b model </em><a href="https://huggingface.co/openai/gpt-oss-20b"><em>here</em></a><em>. 🔗</em></p><p><strong>References:</strong><br><a href="https://openai.com/index/gpt-oss-model-card/?utm_source=chatgpt.com">https://openai.com/index/gpt-oss-model-card/?utm_source=chatgpt.com</a><br><a href="https://openai.com/index/introducing-gpt-oss/">https://openai.com/index/introducing-gpt-oss/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2631283ef7af" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A New Day..]]></title>
            <link>https://medium.com/@saumya.april1/a-new-day-aa8e14f431a1?source=rss-b59ff01e331------2</link>
            <guid isPermaLink="false">https://medium.com/p/aa8e14f431a1</guid>
            <category><![CDATA[newbegingings]]></category>
            <category><![CDATA[successful-entrepreneurs]]></category>
            <category><![CDATA[life]]></category>
            <category><![CDATA[mental-health]]></category>
            <category><![CDATA[success]]></category>
            <dc:creator><![CDATA[Saumya Pandey]]></dc:creator>
            <pubDate>Thu, 29 May 2025 07:30:54 GMT</pubDate>
            <atom:updated>2025-06-10T12:15:46.251Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CCqSxEykr-h4--oKKvZ2kA.jpeg" /></figure><p>Every day is a new day, yet it feels like the same old, quotidian piece of time. 🕛<br>Each sunrise☀️ presents a fresh opportunity, yet too often it slips by as just another ordinary stretch of time. Our minds, much like objects in Newton’s First Law of Motion, the Law of Inertia, remain stuck in their habitual state until acted upon by a force. That force may feel uncomfortable, but it’s precisely the catalyst that propels us into a new chapter. Just as acceleration requires a push, growth demands that jolt. When we embrace that force, we step into a different rhythm : a new day, a new beginning. It might not unfold seamlessly, but it will be undeniably beautiful. After all, the mundane and the clichéd rarely lead to greatness; it’s through pressure, persistence, and transformation, like carbon turning into diamond that we truly shine. 💎</p><p>It’s never over, life has a way of giving you another chance- that’s called “a new day”.. ✨✨✨</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aa8e14f431a1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dolce Far Niente.. ]]></title>
            <link>https://medium.com/@saumya.april1/dolce-far-niente-08aa1ca3dfe3?source=rss-b59ff01e331------2</link>
            <guid isPermaLink="false">https://medium.com/p/08aa1ca3dfe3</guid>
            <category><![CDATA[positive-thinking]]></category>
            <category><![CDATA[happiness]]></category>
            <category><![CDATA[self-care]]></category>
            <category><![CDATA[mental-health]]></category>
            <category><![CDATA[peace-of-mind]]></category>
            <dc:creator><![CDATA[Saumya Pandey]]></dc:creator>
            <pubDate>Thu, 24 Apr 2025 03:03:48 GMT</pubDate>
            <atom:updated>2025-04-24T03:05:46.508Z</atom:updated>
            <content:encoded><![CDATA[<p><strong><em>The sweetness of doing nothing…</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qaDhxcxgzD3t7TKzoFnXNw.jpeg" /></figure><blockquote>Sweet idle moments bloom like roses<br> In peaceful days of gentle slowness.<br> Sweetness of nothing, deeply imbibed.<br> Rest, that gentle art, no tasks prescribed,<br> Kindles a fire anew within the heart. 🌸</blockquote><p>In this fast-paced world, pause your tempo for a day. You might worry that losing speed for twenty-four hours, month after month, will leave you trailing behind. Yet the truth is far kinder: without that deliberate rest, you risk stalling completely at 0 mph. A day of ease and self-care grants you the force to accelerate tomorrow, propelling your pace higher than ever.</p><p>As adults, we’ve forgotten how to simply be: perpetual motion has become our comfort zone, and even rest feels like work. Yet now and then, our minds and bodies crave that delicious pause: the oil that keeps our inner machinery running smoothly. We lavish spa days on our pets, but neglect the same kindness toward ourselves.</p><p>Imagine one day each month devoted entirely to idleness: just you, a favorite meal, a long, steamy bath, and either a beloved novel or a comforting Netflix series. No alarms, no deadlines , just permission to drift. I once felt an unsettling pull of guilt at the thought of a “wasted” day away from work and research. But when morning productivity lagged, I surrendered to rest: a hot shower, an extra skincare mask, and my favorite playlist. I ordered ice cream and savored a leisurely lunch, lost myself in a new show, and discovered that letting go of obligation made the next day’s focus three times sharper.</p><p>You don’t even have to venture beyond your covers; you can sleep through it all and still taste the sweetness of nothing. Trust me..after a day of true rest, you’ll wake renewed, energized, and ready to embrace the hustle with fresh passion.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=08aa1ca3dfe3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[OOP : No more be Oops! ^_^]]></title>
            <link>https://medium.com/@saumya.april1/oop-no-more-be-oops-28b552c9c165?source=rss-b59ff01e331------2</link>
            <guid isPermaLink="false">https://medium.com/p/28b552c9c165</guid>
            <category><![CDATA[inheritance-in-oop]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[object-oriented-program]]></category>
            <category><![CDATA[oop-concepts]]></category>
            <dc:creator><![CDATA[Saumya Pandey]]></dc:creator>
            <pubDate>Sat, 05 Apr 2025 20:07:15 GMT</pubDate>
            <atom:updated>2025-04-05T20:14:54.207Z</atom:updated>
            <content:encoded><![CDATA[<h3>OOP : No more be Oops! ^_^</h3><h3>Simplifying Object Oriented Programming fundamentals.</h3><p>In this article, we explore object-oriented programming using an engaging example that makes the concept seamless and easy to understand.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NyGoaq-c7pA3pa1rBa9EGQ.png" /></figure><blockquote><strong>“Object-Oriented Programming (OOP)</strong> is a programming paradigm that organizes code into reusable units called <em>objects</em>, which are instances of <em>classes</em>. Each object bundles data (attributes) and behavior (methods), making programs more modular and easier to understand. OOP promotes <strong>encapsulation</strong>, <strong>inheritance</strong>, <strong>polymorphism</strong>, and <strong>abstraction</strong>, allowing developers to build scalable and maintainable software. Its advantages include code reusability, improved debugging, real-world modeling, and better collaboration in large development teams.”</blockquote><p><strong>Now that we’ve covered the basics of OOP and its advantages through a brief above, let’s bring these concepts to life with a simple, real-world example — a vehicle.</strong></p><p>Imagine a vehicle manufacturing factory, where every vehicle is created from a special specs guide. This factory can help us understand key object-oriented programming (OOP) concepts in a fun, everyday way.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hWSQy_S1wx0LbPG3dXcYgQ.png" /></figure><h3>The Specification Guide: Classes as Blueprints</h3><p>Think of a “Vehicle” class as a blueprint with attributes like speed, fuel, engine, color and other features. Different objects, such as a car, truck, or motorcycle, are created from this class. Inheritance comes into play if you have a parent “Vehicle” class and child classes like “ElectricCar” or “SportsCar” that add or modify properties.</p><ul><li><strong>Parent Class:</strong> This is like a master guide for “vehicle” that includes all the basics common to chassis, engine, wheels, etc.</li><li><strong>Child Class:</strong> Sometimes, you want a special vehicle like a “an SUV with a turbocharged Inline-4 and all-wheel drive, featuring brown interiors paired with a matte navy blue exterior.” This design specification is based on the master vehicle guide but adds extra details like interiors color and engine specifications. In OOP, the sedan class inherits everything from the vehicle class (its parent) and then adds or modifies details to suit its special specification.</li></ul><h3>The Actual Vehicle: Objects and Instances</h3><p>When the factory uses a design specs guide to manufacture a vehicle, that vehicle is an <strong>object</strong> or an <strong>instance</strong> of the class. Even if you manufacture several SUVs using the same guide, each vehicle is a distinct object with its own characteristics (one might have a larger touchscreen navigation system; another could be automatic, while another might be manual).</p><ul><li><strong>Instance/Object:</strong> Each vehicle made from the design guide is an individual object. They all follow the guide, but each one is its own entity.</li></ul><h3>The Manufacturer’s Special Touch: Constructors</h3><p>Before a vehicle leaves the factory, manufacturers perform essential preparatory steps — much like a constructor in object-oriented programming. In OOP, the constructor is a special function that runs when an object is created, setting it up with the proper initial configuration.</p><ul><li><strong>Constructor:</strong> It’s the part of the guide that tells the engineer/manufacturer exactly how to set the right configuration to ensure every vehicle has the right foundational configuration to build on. In programming, the constructor initializes a new object with its initial state.</li></ul><h3>Bringing It All Together</h3><ul><li><strong>Class (Design guide):</strong> Provides the blueprint for objects.</li><li><strong>Object/Instance (Vehicle):</strong> A concrete item created from the blueprint.</li><li><strong>Constructor (Manufacturer’s prep):</strong> A method that sets up the object with the necessary initial details.</li><li><strong>Inheritance (Specialized Recipe):</strong> Allows a new specification guide (child class) to borrow and modify the basic elements from a master guide (parent class).</li></ul><p>By thinking of OOP in terms of a factory, you can see that classes define how things should be made, objects are the things made from these blueprints, and constructors are the initial setup that makes each object unique. This analogy helps break down the seemingly abstract concepts into something tangible and relatable.</p><p>Here’s a sample code: give it a try and check out the output!!</p><pre># Define a class<br>class Car:<br>    # Constructor<br>    def __init__(self, brand, color, engine_type):<br>        self.brand = brand<br>        self.color = color<br>        self.engine_type = engine_type<br><br>    # Method to display car details<br>    def display_info(self):<br>        print(f&quot;This is a {self.color} {self.brand} with a {self.engine_type} engine.&quot;)<br><br># Create instances (objects) of the Car class<br>car1 = Car(&quot;BMW&quot;, &quot;Charcoal Pearl&quot;, &quot;Turbocharged Inline-4&quot;)<br>car2 = Car(&quot;Audi&quot;, &quot;Matte Navy Blue&quot;, &quot;V6&quot;)<br><br># Call method to show details<br>car1.display_info()<br>car2.display_info()</pre><pre>Output:<br>This is a Charcoal Pearl BMW with a Turbocharged Inline-4 engine.<br>This is a Matte Navy Blue Audi with a V6 engine.</pre><p>Hope this short article made the concept of OOP clearer and more approachable!! 😄</p><p>Happy Learning! :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=28b552c9c165" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding LLMs made easy!!!]]></title>
            <link>https://medium.com/@saumya.april1/understanding-llms-made-easy-a3335160f14f?source=rss-b59ff01e331------2</link>
            <guid isPermaLink="false">https://medium.com/p/a3335160f14f</guid>
            <category><![CDATA[naturallanguageprocessing]]></category>
            <category><![CDATA[large-language-models]]></category>
            <category><![CDATA[transformers]]></category>
            <category><![CDATA[language-model]]></category>
            <category><![CDATA[neural-networks]]></category>
            <dc:creator><![CDATA[Saumya Pandey]]></dc:creator>
            <pubDate>Fri, 28 Feb 2025 05:00:25 GMT</pubDate>
            <atom:updated>2025-02-28T19:00:49.176Z</atom:updated>
            <content:encoded><![CDATA[<h3>Understanding LLMs made easy!!! (Intro to LLMs)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*gtbrY89yqwNh12cc.jpg" /><figcaption><a href="https://www.google.com/url?sa=i&amp;url=https%3A%2F%2Fteaminnovatics.com%2Fblogs%2Flarge-language-models-llms-overview%2F&amp;psig=AOvVaw1nXauyp6i_oy6iq5n0aZRq&amp;ust=1740804242021000&amp;source=images&amp;cd=vfe&amp;opi=89978449&amp;ved=0CBgQ3YkBahcKEwiw4Zqnx-WLAxUAAAAAHQAAAAAQEw">Source</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/823/1*actK7gOXyG5uYZrdEvW-1w.png" /><figcaption>Well, see LLMs can be your culinary guide too!! ;)</figcaption></figure><blockquote>In the era of Large Language Models (LLMs) like ChatGPT, BERT, Deepseek, and Gemini, this blog aims to provide an easy-to-understand overview of what LLMs are and how they work. Whether you’re a tech enthusiast, a clinician, or someone with no technical background, this post will take you on a short yet insightful journey into the world of LLMs.</blockquote><p>My goal is to explain the concepts as simply as possible so that by the end of this post, you’ll have a solid understanding of LLMs. From now on, whenever you come across the term, it will make much more sense to you!</p><h4>So, Let’s get started!!!</h4><h3>What are Large Language Models?</h3><p>LLMs are advanced deep-learning models trained on massive amounts of text data. They can generate human-like text, answer questions, and assist in a variety of tasks — from powering chatbots to helping doctors analyze patient records to helping you make your friend’s favorite desert to celebrate his/her/their birthday. In essence, they read and learn from huge text corpora, making them smart predictors of language.</p><p>Why LARGE LANGUAGE MODELS?</p><p>Why not SMALL LANGUAGE MODELS?</p><p>Well, the term <strong><em>large</em></strong> in large language models (LLMs) typically refers to both the <strong>number of hidden layers</strong> (depth of the model) and the <strong>number of parameters</strong> (size of the model).</p><blockquote><em>Your next question would be:</em> <strong>WHAT ARE PARAMETERS? (BTW, if you’re getting lots of questions, it’s a good thing ^_^)</strong></blockquote><p>Here, <strong>parameters</strong> are the learned values that the model updates during training and directly influence its ability to generate text, understand context, and make predictions. For <em>large</em> language models, typically, one can have billions of parameters.</p><h3><strong>How do we get <em>billions of parameters</em>?</strong></h3><p>Parameters in a neural network primarily come from the following components:</p><p><strong>Weights in Fully Connected Layers (Feedforward Layers)</strong></p><ul><li>Each hidden layer in a transformer model has a <strong>multi-layer perceptron (MLP)</strong> with multiple neurons.</li><li>The number of parameters in the MLP is determined by the number of neurons and their connections.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3lLgP0XuaZMxx8IC" /><figcaption><a href="https://ai.plainenglish.io/ffnn-lm-feed-forward-neural-network-language-model-8925f7e2a0ab">Source</a></figcaption></figure><p><strong>Weights in Self-Attention Mechanisms</strong></p><ul><li>The transformer architecture uses <strong>multi-head self-attention</strong>, where each attention head has weights (parameters) that help compute attention scores.</li><li>The number of parameters increases with more attention heads and larger hidden dimensions.</li></ul><p><strong>Embedding Layer Parameters</strong></p><ul><li>Each token in the vocabulary is mapped to a high-dimensional vector (e.g., 768 dimensions in BERT Base, 12,288 in GPT-4).</li><li>If a model has a vocabulary of <strong>50,000 tokens</strong> and each token is represented by a <strong>4096-dimensional vector</strong>, that alone contributes to 50,000 × 4,096 = <strong>~200 million</strong> parameters.</li></ul><p><strong>Layer Norm and Bias Terms</strong></p><ul><li>Each layer has additional <strong>normalization parameters</strong> (LayerNorm) and bias terms, which contribute to the total parameter count.</li></ul><p>Overall, a deep transformer model with <strong>hundreds of layers</strong>, <strong>large hidden dimensions</strong>, and <strong>multi-head attention mechanisms</strong> can easily reach <strong>billions</strong> of parameters.</p><h3><strong>Do we get the parameters after training?</strong></h3><p><strong>Yes! </strong>After training, the final model contains all the learned <strong>parameters</strong> (weights and biases), which are stored in a checkpoint file. These parameters are fixed during inference and determine how the model processes input text.</p><ul><li>If you fine-tune or train a model, you get the <strong>final weight matrices</strong> after the last training iteration.</li></ul><h3><strong>What exactly are these parameters?</strong></h3><p>Each parameter represents a weight or bias in the model:</p><ul><li><strong>Weights</strong>: Scalars that control the influence of input signals in neurons.</li><li><strong>Biases</strong>: Constants added to neuron outputs to help in learning patterns.</li></ul><p>In a <strong>transformer-based LLM</strong>, the parameters are spread across:</p><ol><li><strong>Token Embeddings</strong> (lookup tables for words).</li><li><strong>Attention Weights</strong> (used for context understanding).</li><li><strong>Feedforward Layer Weights</strong> (used for transformations between layers).</li><li><strong>Norm Layers &amp; Bias Terms</strong> (to stabilize learning).</li></ol><h3>Examples of LLMs</h3><p>Some of the most well-known LLMs include:</p><ul><li><strong>ChatGPT (OpenAI)</strong> — Conversational AI for chatbots and content creation.</li><li><strong>Google Gemini</strong> — A multimodal AI integrating text, images, and more.</li><li><strong>BERT (Google)</strong> — Optimized for understanding the meaning of words in context.</li><li><strong>Llama (Meta AI)</strong> — An open-source language model competing with GPT-based systems.</li><li><strong>DeepSeek</strong> — A newer LLM designed for enhanced AI reasoning and search.</li></ul><h3><strong>Why are LLMs so powerful?</strong></h3><p>LLMs stand out due to their ability to understand and generate human-like text, thanks to three key features:</p><h3>1. Training on Massive Datasets</h3><p>LLMs learn from a vast range of text sources, including books, articles, and online content, absorbing knowledge across multiple domains. This allows them to answer questions, summarize information, and assist in various tasks.</p><h3>2. Transformer Architecture</h3><p>At the core of most LLMs lies the <strong>Transformer model</strong>, a revolutionary deep-learning architecture introduced in the 2017 paper <em>“Attention Is All You Need”</em> (You can check it out <a href="https://arxiv.org/abs/1706.03762">here</a>). The key components of a Transformer include:</p><ul><li><strong>Self-Attention Mechanism:</strong> Helps the model focus on the most important words in a sentence.</li><li><strong>Multi-Head Attention:</strong> Enables the model to understand different linguistic relationships simultaneously.</li></ul><blockquote><strong>Example:</strong> In the sentence, <strong>“The man sat on the bench because he was tired,”</strong> the model needs to determine that <strong>“he”</strong> refers to <strong>“the man.”</strong> <strong>“sat”</strong> refers to the <strong>action</strong>. The <strong>“because”</strong> captures the <strong>cause-affect</strong> relationship.<strong> Multi-Head Attention</strong> helps the LLM track multiple meanings, (that is, all the above angles we tried to captuire above) in parallel, improving accuracy.</blockquote><ul><li><strong>Positional Encoding:</strong> Ensures the model recognizes word order, despite processing text in parallel.</li></ul><h3>How Are LLMs Trained?</h3><p>LLMs go through multiple stages of training:</p><ol><li><strong>Pre-training:</strong> The model learns general language patterns by analyzing vast text data, often using <strong>Self-Supervised Learning.</strong> For example, models like BERT use <em>Masked Language Modeling</em> (MLM), where they predict missing words in a sentence.</li><li><strong>Fine-Tuning:</strong> LLMs are trained further on domain-specific data for applications like legal or medical AI.</li><li><strong>Reinforcement Learning from Human Feedback (RLHF):</strong> Human reviewers help improve AI responses by providing feedback on generated text.</li></ol><h3>How Do LLMs Generate Text?</h3><p>When you interact with an LLM, it follows these steps:</p><ol><li><strong>Tokenization:</strong> Text is broken into smaller units (tokens) for processing.</li><li><strong>Embedding:</strong> Tokens are converted into numerical representations.</li><li><strong>Transformer Processing:</strong> The model applies self-attention, multi-head attention, and feedforward layers to generate a meaningful response.</li><li><strong>Output Generation:</strong> Based on probability, the model predicts the most suitable next word or sentence.</li></ol><blockquote><strong><em>Think of it as an AI-powered puzzle solver, analyzing past text to determine the best next piece. :)</em></strong></blockquote><h3>Applications of LLMs</h3><p>LLMs are transforming various industries:</p><ul><li><strong>Healthcare AI:</strong> Summarizing patient records, assisting doctors in diagnosis.</li><li><strong>Code Generation:</strong> Helping developers write and debug code (e.g., GitHub Copilot).</li><li><strong>Chatbots &amp; Virtual Assistants:</strong> Powering intelligent customer support and personal AI assistants.</li><li><strong>Search &amp; Summarization:</strong> Enhancing search engines and summarizing complex documents.</li><li><strong>Translation &amp; Multimodal AI:</strong> Converting languages and integrating text with images, videos, and audio.</li></ul><p>These models help professionals work more efficiently, automate repetitive tasks, and enhance decision-making.</p><h3>Challenges and Limitations of LLMs</h3><p>Despite their capabilities, LLMs face several challenges:</p><ul><li><strong>Bias in AI:</strong> Since they learn from human-written text, LLMs can inherit societal biases.</li><li><strong>Hallucination:</strong> Sometimes, LLMs generate misleading or incorrect information.</li><li><strong>Privacy Risks:</strong> Handling sensitive data requires careful security measures.</li><li><strong>High Computational Costs:</strong> Training and running LLMs require extensive computational resources.</li></ul><p>To improve AI safety, ongoing research focuses on <strong>fact-checking mechanisms</strong> and <strong>retrieval-augmented generation (RAG)</strong> to make responses more reliable.</p><h3>The Future of LLMs</h3><p>The next generation of LLMs aims to be <strong>smaller, faster, and smarter</strong>:</p><ul><li><strong>Lightweight models:</strong> Efficient alternatives like Llama 3 and Mistral improve real-time performance.</li><li><strong>Multimodal AI:</strong> Models like <strong>GPT-4V and Gemini</strong> integrate text, images, and audio for richer interactions.</li><li><strong>More Fact-Based AI:</strong> <strong>Retrieval-Augmented Generation (RAG)</strong> enhances accuracy by pulling real-world references instead of relying solely on pre-trained data.</li></ul><p>The goal is to create <strong>ethical, efficient, and highly reliable AI</strong> that enhances our daily lives without risks.</p><h3>To conclude,</h3><p>LLMs are <strong>powerful tools but not perfect.</strong> As they continue to evolve, balancing their strengths with ethical AI development remains crucial. By making them more efficient, factually accurate, and responsible, we can unlock their full potential in reshaping industries and improving our digital experiences.</p><blockquote><strong>PS:</strong> This was a high-level introduction to LLMs, offering a broad overview of the key concepts. The depth of this subject extends far beyond what we’ve covered here, but our goal was to provide a foundational understanding. Now, whenever you encounter discussions about LLMs, you’ll have a well-rounded perspective on their role and significance!</blockquote><blockquote>💡 Final Thought: “LLMs are not minds, but tools. The real progress lies in making them more ethical, efficient, and grounded in reality.”</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a3335160f14f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Navigating Life’s Storms: Finding Happiness and Peace Amidst Challenges]]></title>
            <link>https://medium.com/@saumya.april1/navigating-lifes-storms-finding-happiness-and-peace-amidst-challenges-6071bf562c79?source=rss-b59ff01e331------2</link>
            <guid isPermaLink="false">https://medium.com/p/6071bf562c79</guid>
            <category><![CDATA[coping-strategies]]></category>
            <category><![CDATA[resilience]]></category>
            <category><![CDATA[happiness-in-life]]></category>
            <category><![CDATA[mental-health]]></category>
            <category><![CDATA[hardships-in-life]]></category>
            <dc:creator><![CDATA[Saumya Pandey]]></dc:creator>
            <pubDate>Thu, 13 Jun 2024 21:30:23 GMT</pubDate>
            <atom:updated>2024-06-13T21:35:31.773Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*23_4ukht1ND3m8Lx" /><figcaption><a href="https://scoutingmagazine.org/2014/02/try-10-steps-help-scouts-develop-resilience/">Source</a></figcaption></figure><blockquote><strong>“The greatest glory in living lies not in never falling, but in rising every time we fall.” — Nelson Mandela</strong></blockquote><blockquote>Why did I feel like blogging about this, all of a sudden? 🤔</blockquote><p>Well, lately, I have been seeing a lot of challenges and hardships in people’s lives around me. By writing this, I wanted to remind everyone that you are not alone in this, and it will pass, whatever you are going through. There have always been posts and blogs on triumphs but hardly anyone shares about what one should do or how one should cope when there is a crisis in one’s life. Everyone in life has that moment when life tests you. It depends on you if you want to give up!! <strong>DO YOU WANT TO GIVE UP??</strong> I don’t think so <strong>:)</strong></p><p>This blog intends to help you cope with the adverse situation you are going through, so that you can stay strong and with perseverance, you can come out of it with a wide smile :) on your face.</p><blockquote><strong>“Resilience is about mindset,”</strong> says neuropsychologist Sam Goldstein, Ph.D.</blockquote><h4><strong>Building Resilience</strong></h4><p>Resilience is the ability to bounce back from setbacks, and it’s key to maintaining happiness🙂. Develop a resilient mindset by practicing positive self-talk, honing problem-solving skills, and seeking support when needed. Don’t shy away from seeking support at all. Surround yourself with a <strong>supportive network</strong> that encourages you to persevere. Your network need not be large. It can consist of just a few people, supportive and optimistic ones. 🌼</p><blockquote>It is very normal to feel stressed, anxious, and demotivated when faced with challenges. But, it is VERY IMPORTANT to remember that <strong><em>“Turbulent Waters Make Seasoned Sailors”. </em></strong>Our response to the challenges shape our happiness and growth.</blockquote><h4><strong>Practicing Gratitude and Mindfulness</strong></h4><p>Maintain a journal where you write the good things/ aspects of life: things you are thankful for🙏. When one is in crisis, these suggestions “to practice gratitude” etc seem illogical and our crisis looks like the biggest one. But, trust me, there are so many other worse things happening around the world. It is on you whether you want to keep yourself stressed and harm your mental health continuously or be happy. A day is going to come when things will get better and it is inevitable because<strong> “Change is the only Constant”</strong>. Meanwhile, it is very important to keep yourself healthy mentally and physically to welcome that day or moment ❣ Doing breathing exercises, and meditation 🧘‍♀️🧘‍♂️ helps a lot. Activities like painting, or anything that you like, help. Being<strong> physically active</strong> 🏃‍♂️ like working out or going out on a run, helps a lot as it triggers the release of endorphins, which are chemicals in our brains that are mood elevators. It induces a sense of well-being.</p><h4>Cultivating Healthy Relationships</h4><p>Healthy relationships are vital for our well-being. Build a supportive network of friends and family, and work on your communication skills to maintain strong connections. These relationships provide a buffer against life’s stresses.</p><h4>Setting Purposeful Goals</h4><p>Having a sense of purpose can significantly enhance your happiness. Discover your passions and set meaningful goals. Break down larger goals into smaller, manageable steps to maintain motivation and celebrate your progress.</p><h4>Acts of Kindness and Altruism</h4><p>Helping others can also boost your happiness. Volunteering or engaging in acts of kindness creates a positive ripple effect in your community and enhances your sense of fulfillment.</p><p><strong>Wouldn’t life be dull without any shifts in direction???? Sometimes, we need the bad days to truly appreciate the good ones. </strong>💚</p><h4>Don’t hand over the reins of your happiness to someone else or external circumstances. Keep them firmly in your own hands. 💪</h4><p>Keep Smiling and Be Happy!! 😇</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6071bf562c79" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Intro to Elastic Weight Consolidation (EWC)]]></title>
            <link>https://medium.com/@saumya.april1/intro-to-elastic-weight-consolidation-ewc-b03cf4d41957?source=rss-b59ff01e331------2</link>
            <guid isPermaLink="false">https://medium.com/p/b03cf4d41957</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[catastrophic-forgetting]]></category>
            <category><![CDATA[continual-learning]]></category>
            <category><![CDATA[ewc]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Saumya Pandey]]></dc:creator>
            <pubDate>Sat, 18 Mar 2023 20:25:43 GMT</pubDate>
            <atom:updated>2023-03-18T21:21:17.662Z</atom:updated>
            <content:encoded><![CDATA[<p><em>This article aims to provide the reader with an initial idea of how EWC helps overcome catastrophic forgetting in a continual learning setting.</em></p><p>In a continuous effort over the years to improve AI and make it just like the human brain, we have come so far!! (Applause for all the researchers out there!!) So many areas are emerging every day: New Day=&gt; New Scope.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*bps52HCRMgtFhJacSVfNFA.jpeg" /></figure><p>For the last few years,<strong> continual learning/sequential learnin</strong>g has been one of the emerging areas in machine learning. Researchers are trying to train the model on an extensive sequence of tasks such that older ones are not forgotten with newer tasks. This phenomenon is called <strong>catastrophic forgetting.</strong></p><p>Catastrophic Forgetting is like that one person you try to avoid while attending social functions. Continual learning also has its person that it desperately wants to avoid: catastrophic forgetting!! :D</p><p>There are mainly three approaches that address catastrophic forgetting:</p><ol><li><strong>Memory Approaches: </strong>In this, it stores a memory of the previous tasks and while learning the new task, the effort is to achieve a configuration that performs well concerning the previous tasks as well. Here, memories refer to just the good examples from the previous dataset rather than the entire huge dataset.</li><li><strong>Architectural Approaches: </strong>Here, the effort is to increase the capacity of a network so that new knowledge can be assimilated with past knowledge.</li><li><strong>Regularization Approaches: </strong>And here comes the protagonist: <strong>EWC</strong>. EWC stands for Elastic Weight Consolidation. This assumes a fixed network size. A new task is learned while avoiding parameter changes sensitive to previous tasks.</li></ol><p>In simple language, if we understand the logic behind EWC, we are trying to constrain the important parameters to stay near older values so that while learning on newer tasks, performance on the older task does not drop.</p><p>Let us try to understand through a schematic representation:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/955/1*-xVfD-RboiBH4fmvgO58rA.png" /></figure><p>In the above figure, we have considered two tasks: <strong>A</strong> and <strong>B</strong>. Purple represents the parameter space of task A, and yellow represents the parameter space of task B. <strong>θ*A</strong> represents the parameters after learning task A. If we adjust or constrain our parameters according to task B, we are improving on the performance of task B, but the loss on task A will increase, forgetting what was learned on task A. This is represented by the blue arrow. On the contrary, if parameters are constrained with the same coefficient as in the task A parameter space (purple space), the loss of task A will be minimized at the cost of learning task B, deterring its performance on task B, represented by the red arrow. We want to achieve that is represented by the green arrow (EWC): finding a way such that there is no loss on task A while learning task B by identifying the critical weights (parameters) for task A and keeping those parameters near the old values in parameter space while training on task B. This ensures that task A and task B are equally remembered.</p><p>This was an overview of Elastic Weight Consolidation. I hope it helped!!</p><p>Keep Learning :)</p><p>References:</p><p>[1] Kirkpatrick, Pascanu, et al (2017)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b03cf4d41957" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>