Integrated electro-optic attention nonlinearities for transformers
Not on the map. Why?
Abstract (arXiv)
Transformers have emerged as the dominant neural-network architecture, achieving state-of-the-art performance in language processing and computer vision. At the core of these models lies the attention mechanism, which requires a nonlinear, non-negative mapping using the Softmax function. However, although Softmax operations account for less than 1% of the total operation count, they can disproportionately bottleneck overall inference latency. Here, we use thin-film lithium niobate (TFLN) Mach-Zehnder modulators (MZMs) as analog nonlinear computational elements to drastically reduce the latency of nonlinear computations. We implement electro-optic alternatives to digital Softmax and Sigmoid, and evaluate their performance in Vision Transformers and Large Language Models. Our system maintains highly competitive accuracy, even under aggressive 4-bit input-output quantization of the analog units. We further characterize system noise at encoding speeds up to 10 GBaud and assess model robustness under various noise conditions. Our findings suggest that TFLN modulators can serve as nonlinear function units within hybrid co-packaged hardware, enabling high-speed and energy-efficient nonlinear computation.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 22 of its 45 references that are in the map. First posted on arXiv 10 Apr 2026.
Builds on
22 of 45 references.
References · 22
- 2017Attention Is All You Needcited by 60,361
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
- 2020Scaling Laws for Neural Language Modelscited by 6,586
- 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,330
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
- 2022Training Compute-Optimal Large Language Modelscited by 3,019
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,598
- 2024FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precisioncited by 519
- 2021I-BERT: Integer-only BERT Quantizationcited by 255
- 2022cosFormer: Rethinking Softmax in Attentioncited by 213
- 2026FlashAttention-4: Algorithm and Kernel Pipelining Co-Design for Asymmetric Hardware Scalingcited by 66
10 more
- 2024Theory, Analysis, and Best Practices for Sigmoid Self-Attentioncited by 64
- 2021NN-LUT: Neural Approximation of Non-Linear Operations for Efficient Transformer Inferencecited by 25
- 2023Softmax Bias Correction for Quantized Generative Modelscited by 15
- 2024PEANO-ViT: Power-Efficient Approximations of Non-Linearities in Vision Transformerscited by 13
- 2024Analog In-Memory Computing Attention Mechanism for Fast and Energy-Efficient Large Language Modelscited by 11
- 2025SOLE: Hardware-Software Co-design of Softmax and LayerNorm for Efficient Transformer Inferencecited by 5
- 2023Hyft: A Reconfigurable Softmax Accelerator with Hybrid Numeric Format for both Training and Inferencecited by 4
- 2024Understanding the Performance Horizon of the Latest ML Workloads with NonGEMM Workloadscited by 4
- 2025Sigmoid Self-Attention has Lower Sample Complexity than Softmax Self-Attention: A Mixture-of-Experts Perspectivecited by 4
- 2025VEXP: A Low-Cost RISC-V ISA Extension for Accelerated Softmax Computation in Transformerscited by 4
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026FCDC: Nonvolatile Charge-Domain Attention with HZO Ferroelectric Capacitors ↗
- 2023ITA: An Energy-Efficient Attention and Softmax Accelerator for Quantized Transformers
- 2023Optical Transformers
- 2023Gated Linear Attention Transformers with Hardware-Efficient Training
- 2025Softpick: No Attention Sink, No Massive Activations with Rectified Softmax
- 2024Trimming Down Large Spiking Vision Transformers via Heterogeneous Quantization Search
- 2025Modality Agnostic Efficient Long Range Encoder
- 2026BAPS: A Fine-Grained Low-Precision Scheme for Softmax in Attention via Block-Aware Precision reScaling