[论文解读] Generalizable Knowledge Distillation from Vision Foundation Models for Semantic Segmentation
GKD 将表示学习与任务学习解耦,并使用基于查询的软蒸馏将视觉基础模型的泛化能力传递给轻量级分割模型,实现跨域增益。
Knowledge distillation (KD) has been widely applied in semantic segmentation to compress large models, but conventional approaches primarily preserve in-domain accuracy while neglecting out-of-domain generalization, which is essential under distribution shifts. This limitation becomes more severe with the emergence of vision foundation models (VFMs): although VFMs exhibit strong robustness on unseen data, distilling them with conventional KD often compromises this ability. We propose Generalizable Knowledge Distillation (GKD), a multi-stage framework that explicitly enhances generalization. GKD decouples representation learning from task learning. In the first stage, the student acquires domain-agnostic representations through selective feature distillation, and in the second stage, these representations are frozen for task adaptation, thereby mitigating overfitting to visible domains. To further support transfer, we introduce a query-based soft distillation mechanism, where student features act as queries to teacher representations to selectively retrieve transferable spatial knowledge from VFMs. Extensive experiments on five domain generalization benchmarks demonstrate that GKD consistently outperforms existing KD methods, achieving average gains of +1.9% in foundation-to-foundation (F2F) and +10.6% in foundation-to-local (F2L) distillation. The code will be available at https://github.com/Younger-hua/GKD.
研究动机与目标
- 在分布偏移下,激发并诊断传统KD在语义分割中的泛化瓶颈。
- 提出一个两阶段、领域泛化的蒸馏框架(GKD),将表示学习与任务学习分离。
- 引入基于查询的软蒸馏机制,选择性地 transferring transferable spatial knowledge from VFMs.
- 在多域泛化基准上,在 F2F 和 F2L 设置下验证 GKD,并展示最先进的泛化增益。
提出的方法
- 两阶段蒸馏:首先使用代理数据集从视觉基础模型(VFMs)学习任务无关、领域无关的表示;然后冻结编码器,在源数据上训练任务特定解码器。
- 领域泛化蒸馏使用代理数据集(ImageNet)进行任务无关传递,然后进行源域蒸馏以融入领域相关特征。
- 基于查询的软蒸馏(QSD)通过对教师特征的注意力重构学生特征,利用学习到的投影对齐空间关系。
- QSD 将特征蒸馏、掩码蒸馏和CLS token 蒸馏损失组合为 L_QSD = α L_feat + β L_mask + γ L_cls。
- 在任务学习阶段,只有解码器在带标签数据上训练,编码器保持冻结以保留通用表示。
- 消融与可视化表明,带有 QSD 的多阶段蒸馏比单阶段 KD 能实现更好的跨域对齐。
实验结果
研究问题
- RQ1单阶段的传统KD是否能将从VFMs蒸馏的分割模型的跨域泛化能力提升?
- RQ2将表示学习与任务学习解耦是否能提升KD在语义分割中的域外泛化?
- RQ3基于查询的软蒸馏机制是否能有效将空间与关系知识从VFMs传递给轻量级学生?
- RQ4在多样基准下,GKD在F2F和F2L设置下的跨域性能提升是多少?
- RQ5与传统KD相比,在标签有限的数据条件下,GKD 的表现如何?
主要发现
- GKD 在五个域泛化基准的 F2F 和 F2L 设置下持续优于现有KD方法。
- 平均增益在 foundation-to-foundation (F2F) 为 +1.9%,在 foundation-to-local (F2L) 为 +10.6%。
- 在标签稀缺的 F2L 设置下,GKD 显著提升了标签效率与跨域泛化。
- 从 DINOv2-B 迁移到 ViT-S(及其他 VFM)时,GKD 实现显著提升,且对 EVA02 等其他 VFMs 具备可迁移性。
- 带有 QSD 的两阶段蒸馏相比单阶段 KD 能带来更平滑的优化与更好的跨域性能。
- 可视化显示特征距离更近且注意力呈对角分布,体现了空间结构的保留与选择性知识传递。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。