arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2611.00042cs.CVcs.LG
收藏

诊断CLIP微调中的零样本遗忘:注意力漂移表征适应,表征漂移预测迁移性能下降

Diagnosing Zero-Shot Forgetting in CLIP Fine-Tuning: Attention Drift Characterizes Adaptation, Representation Drift Predicts Transfer Degradation

Nanjing Foreign Language School(南京外国语学校)

Ruize Xia

AI总结:

本研究针对CLIP微调的零样本遗忘问题,对比四种信号后发现CKA可跨配置预测遗忘,注意力熵仅适用于单配置,为CLIP微调的遗忘诊断提供了有效方法。

摘要:

对CLIP进行下游任务微调通常会降低其在其他任务上的零样本准确率,而量化这种损失通常需要带标签的迁移基准。本研究探讨是否可从微调期间已有的无标签目标图像中预测该损失。我们对比了四种信号:<[BOS_never_used_51bce0c785ca2f68081bfa7d91973934]> token注意力的熵、与预训练模型的线性中心核对齐(CKA)、嵌入漂移和相对权重变化。我们在EuroSAT和Oxford-IIIT Pets上以四种学习率和三个种子对ViT-B/32进行全微调(Full FT)和LoRA适配,额外使用ViT-B/16网格;保留DTD和GTSRB作为验证目标,遗忘程度通过在CIFAR-100、Food-101和ImageNet-R上的零样本保留率衡量。在固定配置下,注意力熵的变化与遗忘高度相关(平均|ρ|=0.860),但其符号取决于数据集、适配方法和骨干网络,合并相关系数降至0.361。块分解显示该符号几乎完全由第7至12块决定。CKA以ρ=0.960对运行的保留率排名,且在六个epoch的第一个epoch后就已确定排名(ρ=0.959)。在保留的目标上,CKA达到ρ=0.95,且块分解能正确预测两个数据集注意力变化的符号。这些结果支持一个简单决策规则:CKA适用于跨配置比较,而注意力熵仅在单一配置内有效。本证据仅限于一个模型家族和短训练计划。

英文摘要:

Fine-tuning CLIP on a downstream task typically reduces its zero-shot accuracy on other tasks, and quantifying this loss ordinarily requires a labeled transfer benchmark. We study whether the loss can be anticipated from unlabeled target images that are already available during fine-tuning. Four signals are compared: the entropy of CLS token attention, linear centered kernel alignment (CKA) with the pretrained model, embedding drift, and relative weight change. ViT-B/32 is adapted by full fine-tuning (Full FT) and by LoRA on EuroSAT and Oxford-IIIT Pets over four learning rates and three seeds, with an additional ViT-B/16 grid; DTD and GTSRB are held out as confirmation targets, and forgetting is measured as zero-shot retention on CIFAR-100, Food-101, and ImageNet-R. Within a fixed configuration, the change in attention entropy is strongly associated with forgetting (mean $|ρ|=0.860$). Its sign, however, depends on the dataset, the adaptation method, and the backbone, and the pooled correlation falls to 0.361. A block decomposition shows that this sign is determined almost entirely by blocks 7 to 12. CKA ranks runs by retention at $ρ=0.960$, and the ranking is already established after the first of six epochs ($ρ=0.959$). On the held-out targets, CKA reaches $ρ=0.95$, and the block account correctly predicts the sign of the attention change for both datasets. These results support a simple decision rule: CKA is suited to comparisons across configurations, whereas attention entropy is informative only within a single configuration. The evidence is limited to one model family and short training schedules.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