揭示CLIP模型记忆机制,提出文本端减记策略提升性能
Captured by Captions: On Memorization and its Mitigation in CLIP Models
- 定义CLIP记忆度(CLIPMem),量化图文对记忆行为
- 误标图文对记忆最强,文本编码器贡献更大
- 首次实现降记忆同时提效,适合模型优化研究者
多模态模型如CLIP在图像检索和零样本分类等任务中表现优异,但其如何利用训练数据、特别是记忆机制仍不明确。尽管单模态模型中记忆对泛化至关重要,但其在结合监督学习(通过标题提供标签式信号)与自监督学习(对比目标)的CLIP中如何作用尚不清楚。为此,本文提出CLIP记忆度(CLIPMem)的正式定义,并用于量化不同样本的记忆程度。结果表明,CLIP的记忆行为介于监督与自监督之间,其中“误标”样本记忆水平最高;且文本编码器比图像编码器贡献更多记忆。基于此,我们提出多种降低记忆的方法,在不牺牲性能的前提下提升模型实用性——这是传统学习范式中未实现的突破。
原文摘要 · Abstract (English)
Multi-modal models, such as CLIP, have demonstrated strong performance in aligning visual and textual representations, excelling in tasks like image retrieval and zero-shot classification. Despite this success, the mechanisms by which these models utilize training data, particularly the role of memorization, remain unclear. In uni-modal models, both supervised and self-supervised, memorization has been shown to be essential for generalization. However, it is not well understood how these findings would apply to CLIP, which incorporates elements from both supervised learning via captions that provide a supervisory signal similar to labels, and from self-supervised learning via the contrastive objective. To bridge this gap in understanding, we propose a formal definition of memorization in CLIP (CLIPMem) and use it to quantify memorization in CLIP models. Our results indicate that CLIP's memorization behavior falls between the supervised and self-supervised paradigms, with "mis-captioned" samples exhibiting highest levels of memorization. Additionally, we find that the text encoder contributes more to memorization than the image encoder, suggesting that mitigation strategies should focus on the text domain. Building on these insights, we propose multiple strategies to reduce memorization while at the same time improving utility--something that had not been shown before for traditional learning paradigms where reducing memorization typically results in utility decrease.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。