# US 2018/0322606 A1 · Data parallelism and halo exchange for distributed machine learning

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2018/0322606 A1
- Document ID: US20180322606A1
- Status: Published application
- Kind: A1
- Application number: 15/869,551
- Filed: 2018-01-12
- Published: 2018-11-08
- Earliest claimed: 2017-05-05
- Assignees: Intel Corporation
- Applicants: Intel Corporation
- Inventors: Dipankar Das; KARTHIKEYAN VAIDYANATHAN; Srinivas Sridharan
- Web page: https://patentgrep.com/patent/US20180322606A1

## CPC

- G06T 1/20: Processor architectures; Processor configuration, e.g. pipelining
- G06N 3/045: Combinations of networks
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/063: using electronic means
- G06N 3/084: Backpropagation, e.g. using gradient descent
- G06N 3/09: Supervised learning
- G06N 3/098: Distributed learning, e.g. federated learning
- G06T 1/60: Memory management
- G06N 3/044: Recurrent networks, e.g. Hopfield networks
- G06T 2207/20081: Training; Learning
- G06T 2207/20084: Artificial neural networks [ANN]
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

One embodiment provides for a method of transmitting data between multiple compute nodes of a distributed compute system, the method comprising multi-dimensionally partitioning data of a feature map across multiple nodes for distributed training of a convolutional neural network; performing a parallel convolution operation on the multiple partitions to train weight data of the neural network; and exchanging data between nodes to enable computation of halo regions, the halo regions having dependencies on data processed by a different node.

## Claims

### Claim 1

A general-purpose graphics processing unit comprising:
a processing array including multiple compute blocks, each compute block including multiple processing clusters;
a memory module; and
a fabric interface to facilitate data exchange with an external processor over a communication fabric, the fabric interface to transfer data stored in the memory module to an external processor to enable computation operations on a halo region, the compute operations on the halo region having a dependency on data stored in the memory module.

### Claim 2 (depends on 1)

The general-purpose graphics processing unit as in claim 1, additionally including an instruction fetch unit to fetch an instruction for processing via the processing array and a scheduler unit to schedule the instruction for processing via the processing array.

### Claim 3 (depends on 2)

The general-purpose graphics processing unit as in claim 2, the scheduler unit to schedule a set of instructions to the processing array to cause the processing array to accelerate distributed training of a neural network, the instructions to cause the processing array to:
perform a parallel convolution operation on a partition of a feature map associated with a neural network to generate intermediate data;
storing the intermediate data within the memory module; and
transferring the intermediate data via the fabric interface, the intermediate data including a dependency of the compute operation on the halo region.

### Claim 4 (depends on 3)

The general-purpose graphics processing unit as in claim 3, the processing array further to multi-dimensionally partition the feature map associated with a neural network.

### Claim 5 (depends on 4)

The general-purpose graphics processing unit as in claim 4, wherein to multi-dimensionally partition the feature map includes partitioning the feature map in a horizontal and vertical dimension.

### Claim 6 (depends on 5)

The general-purpose graphics processing unit as in claim 5, wherein to multi-dimensionally partition feature map includes to partition the feature map in a depth or Z dimension.

### Claim 7 (depends on 6)

The general-purpose graphics processing unit as in claim 6, the processing array further to transmit a partition of the feature map to the external processor via the fabric interface.

### Claim 8 (depends on 1)

The general-purpose graphics processing unit as in claim 1, wherein the external processor is a general-purpose graphics processing unit or another parallel processor.

### Claim 9 (depends on 1)

The general-purpose graphics processing unit as in claim 1, additionally including a cache memory and logic configurable to monitor a cache line within the cache memory, the cache memory to cache data stored in the memory module, the cache line associated with a memory address within the memory module, and the memory address is to store data associated with the dependency of the compute operation on the halo region

### Claim 10 (depends on 9)

The general-purpose graphics processing unit as in claim 9, the logic to automatically transfer data within the cache line via the fabric interface upon detection of an update to the data within the cache line.

### Claim 11

A method of transmitting data between multiple compute nodes of a distributed training system for a neural network, the method comprising:
multi-dimensionally partitioning data of a feature map into multiple partitions;
distributing the multiple partitions across multiple nodes of the distributed training system;
performing a distributed parallel convolution operation on the multiple partitions to train weight data of the neural network; and
exchanging data between nodes to enable a compute operation for a halo region, the halo region having dependency on data processed by a different node.

### Claim 12 (depends on 11)

The method as in claim 11, wherein multi-dimensionally partitioning data of a feature map across multiple nodes includes partitioning the data of the feature map in a horizontal and vertical dimension.

### Claim 13 (depends on 12)

The method as in claim 12, wherein multi-dimensionally partitioning data of the feature map across multiple nodes additionally includes partitioning data of the feature map in a depth or Z dimension.

### Claim 14 (depends on 11)

The method as in claim 11, wherein the distributed parallel convolution operation is a data parallel convolution operation or a hybrid parallel convolution operation

### Claim 15 (depends on 14)

The method as in claim 14, additionally comprising exchanging data between nodes before performing compute operations on the halo region and performing compute operations on the halo region before performing compute operations on a non-halo region.

### Claim 16 (depends on 14)

The method as in claim 14, additionally comprising performing compute operations on the non-halo region before performing compute operations on the halo region and exchanging data between nodes while performing compute operations on the non-halo region.

### Claim 17 (depends on 16)

The method as in claim 16, additionally comprising interleaving compute and communication operations while performing compute operations on the non-halo region.

### Claim 18

A data processing system to accelerate a distributed training operation for a neural network, the data processing system comprising:
a heterogeneous processing system including a general-purpose processor and a general-purpose graphics processor;
a memory module;
a non-transitory machine-readable medium to store instructions for execution by the heterogeneous processing system to cause the heterogeneous processing system to:
identify a memory address within the memory module associated with a halo region of a layer of a neural network, wherein the halo region is a region of the layer of the neural network in which compute operations have a dependency on data associated with multiple different nodes of the distributed training operation;
determine a cache line within the general-purpose graphics processor associated with the memory address;
monitor the cache line for updates to the data associated with the halo region; and
automatically transfer the updates to the data associated with the halo region to a node of the distributed training operation having a dependency upon the data.

### Claim 19 (depends on 18)

A data processing system as in claim 18, the heterogeneous processing system to:
perform a forward propagation computation for the layer of the neural network to update the data associated with the halo region; and
perform a backward propagation computation for the layer of the neural network to update the data associated with the halo region.

### Claim 20 (depends on 19)

The data processing system as in claim 19, the general-purpose graphics processor including a fabric interface to transfer the updates to the data associated with the halo region.
