光学 Transformer
Optical Transformers
AI总结:
该研究通过原型实验与仿真验证 Transformer 的光学计算可行性,揭示光学 MAC 能量随模型宽度呈 1/d 缩放,并预测大规模光学加速器可带来极高能效优势。
摘要:
深度学习模型规模的快速增长,使人们重新且日益关注数字计算机的替代方案,以大幅降低运行最先进神经网络的能源成本。光学矩阵-向量乘法器最适合执行具有极大操作数的计算,这表明大型 Transformer 模型可能是光学计算的良好目标。为验证这一想法,我们使用原型加速器开展了小规模光学实验,以证明尽管存在噪声和误差,Transformer 操作仍可在光学硬件上运行。随后,利用经实验验证的仿真,我们探究了 Transformer 光学实现的能效,并确定了模型性能相对于光学能耗的缩放定律。我们发现,每次乘累加(MAC)的光学能量按 $\ rac{1}{d}$ 缩放,其中 $d$ 是 Transformer 宽度,这相对于数字系统是一种渐近优势。我们得出结论:借助设计良好的大规模光学硬件,运行当前一些最大的 Transformer 模型有可能实现 $100\ imes$ 的能效优势;而如果模型和光学硬件都扩展到千万亿参数级别,相对于达到 300 fJ/MAC 的最先进数字电子处理器,光学计算机可能具有 $>8,000\ imes$ 的能效优势。我们分析了这些结果如何推动并指导未来光学加速器以及适合光学的深度学习方法的构建。基于对电子器件和 Transformer 量化技术未来改进的假设(内存访问成本降低 5$\ imes$、数模转换效率翻倍以及 4-bit 精度),我们估计光学计算机相对于当前 300-fJ/MAC 数字处理器的优势可能增长至 $>100,000\ imes$。
英文摘要:
The rapidly increasing size of deep-learning models has caused renewed and growing interest in alternatives to digital computers to dramatically reduce the energy cost of running state-of-the-art neural networks. Optical matrix-vector multipliers are best suited to performing computations with very large operands, which suggests that large Transformer models could be a good target for optical computing. To test this idea, we performed small-scale optical experiments with a prototype accelerator to demonstrate that Transformer operations can run on optical hardware despite noise and errors. Using simulations, validated by our experiments, we then explored the energy efficiency of optical implementations of Transformers and identified scaling laws for model performance with respect to optical energy usage. We found that the optical energy per multiply-accumulate (MAC) scales as $\frac{1}{d}$ where $d$ is the Transformer width, an asymptotic advantage over digital systems. We conclude that with well-engineered, large-scale optical hardware, it may be possible to achieve a $100 \times$ energy-efficiency advantage for running some of the largest current Transformer models, and that if both the models and the optical hardware are scaled to the quadrillion-parameter regime, optical computers could have a $>8,000\times$ energy-efficiency advantage over state-of-the-art digital-electronic processors that achieve 300 fJ/MAC. We analyzed how these results motivate and inform the construction of future optical accelerators along with optics-amenable deep-learning approaches. With assumptions about future improvements to electronics and Transformer quantization techniques (5$\times$ cheaper memory access, double the digital--analog conversion efficiency, and 4-bit precision), we estimated that optical computers' advantage against current 300-fJ/MAC digital processors could grow to $>100,000\times$.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。