Adaptive Dual-Teacher Distillation with Subnetwork Rectification for Bridging Semantic Gaps in Black-Box Domain Adaptation

summary

Video file (mp4)

The gist

The gist The proposed framework, Adaptive Dual-Teacher Distillation with Subnetwork Rectification (DDSR), addresses black-box domain adaptation by explicitly reconciling task-specific knowledge from

In short

The Adaptive Dual-Teacher Distillation with Subnetwork Rectification (DDSR) framework addresses black-box domain adaptation by combining knowledge from a source model and a vision-language model. It uses adaptive fusion of predictions based on uncertainty, subnetwork rectification to prevent overfitting, and progressive self-distillation to refine pseudo-labels. This results in state-of-the-art performance across multiple benchmarks.

Key concepts

Adaptive Prediction Fusion
This mechanism dynamically balances the predictions from a black-box source model and a CLIP model. It uses instance uncertainty (IU) and global uncertainty (GU) to decide how much weight to give each prediction, ensuring reliable pseudo-labels even when the source model is uncertain.
Subnetwork Rectification
A small subnetwork shares structure with the main target network. This subnetwork regularizes the target model by aligning its outputs using a Jensen–Shannon divergence loss and enforcing learning divergence via gradient discrepancy loss. This prevents the target model from overfitting to noisy pseudo-labels.
Progressive Self-Distillation
The framework iteratively improves predictions through self-distillation. Target model predictions are updated using an exponential moving average (EMA) of previous labels, stabilizing updates. Simultaneously, learnable textual prompts are optimized using a consistency loss guided by these refined pseudo-labels.
Classwise Prototype Rectification
In the second stage, target labels are improved by comparing them to classwise prototypes derived from the target model's features. This aligns the labels with semantically coherent representations, leading to highly accurate and refined pseudo-labels.

Terminology used across episodes

This episode discusses

The paper

Adaptive Dual-Teacher Distillation with Subnetwork Rectification for Bridging Semantic Gaps in Black-Box Domain Adaptation · Read on arXiv

Zhe Zhang, Jing Li, Wanli Xue, Xu Cheng, Jianhua Zhang, Qinghua Hu, Shengyong Chen

Tianjin University of Technology

Assuming that neither source data nor source model parameters are accessible, black-box domain adaptation (BBDA) represents a highly practical yet challenging setting, where transferable knowledge is limited to the predictions of a black-box source model. Existing approaches exploit such knowledge via pseudo-label refinement or by leveraging vision-language models (ViLs), but they often fail to reconcile the inherent discrepancy between task-specific knowledge from black-box models and language-aligned semantic priors of ViLs, resulting in suboptimal integration and degraded adaptation performance. To address this challenge, we propose adaptive Dual-Teacher Distillation with Subnetwork Rectification (DDSR), a framework that explicitly reconciles these complementary yet inconsistent knowledge sources. DDSR employs an adaptive prediction fusion strategy to integrate predictions from the black-box source model and a ViL, generating reliable pseudo-labels for the target domain. A subnetwork-based regularization mechanism mitigates overfitting to noisy supervision by enforcing output consistency and gradient divergency. Furthermore, progressively improved target predictions iteratively refine both pseudo-labels and ViL prompts, enhancing semantic alignment. Finally, class-wise prototypes are used to further optimize target predictions via self-training. Extensive experiments on multiple benchmark datasets demonstrate that DDSR consistently outperforms state-of-the-art methods, including those with access to source data or source model parameters.

Transcript

Introduction to the show: ident: AI Radio. Generated commentary on the latest Artificial Intelligence papers.

Tom: We're looking at the paper: "Adaptive Dual-Teacher Distillation with Subnetwork Rectification for Bridging Semantic Gaps in Black-Box Domain Adaptation".

Jane: Here's the gist of the paper. The gist The proposed framework, Adaptive Dual-Teacher Distillation with Subnetwork Rectification (DDSR), addresses black-box domain adaptation by explicitly reconciling task-specific knowledge from a black-box source model and language-aligned semantic priors from vision–language models to generate reliable pseudo-labels for the target domain.

