Sparse Communication Graph for Distributed Machine Learning Synchronization

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current synchronization methods in data-parallel jobs for distributed machine learning, such as barrier primitives, are slow, inefficient, and can lead to mixed-version issues and network resource spikes, particularly in large-scale surveillance applications.

Innovation Solution

Implementing a sparse communication approach that determines a fixed communication cost for a sparse graph with a high spectral gap, allowing for efficient propagation of intermediate outputs across nodes, using a notify-ack mechanism for fine-grained synchronization and reducing the need for global barriers.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If barrier synchronization is used to synchronize all workers in distributed machine learning, then correctness semantics are maintained, but synchronization speed decreases and network resource spikes occur

Engineering Contradiction:
Improvecorrectness semanticsVSAvoidsynchronization speed
Core Design Contradiction:
ReliabilityVSSpeed

Solution Approach 1:

The patent segments the global barrier synchronization into fine-grained, localized synchronization events. Instead of all workers synchronizing at a single global barrier, the system uses per-receiver notifications and per-sender acknowledgments to enable independent synchronization at different locations in the computation graph, eliminating the need for a single slow global barrier while maintaining correctness.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent applies partial synchronization by only synchronizing the specific sender-receiver pairs that have data dependencies, rather than synchronizing all workers globally. This partial action approach reduces synchronization overhead and network spikes while maintaining the necessary correctness for the computed values being transmitted.

Inventive Principle:
Principle #16Partial or excessive action

2Reliability

If global barrier synchronization is used, then all workers are synchronized, but the synchronization overhead increases and network resources spike

Engineering Contradiction:
Improvesynchronization consistencyVSAvoidsynchronization overhead
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The patent divides the monolithic global barrier into multiple fine-grained synchronization points distributed across different worker pairs. Each synchronization event is localized to specific sender-receiver interactions, reducing the complexity and overhead of coordinating all workers simultaneously while maintaining consistency through the notify-ack mechanism.

Inventive Principle:
Principle #1Segmentation

3Speed

If asynchronous communication is used to remove barrier primitives, then synchronization speed improves, but correctness semantics break down

Engineering Contradiction:
Improvesynchronization speedVSAvoidcorrectness semantics
Core Design Contradiction:
SpeedVSReliability

Solution Approach 1:

The patent introduces feedback through the acknowledgment mechanism. When a receiver receives a notification and processes the transmitted value, it sends an acknowledgment back to the sender. This feedback loop ensures correctness semantics are maintained by confirming that the asynchronous transmission was successfully received and processed, preventing data loss or inconsistency.

Inventive Principle:
Principle #23Feedback

Solution Approach 2:

The notification-acknowledgment mechanism acts as an intermediary that mediates asynchronous communication between senders and receivers. This intermediary protocol ensures that even though communication is asynchronous and barriers are removed, correctness is maintained through the structured exchange of notifications and acknowledgments that track the state of data transmission and processing.

Inventive Principle:
Principle #24Intermediary (Mediator)

4Loss of energy

If sparse communication graph is used to reduce network overhead, then network efficiency improves, but information dispersal to all nodes may be slower

Engineering Contradiction:
Improvenetwork overheadVSAvoidinformation dispersal time
Core Design Contradiction:
Loss of energyVSLoss of time

Solution Approach 1:

The patent performs preliminary action by pre-computing the sparse communication graph with optimized edge weights before execution. The system calculates the second largest eigenvalue of the adjacency matrix and uses this information to weight edges, preparing the communication topology in advance to minimize information dispersal time while maintaining sparsity and reducing network overhead during actual execution.

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentUS11356334B2Communication efficient sparse-reduce in distributed machine learning
Publication Date: 2022.06.07 NEC CORP
  • US11356334B2 patent drawing
  • US11356334B2 patent drawing
  • US11356334B2 patent drawing

AI summary

A method is provided for sparse communication in a parallel machine learning environment. The method includes determining a fixed communication cost for a sparse graph to be computed. The sparse graph is (i) determined from a communication graph that includes all the machines in a target cluster of the environment, and (ii) represents a communication network for the target cluster having (a) an overall spectral gap greater than or equal to a minimum threshold, and (b) certain information dispersal properties such that an intermediate output from a given node disperses to all other nodes of the sparse graph in lowest number of time steps given other possible node connections. The method further includes computing the sparse graph, based on the communication graph and the fixed communication cost. The method also includes initiating a propagation of the intermediate output in the parallel machine learning environment using a topology of the sparse graph.