Network Interface Device Reordering for Encrypted ML Training
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
In machine learning (ML) training using parameter server (PS) architectures, the non-associative and order-dependent nature of floating-point (FP) arithmetic operations leads to reproducibility issues due to unpredictable and out-of-order packet arrival at network interface devices, which can affect the accuracy and reliability of model training.
Innovation Solution
A network interface device is designed to serve as both a transport and security protocol endpoint, capable of reordering FP data for reproducible operations, decrypting and encrypting packets, and performing arithmetic operations like accumulation and multiplication, ensuring that FP data is processed in a predictable order, regardless of arrival order, using cryptographic protocols like TLS, DTLS, and PSP.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If encrypted packet transmission is used for secure communication, then data security is improved, but packet arrival order becomes unpredictable due to network conditions
Solution Approach 1:
The network interface device serves as an intermediary between the network and the compute device. It receives encrypted packets, decrypts them, reorders them based on sequence numbers to ensure correct operation order, and then processes them. This intermediary function resolves the contradiction by handling both security (through decryption) and reproducibility (through reordering) at the network interface layer.
Solution Approach 2:
The system performs preliminary actions by embedding sequence numbers in packet headers before transmission and preparing reorder buffers at the network interface device. These preliminary structures enable the device to later reorder packets correctly without affecting the security of the encrypted payload, thus ensuring reproducible operations despite out-of-order arrival.
2Productivity
If packets are transmitted in parallel across the network, then transmission speed is improved, but packets arrive out of order affecting FP operation reproducibility
Solution Approach 1:
The system segments the data transmission by dividing floating-point data into multiple packets with individual sequence numbers. Each packet can be transmitted independently in parallel, maintaining high throughput. The network interface device uses these sequence numbers to reassemble packets in the correct order before processing, thus preserving FP operation reproducibility while enabling parallel transmission.
Solution Approach 2:
The invention changes the parameter of packet organization by introducing sequence numbers as a new parameter in the packet header. This parameter enables the receiving device to sort and reorder packets correctly, transforming the unordered parallel arrival into ordered sequential processing without reducing transmission parallelism.
3Device complexity
If network interface devices perform only transport functions, then device simplicity is maintained, but security protocol endpoint functionality is lost
Solution Approach 1:
The network interface device is designed with multi-functionality, serving both as a transport layer endpoint and a security protocol endpoint. It performs multiple functions including packet reception, encryption/decryption, reordering based on sequence numbers, and floating-point arithmetic operations. This universal design resolves the contradiction by consolidating multiple functions in one device, enhancing security capability without requiring separate dedicated security devices.
Data Source
AI summary
Examples described herein relate to an interface and circuitry coupled to the interface. The circuitry can provide an endpoint for a Datagram Transport Layer Security (DTLS) connection with a first network interface device, provide an endpoint for a second DTLS connection with a second network interface device, provide a transport layer endpoint for the packets received from the first network interface device, and provide a second transport layer endpoint for the packets received from the second network interface device.