Tom: How it works The DDSR framework is structured in two distinct stages to integrate complementary knowledge sources<ref:2603.22908#pg2> The first stage involves using the black-box source model and CLIP as dual teachers, where predictions are integrated by an adaptive prediction fusion module to produce reliable pseudo-labels for the target network<ref:2603.22908#pg3> This fusion strategy is adaptive, based on uncertainty estimates at both the instance level and the dataset level for both models<ref:2603.22908#pg5> Specifically, it defines an average instance-level uncertainty (IU) and a global uncertainty (GU), using these to determine the adaptive prediction fusion strategy in Eq.(6)<ref:2603.22908#pg5> The target model is then trained by minimizing the Kullback–Leibler (KL) divergence between its predictions and these fused pseudo-labels, as defined by the knowledge distillation loss Lkd<ref:2603.22908#pg6> Subnetwork Rectification To mitigate overfitting to noisy pseudo-labels arising from imperfect fusion and domain shift, a subnetwork is introduced that shares part of the structure and parameters with the target network<ref:2603.22908#pg6> This subnetwork rectifies the target network through output alignment and gradient divergency<ref:2603.22908#pg6> The regularization is implemented using a Jensen–Shannon divergence loss Lod, which aligns the subnetwork and the full target network in their outputs space<ref:2603.22908#pg6> Furthermore, a weighted gradient discrepancy loss Lwg is used to enforce divergent learning between the subnetwork and the full model<ref:2603.22908#pg6> The overall loss function for this rectification is defined as Lsr = ϵ · Lod + ζ · Lwg<ref:2603.22908#pg6> Progressive Self-Distillation and Prompt Learning The framework incorporates a progressive self-distillation mechanism where the target model's improving predictive capability is leveraged to iteratively refine both pseudo-labels and CLIP prompts<ref:2603.22908#pg6> The pseudo-labels are updated using an exponential moving average (EMA) strategy, yˆ ← β · yˆ + (1 − β) · yˆt, stabilizing updates and mitigating noise<ref:2603.22908#pg6> Simultaneously, the target model's predictions are used to optimize the learnable textual prompts while keeping the CLIP encoders frozen<ref:2603.22908#pg6> This prompt learning is guided by a consistency-maximization loss Lcm = −yˆt · yˆc, wˆ = arg min w Lcm<ref:2603.22908#pg6> Stage Two Refinement In the second stage, further refinement is performed through self-training based on class-wise prototypes<ref:2603.22908#pg7> Class-wise prototypes µ are constructed from the features extracted by the target model and their predicted class assignments<ref:2603.22908#pg7> Target labels are then rectified by aligning them with their nearest prototypes, yielding refined pseudo-labels y¯ i t = arg min c D (qi, µc)<ref:2603.22908#pg7> Finally, the target model is further self-trained by minimizing the cross-entropy loss between these rectified labels and the current predictions<ref:2603.22908#pg7> The overall training objective for Stage One is formulated as ˆft = arg min ft (Ldt + Lsr)<ref:2603.22908#pg7> The method demonstrates that the inclusion of Stage Two contributes positively to overall adaptation performance, as shown by the comparison between DDSR (Full) and DDSR (Stage One)<ref:2603.22908#pg9> Empirical results show that BBDA methods incorporating ViLs often outperform those that do not<ref:2603.22908#pg12> The proposed framework consistently achieves state-of-the-art performance across multiple benchmark datasets, including Office-31, Office-Home, and VisDA-<ref:2603.22908#pg8> Overall, the method scales linearly with sample size and feature dimension<ref:2603.22908#pg12> The computational complexity is shown to be efficient and scalable<ref:2603.22908#pg12>.

