<?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 Haris Widjaja on Medium]]></title>
        <description><![CDATA[Stories by Haris Widjaja on Medium]]></description>
        <link>https://medium.com/@haris.widjaja?source=rss-d57804898959------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*truIHS2R8K-sYPKR.jpg</url>
            <title>Stories by Haris Widjaja on Medium</title>
            <link>https://medium.com/@haris.widjaja?source=rss-d57804898959------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 18:35:09 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@haris.widjaja/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[DynaBench]]></title>
            <link>https://medium.com/@haris.widjaja/dynabench-3705ef39ac76?source=rss-d57804898959------2</link>
            <guid isPermaLink="false">https://medium.com/p/3705ef39ac76</guid>
            <dc:creator><![CDATA[Haris Widjaja]]></dc:creator>
            <pubDate>Wed, 16 Mar 2022 21:01:54 GMT</pubDate>
            <atom:updated>2022-03-16T21:01:54.011Z</atom:updated>
            <content:encoded><![CDATA[<p>The rapid advances in machine learning have provided researchers and engineers a powerful toolkit for building complex prediction systems quickly. However, much recent research has exposed that machine learning models do not truly reason as much as exploit spurious correlations (“shortcut learning”), and are prone to perpetuate harmful biases. These are important aspects of ML model quality which a single accuracy metric on an out-of-sample test set cannot answer.</p><p>DynaBench is a model quality platform built around the notion that test sets should become progressively harder as ML models become more powerful. By <strong>continuously finding weaknesses in ML models</strong> <strong>and retraining them on these harder examples</strong>, we hope that the ML models become progressively stronger as well.</p><h3>Collection of adversarially hard examples</h3><p>To facilitate this process, DynaBench provides an interface where people can attempt to “fool” a machine learning model by submitting difficult inputs that would cause the model to make the wrong prediction. Examples which successfully fool the model are then added to an internal example bank that will later be used to train the model, making it stronger. Consider the following sentiment analysis example, where we are trying to write a sentence with “negative” sentiment which a submitted model mistakenly thinks is “positive” or “neutral”:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*GdIyPvI5EE8S7gxjHAVLtA.png" /></figure><p>It’s a very enlightening exercise — it wasn’t as easy as I thought it would be, which is a testament to the strength of this framework as the model has already been trained on several “rounds” of these harder examples. Here’s a few things I tried:</p><ol><li>Including positive words which refer to a competitor, not the product itself</li></ol><p>Input: <em>“There are more interesting books”</em></p><p>Model prediction: negative (78.59% confidence)</p><p>2. Nesting the negative sentiment inside positive phrases</p><p>Input: <em>“It never ceases to amaze me how the author can make such an interesting topic so dull”</em></p><p>Model prediction: negative (97.78% confidence)</p><p><a href="https://dynabench.org/tasks/sentiment/create">Try it yourself</a> and see if you can fool the model!</p><h3>Model Leaderboards</h3><p>The figure below shows the leaderboard for the Natural Language Inference task. It might look complicated, but don’t worry — we’ll dive into what each component does.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*fgacuMi5GQyIIgLNOYaeqg.png" /></figure><h3>Task description</h3><p>At the top of the page, you see a description of the task you’re viewing. In this case it’s Natural Language Inference, with a description of what the task entails, painting a picture of why it is a challenging ML problem.</p><h3>Adversarial training rounds</h3><p>You also see the statistics of the current “round”, which indicates how many rounds of re-training with adversarial examples the submitted models have undergone. Each round is built out of the inputs where the model failed in the previous round. In this example, we see that the community has submitted around 44 thousand examples in the current round, 18 thousand of which causes the model to make a mistaken prediction. To ensure the quality of submitted data, submitted examples must be verified by a person who is not the submitter of the example. For this round, only one example out of the 44 thousand have been manually verified.</p><h3>Submitting and Validating Examples and Models</h3><p>All registered users can create new examples which attempt to fool submitted models as described previously, or validate adversarial examples that other users submit. They can also submit their own models to see how it stacks up to existing models on the leaderboard.</p><h3>Model leaderboard</h3><p>Once you submit your own model (instructions <a href="https://github.com/facebookresearch/dynalab">here</a>; essentially you need to ensure that you provide an API to your model which allows DynaBench to interact with it in a standardized manner), you will see it in the leaderboard, and DynaBench automatically runs the community-built adversarial test sets against your model. You will be able to inspect its performance on the various rounds of adversarial datasets.</p><h3>Fairness, Robustness, and Dynascore</h3><p>In the leaderboard, there are columns for “Fairness”, “Robustness”, and “Dynascore”. These are metrics that the DynaBench team has created:</p><ol><li>Fairness: DynaBench automatically performs perturbations of original datasets by replacing noun phrases or names by phrases that are predictive of a different gender or ethnicity (e.g. replacing “he” with “her”, “James” with “Jamal”). A model is considered more ‘fair’ if its predictions do not change after perturbation, and considered less fair if they do.</li><li>Robustness: Similarly, for robustness DynaBench performs perturbations which humans would not expect to change the output of a model, e.g. “bad” with “baaad”. A model is considered more robust if its predictions do not change after these perturbations.</li><li>Dynascore: This is a somewhat subjective metric which summarizes a model’s performance based on all the other performance metrics (accuracy, throughput, memory, fairness, robustness) based on some weighting criteria. Users can modify these weights based on what they think is important for their use case.</li></ol><p>For a full description of how these metrics are calculated, consult the <a href="https://arxiv.org/pdf/2106.06052.pdf">paper</a>.</p><h3>Performance trends per round</h3><p>In the “Model Performance vs Round” Graphs, a trendline is shown reflecting the performance of the models in the leaderboard over time. We observe that models typically perform worse as we obtain more rounds of data, indicating that the data is getting “harder”, which is indeed what we desire.</p><h3>Strengths and Limitations</h3><p><strong>Strengths</strong>:</p><ol><li>Intuitive interface: It is always clear where to go to find something, and what to do when e.g. you want to submit an adversarial example for a task.</li><li>Addresses a real research and engineering need: That static benchmarks often overestimate the performance of ML models, and providing a platform which the community can jointly contribute to creating progressively harder tests for ML models.</li><li>Automatically tests ML model qualities beyond accuracy: Out of the box, DynaBench automatically calculates a fairness and robustness metric. While not definitive, it’s a good starting point for many organizations who don’t usually consider these desiderata.</li></ol><p><strong>Limitations</strong>:</p><ol><li>Limited number of supported tasks: Perhaps the most glaring limitation is that DynaBench only supports a set of highly standard natural language tasks. This limits DynaBench’s capability to help in non-standard tasks which are still very useful to industry, such as recommendation systems, audio transcription, or really any task that does not take natural language inputs.</li><li>No support for “private” models and tasks: Organizations may wish to make use of the DynaBench framework on models or tasks which they may not want to expose to the public. However, this is understandable as DynaBench is a research-oriented tool as opposed to a commercial one.</li></ol><h3>Applicability to Production Systems</h3><p>DynaBench provides us a new way of thinking about how we should develop ML models — that they should be continuously improved, not merely trained once and forgotten about, or even updated periodically when a catastrophic error has already occurred. Rather, uncovering weaknesses in ML models should be a <em>proactive process</em>. This inspires a few ideas for production systems:</p><ol><li><strong>Using DynaBench directly to monitor natural language processing models in production</strong>: If your ML pipeline contains any of the natural language tasks that DynaBench currently supports, DynaBench provides an active community of researchers and engineers who are constantly trying to “break” your ML model, warning you of mistakes before users encounter them. You can monitor the performance of your system as more adversarial rounds are created, and inspecting the inputs which your model fails on can be very valuable.</li><li><strong>Encouraging a culture of proactivity in ML development</strong>: With DynaBench’s almost gamified framing of finding model mistakes, it is very easy to encourage the developers of ML systems to “break” ML models as it is to build them. This encourages a healthy culture of “debugging” ML models before releasing them into production.</li><li><strong>Informs how we should collect telemetry</strong>: One of the goals of telemetry is to inform us how to improve our intelligent systems. DynaBench reminds us that the most valuable telemetry comes from catastrophic failures, e.g. an interaction that a user finds unacceptable which is caused by ML models. By designing telemetry with this in mind, we can gain a lot of value out of failures that users encounter.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3705ef39ac76" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>