Improved Text Classification via Test-Time Augmentation

Authors: Helen Lu, Divya Shanmugam, Harini Suresh, John Guttag

License: CC BY 4.0

Results of the summarizing process for the arXiv paper: 2206.13607v1

  • Comprehensive Summary
  • Key points
  • Layman's Summary
  • Blog article
Test-time augmentation (TTA) is a well-established technique in image classification that involves aggregating predictions across transformed examples of test inputs to improve model performance without additional training. However, TTA has seen limited adoption in natural language processing (NLP) due to the difficulty of identifying label-preserving transformations. In this paper titled "Improved Text Classification via Test-Time Augmentation," the authors present augmentation policies that yield significant accuracy improvements with language models using TTA. The study shows that augmentation policy design, such as the number of samples generated from a single non-deterministic augmentation, has a considerable impact on the benefit of TTA. The authors apply an augmentation policy containing M transforms to generate M transformed inputs from a text input t. All M + 1 inputs, including the original and transformed ones, are then passed into a pre-trained classifier f to generate (M + 1) RC vectors containing class logit predictions. A single prediction is generated by applying a simple average to the M + 1 logit predictions. The authors choose averaging because it is the simplest version of TTA and suits their goal of understanding the baseline value of TTA in NLP. The study evaluates the performance of their method across a dataset and model architecture laid out in detail in subsequent sections. They use the WILDS CivilComments dataset which consists of 448,000 comments made on Wikipedia talk pages labeled for toxicity and identity-based hate speech detection tasks. Experiments show that test-time augmentation can deliver consistent improvements over current state-of-the-art approaches across binary classification tasks and datasets. The authors also find that certain combinations of augmentations such as Insertion+Swap+Synonym (PPDB)+Synonym (WordNet) or Deletion+Insertion+Swap+Synonym (PPDB) yield better results than others. Overall, this study demonstrates how test-time augmentation can be applied effectively to improve text classification models' performance without additional training. The authors' augmentation policies and findings provide valuable insights for future research in this area.
AI-generated keywords: Test-Time Augmentation Text Classification NLP WILDS CivilComments Augmentation Policy

AI-generated Key Points

  • Test-time augmentation (TTA) is a technique used in image classification to improve model performance without additional training.
  • TTA has seen limited adoption in natural language processing (NLP) due to the difficulty of identifying label-preserving transformations.
  • The authors present augmentation policies that yield significant accuracy improvements with language models using TTA.
  • Augmentation policy design, such as the number of samples generated from a single non-deterministic augmentation, has a considerable impact on the benefit of TTA.
  • The authors apply an augmentation policy containing M transforms to generate M transformed inputs from a text input t.
  • A single prediction is generated by applying a simple average to the M + 1 logit predictions.
  • The study evaluates the performance of their method across the WILDS CivilComments dataset which consists of 448,000 comments made on Wikipedia talk pages labeled for toxicity and identity-based hate speech detection tasks.
  • Experiments show that test-time augmentation can deliver consistent improvements over current state-of-the-art approaches across binary classification tasks and datasets.
  • Certain combinations of augmentations yield better results than others.
  • This study demonstrates how test-time augmentation can be applied effectively to improve text classification models' performance without additional training.
Also access our AI generated: Comprehensive summary, Lay summary, Blog-like article; or ask questions about this paper to our AI assistant.

Abstract: Test-time augmentation -- the aggregation of predictions across transformed examples of test inputs -- is an established technique to improve the performance of image classification models. Importantly, TTA can be used to improve model performance post-hoc, without additional training. Although test-time augmentation (TTA) can be applied to any data modality, it has seen limited adoption in NLP due in part to the difficulty of identifying label-preserving transformations. In this paper, we present augmentation policies that yield significant accuracy improvements with language models. A key finding is that augmentation policy design -- for instance, the number of samples generated from a single, non-deterministic augmentation -- has a considerable impact on the benefit of TTA. Experiments across a binary classification task and dataset show that test-time augmentation can deliver consistent improvements over current state-of-the-art approaches.

Submitted to arXiv on 27 Jun. 2022

Tools for this paper

Explain it differently 3 free rewrites left today
Export BibTeX · RIS (Zotero, Mendeley, EndNote) · Markdown (Notion, Obsidian) · Premium
Citation alerts Premium
Journal club Slides to present it Premium
For journalists Press kit and hype check Premium

Ask questions about this paper to our AI assistant

You can also chat with multiple papers at once here.

Figures and plots

Ask about a figure by number or use its question button to request visual analysis. Up to two figures and four image panels per question. Values read from plots are approximate; check the original data.

AI assistant instructions?

Assess the quality of the AI-generated content by voting

Score: 0

Why do we need votes?

Votes are used to determine whether we need to re-run our summarizing tools. If the count reaches -10, our tools can be restarted.

The previous summary was created more than a year ago and can be re-run (if necessary) by clicking on the Run button below.

Similar papers summarized with our AI tools

Navigate through even more similar papers through a

tree representation

Disclaimer: The AI-based summarization tool and virtual assistant provided on this website may not always provide accurate and complete summaries or responses. We encourage you to carefully review and evaluate the generated content to ensure its quality and relevance to your needs.