<?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 Naman Anand on Medium]]></title>
        <description><![CDATA[Stories by Naman Anand on Medium]]></description>
        <link>https://medium.com/@naman5a?source=rss-bf837a53801f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*H67tq8OD0qFv4ZPwJaPFRQ.jpeg</url>
            <title>Stories by Naman Anand on Medium</title>
            <link>https://medium.com/@naman5a?source=rss-bf837a53801f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 06:27:29 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@naman5a/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[Stop Bloating your Git Repos]]></title>
            <link>https://naman5a.medium.com/stop-bloating-your-git-repos-e5b9d551fb8e?source=rss-bf837a53801f------2</link>
            <guid isPermaLink="false">https://medium.com/p/e5b9d551fb8e</guid>
            <category><![CDATA[bitbucket]]></category>
            <category><![CDATA[git-lfs]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[gitlab]]></category>
            <dc:creator><![CDATA[Naman Anand]]></dc:creator>
            <pubDate>Thu, 02 Oct 2025 19:29:55 GMT</pubDate>
            <atom:updated>2025-10-02T19:29:55.271Z</atom:updated>
            <content:encoded><![CDATA[<p>Git LFS Large File Storage</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/200/0*H0DK9o2C3bBHnQND" /><figcaption><a href="https://github.com/git-lfs">https://github.com/git-lfs</a></figcaption></figure><h4>If you are putting a large file i.e. an exe file , a video or a tar or dataset, You might have observed your repository becomes extremely slow to clone and manage .</h4><h4>This is because git was not designed for handling handling large files . Hence it becomes extremely slow to clone and manage .</h4><p>Therefore we have Git LFS , it is an extension for large files without bloating git history</p><h3>Problems with Large Files in Git</h3><p>It was built for source code with deltas,</p><p>A single change in the binary file means git has to store the entire file in DAG as blob every single version . So every-time someone clones the repo , He / She needs to clone each version of the the large file and it is painfully slow Process .</p><p>If it is above 50 MB &lt; (File Size) GitHub gives a warning</p><p>If it is above 100 MB : GitHub will reject</p><h3>How Git LFS Solves this Issue</h3><p>It changes how Git Stores the files</p><p>It stores a unique pointer for the file</p><p>Hence the repository will be small and fast</p><p>The actual file is stored in a separate server that the VCS manages i.e. GitHub LFS , GitLab LFS , Bitbucket LFS etc.</p><p>This keeps your git repo fast ,</p><p>So when a developer clones the files , Git LFS handles the files from dedicated lfs server , It keeps large assets only for that commit , So making it easier to manage.</p><h3>Steps :</h3><p>Installation of Git-LFS ,</p><pre>Linux (Ubuntu/Debian) sudo apt install git-lfs<br>Windows ~ winget install Git.GitLFS<br>MacOS : * brew install git-lfs</pre><ol><li>After installation , You first need to run</li></ol><pre>git lfs install #It will initialize git lfs for you </pre><p>2. Now you need to specify which files you wanna track , For this you need to use git lfs track command</p><pre>git lfs track *.exe #wild card matching  or you can give exact file name</pre><p>It will create .gitattributes files , This file contains rules which files to track. For this to work , you need to commit this file.</p><p>Now After pushing , git will handle .gitattributes and the remaining source code whereas the git lfs will handle the large files</p><p>What to do if you want your previous commits to also follow this , Use git lfs migrate import</p><pre>git lfs migrate import — include=”*.exe”</pre><p>Does GitHub has any limit ? Ans. Yes in your personal but Enterprise you won’t need to worry 🙂</p><p><strong>Where to find </strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fF2Qup5-WMmPnsD2aFZ_qw.png" /></figure><p>Following is a recording of Tim Pettersen’s (@kannonboy) presentation entitled “<strong>Tracking huge files with Git LFS</strong>” at GlueCon 2016 in Broomfield, Colorado</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FiJ3hXuEVKAc%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DiJ3hXuEVKAc&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FiJ3hXuEVKAc%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/bdb942d2de5f7695cbe5e62bc19aafe6/href">https://medium.com/media/bdb942d2de5f7695cbe5e62bc19aafe6/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e5b9d551fb8e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Stanford CS231N]]></title>
            <link>https://naman5a.medium.com/stanford-cs231n-8b33610f9f28?source=rss-bf837a53801f------2</link>
            <guid isPermaLink="false">https://medium.com/p/8b33610f9f28</guid>
            <category><![CDATA[stanford]]></category>
            <category><![CDATA[computer-vision]]></category>
            <dc:creator><![CDATA[Naman Anand]]></dc:creator>
            <pubDate>Sun, 07 Sep 2025 11:43:12 GMT</pubDate>
            <atom:updated>2025-09-07T11:43:12.765Z</atom:updated>
            <content:encoded><![CDATA[<h3>Stanford CS231N Lec 1</h3><p>By Computer Vision , What comes into your mind first ?<br>OCR , Camera , Images …. maybe this ..</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/376/0*7QzzDGQ3Vs2djPrq" /><figcaption>The first Digital Image (Captured by <em>Russell Kirsch in 1957) He </em>created a rotating drum scanner and programming that allowed images to be fed into it. The first image scanned was a head-and-shoulders shot of Kirsch’s three-month-old son Walden.</figcaption></figure><p>But this is not the start .</p><p>The start is way back !! Before Humans also !!</p><p>Let’s go a bit back in time . The Cambrian Explosion (Around 541 million years before)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*uWq5t99Zu1urIL-G.png" /></figure><p>Around 540 millions years ago , animals were there hanging around in water bodies but they didn’t had any eyes , But with the Cambrian explosion , Trilobites came into picture.</p><p>It was the onset of photosensitive cells in Animals (eyes), Avery small and simple pinhole that collects light.</p><p>And …</p><p>From there it began the evolution of Vision.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/199/0*R3YfPzcDDN56eS1Z" /><figcaption>(<a href="https://www.cambridge.org/core/books/abs/vision/evolution-of-eyes/8946D789C2A0C9A07BC51F100353D5C6">https://www.cambridge.org/core/books/abs/vision/evolution-of-eyes/8946D789C2A0C9A07BC51F100353D5C6</a>)</figcaption></figure><p>So , Inherently the world we perceive with eyes is Conversion of the 3D World into 2D Projection .</p><p>There were various attempts to uncover the mystery behind the eyes and to replicate and preserve things by machines .</p><p>One of the early efforts was to create camera</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/266/0*PLICr3zXr7x647pH" /></figure><p>How do we project objects to create objects , But Cameras were just not enough as eyes were not enough to see ,</p><p>There was something more required Visual Intelligence.</p><p>1959</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/270/0*FC1uEUZgcrTE1fIB" /><figcaption>Hubel and Wiesel sought to understand how the brain takes simple information from the eyes and transforms it into our complex visual perception of the world</figcaption></figure><p>Hubel and Wiesel investigated the visual process in cats. They placed electrodes in cats and finded out various learnings :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/330/0*pIjhKakW1i8Osh8L" /><figcaption>Once the light lands on the retina coming from cornea , we have millions of light-sensitive cells called rods and cones . When the photoreceptors cells present in retina are stimulated by light, they send electrical impulses through the optic nerve to the brain’s visual cortex. The brain then processes these signals, interpreting the upside-down image from the retina and flipping it right-side up . Primary Visual Cortex is located at back of head.</figcaption></figure><ol><li>Neurons responsible for seeing are present in primary cortex and they have own respective fields expertise , Every neuron sees a patch of space and within that space it sees pattern</li><li>Visual Pathway is Hierarchical , Once a neuron identifies a pattern , It feeds into other neurons and this is how a neural network is formed and we understand the images .</li></ol><p>1963</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/495/0*ZTBv1PfY-DUzKyx8" /><figcaption>Larry Roberts</figcaption></figure><p>Roberts, often called the “father of computer vision,” focused on enabling machines to interpret visual data by analyzing 2D images to reconstruct 3D scenes</p><p>His 1963 PhD thesis at MIT, titled “Machine Perception of Three-Dimensional Solids,” demonstrated how algorithms could identify edges, corners, and surfaces in images of simple block shapes. This was groundbreaking because it shifted the focus from hardware (like cameras) to software-based interpretation of visual data, establishing core principles still used today.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*edW5NH3Zy1jAbe75o6VeGw.png" /><figcaption>Robert work on Analyzing Depth from a 2d image, He wrote a computer program to write the photograph in line drawing and transform the line drawing into a 3D structure, Once 3D picture is made , you can produce a 2D projection from any point of view (<a href="https://dspace.mit.edu/bitstream/handle/1721.1/11589/33959125-MIT.pdf?sequence=2&amp;isAllowed=y">https://dspace.mit.edu/bitstream/handle/1721.1/11589/33959125-MIT.pdf?sequence=2&amp;isAllowed=y</a>)</figcaption></figure><p>1970 David Marr</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/211/0*qEZmXaclD16CNEdr" /></figure><p>Similar to Larry Roberts Shape Study , David formulated How do we see images</p><p>He proposed a method :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/653/0*9xLojzJ-FT1YLmdk.gif" /></figure><p>There were some other proposed solution for 3D modelling :</p><p>1970’s-1980&#39;s</p><ol><li>Compositional Cylinder Models</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/683/1*kV5GFOLVLJRq_8gn9wWX2Q.png" /></figure><p>2. Edge Detection , Digital Photos</p><p>Things were progressing but something more disastrous was coming , Around 1986’s AI Winter started , The reason was the expert systems , NLP , Computer vision didn’t deliver the expectation.</p><p>Image Processing was there but Just like Our Brain Percieves More than image , Percieving Real world Scenes is different .</p><p>One famous work was Irving Biederman : Recognition-by-components theory : He showed even through the image photons landed on same location but somehow rest of image impacts</p><p>The way we see object shows our visual processing very fast</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HAxNdgfQQ7d_VreqYQtwCw.png" /><figcaption>The bicycle on the left and right image are at same position but our brain feels closer in 2nd image</figcaption></figure><p>There was one more experiment in which : A random video was played at 10Hz (Each frame 100ms) and humans were able to identify good amount of information every frame.</p><p>Neuroscientists showed that while categorizing things from a image , our brain has a differential signal at 150ms ,</p><p>Transistors works much faster than this speed .</p><p>We develop expert brain areas in recognizing body/face etc.</p><p>Some other notable works :</p><ol><li>Recognition via Grouping to seperate Objects from Image</li><li>Face Detection / Feature Detection (2000’s) Based on this 2005 : Automatic Face Detection Methodology in camera came.</li></ol><p>There were two incidents that helped ending this AI winter :</p><ol><li>Back-Propogation (Algo)</li><li>Internet : Data Spread</li></ol><p>With Internet boom , Data became more accessible , Lot of datasets were out . (Ex : Caltech 101 , Pascal Visual Challenge , ImageNet)</p><p>While this vision related developments were going , In Parallel , A separate effort for neural network , Perceptron came .</p><p>The limitation of the single-layer Perceptron to learn the XOR function was highlighted by Marvin Minsky and Seymour Papert in their 1969 book, Perceptrons. While they correctly pointed out this limitation for single-layer networks, their work was misinterpreted to suggest that larger multi-layer networks also couldn’t solve the XOR problem, contributing to the first “AI winter” by dampening interest and funding for neural network research</p><p>NeoCognitron :</p><p>The Neocognitron is a hierarchical, multi-layered artificial neural network developed by Kunihiko Fukushima in the late 1970s for robust pattern recognition, especially visual patterns like handwritten characters</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/348/0*wUGBQbyOffgFDgfQ" /><figcaption>Neocognitron</figcaption></figure><p>It was the <strong>the original CNN — but the unsupervised edition</strong></p><p>It does so by recognizing patterns based on geometric similarity — and it’s not affected by positions.</p><p>Using unsupervised learning it can recognize patterns based on geometric similarity — not being affected by position shift or shape distortions. This extends the cognition (which has those issues) thus is dubbed the <strong>neocognitron</strong>.</p><p>After self-organization through unsupervised learning — it ends up being similar to the visual nervous system proposed by Hubel and Wiesel. Which is the <strong>visual cortex has this hierarchy structure</strong>: LGB (lateral geniculate body) → simple cells → complex cells → lower-order hypercomplex cells → higher-order hypercomplex cells</p><p>In 1986 : Backpropagation Came</p><p>It introduce error correcting function so that you can propagate weights back to the neural network</p><p>In 1998 : CNN came</p><p>Yann Le Cunn @Bell labs introduced Slightly big Network to recognize Letters</p><p>In 2000’s , Fei Fei Introduced Image Net Dataset that contains around 1000 Object Classes with Humans able to categorize within 3% error</p><p>2012 : Alexnet Came By Geofrey Hinton , The error reduced by 1/2 for 2011 , It showed the real power of Deep Leaning Algo</p><p>(It was similar architecture to Neocognitron)</p><p>And there on Computer vision never look back</p><p>There were Various Core Tasks iN Computer Vision</p><ol><li>Image Classification</li><li>Video Classification</li><li>Multimodal Video Understanding</li><li>Visualization and Understanding , Models beyond Multilayer Perceptron</li><li>Large Scale Distributed Training</li><li>Beyond 2D</li><li>Self Supervised Learning / Generative Modelling</li><li>Diffusion Model Gradual Noising / Cross Modal Retrieval / VLM</li><li>3D Vision / Embodied Intelligence /Human Centered Applications</li></ol><p>Computer Vision is mostly an ill posed Problem As it captures something on 2D but the world is actually 3D.</p><p>3D World -&gt; We are mapping it into 2D Images</p><p>Nature has already solved this problem via multiple eyes improving depth perception and increasing the field of vision</p><p>Vision and Language are different Problems</p><p>Why ?</p><p>Language doesn’t exist by itself in Nature. It is 1D and sequential , It is generated things , Comes through our brain.</p><p>LLM is powerful because we can model it . But vision has very different tasks.</p><p>Some Interesting Papers and Takes :</p><iframe src="https://drive.google.com/viewerng/viewer?url=https%3A//dspace.mit.edu/bitstream/handle/1721.1/5691/AIM-645.pdf%3Fsequence%3D2&amp;embedded=true" width="600" height="780" frameborder="0" scrolling="no"><a href="https://medium.com/media/d9b35a1c016117d0b6e23a575c3484ae/href">https://medium.com/media/d9b35a1c016117d0b6e23a575c3484ae/href</a></iframe><p><a href="https://www.pnas.org/doi/full/10.1073/pnas.1912154116">https://www.pnas.org/doi/full/10.1073/pnas.1912154116</a></p><p><a href="https://www.quora.com/Is-having-two-eyes-necessary-for-good-vision-Can-humans-function-well-with-only-one-eye-like-birds-or-insects-How-would-losing-one-eye-affect-a-persons-daily-life">Is having two eyes necessary for good vision? Can humans function well with only one eye, like birds or insects? How would losing one eye...</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Tv1oMwEaNSE_-k9HBwfRxQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8b33610f9f28" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Day 2]]></title>
            <link>https://naman5a.medium.com/day-2-7efb345649f6?source=rss-bf837a53801f------2</link>
            <guid isPermaLink="false">https://medium.com/p/7efb345649f6</guid>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[learning]]></category>
            <dc:creator><![CDATA[Naman Anand]]></dc:creator>
            <pubDate>Sat, 28 Jun 2025 07:48:54 GMT</pubDate>
            <atom:updated>2025-06-29T07:28:04.069Z</atom:updated>
            <content:encoded><![CDATA[<p>A long gap but still let’s reconcile what are the things I learnt today :)<br>Meet with some great people @agara lake morning walk and with a IITG Founder</p><p>Here’s are my key learnings for startup world :</p><ol><li>If you want to build a startup , first of all think will you be able to go and solve that problem even if it takes 10 years. Startup is not for people who got bored or diverted easily , You had to stick to it , iterate faster , you will learn . Don’t pivot so easily !! There is a lot of noise in every space , every domain looks like the next big thing . You need to have resilience and patience . (Learnt from Sanchit Malik [Co-Founder &amp; CEO @ Pazcare])</li><li>A recent research paper of MIT taught us about the impact of AI on brain , How reasoning had decreased and we are just relying on our brain memory for remembering and soon it seems to impacted . For future generations , it would be much difficult to do reasoning , Thoughts on can I build anything on this domain to preserve Human ability and tackle hard problems . Had a talk with (Nate Patel , MIT ) and learnt how is using music to boost Brain’s ability , Blog writing , Puzzle solving , Thinking on the problem first before approaching AI for 15 min and then validation and improvement of your thoughts from AI . (I will soon read the paper and publish a blog on AI’s Effects On The Brain : <a href="https://www.media.mit.edu/articles/a-i-s-effects-on-the-brain/">https://www.media.mit.edu/articles/a-i-s-effects-on-the-brain/</a>)</li><li>Rapido got recently banned due to two-wheelers were being used for commercial purposes while registered as private vehicle and Motor Vehicles Act, 1988 that don’t allow bike to be used as taxis. A gap I thought was can we rent bikes and give to people who are willing to do full time bike taxi but I am not sure if it works good , Nice Discussion with Rahul Jain (Partner and legal for startups)</li></ol><p>— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — —</p><p>The Evening Meet with Let’s_Build_the_future : Anshul and <strong>Sirsho (</strong>Really loved the generosity and event conduction)</p><p>Some Awesome Learnings from Praveen :</p><ol><li>Talk a lot to customers . If you are into hardware , you need a good designer collaboration with all teams , You can not have those guys working in silos and at last redesign to meet software req and other.</li><li>How to attract good talent in team : sometimes if needed beg them , Incentives , Esops</li><li>In India One of the industry that is way back is manufacturing , China has great mold manufacturing machines that are 20 years ahead of India , We generally use 2nd hand machines . (Opportunity)</li><li>Pricing : Start being profitable from Day 1 .</li><li>Go Depth In Hardware , Document and Test Things as much as Possible‼️</li></ol><p>Met with Ankush Malakar (Galileo) , He was building a AI Pendant like neosapien , A great guy !! , Miten from LMNIT , Tanjul ( Learnt insights about Finding a single USP and work : like amazon delivers on all PinCode and How amazon is still not profitable ) Operations in India is still a unsolvable issue .</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7efb345649f6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Day 1]]></title>
            <link>https://naman5a.medium.com/day-1-7c71d2403252?source=rss-bf837a53801f------2</link>
            <guid isPermaLink="false">https://medium.com/p/7c71d2403252</guid>
            <dc:creator><![CDATA[Naman Anand]]></dc:creator>
            <pubDate>Tue, 25 Feb 2025 18:22:33 GMT</pubDate>
            <atom:updated>2025-02-25T19:24:25.046Z</atom:updated>
            <content:encoded><![CDATA[<p>Time is ticking somewhat close to 12 Midnight of 25th Feb , And I am starting my Journey as a Writer where I will share my learnings of the Day . By sharing this , I want to become more Accountable , Disciplined and Persistent .</p><p>I have already started my journey as an entrepreneur and some of the things I always would love to remember are :</p><ol><li>Technology doesn’t have a MOAT .It’s a small advantage for a short time. Your best tech will be… someone else’s minor update next year.</li><li>Solving Problem Based Approach will last . Define It Clearly like the prompt</li><li>If I had to learn something , I will try to recreate it and teach it. <br>“What I cannot create, I do not understand” — Richard Feynman</li><li>First Principles Approach</li><li>A company is defined by the schleps it will undertake. And schleps should be dealt with the same way you’d deal with a cold swimming pool: just jump in.</li><li>Instead of asking “what problem should I solve?” ask “what problem do I wish someone else would solve for me?”</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7c71d2403252" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Must-Know Concepts About Transformers]]></title>
            <link>https://naman5a.medium.com/must-know-concepts-about-transformers-cd613471c833?source=rss-bf837a53801f------2</link>
            <guid isPermaLink="false">https://medium.com/p/cd613471c833</guid>
            <category><![CDATA[attention]]></category>
            <category><![CDATA[attention-is-all-you-need]]></category>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[transformers]]></category>
            <category><![CDATA[llm]]></category>
            <dc:creator><![CDATA[Naman Anand]]></dc:creator>
            <pubDate>Sat, 11 Jan 2025 07:27:33 GMT</pubDate>
            <atom:updated>2025-01-14T04:57:11.962Z</atom:updated>
            <content:encoded><![CDATA[<h3>These are some list of que and answers that every beginner must know.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/0*OvF33iTsOyQPktYl.png" /><figcaption>Src of image : <a href="https://medium.com/machine-intelligence-and-deep-learning-lab/transformer-the-self-attention-mechanism-d7d853c2c621">https://medium.com/machine-intelligence-and-deep-learning-lab/transformer-the-self-attention-mechanism-d7d853c2c621</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ID7chVmnHlCaeLh_" /><figcaption>Src : <a href="https://www.linkedin.com/posts/kalyanksnlp_transformers-llms-nlproc-activity-7279696669166739456-ygEV?utm_source=share&amp;utm_medium=member_desktop">https://www.linkedin.com/posts/kalyanksnlp_transformers-llms-nlproc-activity-7279696669166739456-ygEV?utm_source=share&amp;utm_medium=member_desktop</a></figcaption></figure><h3>Que: Why does the vanishing gradient problem occur in RNNs, and how do transformers solve it?</h3><p><strong>Answer:</strong> The vanishing gradient problem arises in RNNs during backpropagation when gradients are multiplied across many timesteps. If the gradients are less than 1, their repeated multiplication causes them to shrink exponentially, making it difficult for the model to learn long-range dependencies.</p><p>Transformers solve this problem by using the attention mechanism, which directly relates all input tokens to one another without relying on sequential gradient propagation. This eliminates the need for recurrent computations and mitigates the vanishing gradient issue.</p><h3>Que: Why do RNNs fail with large sequences, and how do transformers address this limitation?</h3><p><strong>Answer:</strong> RNNs struggle with large sequences because they process input tokens sequentially, passing a single hidden state forward. This approach makes it hard to capture long-range dependencies and interactions between distant tokens effectively.</p><p>Transformers address this limitation by employing self-attention mechanisms. These mechanisms allow the model to compute interactions between all tokens simultaneously, capturing global dependencies in the sequence regardless of its length.</p><h3>Que: Why do positional embeddings exist, and why do they use sine and cosine functions?</h3><p><strong>Answer:</strong> Positional embeddings are necessary in transformers because the architecture processes tokens in parallel, losing the sequential order information inherent to RNNs.</p><p>Sine and cosine functions are used because they provide continuous, smooth variations that encode positional information in a way that allows the model to generalize across sequences of different lengths. Unlike discrete numbers, these functions preserve relational properties, enabling the model to capture token distances effectively.</p><h3>Que: Why do we divide and combine in multi-head attention?</h3><p><strong>Answer:</strong> In multi-head attention, the input embeddings are divided into smaller subspaces (heads) to capture different aspects of relationships between tokens. Each head computes attention separately, focusing on different features of the input.</p><p>The outputs of all heads are then combined through concatenation and a linear transformation. This aggregation ensures that the model integrates diverse contextual information into the final representation.</p><h3>Que: What is the ideology of query, key, and value vectors in attention mechanisms? Can you explain with an example?</h3><p><strong>Answer:</strong> Query, key, and value vectors are the core components of the attention mechanism:</p><ul><li><strong>Query (Q):</strong> Represents the token for which the attention is being calculated.</li><li><strong>Key (K):</strong> Represents all tokens in the input sequence.</li><li><strong>Value (V):</strong> Contains the information to be aggregated based on attention scores.</li></ul><p><strong>Example:</strong> Imagine a dictionary where the genre is the key, and the list of movies is the value. If you describe the kind of movie you want to watch (query), the dictionary retrieves the most relevant movie based on the matching genre (key). Similarly, in attention, tokens interact by matching queries to keys to determine the relevance of values.</p><h3>Que: Why do transformers use layer normalization, and what is the role of gamma and beta?</h3><p><strong>Answer:</strong> Layer normalization stabilizes training by normalizing the input of each layer to have a consistent mean and variance. This ensures that the network’s activations remain within a stable range, speeding up convergence and improving performance.</p><ul><li><strong>Gamma (γ):</strong> A learnable parameter that scales the normalized output.</li><li><strong>Beta (β):</strong> A learnable parameter that shifts the normalized output. Together, gamma and beta allow the model to adjust the normalized values dynamically, enhancing its expressive power.</li></ul><h3>Que: What do encoders provide to decoders in an encoder-decoder architecture?</h3><p><strong>Answer:</strong> Encoders provide contextual representations of the input sequence to decoders. Specifically, they supply <strong>keys</strong> and <strong>values</strong> to the decoder’s cross-attention mechanism, enabling the decoder to focus on relevant parts of the input while generating output.</p><p>During inference, the decoder also uses masked self-attention to generate tokens sequentially, ensuring the output is coherent.</p><h3>Que: What is the role of the feed-forward neural network in transformers?</h3><p><strong>Answer:</strong> The feed-forward neural network (FFN) refines the token embeddings after attention by applying two linear transformations with a ReLU activation in between. This allows the model to capture complex, non-linear relationships in the data, enriching each token’s representation.</p><h3>Que: What is the significance and physical meaning of the output of the feed-forward neural network?</h3><p><strong>Answer:</strong> The output of the feed-forward neural network represents refined token embeddings enriched with non-linear features. These embeddings are context-aware and serve as the final representation of tokens before further transformations or output generation.</p><h3>Que: How is the final output generated after attention and feed-forward processing?</h3><p><strong>Answer:</strong> After attention and feed-forward processing, the transformer passes the refined embeddings through a linear transformation layer followed by a softmax function. This produces a probability distribution over the vocabulary for each token position, allowing the model to predict the most likely word or token at each step.</p><h3>Que: Does ChatGPT require an encoder during inference?</h3><p><strong>Answer:</strong> No, ChatGPT does not require an encoder during inference. It is a decoder-only transformer architecture, which means it uses its decoder stack for both understanding input and generating output. The model processes the input tokens, applies self-attention, and generates tokens sequentially until the output is complete.</p><p>Some other important Points :<br>1. Multi-Head Attention (MHA) itself does not inherently introduce non-linearity. However, it involves matrix multiplications and softmax operations. Non-linear activations, such as ReLU, are employed in the feedforward layers of Transformers to enhance expressiveness by enabling the model to capture complex, non-linear relationships. The trainable parameters W1W_1W1​ and W2W_2W2​ in the feedforward network are linear transformations, and the ReLU activation function introduces the required non-linearity</p><p>2. 3 AI Engines are there <br>NPU : Neural Processing Unit (Specially Designed for Power Efficient :) Now Your Laptop will not heat up while performing ) <br>CPU : Fast Response but Low Latency<br>GPU : High Throughput</p><p>We see AI by Inference Time and FPS , Suitably more FPS and less Inference time is better. NPU has relatively similar inference than CPU and more FPS but main thing is here it run in more power efficient Way. One more param to measure is TOPs Tera Operations Per Second</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cd613471c833" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Better Design]]></title>
            <link>https://medium.com/design-bootcamp/a-better-design-4ce2aa3685e0?source=rss-bf837a53801f------2</link>
            <guid isPermaLink="false">https://medium.com/p/4ce2aa3685e0</guid>
            <category><![CDATA[ideas]]></category>
            <category><![CDATA[design]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[product-design]]></category>
            <category><![CDATA[universal-data-transfer]]></category>
            <dc:creator><![CDATA[Naman Anand]]></dc:creator>
            <pubDate>Sun, 05 Jan 2025 13:21:03 GMT</pubDate>
            <atom:updated>2025-01-07T22:09:41.314Z</atom:updated>
            <content:encoded><![CDATA[<h3>The first secret of great design</h3><p>Recently, I came across an insightful TED Talk by Tony Fadell. It captivated me deeply. As someone who usually values developers more over product designers, this video completely flipped my perspective.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F9uOMectkCCs%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D9uOMectkCCs&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F9uOMectkCCs%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/5a21b35d758bdf1b88e9ea9ecd681c42/href">https://medium.com/media/5a21b35d758bdf1b88e9ea9ecd681c42/href</a></iframe><p>The Handwritten mind Map Image for this talk :</p><figure><img alt="Mind Map" src="https://cdn-images-1.medium.com/max/920/1*0Gf_GBiZxXJyqu4-f69Ntg.jpeg" /></figure><p><strong>So, what does it focus on?</strong></p><ol><li><strong>Look Broader : </strong>Think beyond the obvious. Can we recombine or remove elements from our workflows? Always ask the critical question: “Is this even necessary in the first place?”</li><li><strong>Look Closer :</strong> Pay attention to the tiny details. For instance, instead of using a variety of screws, can we simplify the design by standardizing with a single type? Small adjustments can lead to significant improvements.</li><li><strong>Think Young :</strong> Approach problems with the curiosity of a child. Ask simple, foundational questions that others might overlook.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/668/0*luJrxmHrKCcUJzCw" /><figcaption>Invention of Wind-Shield Wiper</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/612/0*EQoaS9mawXpCOqJI" /><figcaption>Screws</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/195/0*zGSYf1aIzcsweppF" /><figcaption>Automatic Thermostat</figcaption></figure><h3>Universal Data Transfer Method</h3><p>Based on my learnings from previous video , I want to put that ideas in my Space. As of Today I use to see a lot of types of cables.</p><p>So instead of buying new cables , Can we introduce a device that you can attach over this endpoints and Switch to your desired endpoint ?</p><p>I am suggesting a <strong>universal convertor</strong> .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*OcRIu8loKhwOUB5U.jpg" /><figcaption>Diff type of cables</figcaption></figure><p>Thank you for reading my blog. If this resonates with you, let me know your thoughts in the comments!<br>I will like to connect with you in Linkedin , Don’t forget to add a note :) I get a lot of requests . Here’s my <a href="https://www.linkedin.com/in/naman125/">LinkedIn</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4ce2aa3685e0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/design-bootcamp/a-better-design-4ce2aa3685e0">A Better Design</a> was originally published in <a href="https://medium.com/design-bootcamp">Bootcamp</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Knight Marco-o1 and A Journey into the Labyrinth of Open-Ended Problems]]></title>
            <link>https://naman5a.medium.com/the-knight-marco-o1-and-a-journey-into-the-labyrinth-of-open-ended-problems-1f541b4fcd3e?source=rss-bf837a53801f------2</link>
            <guid isPermaLink="false">https://medium.com/p/1f541b4fcd3e</guid>
            <category><![CDATA[reasoning]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[llms-reasoning]]></category>
            <dc:creator><![CDATA[Naman Anand]]></dc:creator>
            <pubDate>Sun, 24 Nov 2024 05:13:44 GMT</pubDate>
            <atom:updated>2024-11-24T05:17:37.151Z</atom:updated>
            <content:encoded><![CDATA[<p>Reference : <a href="https://arxiv.org/pdf/2411.14405">https://arxiv.org/pdf/2411.14405</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zd6IrislD-I1IPeQ1rludg.png" /><figcaption>Approach to Open Ended Solutions</figcaption></figure><p>There was a place where legendary knights like GPT, Bard, and Claude would venture, armed with wisdom, algorithms, and sheer computational power, to solve the riddles . These challenges, while difficult, often had clear paths — logical sequences, patterns, and rules that guided the way.</p><p>But There was a place deep within a Village, hidden behind a veil of uncertainty, “<strong>Labyrinth of Open-Ended Problems”</strong>. A maze with no defined paths, no fixed rules, and, worst of all, no single “correct” answer. It was said to be unsolvable.</p><p>Then came a new challenger — <strong>Marco</strong>, armed with more than just courage. He had a new set of tools, and a strategy . His quest? To conquer the Labyrinth of Open-Ended Problems.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KNZBRPZsKtaLQiWAZ-FK7g.png" /></figure><h3>Preparing for the Quest:</h3><h3>1. Chain-of-Thought (CoT) Fine-Tuning</h3><p>Marco understood that labyrinth required wisdom and strategy more than brute force and raw strength . His preparation began with the <strong>Chain-of-Thought (CoT) Scrolls</strong>. These scrolls didn’t just provide answers; they taught him how to <strong>think through problems, step-by-step</strong>.</p><p>For example, when faced with the question, “How many ‘r’s are in the word ‘strawberry’?”, previous knights might have rushed to shout, “Two!” But Marco, trained in the arts of CoT, took his time — counting each ‘r’ patiently, step-by-step, until he concluded, “Two.”</p><h3>2. Monte Carlo Tree Search (MCTS)</h3><p>Now , Marco set his foot in the labyrinth. Almost immediately, he was overwhelmed by the number of choices at each junction. Left or right? Up or down? Climb the ladder or take the tunnel? To avoid getting lost, Marco turned to a powerful tool — the <strong>Monte Carlo Tree Search (MCTS)</strong>.</p><p>MCTS was like a map, allowing Marco to explore multiple paths simultaneously. Here’s how it guided him:</p><ul><li><strong>Mapping the Nodes and Choosing Actions </strong>: Every decision point in the labyrinth became a “node” in his problem-solving journey. Each choice of action resulted a new node, with further new possibilities.</li><li><strong>Testing the Paths</strong>: Instead Marco exploring blindly , he sent out “scouts” to test potential paths — each scout returning with confidence scores that how promising a path might be.</li><li><strong>Reward Signals</strong>: Some paths led to hidden treasures, others to dead ends. The successful routes earned higher rewards, guiding Marco’s next steps.</li></ul><h3>3. Granular Action Strategies</h3><p>Broad actions, like rushing through entire chambers, led to missed clues. So , he needed to <strong>slow down and examine details</strong> with precision. Therefore He broke his journey into <strong>smaller steps</strong> and <strong>mini steps </strong>instead of grand gestures. Mini Steps means 64 or 32 tokens , allowing him to notice subtle hints — each clue leading him closer to the solution.</p><h3>4. Reflection Mechanism</h3><p>Yet, even with his careful planning, mistakes were inevitable. To not stumble with mistakes , Marco used <strong>The Reflection Mechanism</strong>.</p><p>When he stumbled, he paused, asking himself , “Wait! Maybe I made some mistakes! I need to rethink from scratch” He’d retrace his steps, analyze his error, and rethink his strategy from scratch. This process not only corrected mistakes but also strengthened his understanding, making him more resilient with each setback.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KfNh0P4H0fJWZ1j1Y9S0-A.png" /></figure><h3>Finally Triumph</h3><p>After countless trials, Marco emerged victorious. He had not only navigated the labyrinth but uncovered treasures that no knight had found before:</p><ul><li>New methods for <strong>translating complex ideas</strong> — like turning “This shoe feels like stepping on clouds” into relatable phrases in another language.</li><li>Techniques for <strong>adapting strategies to different environments</strong></li></ul><h3>Lessons from Marco-o1’s Journey</h3><p>Marco’s story is a lesson for all of us facing the complex, open-ended challenges . Here’s what we can learn:</p><ol><li><strong>Step-by-Step Reasoning</strong>: Use structured, logical thought processes (just like CoT training).</li><li><strong>Exploration and Evaluation</strong>: Test possibilities before committing to a path (like MCTS and confidence scores).</li><li><strong>Flexibility in Approach</strong>: Adapt to new information, taking smaller, more manageable steps when necessary.</li><li><strong>Self-Reflection and Revision</strong>: Be willing to rethink and revise — mistakes are part of the journey.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1f541b4fcd3e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>