Supervised Contrastive Learning with Multiple Positive Examples

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing supervised learning methods, particularly those using cross-entropy loss, are prone to noise and poor margins, leading to reduced generalization performance and robustness, especially on large-scale datasets like ImageNet, and proposed alternatives have not significantly improved these issues.

Innovation Solution

A supervised contrastive learning approach that allows simultaneous training across multiple positive and negative examples, using a modified batch contrastive loss to pull similar images closer and push dissimilar ones apart in embedding space, leveraging class labels to select positives and negatives.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If cross-entropy loss is used for supervised learning, then training is simple and widely applicable, but the model shows reduced robustness to noisy labels and poor generalization performance

Engineering Contradiction:
Improverobustness to noisy labelsVSAvoidtraining complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The patent changes the loss function parameter from cross-entropy to supervised contrastive loss, which fundamentally alters how training examples are weighted and processed. This parameter change enables the model to achieve robustness to noisy labels by contrasting positive and negative examples within the same batch, while maintaining computational efficiency through vectorized operations.

Inventive Principle:
Principle #35Parameter changes

Solution Approach 2:

The patent segments the training batch into positive examples (same class as anchor) and negative examples (different classes), applying different loss computations to each segment. This segmentation allows the model to learn discriminative features by explicitly separating positive from negative samples, improving robustness without significantly increasing complexity.

Inventive Principle:
Principle #1Segmentation

2Manufacturing precision

If cross-entropy loss is used for supervised learning, then training converges quickly, but the model achieves poor margins and reduced generalization performance

Engineering Contradiction:
Improveclassification marginVSAvoidtraining efficiency
Core Design Contradiction:
Manufacturing precisionVSProductivity

Solution Approach 1:

The patent changes the loss function to supervised contrastive loss, which directly optimizes classification margins by pulling positive examples closer and pushing negative examples farther in the embedding space. This parameter change achieves better margins while maintaining training efficiency through batch-level vectorized computations.

Inventive Principle:
Principle #35Parameter changes

Solution Approach 2:

The patent moves from scalar cross-entropy loss to a contrastive loss that operates in the embedding space dimension, considering relationships between multiple examples simultaneously. This dimensional change enables better margin optimization by leveraging geometric relationships in the feature space without sacrificing training speed.

Inventive Principle:
Principle #17Another dimension (Dimensionality change)

3Reliability

If modified cross-entropy with loosened reference distribution is used, then generalization and robustness improve, but the drawbacks of cross-entropy cannot be completely eliminated

Engineering Contradiction:
Improvegeneralization performanceVSAvoidloss function complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The patent changes from modified cross-entropy to supervised contrastive loss, fundamentally altering the loss computation paradigm. This parameter change completely eliminates cross-entropy drawbacks by using a different mathematical formulation that naturally handles class imbalance and noisy labels through positive-negative example contrasting within batches.

Inventive Principle:
Principle #35Parameter changes

Solution Approach 2:

The patent extracts the essential contrastive learning mechanism from self-supervised settings and adapts it for supervised learning with multiple positive examples. This extraction removes the limitations of cross-entropy while preserving computational efficiency, achieving complete elimination of cross-entropy drawbacks.

Inventive Principle:
Principle #2Taking out (Extraction)

4Manufacturing precision

If supervised contrastive learning with multiple positive examples is implemented, then classification accuracy and robustness improve, but computational resources and hyperparameter sensitivity increase

Engineering Contradiction:
Improveclassification accuracyVSAvoidcomputational resources
Core Design Contradiction:
Manufacturing precisionVSUse of energy by moving object

Solution Approach 1:

The patent merges multiple positive examples from the same class within a single training batch, processing them simultaneously through vectorized operations. This merging approach achieves high classification accuracy by leveraging multiple positives while maintaining computational efficiency through batch-level parallel processing, avoiding excessive resource consumption.

Inventive Principle:
Principle #5Merging (Combining)

Data Source

PatentUS20260030863A1Supervised Contrastive Learning with Multiple Positive Examples
Publication Date: 2026.01.29 GOOGLE LLC
  • US20260030863A1 patent drawing
  • US20260030863A1 patent drawing
  • US20260030863A1 patent drawing

AI summary

The present disclosure provides an improved training methodology that enables supervised contrastive learning to be simultaneously performed across multiple positive and negative training examples. In particular, example aspects of the present disclosure are directed to an improved, supervised version of the batch contrastive loss, which has been shown to be very effective at learning powerful representations in the self-supervised setting. Thus, the proposed techniques adapt contrastive learning to the fully supervised setting and also enable learning to occur simultaneously across multiple positive examples.