mlsanityData to 14 Oct 2026

LightCode: Compiling LLM Inference for Photonic-Electronic Systems

arXiv 2509.16443 ↗First posted 19 Sep 2025physics.app-ph cs.AI cs.PLcited by 0

Not on the map. Why?

Abstract (arXiv)

The growing demand for low-latency, energy-efficient inference in large language models (LLMs) has catalyzed interest in heterogeneous architectures. While GPUs remain dominant, they are poorly suited for integration with emerging domain-specific accelerators like the Photonic Tensor Units (PTUs), which offer low-power, high-throughput linear computation. This motivates hybrid compilation strategies that combine photonic and electronic resources. We present LightCode, a compiler framework and simulator for mapping LLM inference workloads across hybrid photonic-electronic systems. LightCode introduces the Stacked Graph, an intermediate representation that encodes multiple hardware-specific realizations of each tensor operation. Hardware assignment is formulated as a constrained subgraph selection problem optimized for latency or energy under parametric cost models. We evaluate LightCode on the prefill stage of GPT-2 and Llama-7B showing that under our workload and hardware assumptions, (i) Photonic hardware reduced energy by up to 50% in our simulated workloads at maximum sequence length; (ii) multiplexing and assignment strategy yielded latency improvements exceeding 10x; and (iii) Optimizing for latency or energy resulted in distinct hardware mappings in our simulations. LightCode offers a module, foundational framework and simulator for compiling LLMs to emerging photonic accelerators.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 10 of its 23 references that are in the map. First posted on arXiv 19 Sep 2025.

Builds on

10 of 23 references.

References · 10

  1. 2017Attention Is All You Needcited by 60,361
  2. 2020Scaling Laws for Neural Language Modelscited by 6,586
  3. 2019HuggingFace's Transformers: State-of-the-art Natural Language Processingcited by 2,218
  4. 2017In-Datacenter Performance Analysis of a Tensor Processing Unitcited by 618
  5. 2023From Words to Watts: Benchmarking the Energy Costs of Large Language Model Inferencecited by 170
  6. 2020Photonics for artificial intelligence and neuromorphic computingcited by 112
  7. 2018Glow: Graph Lowering Compiler Techniques for Neural Networkscited by 75
  8. 2020MLIR: A Compiler Infrastructure for the End of Moore's Lawcited by 65
  9. 2018Relay: A New IR for Machine Learning Frameworkscited by 24
  10. 2025Towards Sustainable NLP: Insights from Benchmarking Inference Energy in Large Language Modelscited by 11

Built on by

Not cited yet.