Allreduce Gradient Compression Using Consensus Vector Indexing

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current deep learning systems face inefficiencies in communication bandwidth due to large-scale distributed networks with heterogeneous devices and varying connectivity, leading to challenges in gradient exchange and synchronization, particularly in decompressing and recompressing data during allreduce operations.

Innovation Solution

The method involves generating a consensus vector for identical indexing across nodes, performing sparse encoding based on a compression mask, and using this consensus vector for allreduce operations to reduce communication bandwidth by ensuring consistent indexing before sparse encoding, thereby optimizing data compression and decompression in deep learning systems.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Loss of energy

If data compression is performed during allreduce operations in distributed deep learning, then communication bandwidth is reduced, but indexing consistency across heterogeneous nodes becomes difficult to maintain

Engineering Contradiction:
Improvecommunication bandwidthVSAvoidindexing consistency
Core Design Contradiction:
Loss of energyVSStability of the object's composition

Solution Approach 1:

The system performs preliminary actions by generating a consensus vector before the allreduce operation and using it to create compression masks that ensure identical indexing across all nodes. This preliminary indexing alignment prevents consistency issues during subsequent compression and decompression operations.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

A consensus vector acts as an intermediary mechanism that coordinates indexing across heterogeneous nodes. The consensus vector is broadcast to all nodes and used to generate compression masks, ensuring that all nodes compress and decompress data using the same indexing scheme despite their heterogeneity.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Quantity of substance

If sparse encoding is applied to compress gradients, then communication volume is reduced, but decompression and recompression operations increase computational complexity

Engineering Contradiction:
Improvecommunication volumeVSAvoidcomputational complexity
Core Design Contradiction:
Quantity of substanceVSDevice complexity

Solution Approach 1:

The system applies local quality by generating node-specific compression masks based on the consensus vector. Each node independently determines which gradient elements to compress or skip based on local characteristics, optimizing the balance between communication efficiency and computational overhead for each node.

Inventive Principle:
Principle #3Local quality

Solution Approach 2:

The system dynamically adjusts compression parameters by modifying the consensus vector and compression masks based on gradient characteristics. This allows the compression ratio and computational complexity to be tuned according to the specific requirements of different training scenarios and hardware configurations.

Inventive Principle:
Principle #35Parameter changes

3Adaptability or versatility

If distributed training is performed across heterogeneous devices with varying connectivity, then system scalability is improved, but gradient synchronization latency increases

Engineering Contradiction:
Improvesystem scalabilityVSAvoidgradient synchronization latency
Core Design Contradiction:
Adaptability or versatilityVSLoss of time

Solution Approach 1:

The system implements dynamic adaptation by allowing nodes to operate with different compression ratios and skip patterns based on their connectivity and computational capabilities. The consensus vector mechanism dynamically coordinates these differences, enabling heterogeneous nodes to synchronize gradients at different rates without blocking the overall training process.

Inventive Principle:
Principle #15Dynamics

Data Source

PatentUS11501160B2Cloud computing data compression for allreduce in deep learning
Publication Date: 2022.11.15 INTERNATIONAL BUSINESS MACHINE CORPORATION
  • US11501160B2 patent drawing
  • US11501160B2 patent drawing
  • US11501160B2 patent drawing

AI summary

In deep learning, and in particular, for data compression for allreduce in deep learning, a gradient may be compressed for synchronization in a data parallel deep neural network training for allreduce by sharing a consensus vector between each node in a plurality of nodes to ensure identical indexing in each of the plurality of nodes prior to performing sparse encoding.