[Paper Review] On the Performance of Network Parallel Training in Artificial Neural Networks
This paper proposes a memory-efficient network parallel training (NPT) method for artificial neural networks using Cannon's algorithm for distributed matrix multiplication, achieving significant speedup—particularly superlinear speedup—by minimizing data replication and avoiding specialized hardware. The approach scales efficiently with network complexity, with optimal performance at 16, 32, and 64 processes for single-, two-, and large two-layer networks, respectively.
Artificial Neural Networks (ANNs) have received increasing attention in recent years with applications that span a wide range of disciplines including vital domains such as medicine, network security and autonomous transportation. However, neural network architectures are becoming increasingly complex and with an increasing need to obtain real-time results from such models, it has become pivotal to use parallelization as a mechanism for speeding up network training and deployment. In this work we propose an implementation of Network Parallel Training through Cannon's Algorithm for matrix multiplication. We show that increasing the number of processes speeds up training until the point where process communication costs become prohibitive; this point varies by network complexity. We also show through empirical efficiency calculations that the speedup obtained is superlinear.
Motivation & Objective
- To address the growing need for faster training of increasingly complex artificial neural networks (ANNs) in real-time applications.
- To overcome limitations of prior parallel training methods that require full data replication or specialized hardware.
- To develop a memory-efficient, scalable NPT approach using Cannon’s algorithm for distributed matrix multiplication.
- To evaluate performance across varying network complexities and process counts on an HPC cluster.
- To investigate whether superlinear speedup can be achieved in network-parallelized ANN training.
Proposed method
- Implements Network Parallel Training (NPT) using Cannon’s algorithm to distribute matrix multiplications across processes without replicating input data.
- Applies a per-unit split of weight matrices across processes, enabling communication-optimized matrix multiplication via Cannon’s algorithm.
- Uses MPI for inter-process communication and synchronization via barriers to measure wall-clock training times.
- Employs stochastic gradient descent (SGD) with mini-batch processing and momentum for training, using ReLU and leaky ReLU activation functions.
- Measures performance via wall-clock time, speedup, and efficiency across different network architectures and process counts.
- Uses synthetic linear data with controlled input-output relationships to isolate performance characteristics from data complexity.
Experimental results
Research questions
- RQ1Can Cannon’s algorithm enable efficient, memory-aware network parallel training without requiring full input replication across processes?
- RQ2How does the number of processes affect training time and efficiency across networks of varying depth and width?
- RQ3Does the proposed NPT method achieve superlinear speedup, and if so, under what conditions?
- RQ4How does network complexity (e.g., number of layers and units) influence the optimal number of processes for minimal training time?
- RQ5What is the impact of communication overhead on performance as the number of processes increases beyond the optimal point?
Key findings
- The proposed NPT method achieves superlinear speedup, with efficiency exceeding 1.00 in certain process ranges, indicating performance gains beyond linear scaling.
- For a single-layer network, the optimal number of processes is 16, beyond which communication overhead increases training time.
- For a two-layer network, the optimal number of processes increases to 32, indicating linear scaling of optimal process count with network depth.
- The large two-layer network (256 units) shows quadratic runtime growth relative to the smaller two-layer network, with optimal performance at 64 processes.
- The two-layer network outperforms the single-layer network after 32 processes, suggesting that architectural complexity affects scaling behavior in non-trivial ways.
- The method demonstrates high memory efficiency by avoiding full input replication, making it suitable for HPC and cloud environments without specialized hardware.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.