对比前向-前向学习(CFF)学习通过逐层训练来对抗监督对比目标。CFF训练对随机种子敏感,但其不稳定性的来源尚不明确。我们专注于一个实现细节:在对比损失中,正对边际通过饱和相似性钳制应用,即min(s + m, 1)。我们证明了一种替代方法,在对数概率后减去边际,在均值过正样本的缩减下是梯度中性。在CIFAR-10(2×2因子,每个单元7个种子)上,钳制产生5.90倍更高的测试准确率方差(p=0.003),但平均准确率无差异。对钳制激活率、逐层梯度范数和一个减少边际探测点的分析表明,在早期层中存在饱和驱动的梯度截断。这种影响并不能清晰地转移到其他数据集:在CIFAR-100、SVHN和Fashion-MNIST上,钳制产生相等或更低的方差。两个因素导致了差异。首先,每个批次的正对密度控制饱和发生的频率。其次,任务难度在高准确率时压缩种子间的扩展。一个SVHN难度扫描在单个数据集上确认了这种交互作用,当准确率高时,方差比为0.25倍,当使用激进增强时,方差比为16.73倍。在中等准确率范围内,当每个批次中有许多同类对时,切换到梯度中性的减法参考可以消除这种方差膨胀,而不会影响平均准确率。测量层0的钳制激活率可以作为判断问题是否适用的简单检查。
英文摘要:
Contrastive Forward-Forward (CFF) learning trains Vision Transformers layer by layer against supervised contrastive objectives. CFF training can be sensitive to random seed, but the sources of this instability are poorly understood. We focus on one implementation detail: the positive-pair margin in the contrastive loss is applied through saturating similarity clamping, $\min(s + m,\, 1)$. We prove that an alternative formulation, subtracting the margin after the log-probability, is gradient-neutral under the mean-over-positives reduction. On CIFAR-10 ($2 \times 2$ factorial, $n{=}7$ seeds per cell), clamping produces $5.90\times$ higher pooled test-accuracy variance ($p{=}0.003$) with no difference in mean accuracy. Analyses of clamp activation rates, layerwise gradient norms, and a reduced-margin probe point to saturation-driven gradient truncation at early layers. The effect does not transfer cleanly to other datasets: on CIFAR-100, SVHN, and Fashion-MNIST, clamping produces equal or lower variance. Two factors account for the discrepancy. First, positive-pair density per batch controls how often saturation occurs. Second, task difficulty compresses seed-to-seed spread when accuracy is high. An SVHN difficulty sweep confirms the interaction on a single dataset, with the variance ratio moving from $0.25\times$ at high accuracy to $16.73\times$ under aggressive augmentation. In moderate-accuracy regimes with many same-class pairs per batch, switching to the gradient-neutral subtraction reference removes this variance inflation at no cost to mean accuracy. Measuring the layer-0 clamp activation rate serves as a simple check for whether the problem applies.
Multi-view Contrastive Learning for Online Knowledge Distillation
Institute of Computing Technology (ICT), Chinese Academy of Sciences (CAS)(中国科学院计算技术研究所);University of Chinese Academy of Sciences(中国科学院大学);Xiamen Data Intelligence Academy of ICT, CAS(中国科学院计算技术研究所厦门数据智能研究院)
Mind Your Margin and Boundary: Are Your Distilled Datasets Truly Robust?
The Laboratory of Intelligent Collaborative Computing of UESTC, Chengdu, China(UESTC智能协同计算实验室,中国成都);Monash University, Melbourne, Australia(墨尔本大学,澳大利亚墨尔本);Guangdong Laboratory of Artificial Intelligence(广东人工智能实验室)
Enriching Knowledge Distillation with Intra-Class Contrastive Learning
Key Laboratory of New Generation Artificial Intelligence Technology and Its Interdisciplinary Applications (Southeast University), Ministry of Education, China(新一代人工智能技术及其跨学科应用重点实验室(东南大学),教育部,中国)
针对知识蒸馏中教师软标签缺乏类内多样表示的问题,本文提出带 margin loss 的类内对比学习教师训练方法,并通过理论与实验验证其有效性。
Multi-Task, Multi-Domain Deep Segmentation with Shared Representations and Contrastive Regularization for Sparse Pediatric Datasets
IMT Atlantique(IMT大西洋高等矿业电信学校);LaTIM UMR 1101, Inserm(LaTIM(法国国家健康与医学研究院1101联合研究单位));Centre Hospitalier Régional et Universitaire (CHRU) Brest(布雷斯特大学中心医院);SCMIA, Symbiosis International University(共生国际大学SCMIA)
eMargin: Revisiting Contrastive Learning with Margin-Based Separation
Department of Computer Science, Norwegian University of Science and Technology, Norway(挪威科学技术大学计算机科学系);Department of Computer Science, United States Naval Academy, USA(美国海军学院计算机科学系)
FedTGP: Trainable Global Prototypes with Adaptive-Margin-Enhanced Contrastive Learning for Data and Model Heterogeneity in Federated Learning
Shanghai Jiao Tong University(上海交通大学);Institute for AI Industry Research, Tsinghua University(清华大学智能产业研究院);Shanghai Artificial Intelligence Laboratory(上海人工智能实验室);Queen’s University Belfast(英国女王大学)