SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2210.11805 · EMNLP · 2022

Robustifying Sentiment Classification by Maximally Exploiting Few Counterfactuals

Thomas Demeester, Chris Develder, Maarten De Raedt, Fréderic Godin, Sinch Chatlayer

arXiv · PDF · Open in the Atlas

Code that ran

We have not lifted any functions out of this paper's repositories yet, so there is nothing we have run. The repositories linked to it are listed below.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

For text classification tasks, finetuned language models perform remarkably well. Yet, they tend to rely on spurious patterns in training data, thus limiting their performance on outof-distribution (OOD) test data. Among recent models aiming to avoid this spurious pattern problem, adding extra counterfactual samples to the training data has proven to be very effective. Yet, counterfactual data generation is costly since it relies on human annotation. Thus, we propose a novel solution that only requires annotation of a small fraction (e.g., 1%) of the original training data, and uses automatic generation of extra counterfactuals in an encoding vector space. We demonstrate the effectiveness of our approach in sentiment classification, using IMDb data for training and other sets for OOD tests (i.e., Amazon, SemEval and Yelp). We achieve noticeable accuracy improvements by adding only 1% manual counterfactuals: +3% compared to adding +100% in-distribution training samples, +1.3% compared to alternate counterfactual approaches. Counterfactually Revised Sample (x CAD ) NEGATIVE → POSITIVE one of the worst ever scenes in a sports movie. 3 stars out of 10. one of the wildest ever scenes in a sports movie. 8 stars out of 10. POSITIVE → NEGATIVE The world of Atlantis, hidden beneath the earth's core, is fantastic. The world of Atlantis, hidden beneath the earth's core is supposed to be fantastic.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2210.11805")
get_code_for_paper("2210.11805")
have("2210.11805")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2210.11805.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2210.11805.svg)](https://syntology.ai/paper/2210.11805)

Connect an agent — have() is free.