Skip to main content
QUICK REVIEW

[Paper Review] SnapMix: Semantically Proportional Mixing for Augmenting Fine-grained Data

Shaoli Huang, Xinchao Wang|arXiv (Cornell University)|Dec 9, 2020
Advanced Neural Network ApplicationsComputer Science35 references8 citations
TL;DR

SnapMix proposes a novel data augmentation method for fine-grained image recognition that reduces label noise by estimating semantic composition using class activation maps (CAMs). Unlike pixel-based mixing, it computes label proportions based on semantic relevance rather than area ratios, consistently outperforming existing methods across datasets and network depths, including ResNet and DenseNet architectures.

ABSTRACT

Data mixing augmentation has proved effective in training deep models. Recent methods mix labels mainly based on the mixture proportion of image pixels. As the main discriminative information of a fine-grained image usually resides in subtle regions, methods along this line are prone to heavy label noise in fine-grained recognition. We propose in this paper a novel scheme, termed as Semantically Proportional Mixing (SnapMix), which exploits class activation map (CAM) to lessen the label noise in augmenting fine-grained data. SnapMix generates the target label for a mixed image by estimating its intrinsic semantic composition, and allows for asymmetric mixing operations and ensures semantic correspondence between synthetic images and target labels. Experiments show that our method consistently outperforms existing mixed-based approaches on various datasets and under different network depths. Furthermore, by incorporating the mid-level features, the proposed SnapMix achieves top-level performance, demonstrating its potential to serve as a solid baseline for fine-grained recognition. Our code is available at https://github.com/Shaoli-Huang/SnapMix.git.

Motivation & Objective

  • To address the issue of severe label noise in existing data mixing methods when applied to fine-grained recognition.
  • To improve data augmentation effectiveness by ensuring semantic correspondence between synthetic images and their labels.
  • To enable asymmetric mixing operations that increase data diversity while maintaining label consistency.
  • To develop a robust, general-purpose baseline for fine-grained recognition that performs well even with shallow networks.

Proposed method

  • Uses class activation maps (CAMs) to estimate the semantic relevance of each pixel to its predicted class.
  • Normalizes CAMs into a Semantic Percent Map (SPM) where each pixel's value represents its relative contribution to the class.
  • Computes the semantic ratio of image regions by summing SPM values within those regions to determine intrinsic semantic composition.
  • Generates mixed image labels based on semantic ratios rather than pixel area proportions, ensuring better alignment with actual semantic content.
  • Supports asymmetric cut-and-paste mixing by decoupling image blending from label mixing, enabling diverse augmentations.
  • Employs a beta distribution with hyperparameter α to sample random patches for mixing, with experiments showing robustness to α variations.

Experimental results

Research questions

  • RQ1Can semantic composition estimation via CAMs reduce label noise in mixed data for fine-grained recognition?
  • RQ2Does semantic proportional mixing outperform area-based mixing in terms of model accuracy and generalization?
  • RQ3Can asymmetric mixing operations improve data diversity without degrading label consistency?
  • RQ4How does SnapMix perform when training from scratch without ImageNet pre-training?
  • RQ5Is the proposed method robust across different CNN architectures and hyperparameter settings?

Key findings

  • SnapMix achieves 70.31% top-1 accuracy on CUB with ResNet-18 when training from scratch, outperforming CutMix (60.03%) and MixUp (67.63%).
  • On the CUB dataset, SnapMix improves ResNet-50 accuracy from 66.92% (baseline) to 72.39%, surpassing CutMix and MixUp.
  • With InceptionV3, SnapMix achieves 85.54% accuracy, exceeding CutMix (84.31%) and MixUp (83.83%).
  • On DenseNet121, SnapMix reaches 87.42% accuracy, a significant gain over CutMix (86.11%) and MixUp (86.65%).
  • The method is robust to hyperparameter α, with accuracy fluctuating only within ±0.5% around 87.37% across tested values.
  • Ablation studies show that semantic ratio-based label mixing contributes most to performance gains, with asymmetric mixing adding a minor but consistent improvement.

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.