Jane: How it works The adaptive prediction fusion strategy dynamically adjusts the weighting between the black-box source model predictions (yˆb) and CLIP predictions (yˆc) based on the relationship between global uncertainty (GU) and a predefined threshold (∆˜ GU)<ref:2603.22908#pg5> This dynamic balancing ensures that when the black-box source model exhibits insufficient prediction diversity, the fusion shifts towards CLIP to mitigate potential bias<ref:2603.22908#pg12> The optimal weight for CLIP predictions is shown to be task-specific, with a highest accuracy achieved when the weight is set to 0.6 in the D→A task<ref:2603.22908#pg12>.

Tom: This adaptive fusion mechanism effectively balances the contributions of yˆc and yˆb, improving performance across domains<ref:2603.22908#pg12>.

Title and authors: Tom: So we're looking at this paper today, "Adaptive Dual-Teacher Distillation with Subnetwork Rectification for Bridging Semantic Gaps in Black-Box Domain Adaptation". It sounds really technical, but basically it tackles the problem where you don't have any training data for your specific task and you can't even see the source model's inner workings.

Jane: Right, it’s about that black-box domain adaptation challenge where we only have a model that spits out predictions but we don't know how it works, and we need to adapt it to a new domain. The authors say existing methods struggle because they can't properly mix the specific task knowledge from the source model with the general meaning from vision language models.

Lu: They point out this gap between task-specific knowledge and language-aligned priors from models like CLIP, which is what motivates their whole approach to explicitly reconcile those two sources.

Meng: So, in simple terms, they are trying to build a reliable way to create labels for our target network by combining the specific knowledge from the inaccessible source model with the general semantic understanding we get from something like CLIP.

Lalam: That's right. The core idea is using both models as teachers and finding a smart way to blend their predictions so we get better guidance for our target network without relying on just one source of information >

The paper's summary: Tom: They propose this framework called DDSR, which has two main stages. In the first stage, they use the black-box model and CLIP as dual teachers, and they use an adaptive prediction fusion module to merge their predictions into pseudo-labels for the target network.

Jane: And what makes that fusion adaptive is that it looks at uncertainty levels—both at the individual sample level and across the whole dataset—to decide how much weight to give each teacher's prediction.

Lu: That adaptive strategy means if one model, say the black-box model, is being really uncertain about a specific input, the system shifts its reliance towards CLIP's more general semantic knowledge >

Meng: So it’s dynamic balancing based on uncertainty metrics. That sounds like it could be helpful when the source model starts making wild guesses in the new domain.

Lalam: Exactly. And to handle potential noise from that imperfect fusion, they introduce a subnetwork that shares structure with our target network and uses output alignment and gradient divergence to fix it up >

The paper's improvements: Tom: The key improvement they highlight is the subnetwork rectification part. They’re using this shared structure to regularize the target network by minimizing a Jensen–Shannon divergence between the subnetwork’s and the full target network’s outputs >

Jane: So, instead of just taking those fused pseudo-labels directly, they use this regularization to make sure our target model doesn't just memorize those noisy labels from the fusion process >

Lu: They also use a weighted gradient discrepancy loss to force divergent learning between that shared subnetwork and the full target network, which is a way to push them apart in terms of how they learn >

Meng: That sounds like it’s a strong defense against overfitting, which is something we always worry about when we're generating labels from imperfect sources.

Lalam: They also have this progressive self-distillation where the target model’s improving predictions are used to update both the pseudo-labels through an exponential moving average and to fine-tune those textual prompts >

Conclusion: Tom: So, to wrap up, they show that combining dual teachers with subnetwork rectification for fixing noisy labels works really well. They also have this progressive self-distillation where the target model helps refine both the labels and the prompts >

Jane: The overall implication is that by explicitly mixing task-specific knowledge and language priors adaptively, we can get much more reliable pseudo-labels for black-box domain adaptation tasks >

Lu: The second stage refinement using class-wise prototypes also adds another layer to stabilize those labels, showing that it helps the model generalize better after the initial distillation >

Meng: It’s computationally efficient too, scaling linearly with sample size and feature dimension, which means it's something we could actually deploy without massive overhead >

Lalam: So this whole adaptive dual-teacher distillation with subnetwork rectification framework is designed to be a practical way to bridge those semantic gaps when you can't access the source model or its parameters >

More episodes

← Home