Learning CNN on ViT: A Hybrid Model to Explicitly Class-specific Boundaries for Domain Adaptation
Ba Hung Ngo, Nhat-Tuong Do-Tran, Tuan-Ngoc Nguyen, Hae-Gon Jeon, Tae Jong Choi
TL;DR
ECB presents a hybrid CNN-ViT approach for domain adaptation that explicitly discovers class-specific decision boundaries by maximizing the discrepancy between two classifiers on a fixed ViT encoder, then leverages a CNN encoder to cluster target features within those boundaries. A co-training loop exchanges pseudo-labels between the ViT and CNN branches to reduce cross-model discrepancies and improve target supervision. Experiments on Office-Home and DomainNet demonstrate state-of-the-art performance in both UDA and SSDA settings, with notable gains from the Finding-to-Conquering stage and the co-training strategy. The work highlights the complementary strengths of ViT's global representations and CNN's local clustering, offering a practical, testing-efficient framework for cross-domain visual recognition. Future work could explore dynamic thresholding to replace fixed pseudo-label confidence levels.
Abstract
Most domain adaptation (DA) methods are based on either a convolutional neural networks (CNNs) or a vision transformers (ViTs). They align the distribution differences between domains as encoders without considering their unique characteristics. For instance, ViT excels in accuracy due to its superior ability to capture global representations, while CNN has an advantage in capturing local representations. This fact has led us to design a hybrid method to fully take advantage of both ViT and CNN, called Explicitly Class-specific Boundaries (ECB). ECB learns CNN on ViT to combine their distinct strengths. In particular, we leverage ViT's properties to explicitly find class-specific decision boundaries by maximizing the discrepancy between the outputs of the two classifiers to detect target samples far from the source support. In contrast, the CNN encoder clusters target features based on the previously defined class-specific boundaries by minimizing the discrepancy between the probabilities of the two classifiers. Finally, ViT and CNN mutually exchange knowledge to improve the quality of pseudo labels and reduce the knowledge discrepancies of these models. Compared to conventional DA methods, our ECB achieves superior performance, which verifies its effectiveness in this hybrid model. The project website can be found https://dotrannhattuong.github.io/ECB/website.
