Dynamic Machine Learning Model Sharding for Scalable Deployment

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing systems face challenges in efficiently managing and deploying machine learning models across multiple shards due to resource intensity and the high cost of moving models between shards, leading to inefficiencies in memory usage and overhead duplication.

Innovation Solution

A system for dynamically allocating machine learning models across shards based on a cost function, which considers available memory and other variables, allowing for efficient deployment and minimization of model movement, while optimizing memory usage and reducing downtime.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If machine learning models are maintained in memory for analyzing datasets, then model analysis performance is improved, but memory resource consumption increases and system scalability deteriorates

Engineering Contradiction:
Improvemodel analysis performanceVSAvoidmemory resource consumption
Core Design Contradiction:
ReliabilityVSQuantity of substance

Solution Approach 1:

The patent segments the system into multiple shards, where each shard maintains a subset of machine learning models in memory. This segmentation allows the system to distribute memory consumption across multiple independent units while maintaining fast in-memory access for active models. Each shard can be independently managed and scaled, resolving the contradiction between maintaining models in memory for performance and managing overall memory resource consumption.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent implements dynamic model sharding that automatically adjusts which models are loaded into memory based on access patterns, available resources, and workload demands. This dynamic approach allows the system to optimize memory utilization by loading only the most frequently accessed models into memory while keeping less frequently accessed models in external storage, thereby maintaining analysis performance while controlling memory consumption.

Inventive Principle:
Principle #15Dynamics

2Adaptability or versatility

If models are moved between shards, then model deployment flexibility is improved, but system overhead and resource duplication increase

Engineering Contradiction:
Improvemodel deployment flexibilityVSAvoidsystem overhead
Core Design Contradiction:
Adaptability or versatilityVSDevice complexity

Solution Approach 1:

The patent employs predictive model sharding that uses access pattern analysis to pre-load models into appropriate shards before they are actually needed. By performing preliminary actions based on predicted future access patterns, the system reduces the need for frequent model movements and minimizes the overhead associated with model deployment operations, while still maintaining high deployment flexibility when needed.

Inventive Principle:
Principle #10Preliminary action

3Productivity

If the number of shards is increased to handle larger datasets, then system scalability is improved, but model allocation complexity and overhead duplication worsen

Engineering Contradiction:
Improvesystem scalabilityVSAvoidmodel allocation complexity
Core Design Contradiction:
ProductivityVSDevice complexity

Solution Approach 1:

The patent implements a feedback-driven model allocation mechanism that continuously monitors shard performance, access patterns, and resource utilization. Based on this feedback, the system dynamically adjusts model allocation across shards to optimize both scalability and resource utilization. This feedback loop automatically balances the load across increasing numbers of shards without requiring manual intervention, thereby maintaining system scalability while managing allocation complexity through automated adaptation.

Inventive Principle:
Principle #23Feedback

Data Source

PatentUS20250272139A1Scaling machine learning using dynamic sharding
Publication Date: 2025.08.28 WORKDAY INC
  • US20250272139A1 patent drawing
  • US20250272139A1 patent drawing
  • US20250272139A1 patent drawing

AI summary

The system includes one or more processors configured to determine that a model is to be updated; determine a shard on which the model is to be deployed; determine whether to move the model to a different shard; in response to determining that the model is to be moved to the different shard, allocate the model to the different shard; and restart the different shard.