Smart NIC Compression for Distributed ML Training Bottlenecks

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing machine learning (ML) systems in datacenters face inefficiencies in distributed training processes due to the need for software involvement in parameter compression and gradient updates, which can lead to network congestion and slow training iterations.

Innovation Solution

Smart network interface controllers (NICs) are configured to perform tasks such as compressing and decompressing ML parameters and gradients, adjusting compression levels based on network conditions, and scheduling parameter transfers to optimize communication and reduce software involvement, thereby accelerating distributed ML training.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Adaptability or versatility

If software components are used to handle parameter compression and gradient updates in distributed ML training, then system configurability is improved, but network congestion increases and training speed decreases

Engineering Contradiction:
Improvesystem configurabilityVSAvoidtraining speed
Core Design Contradiction:
Adaptability or versatilityVSProductivity

Solution Approach 1:

The patent extracts compression and decompression operations from the software layer and relocates them to the smart NIC hardware layer. The smart NIC includes dedicated compression units that can independently perform parameter compression without requiring software intervention, thereby eliminating the bottleneck where software components were handling these time-consuming operations and causing network congestion.

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

The smart NIC acts as an intermediary between the ML training software and the network. It receives parameters from the software, compresses them using hardware acceleration, and transmits them through the network. This intermediary role allows the software to remain configurable while the hardware handles the performance-critical compression operations, resolving the contradiction between configurability and training speed.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Adaptability or versatility

If software components handle parameter compression, then system flexibility is improved, but network bandwidth consumption increases

Engineering Contradiction:
Improvesystem flexibilityVSAvoidnetwork bandwidth consumption
Core Design Contradiction:
Adaptability or versatilityVSQuantity of substance

Solution Approach 1:

The compression functionality is extracted from software and implemented in hardware within the smart NIC. The compression unit performs parameter compression directly at the network interface, reducing the amount of data that needs to traverse the network before software components can still configure the compression parameters as needed, thus maintaining flexibility while reducing bandwidth consumption.

Inventive Principle:
Principle #2Taking out (Extraction)

3Adaptability or versatility

If software components perform compression operations, then system configurability is improved, but compression speed decreases

Engineering Contradiction:
Improvesystem configurabilityVSAvoidcompression speed
Core Design Contradiction:
Adaptability or versatilityVSSpeed

Solution Approach 1:

The compression operations are extracted from software execution and performed by dedicated compression units in the smart NIC hardware. These hardware units can process parameters at much higher speeds than software components, while the system maintains configurability through hardware-programmable interfaces that allow software to control compression parameters and behavior.

Inventive Principle:
Principle #2Taking out (Extraction)

4Productivity

If smart NICs perform compression based on network state, then network congestion is reduced, but device complexity increases

Engineering Contradiction:
Improvetraining efficiencyVSAvoidsmart NIC complexity
Core Design Contradiction:
ProductivityVSDevice complexity

Solution Approach 1:

The smart NIC integrates multiple functions including network communication, parameter compression, decompression, and network state monitoring within a single device. The compression unit can operate in different modes based on network conditions, and the same hardware structure handles both compression and decompression operations, reducing overall system complexity despite the increased functionality within the smart NIC itself.

Inventive Principle:
Principle #6Universality (Multi-functionality)

Data Source

PatentUS20230342599A1Accelerating distributed machine learning with smart nics
Publication Date: 2023.10.26 VMWARE INC
  • US20230342599A1 patent drawing
  • US20230342599A1 patent drawing
  • US20230342599A1 patent drawing

AI summary

Some embodiments provide a method for performing distributed machine learning (ML) across multiple computers. At a smart network interface controller (NIC) of a first computer, the method receives a set of ML parameters from the first computer related to training an ML model. The method compresses the set of ML parameters based on a current state of a connection to a central computer that receives sets of ML parameters from a plurality of the computers. The method sends the compressed set of ML parameters to the central computer for the central computer to process the compressed set of ML parameters along with corresponding sets of ML parameters received from the other computers of the plurality of computers.