Fixing Model Bugs with Natural Language Patches

11/07/2022
by   Shikhar Murty, et al.
0

Current approaches for fixing systematic problems in NLP models (e.g. regex patches, finetuning on more data) are either brittle, or labor-intensive and liable to shortcuts. In contrast, humans often provide corrections to each other through natural language. Taking inspiration from this, we explore natural language patches – declarative statements that allow developers to provide corrective feedback at the right level of abstraction, either overriding the model (“if a review gives 2 stars, the sentiment is negative”) or providing additional information the model may lack (“if something is described as the bomb, then it is good”). We model the task of determining if a patch applies separately from the task of integrating patch information, and show that with a small amount of synthetic data, we can teach models to effectively use real patches on real data – 1 to 7 patches improve accuracy by  1-4 accuracy points on different slices of a sentiment analysis dataset, and F1 by 7 points on a relation extraction dataset. Finally, we show that finetuning on as many as 100 labeled examples may be needed to match the performance of a small set of language patches.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
09/01/2021

Multipatch ZIKV Model and Simulations

In this article we compare two multi-patch models for the spread of Zika...
research
06/08/2020

A Comprehensive Survey on Aspect Based Sentiment Analysis

Aspect Based Sentiment Analysis (ABSA) is the sub-field of Natural Langu...
research
11/10/2019

Generalizing Natural Language Analysis through Span-relation Representations

A large number of natural language processing tasks exist to analyze syn...
research
05/05/2020

ExpBERT: Representation Engineering with Natural Language Explanations

Suppose we want to specify the inductive bias that married couples typic...
research
08/08/2022

Is this Change the Answer to that Problem? Correlating Descriptions of Bug and Code Changes for Evaluating Patch Correctness

In this work, we propose a novel perspective to the problem of patch cor...
research
04/04/2021

Code Reviews with Divergent Review Scores: An Empirical Study of the OpenStack and Qt Communities

Code review is a broadly adopted software quality practice where develop...
research
07/02/2011

A random walk on image patches

In this paper we address the problem of understanding the success of alg...

Please sign up or login with your details

Forgot password? Click here to reset