InfoNCE loss is a widely used loss function for contrastive model training. It aims to estimate the mutual information between a pair of variables by discriminating between each positive pair and its associated $K$ negative pairs. It is proved that when the sample labels are clean, the lower bound of mutual information estimation is tighter when more negative samples are incorporated, which usually yields better model performance. However, in many real-world tasks the labels often contain noise, and incorporating too many noisy negative samples for model training may be suboptimal. In this paper, we study how many negative samples are optimal for InfoNCE in different scenarios via a semi-quantitative theoretical framework. More specifically, we first propose a probabilistic model to analyze the influence of the negative sampling ratio $K$ on training sample informativeness. Then, we design a training effectiveness function to measure the overall influence of training samples on model learning based on their informativeness. We estimate the optimal negative sampling ratio using the $K$ value that maximizes the training effectiveness function. Based on our framework, we further propose an adaptive negative sampling method that can dynamically adjust the negative sampling ratio to improve InfoNCE based model training. Extensive experiments on different real-world datasets show our framework can accurately predict the optimal negative sampling ratio in different tasks, and our proposed adaptive negative sampling method can achieve better performance than the commonly used fixed negative sampling ratio strategy.
Adversarial Contrastive Learning via Asymmetric InfoNCE
Tsinghua University(清华大学);Institute for AI Industry Research, Tsinghua University(清华大学智能产业研究院);Harbin Institute of Technology(哈尔滨工业大学);School of Computer Science and Technology, Harbin Institute of Technology(哈尔滨工业大学计算机科学与技术学院)
InfoNCE is a Free Lunch for Semantically guided Graph Contrastive Learning
State Key Laboratory of AI Safety, Institute of Computing Technology, Chinese Academy of Sciences University of Chinese Academy of Sciences(人工智能安全国家重点实验室,计算技术研究所,中国科学院,中国科学院大学)
本文将图对比学习重新表述为 PU 学习问题,提出 IFL-GCL,利用 InfoNCE 提取语义正样本信息并重构损失,在 IID/OOD 场景最高提升 9.05%。
Rethinking Collaborative Metric Learning: Toward an Efficient Alternative without Negative Sampling
Institute of Information Engineering, Chinese Academy of Sciences(中国科学院信息工程研究所);University of Chinese Academy of Sciences(中国科学院大学);Institute of Computing Technology, Chinese Academy of Sciences(中国科学院计算技术研究所);Peng Cheng Laboratory(鹏城实验室)
Rethinking negative sampling in content-based news recommendation
Promptly Health;Faculty of Sciences, University of Porto(波尔图大学理学院);Joint Research Centre, European Commission(欧盟委员会联合研究中心);ISEP, Polytechnic of Porto(波尔图理工学院ISEP);INESC TEC
针对新闻推荐中文章生命周期短且现有模型复杂、缺乏负样本考量的问题,提出一种提升准确率并促进系统去中心化的负采样技术,在 MIND 数据集上达到 SOTA 性效。
Université de Montréal(蒙特利尔大学);McGill University(麦吉尔大学);Mila - Quebec AI Institute(Mila - 魁北克人工智能研究所);University of Waterloo(滑铁卢大学);The Chinese University of Hong Kong(香港中文大学);Huawei Noah’s Ark Lab(华为诺亚方舟实验室)
Understanding Contrastive Learning via Distributionally Robust Optimization
University of Science and Technology of China(中国科学技术大学);Zhejiang University(浙江大学);Institute of Dataspace, Hefei Comprehensive National Science Center(合肥综合性国家科学中心数据空间研究院)
PSL: Rethinking and Improving Softmax Loss from Pairwise Perspective for Recommendation
State Key Laboratory of Blockchain and Data Security, Zhejiang University(区块链与数据安全国家重点实验室,浙江大学);College of Computer Science and Technology, Zhejiang University(计算机科学与技术学院,浙江大学)
Does GCL Need a Large Number of Negative Samples? Enhancing Graph Contrastive Learning with Effective and Efficient Negative Sampling
College of Intelligence and Computing, Tianjin University(天津大学智能与计算学部);Department of Data Science, George Washington University(乔治华盛顿大学数据科学系);School of Cybersecurity, Northwestern Polytechnical University(西北工业大学网络空间安全学院)
Knowledge Boosting: Rethinking Medical Contrastive Vision-Language Pre-Training
Southeast University(东南大学);Nanjing University of Aeronautics and Astronautics(南京航空航天大学);Case Western Reserve University(凯斯西储大学);Centre de Recherche en Information Biomédicale Sino-Français(中法生物医学信息研究中心)
Rethinking the Personalized Relaxed Initialization in the Federated Learning: Consistency and Generalization
School of Cyber Science and Technology Shenzhen Campus of Sun Yat-sen University(中山大学计算机科学与技术学院深圳校区);School of Computer Science Faculty of Engineering The University of Sydney(悉尼大学计算机科学学院);Generative AI Lab College of Computing and Data Science Nanyang Technological University(南洋理工大学计算与数据科学学院生成式人工智能实验室)
Hard-Negative Sampling for Contrastive Learning: Optimal Representation Geometry and Neural- vs Dimensional-Collapse
Department of Electrical Engineering, Tufts University(Tufts大学电气工程系);Department of Engineering, Engineering Technology, East Tennessee State University(东田纳西州立大学工程系);Department of Electrical and Computer Engineering, Boston University(波士顿大学电气与计算机工程系)
Spurious Rewards: Rethinking Training Signals in RLVR
University of Washington, Seattle, WA, USA(华盛顿大学);Allen Institute for Artificial Intelligence, Seattle, WA, USA(人工智能研究院);University of California, Berkeley, Berkeley, CA, USA(加州大学伯克利分校)
Rethinking the Bias of Foundation Model under Long-tailed Distribution
Gaoling School of Artificial Intelligence, Renmin University of China(中国人民大学耿丽人工智能学院);Beijing Key Laboratory of Big Data Management and Analysis Methods(北京大数据管理与分析方法重点实验室);Institute of Software Chinese Academy of Sciences(中国科学院软件研究所);Electrical and Computer Engineering, Carnegie Mellon University(卡内基梅隆大学电气与计算机工程学院);University of Chinese Academy of Sciences(中国科学院大学)