TL;DR
SETA (Semantic-aware Edge-guided Token Augmentation) is a novel augmentation strategy designed to improve the domain generalization of Vision Transformers (ViTs) and MLP-based models. By selectively perturbing local edge noise while preserving global shape features, SETA forces models to rely on robust, domain-invariant shape information rather than spurious local textures, leading to state-of-the-art performance across multiple benchmarks.
What Problem Does This Paper Address?
Deep learning models typically struggle with domain shift—when the data they encounter at test time (e.g., sketches or paintings) differs from the training data (e.g., real photos). While Domain Generalization (DG) techniques exist, most were designed for Convolutional Neural Networks (CNNs) and focus on perturbing "style" (textures and colors).
Token-based architectures like ViTs and MLPs naturally possess a stronger shape bias than CNNs, yet they still underperform when domain gaps are large. The authors identify a critical reason: these models often overfit to spurious local edges (category-irrelevant textures that look like edges) rather than holistic object shapes. Existing style-based augmentations fail to suppress these domain-specific local cues, leaving token-based models vulnerable to domain shifts.
Methods
The authors propose SETA, which operates at the token level to explicitly incentivize shape bias. The framework consists of three main components:
- Activation-based Edge Tokens Selection (ETS): To identify which tokens contain structural information, SETA uses a Fourier transform to extract high-frequency components (edges). It then calculates an "activation value" for each token and creates a binary mask to isolate the top $p\%$ of edge-relevant tokens.
- Shape-disrupted Token Shuffling (STS): To create "noise" that mimics spurious edges, SETA takes a random sample and shuffles its token positions. This destroys the global shape (semantics) while retaining local edge-like textures.
- Token-level Mixing: The isolated edge tokens from a "clean" sample are mixed with the "shape-disrupted noise" from another sample using either Mixup or CutMix logic. The resulting augmented sample retains the label of the original edge-providing image.
The authors also introduce "stylized" variants (SETA-S-DSU and SETA-S-ALOFT) that combine their shape-focused approach with existing state-of-the-art style augmentation methods to cover both texture and style shifts.
Datasets
The method was evaluated on five standard DG benchmarks:
- PACS: (Photo, Art, Cartoon, Sketch)
- Office-Home: 65 categories across 4 domains.
- VLCS: A combination of four classic vision datasets.
- Terra Incognita: Wild animal photos from different camera traps.
- DomainNet: A massive, large-scale DG dataset.
Additionally, the authors tested cross-domain generalization for semantic segmentation by training on the synthetic GTA5 dataset and testing on real-world datasets like Cityscapes, BDD-100K, and Mapillary.
Key Insights and Ideas
- Edges $\neq$ Shape: The paper argues that edge information is a double-edged sword. While it encodes shape, it also encodes domain-specific noise. SETA's "aha moment" is realizing that by mixing semantic edges with non-semantic edge noise, the model is forced to learn which edges actually constitute a "shape."
- Token-Level vs. Channel-Level: Unlike CNN-based methods that perturb entire feature channels, SETA perturbs the spatial relationship between tokens. This is crucial for ViTs, which rely on spatial dependencies to understand objects.
- Theoretical Grounding: The authors provide a proof based on the $\mathcal{H}\Delta\mathcal{H}$-divergence theory, demonstrating that their augmentation strategy effectively tightens the generalization risk bound by reducing the distance between source and target domain distributions.
Key Results
- SOTA Performance: SETA and its variants consistently outperformed 18 recent DG algorithms. On the PACS dataset using a GFNet backbone, SETA achieved 90.52% accuracy, a significant jump from the 87.21% baseline.
- Synergy with Style: Combining SETA with style-based methods (like ALOFT) yielded the best results, showing that shape and style augmentation are complementary.
- Segmentation Gains: In the GTA5-to-Cityscapes segmentation task, SETA improved the mean Intersection over Union (mIoU) by 4.95% over the baseline.
- Efficiency: Despite the complex Fourier logic, SETA adds negligible overhead, increasing training time by only about 0.6%.
Limitations and Future Work
The authors note that their Fourier-based edge extraction might be sensitive to extremely complex image textures, where the boundary between "useful edge" and "noise" is less clear.
Future directions include: * Developing adaptive methods for feature extraction that can better handle complex textures. * Integrating SETA into vision-language models (like CLIP) to help them focus on domain-invariant semantics. * Leveraging textual information to further guide the model in learning generalizable semantic features.
Summary updated