L2-Constrained Softmax Loss for Face Verification

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Face verification systems using deep convolutional neural networks (DCNNs) face performance gaps due to softmax loss not optimizing features for higher similarity scores for positive pairs and lower scores for negative pairs, particularly in unconstrained settings with extreme variations in viewpoints, resolution, occlusion, and image quality, caused by data quality imbalance and bias towards high-quality faces.

Innovation Solution

Implementing an L2-normalizing layer to constrain feature descriptors to lie on a hypersphere of a fixed radius, which enforces L2-softmax loss, ensuring all features have the same norm, thereby providing equal attention to both good and bad quality faces and strengthening the verification signal by maximizing the margin between positive and negative pairs.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Ease of manufacture

If softmax loss is used for training face verification system, then it can be easily implemented using inbuilt functions and converges quickly, but it is biased to the sample distribution and ignores rare difficult faces from training mini-batch

Engineering Contradiction:
Improveease of implementationVSAvoidverification accuracy on difficult faces
Core Design Contradiction:
Ease of manufactureVSReliability

Solution Approach 1:

The patent changes the loss function parameter from standard softmax loss to L2-constrained softmax loss. This parameter change modifies the optimization objective to explicitly maximize similarity scores for positive pairs while minimizing scores for negative pairs, thereby addressing the bias toward high-quality faces while maintaining ease of implementation through existing deep learning frameworks.

Inventive Principle:
Principle #35Parameter changes

2Quantity of substance

If softmax loss maximizes conditional probability of all samples in mini-batch, then it fits well to high quality faces, but it ignores rare difficult faces and does not optimize verification requirement

Engineering Contradiction:
Improvecoverage of all samplesVSAvoidperformance on difficult faces
Core Design Contradiction:
Quantity of substanceVSReliability

Solution Approach 1:

The patent applies local quality by differentiating the treatment of different sample types within the mini-batch. The L2-constrained softmax loss function specifically optimizes for positive pairs (same identity) to have higher similarity scores while negative pairs (different identity) have lower scores. This local differentiation ensures that difficult faces are not ignored despite their rarity in the overall dataset.

Inventive Principle:
Principle #3Local quality

3Measurement precision

If deep convolutional neural network is trained with softmax loss, then it achieves good performance on curated datasets like LFW, but it fails to achieve similar accuracy on faces with extreme variations in viewpoints, resolution, occlusion and image quality

Engineering Contradiction:
Improveaccuracy on curated datasetsVSAvoidperformance on unconstrained settings
Core Design Contradiction:
Measurement precisionVSAdaptability or versatility

Solution Approach 1:

The patent introduces dynamics by making the loss function adaptive to different face qualities and conditions. The L2-constrained softmax loss dynamically adjusts the optimization focus based on the verification requirement, maximizing similarity for positive pairs regardless of their quality or difficulty level. This dynamic adaptation enables the system to maintain high accuracy on both curated datasets and unconstrained settings with extreme variations.

Inventive Principle:
Principle #15Dynamics

Data Source

PatentUS11636328B2L2 constrained softmax loss for discriminative face verification
Publication Date: 2023.04.25 UNIV OF MARYLAND
  • US11636328B2 patent drawing
  • US11636328B2 patent drawing
  • US11636328B2 patent drawing

AI summary

Various face discrimination systems may benefit from techniques for providing increased accuracy. For example, certain discriminative face verification systems can benefit from L2-constrained softmax loss. A method can include applying an image of a face as an input to a deep convolutional neural network. The method can also include applying an output of a fully connected layer of the deep convolutional neural network to an L2-normalizing layer. The method can further include determining softmax loss based on an output of the L2-normalizing layer.