用于鲁棒微调的测地多模态混合(Geodesic Multi-Modal Mixup)
Geodesic Multi-Modal Mixup for Robust Fine-Tuning
AI总结:
针对CLIP等预训练多模态模型嵌入子空间分离、均匀性与对齐性不足限制可迁移性的问题,提出测地多模态混合方法生成难负样本,结合对比损失微调,提升多任务下的模型鲁棒适配能力。
摘要:
预训练多模态模型(如CLIP)可提供可迁移的嵌入表示,在各类应用中展现出可观的效果。然而,针对已学习的多模态嵌入的分析仍相对不足,嵌入的可迁移性仍有提升空间。本研究观察到CLIP为两种不同模态保留了相互分离的嵌入子空间,随后通过均匀性-对齐性(uniformity-alignment)视角展开研究,以此衡量已学习表示的质量。我们从理论和实证两方面证明,CLIP即使经过微调,仍存在均匀性和对齐性较差的问题。这种对齐性与均匀性的缺失可能会限制嵌入的可迁移性与鲁棒性。为此,我们设计了一种全新的微调方法,用于生成具备更优对齐性与均匀性的鲁棒表示。首先,我们提出测地多模态混合(Geodesic Multi-Modal Mixup)方法,将图像与文本的嵌入进行混合,在超球面上生成难负样本。随后,我们使用对比损失,结合难负样本、原始负样本与正样本对模型进行微调。基于关于难度保证与极限行为的理论分析,我们验证了该方法的合理性。在检索、校准、分布偏移下的少样本与零样本分类、嵌入算术运算以及图像描述生成等任务上的大量实验进一步表明,该方法能够生成可迁移的表示,支持模型在多样化任务上实现鲁棒适配。代码地址:https://github.com/changdaeoh/multimodal-mixup
英文摘要:
Pre-trained multi-modal models, such as CLIP, provide transferable embeddings and show promising results in diverse applications. However, the analysis of learned multi-modal embeddings is relatively unexplored, and the embedding transferability can be improved. In this work, we observe that CLIP holds separated embedding subspaces for two different modalities, and then we investigate it through the lens of uniformity-alignment to measure the quality of learned representation. Both theoretically and empirically, we show that CLIP retains poor uniformity and alignment even after fine-tuning. Such a lack of alignment and uniformity might restrict the transferability and robustness of embeddings. To this end, we devise a new fine-tuning method for robust representation equipping better alignment and uniformity. First, we propose a Geodesic Multi-Modal Mixup that mixes the embeddings of image and text to generate hard negative samples on the hypersphere. Then, we fine-tune the model on hard negatives as well as original negatives and positives with contrastive loss. Based on the theoretical analysis about hardness guarantee and limiting behavior, we justify the use of our method. Extensive experiments on retrieval, calibration, few- or zero-shot classification (under distribution shift), embedding arithmetic, and image captioning further show that our method provides transferable representations, enabling robust model adaptation on diverse tasks. Code: https://github.com/changdaeoh/multimodal-mixup
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。