Abstract
Open-Set Single-Source Domain Generalization (OS-SDG) represents a significant challenge in computer vision, requiring models to generalize from a single source domain to multiple unseen target domains while simultaneously identifying unknown classes. We present DEBUG (Domain Expansion and BoUndary Growth), a framework designed to address data scarcity and boundary overlap in OS-SDG. DEBUG expands the source domain through background suppression and global style modeling, while utilizing edge maps to "grow" robust decision boundaries. Experimental results across four benchmarks demonstrate that DEBUG significantly outperforms existing state-of-the-art methods, particularly in open-set recognition metrics.
1. Introduction
Traditional Domain Generalization (DG) assumes that the label space remains constant across domains. However, real-world scenarios often involve Open-Set Single-Source Domain Generalization (OS-SDG), where a model trained on a single source (e.g., photos of dogs) must generalize to diverse target domains (e.g., sketches or cartoons) and correctly reject "unknown" categories (e.g., a giraffe) not present during training.
OS-SDG is hindered by two primary issues: Data Scarcity, where a single source lacks sufficient variety to learn domain-invariant features, and Boundary Overlap, where models become overconfident and misclassify unknown objects into known categories due to poorly defined decision boundaries.
2. The DEBUG Framework
The DEBUG framework addresses these challenges through two integrated pillars: Domain Expansion and Boundary Growth.
2.1 Domain Expansion
To simulate a multi-source environment from a single dataset, DEBUG employs two primary techniques:
- Background Suppression (BS): Utilizing DenseCLIP, the model masks image backgrounds to prevent it from "cheating" by memorizing environmental context. This forces the extraction of intrinsic semantic features.
- Global Probabilistic Style Augmentation (GPSA): Unlike local style transfer methods that can be unstable, GPSA models the style distribution (feature mean and standard deviation) of the entire dataset globally. New styles are sampled from this distribution to synthesize realistic variations.
- Knowledge Distillation: A distillation loss ensures feature consistency across original, background-suppressed, and style-augmented versions of the same image.
2.2 Boundary Growth
To improve the rejection of unknown classes, DEBUG focuses on the feature space between known categories:
- Edge Maps as a Secondary Modality: Edge maps (extracted via HED detectors) provide shape-heavy, texture-light representations that act as "out-of-distribution" samples.
- Multi-Binary Classifiers: Instead of a standard SoftMax, DEBUG uses a "One-Vs-All" (OVA) approach. By treating edge maps as hard negative samples, the model pushes decision boundaries further out, creating a "buffer zone" for unknown object rejection.
3. Experimental Evaluation
DEBUG was evaluated on four cross-domain benchmarks: PACS, Office31, OfficeHome, and DomainNet126. In each experiment, a subset of classes was withheld during training to serve as the "unknown" set for testing.
3.1 Key Results
DEBUG achieved state-of-the-art performance, with particularly notable gains in the H-Score (the harmonic mean of known and unknown class accuracy). On the PACS dataset, DEBUG achieved:
- An overall accuracy improvement of approximately 9% over previous leading methods.
- A massive 26% increase in H-Score, rising from 43.04% to 54.52%.
- Superior robustness, maintaining high accuracy on known classes (57.63%) while effectively identifying unknown classes (58.07%).
4. Discussion and Conclusion
The success of DEBUG highlights the importance of forcing models to focus on shape and semantics rather than domain-specific textures and backgrounds. By explicitly modeling the "unknown" through edge maps and global style variations, DEBUG creates more conservative and accurate decision boundaries.
While the framework relies on pre-trained components for background suppression and edge detection, its ability to significantly improve OS-SDG performance suggests a promising path forward for robust, real-world machine learning. Future work may explore end-to-end learning of these auxiliary components to further enhance adaptability.
Summary updated