<?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 Vishesh on Medium]]></title>
        <description><![CDATA[Stories by Vishesh on Medium]]></description>
        <link>https://medium.com/@vishesh3108?source=rss-b82d42b01d6b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*jsEdqmb5oB5AfoxT</url>
            <title>Stories by Vishesh on Medium</title>
            <link>https://medium.com/@vishesh3108?source=rss-b82d42b01d6b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 03:45:11 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@vishesh3108/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[Scaling Sparse Feature Circuits For Studying In-Context Learning]]></title>
            <link>https://medium.com/@vishesh3108/scaling-sparse-feature-circuits-for-studying-in-context-learning-87a2beece992?source=rss-b82d42b01d6b------2</link>
            <guid isPermaLink="false">https://medium.com/p/87a2beece992</guid>
            <category><![CDATA[llm-evaluation]]></category>
            <category><![CDATA[interpretability]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[gemma]]></category>
            <category><![CDATA[llm-applications]]></category>
            <dc:creator><![CDATA[Vishesh]]></dc:creator>
            <pubDate>Sun, 25 May 2025 14:27:20 GMT</pubDate>
            <atom:updated>2025-05-25T14:27:20.975Z</atom:updated>
            <content:encoded><![CDATA[<h3>Terminology</h3><ul><li>Task — Task is any operation that a LLM performs. For e.g. find the antonym of hot -&gt; cold.</li><li>Task Vectors- Internal representations within LLM that defines a task. Its Model understanding of a task.</li><li>Steering — Method to investigate causal relevance of the sparse features identified using SAE (for e.g. b/w task detection and task-execution)</li><li>Negative steering — Feature direction is multiplied by -1 to see if removing the finalized feature contribution degrades the task performance.</li></ul><h3>Introduction</h3><p>The paper talks about SAEs (Sparse autoencoders, essentially a neural network) utility in ICL (In Context Learning) which is LLM capability to adapt new tasks without fine-tuning. There’s has been work on establishing SAEs use in decomposing dense model activations into sparse and interpretable features but this paper talks about using SAEs to understand ICL in LLM like Gemma-1 2B</p><p>Major components discussed in the paper.</p><ul><li>Demonstrating that SAEs can be used to analyze ICL mechanisms in Gemma-1 2B . The end goal is to reduce the number of active features from 10–20 to 2–4.</li><li>Two important concepts — <strong>task-detection</strong> features and <strong>task-execution</strong> features were introduced. Task detection feature identifies required tasks from the prompt and activates mostly on the training data (specifically output pair). Task-execution features implements those tasks during generation (activated on the test data, for e.g. arrow token).</li><li>Task-detection and Task-execution causality is discussed. ICL circuits process information from task-detection features to activate the appropriate task-execution features</li><li>TVC algorithm — sparse linear decomposition method. Task vectors needs to be decomposed to features for the model input. TVC algorithm was designed to do the decomposition and find important set of features. This was required because decomposing task vectors using SAEs was not enough due to the nature of tasks (out of distribution, dense and irrelevant).</li><li>SFC (Sparse Feature Circuits) — Although not novel, the paper talks about SFC which is used to analyze model behavior (for e.g. why this output). SFC uses SAEs to breakdown/decompose the complex high dimensional model activations into sparse interpretable features. SFC then finds causally relevant features using Indirect Effect (IE) to reduce the number of active features making the Gemma-1 2B model which is then used for interpretability. IE is like asking if I change a specific feature how much does it affect the final behavior. (called indirect because the influence of variable might not be directly on the output variable but thru a series of variables).</li><li>The original SFC approach didn’t work out of the box so the paper talks about several modifications to the SFC.</li></ul><h3>TVC Algorithm</h3><p>The paper came up with a novel algorithm for decomposing task vector into important set of features — TVC (Task Vector Cleaning) algorithm.</p><ol><li>Takes task vector and apply SAE to get initial list of potential features.</li><li>This list would be messy. Build a new task vector using sparse features from the list. Initial guess will be on feature contributions (aka weights)</li><li>Test the above on actual data</li><li>Based on the actual response, add penalty to the weights (or finetune) to get an updated list of features. Interestingly there’s also penalty for using more features by adding a measure L1 norm of feature contribution to the performance score (This is to ensure algo optimizes on low features).</li></ol><p>The final list of features is known as task-execution features. More interpretable than the noisy initial list of features making TVC algo a crucial part of the paper. This was evident from reduction of active features by 70%.</p><h3>Future Work</h3><ul><li>The paper talks about task vectors of relatively simple nature (input, output, prompt, arrow). The same model could be tested for a more complex set of tasks to test the detection and execution.</li><li>In the IE approximation quality section, SFC features which relies on IE had low correlation b/w actual effect and approximation. The quality remains low till layer 6 which was 2 in the original SFC paper. <a href="https://screenshot.googleplex.com/42aofYfRXFpZ4yM">As the paper suggests</a>, this could be due to the modifications in SFC — tokenization, training quality. It would be nice to explore this route too.</li><li>The paper at the end talks about certain limitations where for certain tasks, task execution and task-detection causality was unusually weak. It’d be interesting to explore what kind of tasks are these and why they behave the way.</li><li>A very interesting observation was that despite negative steering the task performance degradation wasn’t uniform. This raises the question that non-task features (non primary features) could degrade the performance when negatively steered. Optimizing TVC to yield even cleaner, more purely task-specific features could be explored.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=87a2beece992" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My Microsoft Interview Experience]]></title>
            <link>https://medium.com/@vishesh3108/my-microsoft-interview-experience-8cc827162744?source=rss-b82d42b01d6b------2</link>
            <guid isPermaLink="false">https://medium.com/p/8cc827162744</guid>
            <category><![CDATA[interview-experience]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[tech]]></category>
            <dc:creator><![CDATA[Vishesh]]></dc:creator>
            <pubDate>Sat, 31 Dec 2022 09:25:13 GMT</pubDate>
            <atom:updated>2022-12-31T09:44:05.326Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*0AL9t1omgVZcekn7Ses6hQ.jpeg" /></figure><p>Hey all,</p><p>Vishesh here.</p><p>I am writing after a long time and I feel happy doing that. Writing used to be my passion as I was growing up but I left it in between somewhere amidst life and work. Maybe I will pick it up from where I left soon.</p><p>Today, I wanted to share my interview experience for Microsoft SDE-2 position with all of you. I will keep it short and try to make sure that you gain something useful out of it. This is my first post at Medium so please feel free to suggest anything you feel could be better or appreciate if it is of any help to you.</p><p>Before joining my current company I gave interviews at multiple companies and Microsoft was one of them. I had asked my friend at Microsoft to help me with a referral. For many months that referral was in an inactive state. But without me doing anything, one day the recruiter reached out and started my process. I don’t think my process would have ever started without the referral as I had tried applying in past too.</p><p>I had 4 rounds of interviews. My phone interviews were skipped. I will not share the problems but map to similar idea publicly available problems.</p><p><strong>First Round</strong></p><blockquote>It was a linked list based question similar to Tortoise and Hare (but not the same). I felt that Microsoft asks a lot of linked list based ones from the other interview experiences. I gave two approaches one recursive and iterative and compared them. We had sometime left in the end so the interviewer asked me a puzzle.</blockquote><blockquote>It was an interesting one which involved generating a random number without using random generator. We discussed multiple approaches and then I arrived to a deterministic solutions with some assumptions.</blockquote><p><strong>Second Round</strong></p><blockquote>This round started with asking about my projects and past experiences. Then we went on a DSA + Design question similar to multiple cache eviction algorithms.</blockquote><p><strong>Third Round</strong></p><blockquote>This was again a DSA round. I was asked a question related to balancing parenthesis and longest subsequence. I came up with the solution. I was asked a follow up question to print all possible solutions which I did in time.</blockquote><p><strong>Fourth Round</strong></p><blockquote>This was the most interesting round. I was asked a question where I had to design a data structure to solve some problem. The definition of the data structure that I came up with was recursive. The interviewer was expecting something else which was more library based but he was happy with the solution I came up with and we discussed around how can it be more generalized for 15–20 min.</blockquote><p>Finally I was offered the role but I decided to move with other company for multiple reasons. Overall the interview at Microsoft was a great experience.</p><p>Connect with me on <a href="https://www.linkedin.com/in/vishesh-sharma-407105151/">Linkedin</a> if you are interested in talking about tech, software engineering or interview preparations.</p><p>Thank you for reading!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8cc827162744" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>