OptINC: Optical In-Network-Computing for Scalable Distributed Learning

Sijie Fei, Grace Li Zhang, Bing Li, Ulf SchlichtmannarXiv 2026

TL;DR

OptINC introduces an Optical In-Network-Computing architecture that offloads gradient aggregation directly onto optical interconnects using an Optical Neural Network (ONN). By performing gradient averaging and quantization entirely in the optical domain, it eliminates the massive communication overhead of traditional distributed learning without requiring power-hungry optical-electrical-optical (O-E-O) conversions.

What Problem Does This Paper Address?

As deep learning models scale to hundreds of billions of parameters, training on a single accelerator becomes impossible. Distributed learning splits the workload across multiple GPUs or servers using data or model parallelism. However, synchronizing gradients across these devices creates a massive communication bottleneck.

The standard algorithm for this, ring all-reduce, requires $2(N-1)$ communication rounds for $N$ servers, resulting in a relative communication overhead of nearly 100%. While previous "In-Network Computing" (INC) methods tried offloading these computations to electrical switches, they suffered from high energy consumption and latency due to repeated optical-electrical-optical (O-E-O) conversions and packet buffering. OptINC tackles this by performing the computation directly inside the optical fibers and switches already used for high-bandwidth datacenter communication.

Methods

The authors propose OptINC, an architecture that replaces the logical ring topology with a direct connection to an optical computing fabric.

The proposed OptINC architecture connecting N servers

The system consists of three main components:

  1. Preprocessing Unit ($P$): To prevent the training dataset for the optical network from growing exponentially as more servers are added, this unit averages groups of incoming 4-level Pulse Amplitude Modulation (PAM4) signals, significantly reducing data complexity.
  2. Averaging and Quantization ONN ($f_\theta$): While averaging is linear, quantization is nonlinear. OptINC uses an Optical Neural Network composed of cascading Mach-Zehnder-Interferometers (MZIs) to approximate the quantized average of all local gradients.
  3. Splitting Unit ($T$): A simple MZI array that broadcasts the final aggregated gradients back to all servers simultaneously.

To minimize hardware costs, the authors introduce a matrix approximation technique. Instead of using standard Singular Value Decomposition (SVD) which requires two unitary matrices and one diagonal matrix per block, they drop one unitary matrix. This cuts the required number of MZIs—and thus the physical footprint—by nearly 50%. A two-stage hardware-aware training algorithm is used to recover any accuracy lost from this approximation.

For large-scale deployments, OptINC scales using a cascading topology (supporting up to $N^2$ servers), utilizing a modified dataset approach to eliminate multi-level quantization errors.

Datasets

The architecture was evaluated by simulating the distributed training of two distinct models:

  • ResNet50 trained from scratch on the CIFAR-100 dataset (300 epochs).
  • A LLaMA-based transformer network (8 layers, 384 hidden dimension, 8 attention heads) trained on the Wikipedia-1B dataset (50,000 steps).

Key Insights and Ideas

  • ONNs as Network Functions: Instead of using optical neural networks just for accelerating standard AI inference, this paper repurposes them as inline network hardware to solve the nonlinear problem of gradient quantization.
  • Smart SVD Truncation: The "aha moment" for hardware reduction comes from realizing that during hardware-aware training, the network can adapt to a simplified matrix structure ($\approx \Sigma_a U_a$), eliminating half the unitary transformations typically required by MZI arrays.
  • Quantization Error Carry-over: In a cascaded network switch environment, quantization errors compound. OptINC elegantly solves this by retaining the discarded decimal parts from the first level and merging them into the last PAM4 signal sent to the second level.

Key Results

  • Zero Communication Overhead: OptINC completely eliminates the extra synchronization rounds required by ring all-reduce, keeping the normalized communication data constant regardless of server count.
  • Significant Latency Reductions: In simulated training on Nvidia H100 GPUs, OptINC reduced overall training latency by over 25% for ResNet50 (a communication-dominated workload) and by around 17% for the LLaMA-based network.
  • Area Savings: The matrix approximation method successfully reduced the physical MZI area cost to between 39.2% and 49.3% of the baseline unapproximated ONN structure.
  • Accuracy Preservation: Even with hardware approximations and simulated error injections, the models achieved comparable accuracy to the ideal ring all-reduce baseline (with only a negligible 0.55% drop for ResNet50 and a 0.02 loss increase for LLaMA).
Fig. 7: (a) The trained accuracy and loss, and (b) the overall latency breakdown for one epoch or step of ResNet50 on CIFAR- 100 and the LLaMA-based network on Wikipedia-1B.

Limitations and Future Work

While the architectural simulations are promising, the paper notes a few areas for next-stage research:

  • Physical-Layer Non-Idealities: Real-world optical components suffer from phase-shifter thermal variations, signal crosstalk, and insertion loss, which will need to be addressed with robust error-compensation methods.
  • Fixed Topology: The current cascading framework assumes a rigid hierarchy; future work will explore adapting OptINC to dynamic or alternative network topologies and protocols.
  • Manual Architecture Design: The ONN layers were selected via a greedy search. The authors suggest that Neural Architecture Search (NAS) could optimize the optical layer structures even further.

Summary updated

BibTeX
@misc{fei2026optinc,
  author = {Sijie Fei and Grace Li Zhang and Bing Li and Ulf Schlichtmann},
  title = {{OptINC: Optical In-Network-Computing for Scalable Distributed Learning}},
  year = {2026},
  eprint = {2603.28290},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2603.28290},
}
Figure