The enhancement of unsupervised learning of sentence representations has been significantly achieved by the utility of contrastive learning. This approach clusters the augmented positive instance with the anchor instance to create a desired embedding space. However, relying solely on the contrastive objective can result in sub-optimal outcomes due to its inability to differentiate subtle semantic variations between positive pairs. Specifically, common data augmentation techniques frequently introduce semantic distortion, leading to a semantic margin between the positive pair. While the InfoNCE loss function overlooks the semantic margin and prioritizes similarity maximization between positive pairs during training, leading to the insensitive semantic comprehension ability of the trained model. In this paper, we introduce a novel Identical and Fraternal Twins of Contrastive Learning (named IFTCL) framework, capable of simultaneously adapting to various positive pairs generated by different augmentation techniques. We propose a \textit{Twins Loss} to preserve the innate margin during training and promote the potential of data enhancement in order to overcome the sub-optimal issue. We also present proof-of-concept experiments combined with the contrastive objective to prove the validity of the proposed Twins Loss. Furthermore, we propose a hippocampus queue mechanism to restore and reuse the negative instances without additional calculation, which further enhances the efficiency and performance of the IFCL. We verify the IFCL framework on nine semantic textual similarity tasks with both English and Chinese datasets, and the experimental results show that IFCL outperforms state-of-the-art methods.
翻译:无监督句子表征学习的增强得益于对比学习的应用。该方法将增强后的正实例与锚点实例聚类,以构建理想的嵌入空间。然而,仅依赖对比目标可能导致次优结果,因其无法区分正样本对之间的细微语义差异。具体而言,常见的数据增强技术往往会引入语义扭曲,导致正样本对之间存在语义间隔。而InfoNCE损失函数在训练过程中忽略该语义间隔,优先最大化正样本对之间的相似性,导致训练模型对语义不敏感。本文提出一种新颖的“相同与异卵双胞胎对比学习”(IFTCL)框架,能够同时适应不同增强技术生成的各种正样本对。我们提出一种“双胞胎损失”(Twins Loss),在训练过程中保留内在语义间隔,并发挥数据增强的潜力以克服次优问题。我们还结合对比目标进行了概念验证实验,证明了所提双胞胎损失的有效性。此外,我们提出一种海马体队列机制,无需额外计算即可恢复并重用负实例,进一步提升了IFTCL的效率和性能。我们在九个语义文本相似度任务上(使用英文和中文数据集)验证了IFTCL框架,实验结果表明IFTCL优于现有最先进方法。