以双粒度对齐增强 CLIP 的视觉重编程
Boosting Visual Reprogramming for CLIP with Dual Granularity Alignment
把 CLIP 的视觉重编程从单层图文对齐扩展到「多尺度视觉粒度 + 标签层级语义粒度」的双粒度对齐,其中不确定性校准的预测融合(UPF)与原型引导的层级知识传播(HKP)可直接迁移到其他需要多尺度或多层级标签的下游适配任务。
原文依据 we propose Dual Granularity Alignment (DGA) with two key components for multi-level fusion
摘要译文
由模型翻译 · 术语统一 · 请对照原文核对关键结论模型重编程通过修改预训练模型的输入与输出空间,使其适配下游任务。视觉重编程作为其中一个代表性实例,已在 CLIP 的早期工作中得到探索,这些工作引入可学习的输入变换作为视觉提示,以重新利用其视觉-语言对齐能力来完成下游视觉任务。现有的视觉重编程方法关注提示图像与文本描述之间的单层对齐,忽略了数据中有利于对齐的固有结构信息:来自标签层级的语义粒度,以及来自多尺度表征的视觉粒度。为弥补这一空白,我们提出双粒度对齐(DGA),包含两个用于多层级融合的关键组件。在视觉粒度方面,我们生成多尺度图像,并引入不确定性校准的预测融合(UPF),它基于不确定性估计融合预测结果,以捕获层级化的空间信息。在语义粒度方面,我们通过原型引导的标签层级化构建类别层级,并开发层级知识传播(HKP),它传递超类知识,以实现连贯的多层级视觉提示对齐。我们的 DGA 协同整合两种粒度,以增强对齐效果。在 12 个下游数据集上的实验表明,DGA 在基于 ViT 和基于 ResNet 的 CLIP 架构上均优于基线方法。具体而言,在基于 ViT-16 的 CLIP 上,DGA 相较此前最优方法取得了 4.5% 的提升。通过显式建模结构粒度,DGA 为视觉重编程建立了一种新范式。
英文原文摘要 1642 字符
Model reprogramming adapts pretrained models to downstream tasks by modifying their input and output spaces. Visual reprogramming, as a prominent instance, has been explored in pioneer works on CLIP, which introduces learnable input transformations as visual prompts to repurpose its visual-language alignment for downstream visual tasks. Existing VR methods focus on single-level alignment between prompted images and text descriptions, overlooking inherent structural information in data that facilitates alignment: semantic granularity from label hierarchies and visual granularity from multi-scale representations. To address this gap, we propose Dual Granularity Alignment (DGA) with two key components for multi-level fusion. For visual granularity, we generate multi-scale images and introduce Uncertainty-calibrated Prediction Fusion (UPF), which fuses predictions based on uncertainty estimation to capture hierarchical spatial information. For semantic granularity, we construct category hierarchies via Prototype-guided Label Hierarchization and develop Hierarchical Knowledge Propagation (HKP), which transfers superclass knowledge for coherent multi-level visual prompts alignment. Our DGA collaboratively integrates both granularities to enhance alignment effectiveness. Experiments across 12 downstream datasets demonstrate DGA's superiority over baselines on both ViT-based and ResNet-based CLIP architectures. Specifically, DGA achieves a 4.5% improvement over the previous state-of-the-art method on ViT-16-based CLIP. By explicitly modeling structural granularities, DGA establishes a new paradigm for visual reprogramming.