NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

IPMix: Label-Preserving Data Augmentation Method for Training Robust Classifiers

Zhenglin Huang, Xiaoan Bao, Na Zhang, Qingqi Zhang, Xiao mei Tu, Biao Wu, Xi Yang

TL;DR

IPMix is a novel data augmentation strategy that simultaneously integrates image-level, patch-level, and pixel-level transformations into a single, label-preserving framework. By mixing clean images with structurally complex synthetic fractals, it significantly improves model robustness against corruptions and adversarial attacks without sacrificing performance on clean data.

The Robustness-Accuracy Trade-off

Deep learning models are notoriously brittle. While they achieve human-level accuracy on "clean" datasets, their performance often plummets when faced with real-world distribution shifts—think of a self-driving car struggling with unexpected fog, motion blur, or digital noise.

To fix this, researchers use data augmentation. However, existing methods face two major hurdles:

  1. The Robustness-Accuracy Trade-off: Many techniques that improve robustness (like adversarial training) often degrade accuracy on clean, standard images.
  2. Manifold Intrusion: Popular methods like Mixup or CutMix blend two different labeled images. This can create ambiguous samples where the "correct" label is unclear, potentially confusing the model during training.

The authors of IPMix ask a critical question: How can we leverage the strengths of image, patch, and pixel-level augmentations while maintaining strict label integrity?

Methods: Label-Preserving Augmentation

The core innovation of IPMix is its "label-preserving" nature. Instead of mixing two training images together, it mixes a clean training image with unlabeled synthetic fractals. Because the fractal has no inherent class, the original label of the clean image remains 100% valid.

Example of IPMix using fractal patterns

Key Components

  • Three-Level Integration: IPMix combines Image-level (global transforms like brightness/sharpness), Patch-level (replacing regions), and Pixel-level (weighted averaging) augmentations.
  • Structural Complexity via Fractals: The authors use the "Escape-time Algorithm" to generate "orbit trap" fractals. These provide complex, high-frequency patterns that challenge the model more effectively than simple Gaussian noise.
  • Chain-Mixed Framework: The method uses a multi-path architecture where an image passes through various augmentation "chains" (mixing pixel and patch operations) which are then fused using weights sampled from Dirichlet and Beta distributions.
  • IPMix-Scar: A specific patch-mixing variant that uses long, thin rectangular "scars." This was found to be particularly effective for improving anomaly detection.

Key Insights and Ideas

  • Synergy is Not Automatic: The paper shows that simply "stacking" existing methods (like Mixup + CutMix + AugMix) can actually hurt performance. IPMix succeeds because it carefully manages the compatibility between different augmentation levels.
  • Fractals as the "Perfect" Noise: Natural images mixed with fractals create training examples that are visually diverse but semantically consistent. This forces the model to learn more robust, invariant features rather than relying on brittle pixel patterns.
  • Label Preservation is Crucial: By avoiding the "manifold intrusion" problem (label ambiguity), IPMix bypasses the common trade-off where robustness comes at the cost of clean accuracy.
  • Multi-Scale Fusion: Using different mixing shapes (like the "scar" patches) helps the model generalize across different scales of information, from fine-grained pixel noise to large-scale occlusions.

Key Results

IPMix achieved state-of-the-art (SOTA) or comparable results across nearly every safety metric, evaluated on standard datasets (CIFAR-10/100, ImageNet) and safety-focused benchmarks (ImageNet-C, ImageNet-R, ImageNet-A, ImageNet-O).

Accuracy vs. Robustness comparison showing IPMix outperforming prior methods
  • Corruption Robustness: On CIFAR-100-C, IPMix achieved a Mean Corruption Error (mCE) of 28.3, significantly better than AugMix (33.4) and PixMix (30.3).
  • ImageNet Performance: On ImageNet-C, it outperformed the vanilla baseline by 15.6% and AugMix by 5.5%.
  • Clean Accuracy: Unlike many robustness methods, IPMix maintained or slightly improved clean error rates (e.g., reaching 19.2% mean error on CIFAR-100 compared to 21.1% for vanilla).
  • Safety Measures: It showed marked improvements in calibration (the model's confidence better matches its actual accuracy) and adversarial robustness against PGD attacks.

Limitations and Future Work

While highly effective, IPMix introduces some computational overhead. The multi-chain mixing process is inherently more complex than standard training and may increase training time. Additionally, the method relies on a specific set of synthetic fractals; finding even more "optimal" synthetic patterns remains an open question. Future work could explore how IPMix translates to other domains like medical imaging or autonomous driving perception tasks, such as object detection and segmentation.

Summary updated

BibTeX
@inproceedings{huang2023ipmix,
  author = {Zhenglin Huang and Xiaoan Bao and Na Zhang and Qingqi Zhang and Xiao mei Tu and Biao Wu and Xi Yang},
  title = {{IPMix: Label-Preserving Data Augmentation Method for Training Robust Classifiers}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=No52399wXA},
}
Figure