Progressive Random Convolutions for Single Domain Generalization

Seokeon Choi, Debasmit Das, Sungha Choi, Seunghan Yang, Hyunsin Park, Sungrack Yun

Training a deep learning model that works perfectly in the lab but fails in the real world is a classic "brittleness" problem in AI. This is the core challenge of Domain Generalization (DG): how do we train a model on one set of data (the source domain) so that it performs well on completely unseen data (target domains)?

A recent paper from Qualcomm AI Research, titled Progressive Random Convolutions for Single Domain Generalization, introduces a deceptively simple yet highly effective way to bridge this gap. By rethinking how we use random convolutions for data augmentation, the authors have created a method that outperforms complex adversarial training schemes without the computational headache.

TL;DR

Pro-RandConv is a novel image augmentation strategy for single-domain generalization that stacks multiple small random convolution layers instead of using a single large one. By combining these "progressive" stacks with random deformable offsets and affine transformations, the method creates diverse virtual training domains that preserve image semantics, leading to state-of-the-art performance on benchmarks like PACS and Digits.

What Problem Does This Paper Address?

The most difficult version of domain generalization is Single Domain Generalization (SDG), where you only have one source domain to train on (e.g., only training on photos of dogs to recognize sketches of dogs).

A popular baseline for this is RandConv, which applies a single random convolution layer to input images during training to distort textures. However, RandConv has a major flaw: as you increase the kernel size to create more diversity, the image quickly loses its "semantics"—a "2" stops looking like a "2" and starts looking like colorful noise. Furthermore, a single convolution operation lacks the inherent diversity needed to simulate the vast variety of real-world domain shifts.

Figure 2. Examples of images augmented by RandConv and our Pro-RandConv composed of multiple convolution blocks.

Methods

The authors propose Pro-RandConv (Progressive Random Convolution). Instead of one large $k \times k$ kernel, they recursively stack $L$ layers of small $3 \times 3$ kernels.

Key innovations include:

  1. Progressive Stacking: Stacking small kernels creates a "Gaussian-like" effective receptive field. This means the center pixels of an object have a higher impact on the output than the edges, which helps maintain the overall shape and semantics of the object even under heavy distortion.
  2. Weight Sharing: Within a single mini-batch, the same random weights are used for every layer in the stack. This allows for fine-grained control over the "distortion magnitude" without introducing conflicting transformations.
  3. The Random Convolution Block: They replaced the basic convolution with a sophisticated block (see Figure 3 below) that includes:
  4. Deformable Convolutions: Randomly initialized offsets ($\Delta p$) allow for geometric warping, not just texture changes.
  5. Contrast Diversification: Randomly initialized affine parameters ($\gamma, \beta$) act like a stochastic version of gamma correction to vary global style and contrast.
  6. Gaussian Random Fields (GRF): Used to initialize offsets to ensure that geometric distortions look "natural" rather than jagged.
Figure 3. The proposed random convolution block to support texture and contrast diversification.

Datasets

The researchers evaluated Pro-RandConv across a wide variety of tasks:

  • Digits: MNIST (source) generalized to SVHN, MNIST-M, SYN, and USPS.
  • Object Recognition: The standard PACS (Photo, Art, Cartoon, Sketch), OfficeHome, and VLCS benchmarks.
  • Semantic Segmentation: Training on the synthetic GTAV dataset and testing on real-world datasets like Cityscapes, BDD-100K, and Mapillary.

Key Insights and Ideas

  • Semantics Matter: The "aha moment" is that stacking small kernels is mathematically superior to one large kernel for DG. It mimics the natural blurring and texture shifts of the real world while keeping the "skeleton" of the object intact.
  • Stochasticity is Enough: Many SOTA methods use complex Generative Adversarial Networks (GANs) or meta-learning to create new domains. Pro-RandConv proves that a well-designed, entirely stochastic augmentation pipeline can beat these complex systems.
  • Geometric Diversity: By adding deformable offsets, the model learns to be invariant to shape warping, which is crucial for domains like "Sketch" where proportions might be off compared to a "Photo."
Figure 4. The difference between random convolution and random deformable convolution. In the random deformable convolution, weights are the same for each reference point, but offsets are as- signed differently, which promotes the diversity of local textures.

Key Results

Pro-RandConv achieved impressive gains across the board:

  • Digits: Reached 81.35% average accuracy, crushing the RandConv baseline of 74.84%.
  • PACS (Single DG): Outperformed all competitors, including those using complex adversarial generators, with an average accuracy of 68.88%.
  • Semantic Segmentation: On the Cityscapes dataset, the method improved the mean Intersection over Union (mIoU) to 42.36%, up from a baseline of 35.10%.
  • Efficiency: The method only adds about 2-3% to the training computational cost (MACs) and has zero overhead at inference time, as the augmentation is only used during training.

Limitations and Future Work

The authors noted that while deformable offsets help recognition, they can occasionally hinder semantic segmentation because the geometric warping of the image might not perfectly align with the static ground-truth labels.

Future research could look into "label-preserving" geometric transforms or methods to adapt the ground truth masks alongside the image distortions. Additionally, testing this on even larger-scale datasets like ImageNet-C could further prove its robustness.

Summary updated

BibTeX
@inproceedings{choi2023progressive,
  author = {Seokeon Choi and Debasmit Das and Sungha Choi and Seunghan Yang and Hyunsin Park and Sungrack Yun},
  title = {{Progressive Random Convolutions for Single Domain Generalization}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2023},
}
Figure