Serverless Gradient Chunking for Large DL Model Training

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Serverless platforms face challenges in training large deep learning models due to limited compute power, short instance lifetimes, and the inability to perform peer-to-peer communication, which restricts their use in distributed training, especially when gradients or models exceed the maximum size allowed by cloud storage services.

Innovation Solution

A method and system for training large deep learning models using serverless architecture that involves chunking gradients into segments based on the maximum size allowed by cloud storage services, utilizing multiple aggregators and threads to optimize communication, and employing data types like float16 and int8 to reduce overhead.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Adaptability or versatility

If serverless instances are used for distributed training, then scalability and resource management are improved, but peer-to-peer communication capability deteriorates

Engineering Contradiction:
ImprovescalabilityVSAvoidcommunication capability
Core Design Contradiction:
Adaptability or versatilityVSObject-generated harmful factors

Solution Approach 1:

The patent introduces cloud storage services as an intermediary communication channel between serverless instances. Instead of direct peer-to-peer communication, workers write gradients to and read from cloud storage, enabling distributed training without requiring communication capabilities in the serverless instances themselves.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Loss of energy

If cloud storage services are used for gradient exchange, then communication overhead is reduced, but data item size is constrained

Engineering Contradiction:
Improvecommunication overheadVSAvoiddata item size
Core Design Contradiction:
Loss of energyVSVolume of moving object

Solution Approach 1:

The patent segments large gradient data into smaller chunks that fit within cloud storage data item limits. By dividing the gradient exchange process into multiple smaller operations, the system overcomes the data size constraint while maintaining efficient communication through the cloud storage intermediary.

Inventive Principle:
Principle #1Segmentation

Data Source

PatentUS12561616B2Training large DL models via serverless architecture using cloud storage services-based communication channel
Publication Date: 2026.02.24 TATA CONSULTANCY SERVICES LTD
  • US12561616B2 patent drawing
  • US12561616B2 patent drawing
  • US12561616B2 patent drawing

AI summary

State of the art methods require size of DL model, or its gradients be less than maximum data item size of storage used as a communication channel for model training with serverless platform. Embodiments of the present disclosure provide method and system for training large DL models via serverless architecture using communication channel when the gradients are larger than maximum size of one data item allowed by the channel. Gradients that are generated by each worker during current training instance, are chunked into segments and stored in the communication channel. Corresponding segments of each worker are aggregated by aggregators and stored back. Each of the aggregated corresponding segments are read by each worker to generate an aggregated model to be used during successive training instance. Optimization techniques are used for reading-from and writing-to the channel resulting in significant improvement in performance and cost of training.