What Augmentations are Sensitive to Hyper-Parameters and Why?

Ch Muhammad Awais, Imad Eddine Ibrahim Bekkouch, Adil Mehmood Khan · DOI

TL;DR

This paper investigates how different data augmentation techniques interact with machine learning model hyperparameters. By using LIME and linear regression, they identify specific augmentations that are highly sensitive to hyperparameter choices, offering insights into building more robust and reliable ML models.

What Problem Does This Paper Address?

In machine learning, data augmentation is a crucial technique to improve model performance and generalization, especially when dealing with limited or noisy data. However, the effectiveness of these augmentations can be influenced by the model's hyperparameters (e.g., learning rate, number of epochs, optimizer). The question of how and why certain augmentations perform differently under varying hyperparameter settings remains largely unexplored. This paper aims to bridge this gap by systematically analyzing the sensitivity of various augmentations to hyperparameter choices, providing a deeper understanding of their interplay.

Methods

The authors propose a methodology to quantify the sensitivity of augmentations to hyperparameters. This involves:

  1. LIME Vectors: Creating binary vectors representing the presence (1) or absence (0) of specific augmentations.
  2. Model Training: Training machine learning models (ResNet50 and ResNet101) on a dataset using different combinations of these augmentation vectors and a set of predefined hyperparameters (optimizer: SGD/Adam, epochs: 20/15).
  3. Linear Regression: Training linear regression models on the accuracy and loss results obtained from the trained models. The coefficients from these linear regression models serve as indicators of each augmentation's impact.
  4. Sensitivity and Influence Metrics:
    • Consistency (Sensitivity): Measured by calculating the variance of the regression coefficients of an augmentation across different hyperparameter settings for each model. Lower variance implies higher consistency and less sensitivity.
  5. Influence: Calculated by averaging the regression coefficients of an augmentation across all hyperparameters. This indicates the general positive or negative effect of the augmentation.
  6. Reliability: Defined as the product of consistency and influence, aiming to capture both robustness to hyperparameters and the overall impact on performance.

Datasets

  • FashionMNIST: This dataset was used for training and evaluation. It consists of grayscale images of 10 fashion product categories, with 70,000 images in total (51,000 for training, 9,000 for validation, and 10,000 for testing).

Key Insights and Ideas

  • Augmentations are not created equal: Some augmentations are significantly more sensitive to hyperparameter choices than others. This means their effectiveness can drastically change depending on settings like learning rate or optimizer.
  • Intensity matters: The "intensity" of an augmentation (how much it alters the image) appears to be a key factor in its sensitivity. Augmentations that make drastic changes are more likely to be sensitive to hyperparameters.
  • Understanding sensitivity leads to reliability: By quantifying consistency and influence, the authors provide a framework to assess the reliability of an augmentation, helping practitioners choose techniques that are robust and beneficial across different experimental setups.
  • LIME and Linear Regression as powerful tools: The combination of LIME for creating augmentation combinations and linear regression for analyzing their impact proves effective in dissecting complex interactions between augmentations and hyperparameters.

Key Results

  • The study identified specific augmentations as either sensitive or insensitive to hyperparameters.
  • Insensitive Augmentations: Transpose, Equalize, and ShiftScaleRotate were found to be less sensitive. These augmentations tend to make smaller, more controlled changes to the images.
  • Sensitive Augmentations: GaussianBlur, InvertImg, and RandomRotate90 were identified as more sensitive. These augmentations often involve more significant alterations to image properties.
  • The paper provides plots showing the regression coefficients for each augmentation across different hyperparameter settings, visually demonstrating their varying impact.
  • Table II and III present quantitative measures of sensitivity, influence, and reliability for several augmentations, highlighting specific values that support the qualitative findings. For instance, Augmentation 4 (likely Equalize or a similar photometric augmentation) showed a sensitivity of 0.184549 and an influence of 0.796453, resulting in a reliability of 0.146985.

Limitations and Future Work

  • Limited Scope of Hyperparameters: The study focused on a specific set of hyperparameters (SGD/Adam optimizers with 20/15 epochs). Future work could explore a wider range of hyperparameters.
  • Dataset Specificity: The experiments were conducted on the FashionMNIST dataset. While the methodology is generalizable, the specific findings might vary on different datasets or domains.
  • Number of Vectors: The authors used 28 LIME vectors. Future work could investigate the required number of vectors for robust analysis.
  • Future Directions: The authors suggest extending this methodology to determine the optimal number of vectors for analysis, tuning data for different dataset sizes, and further exploring the relationship between augmentation intensity and hyperparameter sensitivity. They also propose using this framework to tune data for optimal model performance.

Summary updated

BibTeX
@inproceedings{awais2022what,
  author = {Ch Muhammad Awais and Imad Eddine Ibrahim Bekkouch and Adil Mehmood Khan},
  title = {{What Augmentations are Sensitive to Hyper-Parameters and Why?}},
  booktitle = {Sai},
  year = {2022},
  doi = {10.1007/978-3-031-10461-9\_31},
}
Figure