arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2505.03532stat.AP
收藏

联合广义余弦相似度:一种基于对比学习的N模态语义对齐新方法

Joint Generalized Cosine Similarity: A Novel Method for N-Modal Semantic Alignment Based on Contrastive Learning

Yiqiao Chen, Zijian Huang

AI总结:

本文提出联合广义余弦相似度(JGCS)及GHA Loss,突破传统成对相似度限制,实现任意数量模态的统一语义对齐,并在实验中展现出优越性能、噪声鲁棒性和可扩展性。

摘要:

对齐在多模态深度学习中仍然是一项关键任务,对比学习已在该领域得到广泛应用。然而,当模态数量超过两个时,现有方法通常计算成对损失函数并将其聚合为复合损失函数以优化模型参数。这一局限主要源于传统相似度度量方法的缺陷,即它们只能计算两个向量之间的相似度。为解决这一问题,我们提出了一种新颖的相似度度量方法:联合广义余弦相似度(Joint Generalized Cosine Similarity, JGCS)。与传统的成对方法(如点积或余弦相似度)不同,JGCS围绕由Gram行列式导出的角度展开。据我们所知,这是第一种能够处理任意数量向量任务的相似度度量方法。在此基础上,我们引入了相应的对比学习损失函数GHA Loss以及新的模态间对比学习范式。此外,在Derm7pt数据集和模拟数据集上进行的综合实验表明,我们的方法取得了优越的性能,同时展现出噪声鲁棒性、计算效率和可扩展性等显著优势。最后,值得一提的是,我们提出的联合广义余弦相似度不仅可以应用于对比学习,还可以方便地扩展到其他领域。

英文摘要:

Alignment remains a crucial task in multi-modal deep learning, and contrastive learning has been widely applied in this field. However, when there are more than two modalities, existing methods typically calculate pairwise loss function and aggregate them into a composite loss function for the optimization of model parameters. This limitation mainly stems from the drawbacks of traditional similarity measurement method (i.e. they can only calculate the similarity between two vectors). To address this issue, we propose a novel similarity measurement method: the Joint Generalized Cosine Similarity (JGCS). Unlike traditional pairwise methods (e.g., dot product or cosine similarity), JGCS centers around the angle derived from the Gram determinant. To the best of our knowledge, this is the first similarity measurement method capable of handling tasks involving an arbitrary number of vectors. Based on this, we introduce the corresponding contrastive learning loss function , GHA Loss, and the new inter-modal contrastive learning paradigm. Additionally, comprehensive experiments conducted on the Derm7pt dataset and simulated datasets demonstrate that our method achieves superior performance while exhibiting remarkable advantages such as noise robustness, computational efficiency, and scalability. Finally, it is worth mentioning that the Joint Generalized Cosine Similarity proposed by us can not only be applied in contrastive learning, but also be easily extended to other domains.

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

↑