Applying various data augmentations like random resizing, scaling, or translation to input images during attack generation helps prevent overfitting to the surrogate model, thereby improving the generalization and transferability of adversarial examples.