Skip to main content
QUICK REVIEW

[Paper Review] When and Why Test-Time Augmentation Works

Divya Shanmugam, Davis Blalock|arXiv (Cornell University)|Nov 23, 2020
Domain Adaptation and Few-Shot LearningComputer Science16 references34 citations
TL;DR

This paper investigates when and why test-time augmentation (TTA) improves or harms model predictions, revealing that TTA can incorrectly flip correct predictions even when overall accuracy improves. It proposes a learning-based aggregation method that adapts to data, model, and augmentation characteristics, consistently outperforming existing TTA approaches across diverse benchmarks.

ABSTRACT

Test-time augmentation (TTA)---the aggregation of predictions across transformed versions of a test input---is a common practice in image classification. In this paper, we present theoretical and experimental analyses that shed light on 1) when test time augmentation is likely to be helpful and 2) when to use various test-time augmentation policies. A key finding is that even when TTA produces a net improvement in accuracy, it can change many correct predictions into incorrect predictions. We delve into when and why test-time augmentation changes a prediction from being correct to incorrect and vice versa. Our analysis suggests that the nature and amount of training data, the model architecture, and the augmentation policy all matter. Building on these insights, we present a learning-based method for aggregating test-time augmentations. Experiments across a diverse set of models, datasets, and augmentations show that our method delivers consistent improvements over existing approaches.

Motivation & Objective

  • To understand the conditions under which test-time augmentation (TTA) improves or degrades model performance.
  • To identify why TTA can change correct predictions into incorrect ones, even when net accuracy improves.
  • To analyze the influence of training data quantity, model architecture, and augmentation policies on TTA effectiveness.
  • To develop a learning-based TTA aggregation method that adapts to data and model characteristics for consistent gains.

Proposed method

  • The authors conduct theoretical and empirical analyses to study the impact of TTA on prediction correctness, focusing on distribution shifts induced by augmentations.
  • They analyze how different augmentation policies affect model predictions, particularly the likelihood of flipping correct predictions.
  • A learning-based aggregation method is proposed that learns optimal weights for combining predictions across augmented inputs.
  • The method is trained to minimize prediction error by modeling the reliability of each augmented prediction based on input and model features.
  • Experiments are conducted across diverse models, datasets, and augmentation policies to validate the method’s robustness and gains.

Experimental results

Research questions

  • RQ1Under what conditions does test-time augmentation improve or degrade model accuracy?
  • RQ2Why does TTA sometimes change correct predictions into incorrect ones, even when overall accuracy improves?
  • RQ3How do training data size, model architecture, and augmentation policy interact to influence TTA performance?
  • RQ4Can a learning-based method for aggregating TTA predictions outperform standard averaging or heuristic weighting?

Key findings

  • TTA can improve overall accuracy while simultaneously flipping many correct predictions into incorrect ones, indicating a trade-off in prediction reliability.
  • The likelihood of prediction flipping depends on the model’s confidence, data distribution, and the specific augmentation applied.
  • Models trained on smaller datasets are more prone to incorrect flips under TTA, especially with aggressive augmentations.
  • The proposed learning-based aggregation method achieves consistent improvements over standard TTA methods across all evaluated models and datasets.
  • The method effectively reduces the number of incorrect flips while maintaining or improving accuracy gains from TTA.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.