paper-with-me

Papers

When Does Margin Clamping Affect Training Variance? Dataset-Dependent Effects in Contrastive Forward-Forward Learning

2026-03-01 · Joshua Steier arxiv

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.

📄 PDF Abstract BibTeX arXiv:2603.00951

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Table grape inflorescence detection and clamping point localisation based on channel pruned YOLO V7-TP

2023-10-05 · ScienceDirect 2023 10 · Wensheng Du,Zihang Jia,Shunshun Sui,Ping Liu

Inflorescence thinning is one of the most critical techniques for producing high-quality table grapes. Currently, manual thinning of grape inflorescences is still adopted in most vineyards, and it is hard to reach the de…

PSF-Med: Measuring and Explaining Paraphrase Sensitivity in Medical Vision Language Models

2026-02-24 · Binesh Sadanandan, Vahid Behzadan arxiv

Medical Vision Language Models (VLMs) can change their answers when clinicians rephrase the same question, a failure mode that threatens deployment safety. We introduce PSF-Med, a benchmark of 26,850 chest X-ray question…

Visual Grounding

Dead-time Compensation Method for Bus-clamping Modulated Voltage Source Inverter

2023-07-21 · Reza Asrar Ghaderloo, Yidi Shen, Chanaka Singhabahu, Rakesh Resalayyan 외

Bus-clamping Pulse Width Modulation (PWM) is an effective method to reduce the switching loss in a three-phase voltage source inverter (VSI). In bus-clamping PWM scheme, the phase legs are switched using high frequency P…

Automatic Thresholding of SIFT Descriptors

2018-11-07 · Matthew R. Kirchner

We introduce a method to perform automatic thresholding of SIFT descriptors that improves matching performance by at least 15.9% on the Oxford image matching benchmark. The method uses a contrario methodology to determin…

Clamping Variables and Approximate Inference

2014-12-01 · NeurIPS 2014 12 · Adrian Weller, Tony Jebara

It was recently proved using graph covers (Ruozzi, 2012) that the Bethe partition function is upper bounded by the true partition function for a binary pairwise model that is attractive. Here we provide a new, arguably s…