Multiple-Positive Supervised Contrastive Loss for Robust Classification

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing supervised learning methods, particularly those using cross-entropy loss, face challenges with robustness to noisy labels and poor margins, leading to reduced generalization performance, and proposed alternatives have not significantly improved performance on large-scale datasets like ImageNet.

Innovation Solution

A supervised contrastive learning approach that allows simultaneous training across multiple positive and negative examples, using a novel loss function that pulls representations of the same class closer together and pushes them apart from different classes, leveraging label information effectively.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Ease of manufacture

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

Engineering Contradiction:
Improvetraining simplicityVSAvoidrobustness to noisy labels
Core Design Contradiction:
Ease of manufactureVSReliability

Solution Approach 1:

The patent changes the fundamental parameter of the loss function from cross-entropy to supervised contrastive loss (Eq. 1), which transforms the optimization objective from predicting class probabilities to minimizing representation distance between positives and maximizing distance between negatives. This parameter change enables simultaneous improvement of robustness to noisy labels and generalization performance while maintaining training simplicity through a straightforward gradient-based optimization process.

Inventive Principle:
Principle #35Parameter changes

Solution Approach 2:

The patent combines multiple loss components into a composite loss function that simultaneously handles positive examples (Eq. 1a) and negative examples (Eq. 1b). The composite structure integrates contrastive loss for positive pairs with a separate negative sampling component, creating a unified training objective that addresses both noisy label robustness and generalization issues that neither component could address alone.

Inventive Principle:
Principle #40Composite materials

2Ease of manufacture

If cross-entropy loss is used, then implementation is standard and easy, but margins between classes become poor leading to reduced generalization

Engineering Contradiction:
Improveimplementation easeVSAvoidclass margin quality
Core Design Contradiction:
Ease of manufactureVSManufacturing precision

Solution Approach 1:

The patent replaces the probabilistic mechanical system of cross-entropy loss with a geometric mechanical system based on representation distance minimization and maximization. Instead of optimizing probability distributions, the system directly optimizes the geometric relationships between class representations in the embedding space, achieving sharper class margins and better generalization through explicit distance control rather than implicit probability optimization.

Inventive Principle:
Principle #28Mechanics substitution (Replace mechanical system)

3Reliability

If alternative loss functions are proposed to improve robustness, then robustness may improve, but performance on large-scale datasets like ImageNet deteriorates or remains insufficient

Engineering Contradiction:
Improverobustness to noisy labelsVSAvoidperformance on large-scale datasets
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The patent segments the training process into distinct positive example handling (Eq. 1a) and negative example handling (Eq. 1b), allowing each component to be optimized independently while contributing to the overall objective. This segmentation enables the system to leverage large-scale dataset statistics effectively by processing positive and negative examples through separate, specialized mechanisms that both contribute to robustness and large-scale performance.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent introduces an intermediary projection head network (Eq. 2) that maps the base encoder representations to a different space suitable for contrastive loss optimization. This intermediary layer acts as a mediator between the base encoder and the contrastive loss objective, enabling the system to achieve both robustness to noisy labels and state-of-the-art performance on large-scale datasets like ImageNet by finding an optimal representation space that satisfies both requirements.

Inventive Principle:
Principle #24Intermediary (Mediator)

Data Source

PatentUS12462524B2Supervised contrastive learning with multiple positive examples
Publication Date: 2025.11.04 GOOGLE LLC
  • US12462524B2 patent drawing
  • US12462524B2 patent drawing
  • US12462524B2 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.