Manuscript Offprint

arXiv:2608.25321

LLMscope: Extracting LLM Assets from Edge AI Chips via Optical Probing

Dev Mehta, Lily Dukette, William Folan, Olivia Kochol, Noah Solomon, Shahin Tajik, Fatemeh Ganji

Abstract

The move of LLM inference to edge AI accelerators introduces new physical vulnerabilities. During execution, model parameters and intermediate inference states are repeatedly loaded into and processed on the chip, making them susceptible to physical side-channel attacks. In this work, by deploying laser voltage imaging, we show that one can extract LLM assets during inference, namely embeddings, attention, and quantized MLP weights, activations, and other inference states, from localized memories and compute subcircuits. To validate our claims, we perform an attack on an FPGA-based LLM accelerator. Since such accelerators reuse the same buffers and compute subcircuits across addresses, tiles, modules, and layers, reading asset values comes down to probing different memories during inference. We demonstrate full recovery of the targeted values; however, we also establish a methodology to recover asset values even if some weights or bits remain unread. We further derive lower bounds that relate imaging effort to asset dimensions and show that even direct recovery scales linearly with the size of the targeted asset.

1 Introduction

Large language model (LLM) inference is moving beyond centralized cloud infrastructure toward hardware deployed close to users. Saad-Falcon et al. evaluate more than 20 local language models, eight hardware accelerators, and one million real-world single-turn chat and reasoning queries, finding that 88.7% of the studied queries can be handled by at least one local model and that the coverage of state-of-the-art local models increased from 23.2% in 2023 to 71.3% in 2025 [35]. This shift is accelerated by rapid reductions in the hardware footprint of capable LLM inference. Recent measurements show that a workstation costing approximately CHF 8,500 and operating from a standard power outlet can run open models at roughly GPT-5.1-level performance for common workloads, while even a 284B-parameter MoE model can be executed locally for latency-tolerant tasks [9]. LLM assets that were once largely confined to physically controlled data-center infrastructure can therefore increasingly reside on compact, locally deployed hardware within direct physical reach of an adversary. Protecting the assets processed on such devices is therefore necessary to preserve the confidentiality objective that motivates self-hosted inference. This transition changes the hardware-security boundary because model parameters and user-dependent inference state are increasingly processed on devices that may be physically accessible to an adversary. Prior work has already identified on-device model extraction as a practical threat and shown that protecting LLM weights during execution remains difficult even with trusted-execution mechanisms [32, 41]. Physical side-channel attacks against neural-network accelerators further demonstrate that implementation leakage can threaten both model intellectual property and user data [21].

Field-programmable gate arrays (FPGAs) are important in this setting because their reconfigurability supports model-specific dataflows, low-precision arithmetic, customized memory hierarchies, and deeply pipelined execution. These properties are particularly relevant to decoder-only inference, where autoregressive decode repeatedly accesses model weights and key-value (KV) cache entries and is often constrained by memory movement. FPGA-based systems have consequently been studied for low-batch, energy-constrained, and memory-bound LLM inference, including heterogeneous systems in which graphics processing units (GPUs) execute compute-intensive prefill while FPGAs accelerate decode [1, 6, 13, 16, 24, 44]. Recent FPGA LLM accelerators differ in scale and organization but share the execution pattern that matters for security: large parameters reside in external memory and are repeatedly transferred into block RAM (BRAM), UltraRAM (URAM), buffers, registers, and compute inputs as inference proceeds [13, 18–20, 22, 23, 25, 26, 43, 44]. Representative designs stream quantized weights, stage embeddings and KV-cache values, and reuse localized matrix or lookup engines across layers [19, 20, 25, 26, 43, 44]. The confidentiality boundary therefore extends beyond external model storage to the model and inference-state assets that repeatedly occupy on-chip memories, registers, and datapaths during execution.

Model assets in risk include persistent quantities that define the deployed model, e.g., embeddings, attention and multilayer-perceptron projections, normalization parameters, the vocabulary projection, and the metadata required to interpret quantized, sparse, or lookup-based representations. On the other hand inference-state assets relate to execution-dependent values such as attention state, intermediate hidden vectors, partial sums, KV-cache entries, and logits. Once these values enter the FPGA fabric, protecting external model storage no longer protects them. Model-asset exposure threatens model intellectual property, while inference-state exposure can reveal user-dependent computation and provide exact inputs or outputs for recovering downstream model parameters. These threats are difficult to assess with conventional power or electromagnetic side channels because LLM inference superimposes activity from many simultaneously active memory and compute structures, obscuring the contribution of individual assets. Physical side-channel research has also investigated neural-network extraction through power, electromagnetic, timing, cache, and other implementation-dependent leakage channels [21]. However, these works do not establish direct bit-level optical recovery of the model and inference-state assets repeatedly staged by FPGA-based LLM inference.

Our approach. We investigate this gap by considering an adversary with physical access to the FPGA, the ability to execute or replay inference. Concretely, optical probing is the focus of our study, where the attack requires neither electrical contact with internal signals, modification of the deployed model, nor plaintext access to external model storage. We apply electro-optical frequency mapping (EOFM), an active optical contactless-probing technique in which a near-infrared (NIR) laser scans the backside of an operating chip, and local electrical activity modulates the reflected optical signal. Frequency-selective processing reconstructs a spatial map of circuit regions containing activity at the selected frequency [28,31,38]. This spatial selectivity allows EOFM to isolate localized storage and datapath structures that repeatedly carry model-related values during FPGA LLM inference.

Prior optical contactless-probing work has demonstrated that backside optical access can expose secret-bearing state and internal functionality on FPGAs, including values involved in protecting encrypted FPGA bitstreams [28,31,38]. Our experiments demonstrate that EOFM provides direct digital-value recovery rather than only activity localization. After localizing a storage or datapath structure, we identify the physical bit positions carrying a targeted value and recover its complete binary representation under controlled execution. This establishes a bit-level readout for both model and inference-state assets. Repeated inference then exposes different addresses, streamed words, tiles, modules, and layers as they traverse the same localized resources.

Direct readout can also be extended when complete optical coverage is unavailable. For a linear module, directly recovered entries of assets can be removed from the observed

References (37)