---
title: "Parametric Contrastive Learning — paper by Cui et al. (2021)"
description: "Parametric Contrastive Learning combines learned class centers with sample comparisons to improve recognition on imbalanced data."
canonical: "https://research.elamur.ai/free/en/papers/cui-2021-parametric-contrastive-learning/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/cui-2021-parametric-contrastive-learning/)

[home](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2021](https://md.research.elamur.ai/free/en/papers/2021/) / Parametric Contrastive Learning

# Parametric Contrastive Learning

Paper · 2021 · Jiequan Cui, Zhisheng Zhong, Liu Shu et al.

**Authors:** Jiequan Cui, [Zhisheng Zhong](https://md.research.elamur.ai/free/en/authors/zhisheng-zhong/), Liu Shu, [Bei Yu](https://md.research.elamur.ai/free/en/authors/bei-yu/) and [Jiaya Jia](https://md.research.elamur.ai/free/en/authors/jiaya-jia/) · **Year:** 2021 · **Venue:** IEEE/CVF International Conference on Computer Vision (ICCV) · **Licence:** [CC BY-NC-SA 4.0 (arXiv)](https://creativecommons.org/licenses/by-nc-sa/4.0/)

[**290** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W3204449938) · [IEEE/CVF International Conference on Computer Vision (ICCV)](https://openalex.org/S4363607764) · [licence](https://creativecommons.org/licenses/by-nc-sa/4.0/)

- [PDF](https://arxiv.org/pdf/2107.12028)
- [DOI 10.1109/iccv48922.2021.00075](https://doi.org/10.1109/iccv48922.2021.00075)
- [arXiv 2107.12028](https://arxiv.org/abs/2107.12028)
- [OpenAlex](https://openalex.org/W3204449938)

Citations: OpenAlex, 2026-10-14.

## Deep dive: Parametric Contrastive Learning

Parametric Contrastive Learning combines learned class centers with sample comparisons to improve recognition on imbalanced data. · about 33 minutes to read

**In this deep dive**

1. [Summary](#dd-summary)
2. [Ideas worth borrowing](#dd-ideas-worth-borrowing)
3. [How Mova uses it](#dd-how-mova-uses-it)
4. [The problem and its context](#dd-the-problem-and-its-context)
5. [The method, step by step](#dd-the-method-step-by-step)
6. [Experiments and results](#dd-experiments-and-results)
7. [What the ablations show](#dd-what-the-ablations-show)
8. [Limitations](#dd-limitations)
9. [What came after](#dd-what-came-after)

### Summary

A recognition system trained on uneven data can become very good at categories it sees often while learning much less about categories it rarely encounters. Parametric Contrastive Learning, or PaCo, studies this problem through the training objective itself. The paper asks why supervised contrastive learning, which encourages examples with matching labels to have similar representations, can make this imbalance harder to handle. Its answer is that class frequency changes the probability allocation preferred by the loss. Frequent categories supply more positive comparisons, and the resulting optimization can give them disproportionate influence.

The proposed change is to give every category a learned center. An image representation is compared both with other image representations and with these class-specific parameters. The correct center acts as a positive target even when few examples of its category appear among the available comparisons. A coefficient controls the relative emphasis on sample-to-sample attraction. For long-tailed recognition, PaCo also applies Balanced Softmax to the center comparisons. These are complementary interventions: the learned centers change the contrastive objective, while Balanced Softmax addresses imbalance in learning those centers.

The theoretical analysis describes how these additions change the optimal probability assigned to each positive comparison. It also examines balanced data, where frequency differences disappear. In that setting, PaCo can be expressed as supervised classification and supervised contrastive learning together with an additional coupling term. The authors argue that this coupling strengthens pressure on difficult examples as representations become better aligned with their class centers. This gives PaCo a purpose beyond correcting an uneven label distribution, although the argument does not establish that every difficult example will benefit.

Experiments cover long-tailed object, scene, and species recognition, followed by balanced recognition on full ImageNet and CIFAR-100. The authors report improvements over the compared long-tailed methods, including baselines retrained with stronger augmentation and longer schedules. For balanced ImageNet, PaCo with a ResNet-50 reaches 78.7% top-1 accuracy using SimAugment and 79.3% with RandAugment; the abstract reports 81.8% for ResNet-200. The strongest conclusion is that combining persistent class targets with sample comparisons is useful across the tested recognition settings. The results do not establish the same benefit for language tasks, other objectives, or deployment conditions beyond those studied.

### Ideas worth borrowing

Persistent targets for scarce categories. A sample-based objective can only compare against the examples currently available in its batch or memory. That makes the learning signal for a rare category depend on whether suitable partners happen to be present. PaCo adds a learned target for every category, giving scarce categories an explicit place in the objective. The broader design idea is useful whenever example availability is uneven: a trainable category parameter can complement comparisons against individual observations. Its value should be tested separately from any additional frequency correction, because those components solve related but distinct problems.

Analyze the probability allocation. The paper does more than observe that an objective performs poorly on imbalanced data. It asks what probability assignment would minimize that objective, then examines how the answer depends on the number of positive examples. This exposes a mechanism through which data frequency can influence optimization before any change to the architecture is considered. The same reasoning can guide the study of other losses that combine many targets. A useful diagnostic is whether adding more acceptable answers changes how much attention an example or category receives, even when all those answers are valid.

Share the competition between objectives. PaCo does not simply add a classification loss to a contrastive loss with a fixed coefficient. Class centers and sample representations participate in a common normalization, so their scores affect one another. On balanced data, the authors isolate an extra term that governs the allocation between these groups. This is a reusable way to think about combining objectives: the location of the interaction matters, as well as the weights placed on the final losses. A shared denominator can create behavior that a sum of independently normalized objectives does not reproduce.

Treat augmentation as branch-specific. The best augmentation arrangement in the paper is asymmetric. The query branch receives RandAugment, while the momentum branch receives SimAugment. This suggests that different training roles may require different perturbations, even when the branches process views of the same image. One branch supplies the representation being optimized directly; another supplies comparison targets. A useful experiment in other paired-view systems is therefore to vary the transformations by role, rather than assume that identical augmentation is the natural default.

Rebalance each source of supervision. Introducing class centers does not automatically make their training balanced. PaCo changes sample comparisons and then applies a separate correction to center learning. That separation is a valuable engineering habit: when an objective has several paths through which labels influence updates, inspect each path for frequency effects. Correcting one path may leave another dominated by common categories. It also makes ablations more informative, because a gain can be associated with the contrastive formulation, the classifier-side correction, or their combination.

Compare under matched practical conditions. The paper retrains important baselines with the same longer schedule and strong augmentation, and it examines inference latency when comparing against a system with multiple experts. This matters because training resources, augmentation, and execution structure can change the meaning of an accuracy comparison. The reusable lesson is to identify the resource relevant to the intended use and match it explicitly. For an inference comparison, a similar architectural label or a similar amount of arithmetic may be less informative than measured execution time under the same conditions.

### How Mova uses it

For Mova, the small transparent language system written in Rust, PaCo offers a possible design principle instead of an established implementation. Nothing in the paper demonstrates a Mova component, and there is no basis for claiming that its image-recognition results already transfer to Mova. The relevant connection is narrower: a language system can also face unevenly represented categories, and an objective that depends entirely on observed pairs may give those categories unequal opportunities to shape training.

A concrete candidate would be a labeled representation component. If Mova learns vectors for inputs with category labels, it could maintain a trainable center for each category and compare an input with both those centers and labeled examples. The center would provide a persistent target; the example comparisons would retain information about variation within the category. This would be an adaptation of the paper’s central mechanism. It would require an actual labeled task and a defined representation space, rather than being a general replacement for language processing.

Transparency would be especially useful in evaluating such an adaptation. Mova could expose the score assigned to each category center, the positive examples available during training, and the separate contributions of center and sample terms. That would make it possible to inspect whether rare categories receive a useful signal or whether the objective merely moves the imbalance elsewhere. These are proposed measurements, not reported Mova capabilities. They follow from the structure of PaCo and from Mova’s stated emphasis on transparency.

The paper also suggests a disciplined comparison for any implementation. A center-only classifier, a sample-only contrastive objective, a fixed combination of those objectives, and a shared-normalization version would answer different questions. Frequency correction would need its own comparison. Without those distinctions, an improvement could be attributed to PaCo’s coupling when it actually came from adding a classifier or changing category weights.

The augmentation findings require particular caution. Image crops, color changes, and blur have explicit roles in the paper’s visual experiments. The paper offers no corresponding procedure for preserving the label of a transformed language input. Mova could borrow the question of whether its training branches need different kinds of variation, but it would have to establish suitable transformations for its own task. The honest prospective use is therefore an inspectable experiment with labeled representations, followed by evaluation on common and scarce categories. There is no demonstrated language-system result to report.

### The problem and its context

#### Why an uneven label distribution changes learning

Long-tailed recognition concerns datasets in which a relatively small set of categories contains many observations, while numerous other categories have little training data. The difficulty is not simply that the dataset is small. It is that different categories offer very different amounts of evidence, yet the evaluation may expect the system to recognize all of them reliably.

A learning procedure can improve its overall training objective mainly by serving the categories it encounters most often. Those categories provide more updates and more opportunities to organize the representation space. Scarce categories have fewer opportunities to establish a distinctive representation. The paper’s central concern is that the choice of loss can reinforce this inequality, even when labels are available.

The immediate setting is visual recognition with convolutional networks. The introduction places PaCo against progress in architectures, including the residual networks associated with [Deep Residual Learning](https://md.research.elamur.ai/free/en/papers/he-2015-deep-residual-learning-image-recognition/) and the convolutional designs associated with [VGG](https://md.research.elamur.ai/free/en/papers/simonyan-2014-very-deep-convolutional-networks-large/). It also points to architecture search and the importance of large, carefully assembled datasets.

That context matters because improved architectures do not remove a mismatch between the distribution of training examples and the recognition task. A network can have substantial capacity and still be trained in a way that favors frequent labels. PaCo therefore changes the objective and the organization of supervision, while retaining standard recognition backbones.

#### What earlier rebalancing approaches did

The related-work discussion begins with sampling. Oversampling makes scarce categories appear more frequently during training. Undersampling reduces the presence of common categories. Both directly change what the learner sees, but the paper describes costs on each side.

Repeated use of a small set of minority examples can encourage overfitting. Removing many majority examples can discard useful variation and weaken generalization. These are different failure modes: repetition can make a scarce category too dependent on its few observed instances, while removal can make a common category less adequately represented.

Reweighting changes the loss instead of the sampling process. A learner can place more weight on sparse or difficult categories, or reduce the influence of frequent-category gradients. The paper cites several versions of this approach, including [Class-Balanced Loss](https://md.research.elamur.ai/free/en/papers/cui-2019-class-balanced-loss-based-effective/). Its discussion also notes that reweighting can complicate optimization when training on large datasets.

The next distinction concerns when to rebalance. Earlier work described in the paper found that sampling and weighting strategies could help a classifier while damaging representation learning. This motivated procedures that first learn a representation with ordinary sampling and then adjust the classifier using a more balanced sampling rule. Other work sought to connect representation learning and classifier correction during a single training process.

PaCo inherits that concern but approaches it through a contrastive formulation. Its aim is not merely to choose a different frequency weight for an existing classification objective. It asks how an objective built from positive and negative comparisons behaves when category frequencies differ.

#### From instance comparisons to label-based comparisons

Contrastive learning organizes training around similarity. A representation called a query should receive a high similarity score with a positive example and lower scores with negative examples. In the instance-discrimination setup discussed by the paper, different augmented views of one image form a positive pair. Views derived from other images are treated as negatives.

The paper presents InfoNCE in this context and cites [Contrastive Predictive Coding](https://md.research.elamur.ai/free/en/papers/oord-2018-representation-learning-contrastive-predictive-coding/). The relevant feature is that the comparison targets are example representations. They are not the learned class-weight vectors used in an ordinary linear classifier.

The discussion then situates PaCo relative to [SimCLR](https://md.research.elamur.ai/free/en/papers/chen-2020-simple-framework-contrastive-learning-visual/) and [Momentum Contrast](https://md.research.elamur.ai/free/en/papers/he-2019-momentum-contrast-unsupervised-visual-representation/). The authors describe SimCLR as demonstrating strong recognition from representations learned through self-supervised comparison, followed by a linear classifier. They describe MoCo and its subsequent version as enabling competitive representation learning with smaller training batches. Other cited approaches, including [Bootstrap your own latent](https://md.research.elamur.ai/free/en/papers/grill-2020-bootstrap-your-own-latent-new/), form part of the surrounding progress in self-supervised representation learning.

Supervised contrastive learning changes the definition of a positive pair. Matching labels are sufficient: the images need not be augmented versions of the same original. This introduces a direct route for category information to shape the representation. Examples from one category are encouraged to cluster, while examples from different categories compete.

On balanced data, that formulation had produced strong results in the work PaCo discusses. On a long-tailed dataset, however, a common category supplies many more positive partners than a scarce category. The contrastive loss is therefore operating over positive sets of systematically different sizes.

#### The specific failure PaCo investigates

The paper’s analysis links the number of positive partners to the loss-minimizing probability assigned to each partner. With ordinary supervised contrastive learning, that preferred probability is the reciprocal of the positive count. A common category and a scarce category consequently face different probability allocations because their positive counts differ.

The authors interpret the corresponding loss behavior as giving frequent categories excessive influence. They support the diagnosis with an empirical gradient analysis on ImageNet-LT. Categories are ordered by their training frequency, and the average gradient magnitude at the final classifier is examined. Under supervised contrastive learning, the change across categories is steep, with a particularly pronounced change among the most frequent 200 categories.

This observation does not mean that a large gradient is always harmful or that equal gradients are the ideal target. It is evidence that frequency and optimization influence are closely connected in the tested setup. PaCo seeks to moderate that connection by giving every category a learned center and changing how positive probability is allocated.

The intervention is deliberately close to existing recognition training. It preserves an encoder, a classifier-like set of category parameters, and a sample-comparison mechanism. The main change lies in how those elements participate in a common objective.

### The method, step by step

#### Start with two views and a memory of examples

PaCo is presented through the MoCo training framework. There are query and key branches with matching structures. Each includes an image encoder and a projection transform. The key branch is updated through momentum from the query branch, instead of following exactly the same direct optimization path.

A training batch supplies two augmented views of each image. The query branch processes one view, while the key branch processes the other. The key outputs also refresh a queue of representations retained from training. This queue makes more comparison examples available than would fit in the current batch alone.

For a particular query, the comparison set includes queued representations and the outputs from both current views. The query’s own representation is excluded from that set. Labels identify which of the remaining representations are positives.

PaCo then adds learned category centers to this comparison structure. Every center appears as a candidate, and the center belonging to the query’s label is a positive target. The training objective asks the query to agree with its own center and with same-label examples, while distinguishing those positives from competing centers and examples.

Training with PaCo The steps in order.

The authors name an official implementation in their code release. The method itself depends on the objective, the two branches, and the queue; understanding it does not require treating the released implementation as an additional source of experimental claims.

#### Understand the two objectives being connected

The paper first introduces the sample-comparison objective InfoNCE:

```
L(q, k⁺, {k⁻}) = −log[exp(q · k⁺ / τ) / (exp(q · k⁺ / τ) + Σₖ⁻ exp(q · k⁻ / τ))]
```

Here, `L` is the loss for a query and its comparison keys. The vector `q` represents the query, `k⁺` is the positive key, and `{k⁻}` is the collection of negative keys. The dot denotes an inner product measuring compatibility. The function `exp` exponentiates a score, `log` is the logarithm, and `τ` is the temperature, which controls how sharply score differences affect the normalized probabilities. The summation includes the negative keys.

The positive score occupies the numerator. The denominator includes that positive score and all the negative scores. Minimizing the loss therefore encourages the positive key to win a larger share of the normalized score.

For comparison, the paper writes ordinary classification with a linear output layer as:

```
L_cross-entropy = −log[exp(q · wᵧ) / Σᵢ₌₁ⁿ exp(q · wᵢ)]
```

The vector `q` again represents the input. The true category is `y`, `n` is the number of categories, and `wᵢ` is the trainable output-layer vector for category `i`. The vector `wᵧ` is the one associated with the correct category. The sum ranges across all categories.

The mathematical shapes are similar, but the targets play different roles. In the first objective, keys are representations of observations. In the second, the comparison vectors are learned parameters assigned to categories. PaCo brings these target types into the same competition.

Calling the original contrastive formulation non-parametric does not mean its encoder has no learned parameters. It means that its comparison targets are not a persistent bank of trainable category vectors. That distinction is essential to understanding what PaCo adds.

#### Define the supervised positive set

For query image `Xᵢ`, the encoder produces representation `xᵢ`. A transform `T` maps that representation into the space used for a particular comparison. The supervised contrastive objective is written as:

```
Lᵢ = −Σ_z₊∈P(i) log[exp(z₊ · T(xᵢ)) / Σ_zₖ∈A(i) exp(zₖ · T(xᵢ))]
```

The index `i` identifies the query. The set `P(i)` contains its positive representations, while `A(i)` contains all eligible comparison representations. The symbol `z₊` denotes a positive, and `zₖ` denotes a member of the full comparison set. Every positive receives its own logarithmic term, using the same denominator.

The comparison set is:

```
A(i) = (queue ∪ Z_v1 ∪ Z_v2) ∖ {zₖ ∈ Z_v1 : k = i}
```

Here, `queue` contains stored key representations. The sets `Z_v1` and `Z_v2` contain outputs for the current query views and key views respectively. The union symbol combines these sources; the set subtraction removes the query’s own output.

The positive set is:

```
P(i) = {zₖ ∈ A(i) : yₖ = yᵢ}
```

The label `yₖ` belongs to comparison representation `zₖ`, and `yᵢ` is the query label. A representation is positive whenever those labels match.

In implementation, the paper scales the loss by the reciprocal of the positive-set size and introduces temperature in the scores. The displayed objective omits those details to expose its structure. The averaging matters when interpreting raw loss magnitudes; the authors’ theoretical derivation begins with the summed form.

#### See where class frequency enters

The expected positive count depends on how frequently the query’s category occurs:

```
K_yᵢ = q(yᵢ) × (length(queue) + batchsize × 2 − 1) ≈ length(queue) × q(yᵢ)
```

The quantity `K_yᵢ` is the expected number of positive partners for a query with label `yᵢ`. The function `q(yᵢ)` is that label’s frequency in the dataset. The terms `length(queue)` and `batchsize` specify the queue length and training-batch size. The batch contribution accounts for the paired views, with the query itself excluded.

The approximation drops the batch contribution when the queue is much larger. The appendix says that this simplifies the presentation; the argument is intended to apply to the more precise positive count as well. It also assumes independently and identically distributed training observations.

To explain the optimization, let the normalized probability of positive partner `j` be `pⱼ⁺`, and let the probability assigned to all positives be `p_sum⁺`:

```
p_sum⁺ = Σⱼ₌₁ᴷ_yᵢ pⱼ⁺
```

The index `j` runs over the positive partners. The sum describes their collective share of the denominator. It need not initially contain all probability, because negative comparisons may also receive some share.

For a fixed total positive share, minimizing the summed negative logarithms distributes that share equally:

```
pⱼ⁺ = p_sum⁺ / K_yᵢ
```

The numerator `p_sum⁺` is the available positive probability, and `K_yᵢ` is the number of partners sharing it. This is a statement about the preferred probability allocation under the objective, instead of a guarantee that a finite network attains it.

At that allocation, the loss becomes:

```
Lᵢ = −K_yᵢ log(p_sum⁺ / K_yᵢ)
```

The expression shows how the positive count enters the minimized summed loss. When all probability is allocated to positives, the paper obtains the central supervised-contrastive result:

```
pⱼ⁺ = 1 / K_yᵢ
```

Each partner receives the reciprocal of the positive count. Since that count depends on class frequency, the optimum is category-dependent in long-tailed data. The paper uses this dependence, together with its loss-bound and gradient analysis, to motivate a different objective.

#### Add learned centers and unequal positive weights

PaCo introduces a set of trainable category vectors:

```
C = {c₁, c₂, …, cₙ}
```

The set `C` contains a center `cₖ` for each category `k`, and `n` is the category count. These are parameters learned during optimization. The paper does not define them as arithmetic averages recomputed from category members.

The new objective includes the correct center among the positives and every center in the denominator:

```
Lᵢ = −Σ_z₊∈P(i)∪{cᵧ} w(z₊) log[exp(z₊ · T(xᵢ)) / Σ_zₖ∈A(i)∪C exp(zₖ · T(xᵢ))]
```

The center `cᵧ` belongs to the query’s true category. The function `w` assigns a weight to each positive term. The sets `P(i)` and `A(i)` retain their earlier meanings, while `C` adds category parameters to the competition.

The positive weights are:

```
w(z₊) = α if z₊ ∈ P(i); 1.0 if z₊ = cᵧ
```

The coefficient `α` lies between zero and one. A positive example contributes with weight `α`, while the correct center contributes with weight `1.0`. This gives the center a distinct role rather than treating it as just another same-label observation.

Sample and center comparisons use different transformations:

```
z · T(xᵢ) = z · G(xᵢ) if z ∈ A(i); z · F(xᵢ) if z ∈ C
```

The function `G` is a two-layer multilayer perceptron used for example comparisons. The function `F` is the identity mapping, so center comparisons use the encoder representation directly. The piecewise expression explains the otherwise overloaded notation `T`.

Implementation also divides by the total positive weight and applies temperature. The normalization factor is the reciprocal of the sum of `w(z₊)` over positive examples and the correct center. This keeps the implementation consistent with a weighted average while preserving the intended relative emphasis.

The common denominator is the main architectural idea inside the loss. A center score can affect the normalized probability of an example comparison, and an example score can affect a center probability. That interaction is what distinguishes PaCo from training an independent classifier alongside an independently normalized contrastive objective.

#### Follow the changed optimum

With centers present, define `p_c⁺` as the probability assigned to the correct center. The total positive probability now includes both kinds of target:

```
p_sum⁺ = Σⱼ₌₁ᴷ_yᵢ pⱼ⁺ + p_c⁺
```

The quantities `pⱼ⁺` refer to positive examples, while `p_c⁺` refers to the correct learned center. All are measured within the combined sample-and-center normalization.

The weighted positive objective can then be expressed as:

```
Lᵢ = −log p_c⁺ − α Σⱼ₌₁ᴷ_yᵢ log pⱼ⁺
```

The first term rewards the correct center. The summation rewards positive examples, with `α` controlling their weight. This expression makes the unequal treatment of centers and examples explicit.

The appendix uses a Lagrange multiplier to enforce the fixed total positive probability. Its stationary conditions include:

```
−α / pⱼ⁺ + λ = 0
```

The scalar `λ` is the multiplier for the probability-sum constraint. This condition applies to each positive example.

The corresponding condition for the center is:

```
−1 / p_c⁺ + λ = 0
```

The center has a different coefficient because its loss weight differs. Solving under the probability constraint gives the example allocation:

```
pⱼ⁺ = α p_sum⁺ / (1 + αK_yᵢ)
```

The positive example receives a share determined by its weight, the available positive mass, and the positive count.

The center allocation is:

```
p_c⁺ = p_sum⁺ / (1 + αK_yᵢ)
```

The center’s numerator has no `α` factor because its positive weight is `1.0`. At the idealized minimum, the positive mass reaches `1.0`, giving the paper’s PaCo probabilities:

```
pⱼ⁺ = α / (1 + αK_yᵢ)
```

Here, `pⱼ⁺` is the optimal joint-normalized probability for an individual positive example. The corresponding center expression is:

```
p_c⁺ = 1 / (1 + αK_yᵢ)
```

The center probability uses the same denominator as the example probability. It should therefore be read as an allocation within the complete comparison system, rather than as a separately normalized classifier probability over centers alone.

Compared with the reciprocal positive count, the example expression introduces an offset controlled by `α`. The authors interpret this as moderating the variation across frequent and scarce categories. Smaller `α` makes those example probabilities more uniform across different positive counts.

There is a tradeoff. Reducing `α` also weakens sample comparisons relative to the center term. The objective moves towards conventional supervised classification, losing some of the influence that motivated contrastive learning. The paper selects `α=0.05` as a useful practical balance in its principal large-scale settings, instead of claiming that the smallest coefficient is best.

#### Rebalance center learning separately

The center parameters still learn from unevenly distributed labels. PaCo therefore incorporates Balanced Softmax for long-tailed experiments. The loss keeps its weighted-positive structure but replaces the exponentiated scores with a function `ψ`:

```
Lᵢ = −Σ_z₊∈P(i)∪{cᵧ} w(z₊) log[ψ(z₊, T(xᵢ)) / Σ_zₖ∈A(i)∪C ψ(zₖ, T(xᵢ))]
```

The function `ψ` specifies how each comparison enters the numerator and denominator. The remaining symbols retain their earlier meanings.

For sample comparisons and center comparisons, it is defined differently:

```
ψ(zₖ, T(xᵢ)) = exp(zₖ · G(xᵢ)) if zₖ ∈ A(i); exp(zₖ · F(xᵢ))q(yₖ) if zₖ ∈ C
```

The frequency `q(yₖ)` belongs to the category represented by center `zₖ`. Only the center contribution receives this factor. The sample contribution remains the exponentiated sample-comparison score.

This is the practical long-tailed objective. The authors explicitly leave a theoretical treatment of this center-rebalancing modification for future work. The clean probability derivation for the basic PaCo objective should therefore not be treated as a complete proof of every property of the Balanced Softmax version.

#### Understand the balanced-data analysis

When all categories have the same frequency, the expected positive count is shared across categories. The paper denotes this count by `K*`. It examines how PaCo behaves even though the original frequency problem is absent.

First, it defines the total unnormalized score:

```
ExpSum = Σ_cₖ∈C exp(cₖ · F(xᵢ)) + Σ_zₖ∈A(i) exp(zₖ · G(xᵢ))
```

The quantity `ExpSum` combines all center contributions and all example contributions. The sets, vectors, and transforms are the same as before.

The fraction of this score belonging to centers is:

```
P_sup = Σ_cₖ∈C exp(cₖ · F(xᵢ)) / ExpSum
```

The scalar `P_sup` measures center-side mass. It includes every category center, so it is not itself the probability of the correct category.

The example-side fraction is:

```
P_supcon = Σ_zₖ∈A(i) exp(zₖ · G(xᵢ)) / ExpSum
```

The scalar `P_supcon` measures the share belonging to examples. The two shares account for the same denominator, so the paper substitutes `1 − P_sup` for the example-side share.

Using those quantities, the balanced objective can be rearranged:

```
Lᵢ = L_sup + αL_supcon − log P_sup − αK* log(1 − P_sup)
```

The term `L_sup` is classification cross-entropy with center scores normalized within the center group. The term `L_supcon` is supervised contrastive loss with example scores normalized within the example group. The remaining terms arise because PaCo instead places both groups in a shared denominator.

The extra coupling term is:

```
L_extra = −log P_sup − αK* log(1 − P_sup)
```

The quantity `L_extra` discourages allocating all mass to either group. Its preferred allocation depends on the relative positive weight `αK*`.

For the full ImageNet example, the paper uses category frequency `0.001`, queue length `8192`, and `α=0.05`. It states `αK*=0.41` and identifies `P_sup=0.71` as the minimum of the extra term. These values illustrate a specific configuration; they are not universal targets for other datasets or queue sizes.

The authors then consider the approach toward that allocation. As center-side mass grows, an example comparison occupies a smaller portion of the shared normalization unless its within-group discrimination improves. Maintaining the desired positive probabilities consequently places stronger demands on sample comparisons.

The proposed interpretation is that easier examples become well aligned with their centers, while stronger sample-comparison pressure can help difficult same-category examples join them. This is an account of adaptive optimization pressure, instead of an explicit schedule that manually increases a loss coefficient.

The appendix also derives a center gradient:

```
∂L/∂cₖ = (αK* + 1)p_cₖxᵢ if yᵢ ≠ k; [(αK* + 1)p_cₖ − 1]xᵢ if yᵢ = k
```

The vector `cₖ` is center `k`, `p_cₖ` is its joint-normalized probability for the current query, and `xᵢ` is the encoder representation. The derivative is taken with respect to that center. The cases distinguish a competing category from the correct category.

For the probability interval considered in the appendix, the coefficients support movement away from incorrect centers and toward the correct center. Since the gradient is a vector, this is most clearly understood through its direction along the representation. It supports the authors’ account of increasing center alignment without turning it into a guarantee about every training trajectory.

### Experiments and results

#### What is evaluated

The long-tailed experiments train on an uneven source label distribution and evaluate against a uniform target label distribution. That distinction is central to the task. A procedure cannot be judged successful merely because it handles the most common training categories well; evaluation gives categories a more even role.

The principal reported measure is top-1 accuracy: whether the highest-ranked category is correct. The experiments cover long-tailed CIFAR-100, ImageNet-LT, Places-LT, and iNaturalist 2018. The paper then studies full ImageNet and full CIFAR-100 to test the balanced-data argument.

The numerical discussion requires care because several result tables are represented by captions without their individual entries. The paper’s prose states particular scores and comparison margins, while other comparisons are described qualitatively. Those qualitative statements establish what the authors report, but they do not justify reconstructing missing scores.

#### Datasets and the kinds of difficulty they represent

CIFAR-100 contains 60,000 images, divided into 50,000 training images and 10,000 validation images, across 100 categories. Its long-tailed version is constructed under the settings used by the earlier methods being compared. The imbalance factor describes how different the largest and smallest training categories are:

```
β = N_max / N_min
```

The symbol `β` is the imbalance factor. The quantities `N_max` and `N_min` are the training-example counts for the most common and least common categories. The CIFAR-100-LT experiments use factors `100`, `50`, and `10`.

ImageNet-LT is a sampled long-tailed version of [ImageNet](https://md.research.elamur.ai/free/en/papers/russakovsky-2014-imagenet-large-scale-visual-recognition/). The sampling follows a Pareto distribution with power parameter `6`. This distribution parameter is separate from PaCo’s positive-weight coefficient, even though the paper uses the same Greek letter for both in different contexts.

ImageNet-LT contains 115.8K images in 1,000 categories. Category sizes extend from 5 to 1,280 images. This creates a substantial difference in the available supervision across categories while retaining a large recognition vocabulary.

Places-LT concerns scenes instead of the object categories of ImageNet. It contains 184.5K images covering 365 categories, with category sizes ranging from 5 to 4,980 images. Its experimental protocol also differs because training starts from an ImageNet-pretrained network.

The species-recognition dataset iNaturalist 2018 contains 437.5K images across 8,142 categories. The authors describe both severe imbalance and fine-grained recognition difficulty. This gives the evaluation a different challenge: categories can be numerous and visually close, as well as unevenly represented.

These datasets support a broader visual-recognition claim than a single benchmark would. They do not isolate every possible reason for improvement, but they test PaCo under different category counts, training distributions, and recognition domains.

#### Training schedules and baseline treatment

For most datasets, PaCo is trained for 400 epochs. Places-LT is the exception: the procedure loads an ImageNet-pretrained network and fine-tunes it for 30 epochs. This follows the earlier evaluation protocol used for that dataset.

The authors emphasize that contrastive learning benefits from longer training. To avoid attributing the whole gain to the objective when training duration or augmentation might explain it, they reimplement important ImageNet-LT and iNaturalist baselines with the same schedule and RandAugment. The main comparisons include Decouple, Balanced Softmax, and RIDE.

For the large-scale PaCo experiments, stochastic gradient descent uses momentum `0.9`. A cosine schedule lowers the learning rate from `0.02` to `0`, with batch size `128` across `4` GPUs during the `400`-epoch run. The temperature is `0.2`, and the positive-example coefficient is `0.05`.

The ImageNet-LT backbones include ResNet-50, ResNeXt-50-32x4d, and ResNeXt-101-32x4d. The iNaturalist experiments use ResNet-50 and ResNet-152. This tests whether the benefit survives changes in backbone capacity rather than appearing only in one architecture.

CIFAR-100-LT follows the comparison setting for Balanced Softmax, including Cutout and AutoAugment. Its PaCo configuration uses temperature `0.05` and coefficient `0.02`. The changed settings show that the paper does not assume a single universal configuration across small-image and large-scale recognition.

#### Long-tailed recognition findings

On ImageNet-LT, the authors report that PaCo exceeds the compared methods under the stronger matched training setup. They also find that Balanced Softmax remains comparable with Decouple across the tested backbones. This matters because it prevents the comparison from resting entirely on a weakly trained version of an older baseline.

For RIDE, the comparison includes measured inference latency. RIDE uses multiple experts, so a direct comparison by nominal backbone can hide execution differences. Timing is measured for batches of 64 images on an Nvidia GeForce 2080Ti GPU.

A RIDEResNet configuration with 3 experts takes 15.3ms, compared with 13.1ms for the standard ResNeXt-50-32x4d. A RIDEResNeXt configuration with 3 experts takes 26ms, while the standard ResNeXt-101-32x4d takes 25ms. The authors use these measurements to choose comparisons with similar practical latency.

Their interpretation is that splitting computation among network components can reduce parallel execution efficiency. They also omit knowledge distillation in these comparisons. The reported PaCo advantage is therefore framed around comparable inference conditions, rather than an unrestricted contest between differently structured systems.

On Places-LT, the network is ResNet-152 initialized from the publicly available ImageNet-pretrained weights described by the paper. Under the 30-epoch fine-tuning setup without RandAugment, PaCo is reported to exceed Balanced Softmax by 2.6%. The authors also say RandAugment adds little on this dataset.

On iNaturalist 2018, the paper reports an advantage of 1.4% over Balanced Softmax under the matched setting. With ResNet-152, PaCo reaches 75.3% top-1 accuracy. The ImageNet-LT hyper-parameters are transferred without adjustment, so this result also provides evidence that the chosen large-scale configuration is useful beyond the dataset on which it was selected.

The claim that further tuning would improve that result remains a prospect rather than an experimental outcome. The reported result establishes performance with transferred settings; it does not supply a tuned alternative.

On CIFAR-100-LT, the paper compares against Balanced Softmax under the same strong augmentation procedure. It reports advantages of 1.2%, 1.8%, and 1.2% at imbalance factors `100`, `50`, and `10`, respectively. These margins are stated by the authors; the corresponding absolute accuracy entries are not recoverable from the table captions alone.

#### Balanced recognition findings

For full ImageNet and full CIFAR-100, the authors remove Balanced Softmax from center learning. That choice is important for interpretation. A gain on balanced data cannot then be credited to the long-tailed center-frequency correction.

The full ImageNet setup transfers the ImageNet-LT PaCo settings. It uses temperature `0.2`, coefficient `0.05`, and queue size `8,192`. The fixed multitask comparison also assigns `0.05` to its additional supervised contrastive term and uses the same augmentation arrangement.

With ResNet-50 and SimAugment, PaCo reaches 78.7% top-1 accuracy on full ImageNet. The paper states that this is 0.8% above supervised contrastive learning. With RandAugment, the PaCo result rises to 79.3%.

PaCo augmentation settings on full ImageNet, ResNet-50 top-1 accuracy RandAugment gives the stronger result within the reported PaCo comparison.

**The numbers**

| System or setting | top-1 accuracy % |
| --- | --- |
| PaCo with SimAugment | 78.7 |
| PaCo with RandAugment (this paper) | 79.3 |

The paper also reports that the advantage over supervised contrastive learning persists for ResNet-101 and ResNet-200. Its abstract gives 81.8% top-1 accuracy for the ResNet-200 PaCo system. The available prose does not supply all the corresponding baseline entries, so those should not be inferred from the headline score.

For full CIFAR-100, the experiment uses ResNet-50 with SimAugment. The temperature is `0.07`, the coefficient is `0.008`, and batch size is `256`, with learning rate `0.1`. The stated weight decay is `5e-4`.

PaCo is reported to exceed supervised contrastive learning by 2.6% on this balanced CIFAR-100 experiment. Together with ImageNet, this supports the claim that PaCo has useful behavior beyond frequency correction. It does not, on its own, identify whether adaptive coupling, center supervision, or another interaction explains the whole gain.

### What the ablations show

#### Crop settings do not transfer automatically

The augmentation study is especially informative because it finds that settings useful for self-supervised contrastive learning can be unsuitable when class-center learning is added. The paper contrasts random-resized-crop ranges used in earlier self-supervised work with the range preferred by PaCo.

On ImageNet-LT with ResNet-50, changing the crop range from `(0.08,1)` to `(0.2, 1)` changes PaCo accuracy from 55.0% to 52.2%. These are results for different settings of the same method, so they directly establish sensitivity to this part of the training procedure.

Crop range in PaCo on ImageNet-LT, ResNet-50 top-1 accuracy The crop range favored in the PaCo experiment performs better than the transferred alternative.

**The numbers**

| System or setting | top-1 accuracy % |
| --- | --- |
| PaCo crop range (0.2, 1) | 52.2 |
| PaCo crop range (0.08,1) (this paper) | 55.0 |

The authors associate the difference with center learning and note a similar effect in ordinary cross-entropy training. This is a useful interpretation, but the comparison establishes the crop effect more directly than its complete cause. Adding centers changes the training problem; it does not imply that every augmentation preference can be predicted from that fact alone.

The broader lesson is that contrastive learning is not a single augmentation regime. A transformation suited to comparing instances may behave differently when the representation must also support a learned category target.

#### Different branches benefit from different augmentation

The paper compares SimAugment and [RandAugment](https://md.research.elamur.ai/free/en/papers/cubuk-2020-randaugment-practical-automated-data-augmentation/) across the query and momentum branches. SimAugment uses random flipping, color perturbation, and Gaussian blur. RandAugment provides a stronger alternative based on randomly chosen augmentation parameters.

The controlled comparison considers matching SimAugment across both branches, matching RandAugment across both, and using RandAugment for the query with SimAugment for the momentum branch. The asymmetric arrangement is the best of these settings in the authors’ results.

This finding helps explain why “use stronger augmentation” is too coarse a conclusion. The query participates directly in learning the center-based recognition objective, while the momentum branch supplies comparison representations. The authors interpret the result as evidence that center learning benefits from stronger perturbation than the sample-comparison side.

The numerical entries of the corresponding augmentation table are not stated in its caption or surrounding prose. The supported conclusion is therefore the ranking of these arrangements, instead of an invented estimate of the size of the gain.

#### Reweighting alone does not reproduce the reported benefit

The supplementary ablation applies conventional reweighting directly to supervised contrastive learning. It includes the effective-sample approach associated with Class-Balanced Loss and an adaptation of Balanced Softmax for contrastive rebalancing.

These comparisons use ImageNet-LT with ResNet-50 and omit RandAugment. The authors report that PaCo performs substantially better than both alternatives. This supports their claim that changing the contrastive formulation is useful beyond simply inserting an existing reweighting rule.

The result should be kept within its tested scope. It does not prove that all possible weighting strategies fail or that learned centers are the only way to correct the problem. It shows that the particular reweighting baselines studied do not match PaCo under the reported conditions.

#### Center correction contributes separately

A further ablation examines rebalancing of center learning. This comparison uses ImageNet-LT with ResNeXt-50, trained for 400 epochs with RandAugment. After applying center rebalancing, the paper reports 58.2% accuracy.

The important causal distinction is between having centers and balancing their learning. PaCo’s probability-allocation argument motivates the first change. The additional Balanced Softmax modification addresses a remaining source of frequency dependence.

The reported result supports the practical combination, but the unavailable table entries prevent a numerical decomposition of its improvement into separate contributions. It would be incorrect to infer the size of the center-correction gain from the final score alone.

#### Gradients and balanced-data comparisons support the mechanism

The gradient analysis examines average L2 magnitudes at the final classifier across frequency-ordered categories. Compared with supervised contrastive learning, PaCo produces a more moderated pattern. This agrees with the paper’s claim that its objective reduces the dominance associated with frequent classes.

It remains an optimization diagnostic. A more even gradient pattern is not itself a measure of recognition quality, and the analysis does not show that all categories receive identical treatment. Its role is to connect the proposed loss mechanism with observable training behavior.

The balanced-data comparisons address another alternative explanation. Because the center-frequency correction is removed, the full ImageNet and CIFAR-100 gains show that the method is useful even without long-tailed rebalancing. The fixed multitask formulation also provides a conceptual comparator for the shared denominator.

The evidence is consistent with the adaptive-coupling account. However, the prose does not provide a complete numerical breakdown of every comparison, and it does not separately measure improvement for a defined set of hard examples. The hard-example explanation is therefore supported by the analysis and compatible results, rather than established as an exhaustive explanation of the gains.

### Limitations

#### Limits the authors explicitly identify

The clearest theoretical limit concerns Balanced Softmax in center learning. The authors use it as a practical correction and explicitly leave its theoretical analysis for later work. This matters because the long-tailed system combines that correction with the basic PaCo formulation. The proof for the simpler objective does not automatically characterize the complete practical training rule.

The coefficient controlling sample comparisons also introduces a real compromise. A smaller value makes the positive-probability allocation more uniform across categories, but it reduces the relative force of sample-to-sample learning. The paper consequently does not offer a setting that maximizes rebalancing without affecting the rest of the objective.

Augmentation is another stated area needing further work. RandAugment helps the ImageNet setting but has little effect on Places-LT, with a similar observation on iNaturalist 2018. The authors connect this to the need for augmentation that generalizes across recognition domains. Their experiments demonstrate useful choices in particular settings, rather than a domain-independent policy.

Training duration is also part of the practical context. The paper adopts long schedules because contrastive learning can require substantial optimization time. Retraining baselines improves the fairness of the comparison, but it does not remove the cost of that training regime.

#### Limits of the theoretical argument

The probability proofs characterize an idealized optimum. They allocate probability among positive comparisons under a constraint and identify the allocation that minimizes the stated objective. That is a useful way to expose class-count dependence, but it is different from proving convergence of a finite network trained with stochastic updates.

The derivation assumes independently and identically distributed observations. It also uses an expected positive count and simplifies that count when the queue dominates the batch. Though the authors say the approximation is unnecessary for the underlying result, the training queue still contains representations produced over time by an evolving system.

A single query’s preferred probability allocation also does not establish that all queries can attain their preferred allocations simultaneously. Shared encoder parameters, overlapping visual evidence, and finite representations constrain the realized solution. The paper’s theorem is strongest as an analysis of objective structure.

The term “probability” needs a similarly careful reading. The quantities being analyzed are normalized similarity scores inside the training loss. The paper does not establish that they are calibrated estimates of real-world correctness. In particular, the correct-center quantity in the basic PaCo derivation belongs to the joint center-and-example denominator.

The balanced-data argument is also more limited than a universal statement about difficult examples. It shows how the coupling changes optimization pressure as mass shifts toward centers. It does not define a benchmark subset of hard examples and demonstrate that each gains from the proposed mechanism.

#### Limits visible in the experimental setup

The experiments concern image classification. They span different visual domains and label distributions, but they do not test language understanding, sequence generation, or retrieval. Any use in Mova would therefore need its own task definition and evaluation.

The long-tailed protocol trains on an uneven distribution and evaluates on a uniform target distribution. This is appropriate to the benchmark question, but it does not establish optimal behavior when deployment frequencies match the original training imbalance. The desired target distribution is part of what makes a rebalancing procedure useful.

Several headline comparisons are stated as margins or qualitative rankings without accessible individual entries in the surrounding prose. Those claims can be reported at the level given by the authors. They do not support reconstructing complete result tables, category-group scores, or uncertainty estimates.

The latency comparison is carefully specified, but it is still specific. It uses a particular GPU, batch size, and software setting. It supports the authors’ practical comparison under those conditions; it does not establish an invariant ordering across hardware and execution environments.

Likewise, the augmentation ablations are informative without being exhaustive. A worse crop range and a weaker branch arrangement show that implementation choices matter. They do not imply that the selected combination is best for every backbone, category distribution, or domain.

The transferred iNaturalist configuration is evidence of some practical portability. It is not proof that hyper-parameters never need adjustment. The CIFAR experiments already use different temperatures and coefficients, showing that the paper itself adapts the procedure across settings.

Finally, aggregate top-1 accuracy does not reveal every aspect of a recognition system. The paper includes frequency-oriented analyses and refers to category-group results, but the reported headline gains cannot establish equal benefit for every category. The appropriate conclusion is improved performance in the tested comparisons, alongside a plausible and partially examined optimization mechanism.

### What came after

The paper leaves a clear research agenda, but it does not establish a later citation lineage. No specific follow-up study can be identified from its account, so later achievements should not be attributed to PaCo without additional evidence.

The most explicit open direction is a theory of the center-rebalancing rule. The authors justify the basic interaction between learned centers and sample comparisons, then add Balanced Softmax for practical long-tailed training. Extending the analysis to that combined objective would connect the theoretical account more closely to the strongest recognition setting.

Another direction concerns augmentation across domains. The paper’s own findings show that a policy useful for ImageNet can contribute little elsewhere, and that different branches can prefer different transformations. This makes augmentation part of the scientific question about coupled supervision, rather than a fixed accessory to the loss.

The balanced-data analysis also suggests a question for subsequent investigation: when does a shared normalization improve the interaction between classification and representation learning? PaCo offers an explicit mathematical example and supporting recognition experiments. Establishing which difficult examples benefit, how that depends on the category structure, and where a fixed combination performs equally well remains beyond its demonstrated results.

These are directions arising from the authors’ findings and stated open problems. The paper’s established contribution is the objective itself: persistent category centers and observation-level comparisons trained through a shared competition, with evidence that the combination helps both long-tailed and balanced visual recognition.

## Cite

Cite as Jiequan Cui, Zhisheng Zhong, Liu Shu, Bei Yu and Jiaya Jia. 2021. Parametric Contrastive Learning. IEEE/CVF International Conference on Computer Vision (ICCV).

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.1109/iccv48922.2021.00075](https://doi.org/10.1109/iccv48922.2021.00075) · [arXiv 2107.12028](https://arxiv.org/abs/2107.12028)

```bibtex
@inproceedings{cui2021parametric,
  title = {{Parametric Contrastive Learning}},
  author = {Jiequan Cui, Zhisheng Zhong, Liu Shu, Bei Yu and Jiaya Jia},
  booktitle = {IEEE/CVF International Conference on Computer Vision (ICCV)},
  year = {2021},
  doi = {10.1109/iccv48922.2021.00075},
  eprint = {2107.12028},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.1109/iccv48922.2021.00075}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
