<?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 Mor Geva Pipek on Medium]]></title>
        <description><![CDATA[Stories by Mor Geva Pipek on Medium]]></description>
        <link>https://medium.com/@mega.mor?source=rss-da6a14da0138------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*kk7zUSXPerwJdJxJE8DlVg.jpeg</url>
            <title>Stories by Mor Geva Pipek on Medium</title>
            <link>https://medium.com/@mega.mor?source=rss-da6a14da0138------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 20:27:26 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mega.mor/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[Introducing LM-Debugger]]></title>
            <link>https://medium.com/ai2-blog/introducing-lm-debugger-d34e94444dc2?source=rss-da6a14da0138------2</link>
            <guid isPermaLink="false">https://medium.com/p/d34e94444dc2</guid>
            <category><![CDATA[gpt]]></category>
            <category><![CDATA[language-model]]></category>
            <category><![CDATA[interpretability]]></category>
            <category><![CDATA[nlproc]]></category>
            <category><![CDATA[debugging]]></category>
            <dc:creator><![CDATA[Mor Geva Pipek]]></dc:creator>
            <pubDate>Thu, 28 Apr 2022 21:50:38 GMT</pubDate>
            <atom:updated>2023-05-19T20:17:56.246Z</atom:updated>
            <content:encoded><![CDATA[<h4>An interactive tool for inspection and intervention in transformer-based language models</h4><p>Transformer-based language models (LMs) are the backbone of modern NLP models, but their internal prediction construction process is opaque. This is problematic for end-users who do not understand why a model makes specific predictions, as well as for developers who wish to debug or fix model behavior.</p><p>To increase the transparency of LMs, <strong>we introduce LM-Debugger, a powerful, interactive </strong><a href="https://github.com/mega002/lm-debugger"><strong>open-source</strong></a><strong> tool for fine-grained interpretation and intervention in LM predictions</strong>. LM-Debugger leverages recent findings by Geva et al. 2022 <strong>[1] </strong>to provide three core capabilities for single-prediction debugging and model analysis.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/432/1*UhjsOzHRLDirXBQ8tcxqGA.png" /></figure><p>First, for a given input (e.g. <em>“She is working as a”</em>), LM-Debugger <strong>interprets the model’s prediction</strong> across the network and the major changes applied to it by FFN layers. This is done by projecting the token representation before and after the FFN update as well as the major FFN updates at any layer to the output vocabulary.</p><p>Second, it allows the user to <strong>intervene in the prediction</strong> process by changing the weights of specific FFN updates of her choice, e.g. increasing (decreasing) an update that promotes music-related (teaching-related) concepts, which results in a modified output.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F5D_GiJv7O-M%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D5D_GiJv7O-M&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/13bdf965c65b5ae5f9ebd0695aa231e2/href">https://medium.com/media/13bdf965c65b5ae5f9ebd0695aa231e2/href</a></iframe><p>Last, beyond debugging single predictions, LM-Debugger interprets all the FFN parameter vectors across the network and creates a search index over the tokens they promote. This allows an input-independent analysis of the concepts encoded by the model’s FFN layers and enables configuring general and effective interventions.</p><h4><strong>Try out LM-Debugger with our live demo, or use it to debug and control your own LM!</strong></h4><p>Our current implementation of LM-Debugger supports any GPT2 model from <a href="https://huggingface.co/gpt2">HuggingFace</a>, and other auto-regressive models can be plugged-in with only a few local modifications (e.g. translating the relevant layer names). More details and instructions for how to deploy and run LM-Debugger can be found in <a href="https://github.com/mega002/lm-debugger"><strong>the code repository</strong></a>.</p><p>You can try out LM-Debugger with our two live demos for <a href="https://lm-debugger.apps.allenai.org/"><strong>GPT2-medium</strong></a> and <a href="https://lm-debugger-l.apps.allenai.org/"><strong>GPT2-large</strong></a>.</p><p><em>LM-Debugger was developed as part of a joint collaborative effort of NLP researchers and engineers at Allen Institute for AI, Tel Aviv University, Bar-Ilan University, and the Hebrew University of Jerusalem. To read more about LM-Debugger, check out </em><a href="https://arxiv.org/abs/2204.12130"><strong><em>our paper</em></strong></a><em>.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/200/1*RW2PLdJHEznYix1yYUUriQ.png" /></figure><p><strong>[1]</strong> Mor Geva, Avi Caciularu, Kevin Ro Wang, and Yoav Goldberg. 2022. “<em>Transformer feed-forward layers build predictions by promoting concepts in the vocabulary space.”</em> arXiv preprint arXiv:2203.14680.</p><p><em>Follow </em><a href="http://twitter.com/allen_ai"><em>@allen_ai</em></a><em> on Twitter, and subscribe to the </em><a href="https://share.hsforms.com/1uJkWs5aDRHWhiky3aHooIg3ioxm"><em>AI2 Newsletter</em></a><em> to stay current on news and research coming out of AI2.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d34e94444dc2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ai2-blog/introducing-lm-debugger-d34e94444dc2">Introducing LM-Debugger</a> was originally published in <a href="https://medium.com/ai2-blog">Ai2 Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>