MoireMix: A Formula-Based Data Augmentation for Improving Image Classification Robustness

Yuto Matsuo, Yoshihiro Fukuhara, Yuki M. Asano, Rintaro Yanagi, Hirokatsu Kataoka, Akio NakamuraarXiv 2026

TL;DR

MoireMix is a lightweight, storage-free data augmentation technique that generates complex Moire interference patterns on-the-fly using simple mathematical formulas. By blending these procedurally generated textures with training images, it significantly boosts the robustness of Vision Transformers against real-world corruptions and adversarial attacks. Crucially, it requires zero external data, completely bypassing the copyright, ethical, and storage issues that plague current state-of-the-art augmentation methods.

What Problem Does This Paper Address?

While modern deep neural networks achieve incredible accuracy on clean datasets, they remain notoriously fragile when exposed to real-world visual corruptions like noise, blur, and compression artifacts. To fix this, state-of-the-art data augmentation methods like PixMix or DiffuseMix blend training images with diverse, complex textures.

However, these methods rely heavily on external "mixing datasets" (such as fractal art scraped from online communities) or heavy generative models (like Stable Diffusion). This introduces two major roadblocks for industrial deployment:

  1. Storage and Compute Overhead: Managing secondary datasets or running heavy diffusion models during training is computationally expensive and logistically cumbersome.
  2. Legal and Ethical Risks: Scraping web data or using models trained on un-attributed imagery creates ambiguous licensing statuses and copyright risks.

MoireMix tackles this dilemma by asking: Can we procedurally generate complex, robustness-inducing textures on-the-fly using pure mathematics, without needing any external data?

Fig. 1: Overview of our proposed MoireMix data augmentation framework. The method utilizes mathematical formulas to procedurally generate complex interference patterns on-the-fly during training.

Methods

The core innovation of MoireMix is its Procedural Moire Generation Algorithm. Instead of loading an image from disk, it synthesizes a Moire pattern directly in memory during training using a closed-form mathematical formulation:

  1. Radial Wave Superposition: The algorithm randomly samples a number of wave components ($N \le 5$). For each component, it randomly selects a center position and a spatial frequency ($1 \le f_i \le 100$).
  2. Mathematical Formulation: For every pixel, the distance to each wave center is calculated and passed through a sine wave function: $$M(u, v) \leftarrow M(u, v) + \sin(2\pi \cdot f_i \cdot d'_i)$$
  3. Stochastic Mixing Pipeline: The resulting single-channel Moire pattern is replicated across RGB channels, normalized, and mixed with the original training image using random blending operations (like addition or multiplication) governed by a Beta distribution.

Because the textures are mathematically rendered on-the-fly and immediately discarded after a training iteration, the pipeline is entirely storage-free.

Datasets

The authors evaluated MoireMix primarily using a Vision Transformer (ViT-Base) trained on ImageNet-1k, as well as a WideResNet trained on CIFAR-10 and CIFAR-100.

To rigorously test robustness, they utilized several challenging benchmarks:

  • ImageNet-validation: For standard, clean image classification accuracy.
  • ImageNet-C: Images subjected to 15 types of algorithmic corruptions (blur, noise, weather, etc.) at 5 severity levels.
  • ImageNet-R: A collection of out-of-distribution artistic renditions, cartoons, and sketches.
  • ImageNet-PGD: An adversarial benchmark using Projected Gradient Descent attacks.
  • ImageNet-Moire: A custom benchmark introduced by the authors that simulates realistic camera-screen Moire degradation using a pipeline from the AIM 2019 Challenge.

Key Insights and Ideas

  • Why Moire Patterns? Simple procedural patterns like stripes or basic sine waves only contain a single dominant frequency and orientation. Moire patterns, arising from the superposition of periodic structures, naturally generate non-linear fringe patterns that span a massive spectrum of spatial frequencies and scales. This multi-scale frequency structure effectively mimics real-world visual degradations.
  • The Power of Formula-Driven Learning: The paper reinforces the idea that neural networks do not strictly need natural images to learn robust visual statistics; analytically generated mathematical structures can provide an equally powerful supervision signal.
  • Heavy Regularization Benefits: Analyzing the training dynamics revealed that MoireMix imposes a strong regularization penalty early in training. This delays initial convergence but ultimately prevents the model from memorizing early patterns, leading to a much more stable and robust final state.

Key Results

MoireMix achieves the strongest overall robustness among all data-augmentation methods that do not rely on external mixing datasets.

Table 1: Performance comparison of various data augmentation methods on ImageNet- 1k using a ViT-Base model. We report standard accuracy (IN-val) alongside robust- ness metrics including ImageNet-C, ImageNet-R, PGD adversarial attacks, and Moire- degraded images. Bold values indicate the best results among comparable external- data-free methods.
  • Corruption Robustness: On ImageNet-C, MoireMix achieved 50.5% mean accuracy, outperforming the baseline by 16.1 percentage points and beating standard MixUp by 5.4 points.
  • Adversarial & OOD Gains: It consistently surpassed data-free baselines on ImageNet-R (23.1%) and ImageNet-PGD (3.1%).
  • Extreme Efficiency: Generating a MoireMix pattern takes a mere 0.0026 seconds per image on a standard CPU. In comparison, other procedural methods like Perlin Noise take 0.0592 seconds, making MoireMix uniquely viable for high-throughput training pipelines without creating data-loading bottlenecks.

Limitations and Future Work

While MoireMix dominates the external-data-free category, it does not completely outperform data-dependent methods like PixMix or DiffuseMix across every single benchmark. For instance, PixMix still holds an edge in certain corruption types because its external dataset contains a wider variety of semantic textures.

Additionally, the authors note that Moire interference represents just one family of analytic perturbations. A promising direction for future work is exploring even richer families of procedural generators to see if combining different mathematical patterns can yield complementary robustness benefits.

Summary updated

BibTeX
@misc{matsuo2026moiremix,
  author = {Yuto Matsuo and Yoshihiro Fukuhara and Yuki M. Asano and Rintaro Yanagi and Hirokatsu Kataoka and Akio Nakamura},
  title = {{MoireMix: A Formula-Based Data Augmentation for Improving Image Classification Robustness}},
  year = {2026},
  eprint = {2603.25109},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2603.25109},
}
Figure