Federated Sampled SoftMax for Efficient Model Training

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Federated learning with decentralized data faces challenges in efficiently training machine-learned models, particularly with a large number of classes, due to increased computational and communication costs, and the need for privacy preservation, especially on resource-constrained devices like smartphones.

Innovation Solution

The method involves clients sampling negative class labels and optimizing a sampled SoftMax loss, approximating the global full SoftMax objective, which reduces the number of parameters transferred and computed, while maintaining privacy through anonymization of true class labels.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If full SoftMax training is used with a large number of classes, then classification performance is improved, but computational resources and communication costs increase significantly

Engineering Contradiction:
Improveclassification performanceVSAvoidcomputational resources
Core Design Contradiction:
Measurement precisionVSUse of energy by moving object

Solution Approach 1:

The patent applies sampled SoftMax which computes only a subset of class probabilities rather than all classes. This partial action approach maintains sufficient classification performance by focusing computation on the most relevant classes while significantly reducing computational resources and communication costs associated with full SoftMax training.

Inventive Principle:
Principle #16Partial or excessive action

Solution Approach 2:

The patent changes the parameter of computing all class probabilities to computing only sampled class probabilities. This parameter change in the SoftMax computation allows the system to maintain classification performance while reducing the computational burden and communication overhead when dealing with a large number of classes.

Inventive Principle:
Principle #35Parameter changes

2Measurement precision

If full SoftMax training is used with a large number of classes, then classification performance is improved, but communication costs increase

Engineering Contradiction:
Improveclassification performanceVSAvoidcommunication costs
Core Design Contradiction:
Measurement precisionVSQuantity of substance

Solution Approach 1:

The sampled SoftMax approach transmits only the sampled class probabilities rather than all class probabilities between clients and server. This partial transmission reduces communication costs while maintaining sufficient classification performance through strategic sampling of the most relevant classes.

Inventive Principle:
Principle #16Partial or excessive action

3Ease of manufacture

If all data samples are uploaded to a centralized authority for training, then model training is simplified, but privacy is compromised

Engineering Contradiction:
Improvemodel training simplicityVSAvoidprivacy
Core Design Contradiction:
Ease of manufactureVSLoss of information

Solution Approach 1:

The patent implements federated learning where training is segmented between local clients and a central server. Each client performs local training on its own data without uploading the data itself, while the server aggregates models. This segmentation maintains training simplicity through distributed computation while preserving privacy by keeping data localized.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent uses model updates as an intermediary between clients and server. Instead of directly exchanging data, clients send compressed model updates that encapsulate learning information. This intermediary approach simplifies the training process through automated gradient aggregation while protecting privacy by preventing direct data exposure to the server.

Inventive Principle:
Principle #24Intermediary (Mediator)

Data Source

PatentUS20240330705A1Systems and Methods for Federated Learning of Machine-Learned Models with Sampled Softmax
Publication Date: 2024.10.03 GOOGLE LLC
  • US20240330705A1 patent drawing
  • US20240330705A1 patent drawing
  • US20240330705A1 patent drawing

AI summary

Example aspects of the present disclosure provide a novel, resource-efficient approach for learning image representation with federated learning, which can be referred to as federated sampled SoftMax. According to example aspects of the present disclosure, the federated learning clients sample a set of negative classes and optimize only the corresponding model parameters with respect to a sampled SoftMax objective that approximates the global full SoftMax objective. This approach significantly reduces the number of parameters transferred to and optimized by the client devices, while performing on par with the standard full SoftMax method. This creates a possibility for efficiently learning image representations on decentralized data with a large number of classes in a privacy preserving way.