Optimizer Shard Replication for Fault-Tolerant FSDP Training

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Conventional fully sharded data parallel (FSDP) techniques in distributed machine learning lack resilience to node failures, leading to significant disruptions and the need to re-initialize training processes when a compute node becomes unavailable.

Innovation Solution

Implement a failure resiliency approach in the FSDP framework by sharing optimizer shards among compute nodes, replicating and partitioning these shards into portions that are distributed across the network, ensuring that optimizer states are maintained and updated across nodes, allowing uninterrupted training even in the event of node failures.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Quantity of substance

If optimizer states are sharded across compute nodes in FSDP, then memory efficiency is improved, but reliability deteriorates due to lack of resilience to node failures

Engineering Contradiction:
Improvememory efficiencyVSAvoidresilience to node failures
Core Design Contradiction:
Quantity of substanceVSReliability

Solution Approach 1:

The patent creates backup copies of optimizer state shards and stores them on different compute nodes. When a node fails, the optimizer states can be recovered from these backup copies, ensuring training continuity without sacrificing the memory efficiency of sharding.

Inventive Principle:
Principle #26Copying

Solution Approach 2:

The patent performs preliminary replication of optimizer state shards to backup locations before node failures occur. This advance preparation ensures that when failures happen, the recovery process can immediately retrieve states without interruption to the training workflow.

Inventive Principle:
Principle #10Preliminary action

2Reliability

If optimizer states are replicated across all nodes, then reliability is improved, but device complexity increases

Engineering Contradiction:
Improveavailability of optimizer statesVSAvoiddata management complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The patent divides the replication strategy into segments: each node replicates only specific portions of optimizer states to specific backup nodes, rather than all nodes replicating all states. This segmented approach reduces the overall complexity of data management while maintaining reliability.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent implements local quality by having different nodes hold different types or portions of backup data based on their roles in the distributed system. This differentiation reduces redundant storage and simplifies the management complexity compared to uniform replication across all nodes.

Inventive Principle:
Principle #3Local quality

3Reliability

If backup copies of optimizer states are maintained, then reliability is improved, but memory overhead increases

Engineering Contradiction:
Improvetraining continuityVSAvoidmemory overhead
Core Design Contradiction:
ReliabilityVSQuantity of substance

Solution Approach 1:

The patent segments the backup storage responsibility across multiple nodes, with each node storing only a portion of the total backup data. This distribution of backup storage reduces the memory overhead burden on any single node while collectively providing full backup coverage.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent implements a strategy where backup copies are maintained temporarily and can be discarded after successful recovery or transfer. This approach allows the system to maintain reliability during critical transitions while reducing long-term memory overhead when backups are no longer needed.

Inventive Principle:
Principle #34Discarding and recovering

Data Source

PatentUS20260099411A1Resilient optimizer states for fully sharded data parallel
Publication Date: 2026.04.09 HEWLETT PACKARD ENTERPRISE DEV LP
  • US20260099411A1 patent drawing
  • US20260099411A1 patent drawing
  • US20260099411A1 patent drawing

AI summary

Systems and methods are provided for failure resiliency in distributed training of machine learning (ML) models. Examples include a plurality of compute nodes storing optimizer shards of a plurality of optimizer shards and a first compute node storing a first optimizer shard of optimizer states. The first compute node can store optimizer shard portions, each of which can be received from a respective compute node of the plurality of compute nodes and can be a replica of a portion of a respective optimizer shard of the plurality of optimizer shards, stored at the respective compute node. Responsive to a failure of a compute node of the plurality of compute nodes, the first compute node can update the first optimizer shard with an optimizer shard portion corresponding to the failed compute node and the ML model can be trained based on the updated first optimizer shard.