English static mirror for SEO/GEO · AI-assisted translation · Read Chinese original

Scale-Invariant Repulsion: Why Fixed Temperature in Contrastive Learning Causes Intra-Class Collapse

Forum topic · 小凯 · 2026-05-19

Summary

A Chinese tech forum post reviews the paper "Scale-Invariant Repulsion for Contrastive Learning" by Zhao, Du, and Lee (arXiv:2605.16421). The paper identifies a fundamental flaw in contrastive learning methods such as SimCLR, SupCon, CLIP, and DINO: the temperature parameter (tau) is a fixed constant, while embedding scales change dynamically during training. This mismatch produces scale-dependent repulsion that can trigger intra-class collapse—samples within the same class are torn apart so severely that intra-class structure becomes meaningless, even when inter-class separation remains correct. The proposed fix is a scale-invariant repulsion mechanism that binds repulsion strength to the current embedding scale, using normalized gradients so repulsion magnitude stays consistent across distances. Empirically, the method yields 0.5%-2% linear-probe gains on CIFAR-10, CIFAR-100, and ImageNet-100, validated on ResNet-18/50. The reviewer candidly notes this is primarily a theoretical contribution with modest practical gains, added memory/computation overhead from tracking second-order embedding statistics, and no validation on billion-parameter models.

Scale-Invariant Repulsion for Contrastive Learning — A Review

| Item | Detail | |------|--------| | Title | Scale-Invariant Repulsion for Contrastive Learning | | Authors | Jiawei Zhao, Simon S. Du, Jason D. Lee (University of Washington / Princeton) | | arXiv | 2605.16421 (cs.LG, stat.ML) | | Date | May 2026 | | Core contribution | Identifies the fundamental limitation of the temperature parameter in contrastive learning—fixed temperature produces scale-dependent repulsion leading to intra-class collapse—and proposes scale-invariant repulsion as a replacement for the fixed softmax temperature | | Link | https://arxiv.org/abs/2605.16421 |

The analogy

Picture ten marbles tossed into a bowl. Shake gently—they slowly spread apart until each finds its place, roughly equidistant from its neighbors. That is repulsion at work.

Contrastive learning works similarly: an encoder assigns each data point (image, text, graph node) a position in high-dimensional space, and a loss function pulls similar items together while pushing dissimilar ones apart. But here is a question almost nobody asks: how strong should that pushing force be? Should it scale with embedding distance? This paper's answer: no. Instead, repulsion should adapt to the embedding's internal scale—otherwise contrastive learning produces a strange but widespread failure: intra-class collapse.

The temperature parameter is a rigid ruler—for a world that isn't

Nearly all modern contrastive methods—SimCLR, SupCon, CLIP, DINO—include a fixed temperature parameter (tau) controlling repulsion strength. Lower temperature pushes hardest negatives more aggressively (approaching hardmax); higher temperature pushes all negatives uniformly.

The paper's insight: embedding scale changes dynamically during training (small at initialization, surging mid-training, stabilizing at convergence), while temperature stays constant. This creates a fundamental mismatch:

  • Early training: small embedding scale—fixed temperature pushes all negatives apart too uniformly; the encoder learns nothing.
  • Mid training: embedding scale inflates—softmax repulsion decays exponentially at large distances, so distant negative clusters emerge.
  • Late training: embedding scale contracts—fixed temperature suddenly becomes too strong, violently pushing samples apart within classes, triggering intra-class collapse.
The paper names this failure mode "scale-dependent repulsion"—the fundamental defect of fixed temperature.

Intra-class collapse: your model disintegrates inside the correct class

We usually worry about inter-class confusion—cats embedded near dogs. But this paper reports a different problem: the model can correctly separate cats from dogs while simultaneously destroying the internal structure of the cat class.

An orange cat and a black cat should be embedded nearby (same class) but not identically. Under fixed temperature, once embedding scale falls below a critical threshold, a positive feedback loop ignites within the class: push too hard → samples scatter → the encoder learns meaningless intra-class partitions → backpropagation reinforces them → more pushing. Ultimately a class shatters into fragments—cat A ends up farther from cat B than from dog C. This is intra-class shredding, not inter-class error. A toy-task visualization shows the fragmentation clearly, and a linear classifier trained on the collapsed distribution cannot see the problem.

The solution: bind repulsion to embedding scale

The core principle: apply a repulsion potential whose strength adjusts in real time to the current embedding scale. Concretely, the paper replaces the fixed softmax gradient with a normalized gradient—repulsion magnitude stays constant at all distances; only the direction varies.

Results: repulsion does not vanish when embedding scale inflates, does not explode when scale collapses, and intra-class structure is protected because repulsion is gentle within intra-class distances. The paper calls this scale-invariant repulsion.

Results and honest caveats

The paper shows improvements on standard benchmarks: linear-probe scores on CIFAR-10, CIFAR-100, and ImageNet-100 improve by 0.5%–2%, growing with training epochs. Meaningful but not revolutionary.

Honest caveats from the reviewer:

1. This is primarily a theoretical contribution—identifying a fundamental flaw and proposing a principled fix, not a new SOTA method. Actual performance gains are sub-percentage-point in scale, but the predicted failure mode (intra-class collapse at high epochs) genuinely occurs, which is valuable. 2. The method requires tracking second-order statistics of embedding scale during training, adding measurable memory and compute overhead in large-batch training; the paper does not quantify this in detail. 3. No validation on models with billions of parameters—experiments use ResNet-18 and ResNet-50. The claim that scale-invariant repulsion applies to any fixed-temperature contrastive method lacks empirical support on the small-to-large network transfer path.

Verdict

The core value is not engineering improvement but a beautiful observation. While contrastive learning research focuses on positive/negative pair selection and augmentation strategies, nobody asked: does the repulsion direction and strength remain reasonable as embedding scale changes? A fixed temperature imposing the same repulsion at every scale is geometrically unreasonable.

Just as you cannot measure bacteria and galaxies with the same ruler, you cannot push apart embeddings with one fixed temperature at all scales.

References

1. Zhao, J., Du, S.S., Lee, J.D. (2026). Scale-Invariant Repulsion for Contrastive Learning. arXiv:2605.16421. 2. Chen, T. et al. (2020). A Simple Framework for Contrastive Learning of Visual Representations. ICML. 3. Khosla, P. et al. (2020). Supervised Contrastive Learning. NeurIPS. 4. He, K. et al. (2020). Momentum Contrast for Unsupervised Visual Representation Learning. CVPR.

Tags

#contrastive-learning#representation-learning#temperature-parameter#intra-class-collapse#embedding-geometry#scale-invariance#deep-learning-theory#paper-review

This page is an English static mirror generated for search and AI citation. It may be a full translation or structured summary of the Chinese original. Canonical interactive discussion lives on the Chinese page: https://zhichai.net/topic/177620458