TL;DR
Silicon-photonic accelerators offer massive speedups for Vision Transformers (ViTs) but suffer from analog hardware noise that severely degrades model accuracy. This paper introduces a hardware-anchored training framework featuring Chance-Constrained Training (CCT) and Noise-Aware LayerNorm (NALN) to analytically model and counteract device noise. The resulting pipeline restores near-clean accuracy on vision tasks without requiring complex, time-consuming in-situ hardware tuning.
What Problem Does This Paper Address?
Vision Transformers (ViTs) have become the gold standard for computer vision tasks, but their heavy reliance on matrix-vector multiplications stresses the energy and bandwidth limits of traditional digital edge processors. Silicon-photonic (SiPh) accelerators—specifically those using microring resonator (MR) arrays—promise orders-of-magnitude improvements in speed and energy efficiency by performing these matrix operations using light.
However, analog photonic hardware is plagued by physical non-idealities: fabrication variations, thermal drift, and laser amplitude noise. Standard noise-mitigation strategies (like injecting random Gaussian noise during training) fail because they don't account for the unique mathematical structure of ViTs. In a transformer, self-attention routing depends entirely on the relative ranking of attention logits. Analog noise easily causes "attention rank flips," redirecting the model's focus to irrelevant tokens and causing accuracy to collapse.
Methods
The authors propose a "measure $\rightarrow$ model $\rightarrow$ train $\rightarrow$ run" pipeline that bridges the gap between device-level physics and algorithm-level design:
- Closed-Form Variance Proxies: Instead of using slow Monte Carlo sampling to simulate noise, the authors derive analytical, activation-dependent variance proxies directly from measured MR bank statistics.
- Chance-Constrained Training (CCT): Using the variance proxies, CCT enforces a probabilistic margin between the top attention logit and its competitors. This directly minimizes the probability of attention rank flips under hardware noise.
- Noise-Aware Layer Normalization (NALN): Standard LayerNorm over-normalizes features when noise inflates the empirical variance, suppressing true feature contrast. NALN subtracts the expected noise variance proxy to stabilize deep feature propagation across layers.
The end-to-end framework integrates these components into a differentiable training objective, allowing the model to reshape its internal representations away from noise-sensitive hardware components.
Datasets
The framework was evaluated across multiple standard computer vision benchmarks:
- CIFAR-10 (Image Classification using ViT-Tiny and ViT-Small)
- Tiny-ImageNet (Image Classification using ViT-Base)
- COCO (Object Detection and Instance Segmentation using a ViT-Base backbone within Mask R-CNN)
No new datasets were introduced in this work.
Key Insights and Ideas
- Attention is uniquely vulnerable to order, not magnitude: In self-attention, the absolute value of a logit matters less than its relative rank after the Softmax operation. CCT exploits this by focusing optimization capacity strictly on preserving the decisive pairwise relations that govern token routing.
- Standard normalization amplifies noise: Standard LayerNorm blindly normalizes based on total observed variance. By analytically separating structural feature variability from stochastic device fluctuations, NALN prevents noise from dominating the normalized representations in deep networks.
- Differentiable hardware modeling: By formulating the hardware noise as differentiable closed-form proxies, the model learns to naturally avoid routing high-energy activations through high-noise microring banks during standard backpropagation.
Key Results
- Accuracy Restoration: On CIFAR-10 with a ViT-Tiny model under high fabrication noise ($\sigma_{\text{fab}} = 0.20$), direct noisy inference causes a severe drop in performance. The joint CCT+NALN framework successfully recovers the mean accuracy to 96.92%, nearly matching the clean baseline.
- Downstream Tasks: For complex tasks like COCO object detection, the framework successfully mitigates performance degradation, recovering the detection Average Precision (AP) from 32.26 up to 37.01 under realistic noise budgets.
- Energy and Latency Efficiency: The proposed silicon-photonic architecture achieves a peak efficiency of 100.4 KFPS/W, outperforming digital baselines like the Xilinx VCK190 FPGA by 70.6$\times$ and the NVIDIA A100 GPU by 116.7$\times$.
Limitations and Future Work
- Tuning Overhead: While the framework operates entirely in-silico during training, runtime electro-optic (EO) tuning is still required periodically to compensate for slow thermal drift. This introduces a ~20% overhead in energy and delay during the specific cycles it is active (though it averages out to <1% of the total system budget).
- Small-Noise Assumption: The analytical variance proxies rely on a standard small-noise Gaussian approximation for analog multiply-accumulate (MAC) operations. If a system experiences highly non-linear or extreme catastrophic faults, the closed-form proxies may under-model the distortion.
- Extension to LLMs: The current work focuses strictly on Vision Transformers. Extending this hardware-anchored robustness framework to massive Large Language Models (LLMs) remains an open and promising direction.
Summary updated