betaFeedback

WorksPhysics and Astronomy

Computation in flight through precision-processed optical fiber

Abstract

In distributed sensing and computing systems, optoelectronic conversion, buffering, and scheduling can make data movement a bottleneck. We propose FBG-CA, a passive computing module fabricated by automated through-coating inscription of weak fiber Bragg gratings (FBGs). The spatially distributed FBGs reflect, delay, and accumulate temporal samples to produce a convolution output in the backward direction, while the forward signal carries the original data stream to a remote receiver. This enables transmission and convolution within the same optical propagation event. To mitigate finite reflectivity resolution and fabrication deviations, we combine quantization-aware training with sharpness-aware minimization. Over 1440 m of computing fiber, the single-wavelength implementation achieves a convolution correlation coefficient of 0.987, classification accuracies of 87.90% on MNIST and 79.07% on MIT-BIH Arrhythmia, and an estimated throughput of 288 GOPS. With approximately 20% forward-power reduction (0.97 dB) across the FBG sections, the recovered MNIST images achieve a mean structural similarity index of 0.9930, and the recovered MIT-BIH heartbeat waveforms have a mean squared error of 0.005826. Using four wavelength-division-multiplexed channels over 144 m of computing fiber, FBG-CA achieves 92.25% accuracy on four-class Fashion-MNIST and an estimated throughput of 115.2 GOPS. An architecture-level projection indicates an intrinsic throughput density of 1.6 POPS/m for eight wavelengths at 100 GBaud per wavelength. These results demonstrate passive, wavelength-scalable computation-in-flight in optical fiber.

Introduction

Modern sensing and computing infrastructures are increasingly organized as distributed systems, in which large volumes of data are continuously exchanged among sensors, storage servers, accelerator nodes, switches, and remote computing clusters. Optical fiber has become the dominant physical medium for these data flows, spanning long-haul backbone networks, metro and access links, data-center interconnects, and emerging chip, package, and rack-level optical links. In artificial-intelligence computing systems, optical communication is no longer a peripheral interface used only for long-distance transport. Instead, it is becoming an essential part of the computing fabric itself, because model parameters, activations, gradients, intermediate features, and routing decisions must be repeatedly exchanged across scale-up and scale-out architectures [1, 2, 3, 4, 5].

Despite the rapid progress of electronic and photonic accelerators, data transmission and computation remain physically and temporally separated in conventional architectures. Data are first transported through optical links, then converted into electrical signals, buffered, scheduled, and processed by electronic accelerators. The processed results may subsequently be transmitted again to other nodes. This sequential transmit–then–compute paradigm introduces overhead from optical-to-electrical conversion, memory access, buffering, synchronization, and network scheduling. As the raw computing capability of accelerators continues to increase, data movement rather than arithmetic operation is becoming a dominant bottleneck in many distributed workloads. In large-scale deep-learning systems, cross-node communication and synchronization can substantially reduce accelerator utilization, and the communication time may become comparable to or even exceed the local computation time [6, 7, 8]. This limitation is particularly evident in distributed mixture-of-experts models, where repeated all-to-all token dispatch and collection can dominate the end-to-end training or inference latency [9].

These trends point toward a different architectural approach in which part of the computation is moved into the optical transmission path or brought as close to it as possible. If selected linear operations can be completed while the optical signal is propagating, then data transport and data processing no longer need to occur as strictly separated stages. Such a computation-in-flight architecture would treat the fiber not only as a communication channel but also as a distributed physical medium for signal processing. This idea is conceptually related to optical delay-line memories, where information is retained in continuously propagating optical signals [10, 11]. Recent fiber-based memory architectures have revisited this principle for streaming immutable model weights through recirculating optical links [12]. These developments suggest that optical information could be processed as it propagates, rather than merely stored in flight.

Photonic computing provides a natural physical basis for this transition because optical signals support high bandwidth, low propagation loss, wavelength parallelism, and analog linear operations. Existing photonic accelerators have demonstrated impressive capabilities, including coherent Mach–Zehnder interferometer (MZI) meshes for matrix–vector multiplication [13, 14], wavelength-division-multiplexed (WDM) dispersion systems for high-speed convolution [15, 16], and coherent photonic tensor processors for dynamic real-valued or complex-valued computation [17, 18, 19]. However, most of these platforms are implemented as dedicated computing modules rather than as parts of the transmission fiber. MZI meshes require precise phase control, calibration, and stabilization, which increases system complexity. The dispersion-based systems depend on dispersion engineering, wavelength spacing, and fiber length, which can restrict flexibility. Coherent photonic tensor processors usually require high-speed modulators, coherent receivers, digital-to-analog converters (DACs), analog-to-digital converters (ADCs), and large-scale radio-frequency (RF) control circuits. The active control and optoelectronic interfaces required by these architectures complicate their direct deployment as distributed computing elements within optical transmission links.

Here, we propose the Fiber-Bragg-grating-based convolution accelerator (FBG-CA), a passive all-fiber architecture that performs temporal convolution during optical transmission. Spatially distributed weak FBG sections encode convolution kernels through their longitudinal positions, Bragg wavelengths, and reflection strengths, allowing different temporal samples to be weakly reflected, delayed, and accumulated in the backward direction while the forward-propagating signal continues toward the remote receiver with limited impairment. To realize long, spatially distributed, and wavelength-selective optical kernels, we develop an automated precision inscription platform based on UV-transparent coated fiber (UV-TCF), in which synchronized fiber-length metrology, shutter gating, and phase-mask positioning translate digitally specified kernels into spatial, spectral, and multilevel reflection codes during continuous fiber translation. We further introduce a hardware-aware training strategy combining quantization-aware training (QAT) and sharpness-aware minimization (SAM) to improve robustness against finite reflection-level quantization and fabrication-induced deviations. Experimentally, the single-wavelength implementation achieves a convolution correlation coefficient of 0.987 and classification accuracies of 87.90% and 79.07% on the Modified National Institute of Standards and Technology (MNIST) dataset and the Massachusetts Institute of Technology–Beth Israel Hospital (MIT-BIH) Arrhythmia Database, respectively, with an estimated throughput of 288 giga-operations per second (GOPS) over 1440 m of computing fiber. The maximum reduction in forward optical power is approximately 20%, corresponding to an insertion loss of 0.97 dB, while the transmitted signals retain high fidelity, with a mean structural similarity index (SSIM) of 0.9930 for MNIST images and a mean squared error (MSE) of 0.005826 for MIT-BIH heartbeat waveforms. A four-channel wavelength-division-multiplexed (WDM) implementation further achieves 92.25% accuracy on a four-class Fashion-MNIST task and an estimated throughput of 115.2 GOPS over 144 m of computing fiber. At the architecture level, an eight-channel WDM system operating at 100 gigabaud (Gbaud) per wavelength is projected to reach an intrinsic throughput density of 1.6 POPS m−1m^{-1}. These results establish FBG-CA as a passive, wavelength-scalable, and transmission-compatible platform for computation-in-flight, providing a route toward embedding distributed linear processing directly into optical communication and sensing infrastructures.

Results

Programmable FBG-CA weight mapping

As shown in Figure 1, FBG-CA performs temporal convolution by mapping the discrete convolution kernel onto a series of wavelength-selective reflective structures inscribed along an optical fiber. A single FBG section can be fabricated by exposing a photosensitive fiber to a spatially periodic ultraviolet interference pattern or a phase mask, which induces a periodic refractive-index modulation in the fiber core. FBG-CA can be further extended to WDM parallel convolution by exploiting the wavelength selectivity of the phase-mask inscription process. Different positions on a chirped phase mask correspond to different local grating periods and hence different Bragg wavelengths. The signal model and its assumptions are given in Methods.

Principle of FBG-CA for computation-in-flight

Figure 1. Principle of FBG-CA for computation-in-flight. (a) Temporal encoding of input data onto WDM optical carriers. (b) Distributed wavelength-selective FBG sections performing parallel temporal convolution during propagation. (c) Integrated transmission and computation, where the forward signal delivers the original data and the backward-reflected signal carries the convolution results.

Implementing this mapping over a long and continuous fiber requires substantially more than conventional point-by-point FBG inscription. Thousands of weak FBGs must be positioned at prescribed longitudinal coordinates while their wavelengths and reflectivities are independently programmed with sufficient repeatability. To meet these requirements, we developed an automated precision inscription platform based on UV-transparent coated fiber (UV-TCF), as illustrated in Figure 2(a). The pulsed UV beam (248 nm) from an excimer laser is redirected by a UV-grade mirror, gated by a programmable shutter, and spatially shaped and focused onto the continuously translating UV-TCF through a phase mask. A fiber length metrology unit continuously registers the fiber position and synchronizes the shutter timing and phase-mask address with a digitally prescribed encoding file. The target positions, wavelength channels, and reflection levels can therefore be written automatically during continuous fiber translation.

Automated precision fabrication and multilevel weight encoding of FBG-CA

Figure 2. Automated precision fabrication and multilevel weight encoding of FBG-CA. (a) Schematic of the automated through-coating FBG inscription platform. (b) Pulse-count encoding of seven nonzero reflection levels. (c) Measured superimposed reflection spectra for weight sections containing one to seven sub-FBGs. Each sub-FBG is 4 mm long and adjacent sub-FBGs are separated by a 10 mm pitch, corresponding to a 6 mm unexposed interval.

The quantized optical weights are implemented through pulse count controlled sub-FBG aggregation, as shown in Figure 2(b). At a fixed laser repetition rate and fiber translation speed, a shutter open duration of tt admits one pulse and produces one sub-FBG, whereas durations from 2t2t to 7t7t admit two to seven pulses and generate the corresponding numbers of spatially separated sub-FBGs. Each sub-FBG is 4 mm long, and adjacent sub-FBGs are written at a pitch of 10 mm. Because the sub-FBGs have the same Bragg wavelength, their reflected contributions fall within the same temporal readout window and collectively form the effective reflectivity of one weight section. As experimentally shown in Figure 2(c), increasing the sub-FBG number from one to seven produces seven clearly distinguishable and monotonically increasing reflection levels. Together with the unexposed state representing zero, this scheme realizes the eight level optical weight alphabet used in hardware-aware training.

The discrete FBG weight alphabet and residual fabrication deviations require a hardware-compatible mapping from trained network weights to the physical device. We therefore combined quantization-aware training (QAT) with sharpness-aware minimization (SAM) [20, 21] (Supplementary Fig. S1). The optimization procedure and measured-noise model are described in Methods. Under the measured perturbation model, QAT+SAM achieved the highest simulated accuracy (87.51%) and the smallest degradation (2.2 percentage points).

Serial implementation

Figure 3(a) shows the experimental implementation of the serial FBG-CA system. Spatially distributed FBG weight sections are separated by 1 m, producing an approximately 10-ns round-trip delay that matches the temporal interval of the input sequence. The backward-reflected replicas from these sections are weighted, delayed, and accumulated to generate the convolution output, while the weakly perturbed forward-propagating signal continues toward the remote receiver. The serial FBG-CA therefore performs temporal convolution and data transmission simultaneously within the same optical propagation process, enabling passive computation-in-flight without interrupting the main transmission path.

Experimental setup and characterization of the serial FBG-CA architecture

Figure 3. Experimental setup and characterization of the serial FBG-CA architecture. (a) Experimental setup of the serial FBG-CA system. ASE: Amplified Spontaneous Emission, WSS: Wavelength Selective Switch, MZM: Mach-Zehnder modulator, AWG: Arbitrary Waveform Generator, EDFA: Erbium Doped Fiber Amplifier. (b) Measured optical spectrum of a representative FBG section. (c) Comparison between the designed and measured FBG weight responses. (d) Scatter plot of the measured convolution samples versus the reference values. (e) Output waveform comparison between the ideal reference and the measured convolution result using the first MNIST test sample.

Figure 3(b) shows the measured optical spectrum of a representative FBG section, exhibiting a bandwidth larger than 5 nm. This broad spectral response relaxes the requirement on optical source wavelength stability and enables the system to tolerate moderate wavelength drift. Figure 3(c) compares the designed and measured weight responses encoded in the serial FBG computing fiber. The measured reflection amplitudes generally follow the target weight distribution, confirming that the prescribed weights can be accurately mapped onto the passive FBG reflection profile. To quantitatively evaluate the convolution accuracy, Figure 3(d) plots the measured convolution samples against the corresponding reference values. The data points are tightly distributed along the diagonal, with a correlation coefficient of 0.987, demonstrating the high fidelity of the serial FBG computing fiber in reproducing the desired convolution operation. Figure 3(e) further shows the convolution result obtained using the first test sample from the MNIST dataset. The experimentally measured output waveform closely follows the ideal reference waveform calculated from the same input and the designed FBG weights, indicating that the serial FBG-CA module can correctly perform passive temporal convolution on real image-derived pulse sequences.

Optical inference and classification readout

The serial FBG-CA module was evaluated on MNIST and the MIT-BIH Arrhythmia Database [22, 23]. MNIST is a widely used benchmark dataset containing 70,000 grayscale images of handwritten digits from 0 to 9, while the MIT-BIH Arrhythmia dataset is a standard electrocardiogram (ECG) database for arrhythmia analysis.

As illustrated in Figure 4(a), samples from both datasets were converted into one-dimensional temporal pulse sequences and modulated onto the optical carrier using a Mach-Zehnder modulator (MZM). The forward-propagating signal preserves the original temporal pulse sequence and can be reshaped to recover the input MNIST image or MIT heartbeat waveform. This result demonstrates that the FBG-CA module remains transparent to the main transmission path while simultaneously generating class-specific convolution results in the backward-reflected branch. In the single-wavelength MNIST implementation, the forward signal traverses approximately 2×1032 \times10^{3} weak FBG elements. With an individual reflectivity of approximately 10−410^{-4}, the cumulative extraction corresponds to an approximately 20% reduction in forward optical power, or an insertion loss of about 0.97 dB. Despite this modest loss, the reconstructed MNIST images achieve a mean SSIM of 0.9930 over ten representative test samples. For the corresponding ten MIT heartbeat waveforms, the MSE between the normalized input and recovered output sequences is 0.005826. These results confirm that the forward branch retains high-fidelity image structure and heartbeat waveform transmission under the distributed FBG extraction loss.

Optical processing and classification readout of the serial FBG-CA system

Figure 4. Optical processing and classification readout of the serial FBG-CA system. (a) Optical processing workflow for the MNIST and MIT-BIH Arrhythmia datasets, showing that the forward-propagating pulse sequences preserve the original input data after transmission through the FBG-CA module. (b) Experimental classification of an MIT-BIH heartbeat sample. The input waveform is convolved with three class-specific FBG weight profiles corresponding to the Normal, Supraventricular, and Ventricular classes. The maximum measured response at the designated readout position determines the predicted class.

Figure 4(b) illustrates the complete optical classification process using the third MIT-BIH test sample, whose ground-truth label is N. The input heartbeat waveform is independently convolved with three class-specific weight sequences corresponding to the Normal, Supraventricular, and Ventricular heartbeat classes. These three convolution traces are experimentally measured outputs generated by the fabricated FBG computing fiber, rather than numerically reconstructed results. For each class branch, the reflected optical waveform represents the temporal convolution between the input heartbeat sequence and the corresponding FBG-encoded weight profile.

The class scores are obtained by sampling the three measured convolution outputs at the designated readout position, n=180n = 180. At this position, the measured responses for the Normal, Supraventricular, and Ventricular classes are 0.773, 0.609, and 0.494, respectively. The N-class branch therefore produces the maximum response, and the sample is classified as N, in agreement with its ground-truth label. This maximum-response readout provides a direct winner-take-all classification mechanism, in which the output class is determined by comparing the class-specific convolution scores generated by the physical FBG kernels. The result demonstrates that the fabricated serial FBG-CA can complete the full inference process, including optical convolution, class-score generation, and final classification readout.

The serial FBG-CA system achieved experimental classification accuracies of 87.90% on ten-class MNIST and 79.07% on three-class MIT-BIH, compared with 89.75% and 79.32%, respectively, for the corresponding GPU-based numerical models. The class-response maps and confusion matrices are provided in Supplementary Fig. S3.

WDM Extension

Building on the wavelength-selective kernel encoding described above, Figure 5(a) shows the WDM FBG-CA implementation. Independent wavelength channels interact with their corresponding FBG kernels and produce parallel convolution outputs while the forward WDM signal continues through the transmission link. WDM operation also increases the computational density of FBG-CA by co-locating multiple kernels within the same longitudinal fiber region. With NN wavelength channels, NN convolution kernels can operate in parallel, ideally reducing the required fiber length for a fixed computational workload to 1/N1/N of that of the single-wavelength implementation. Equivalently, for a fixed fiber length, WDM provides an ideal NN-fold increase in the number of convolution operations and aggregate throughput. Because wavelength multiplexing is already widely used in optical interconnects, this scaling approach can leverage existing sources, multiplexers, demultiplexers, and standardized wavelength grids to incorporate parallel computation-in-flight into optical transmission systems.

WDM implementation of FBG-CA

Figure 5. WDM implementation of FBG-CA. (a) Experimental setup of the WDM FBG-CA architecture. (b) Measured optical spectrum of the WDM input signal. (c) Comparison between the designed and measured FBG weights for four wavelength channels.

Figure 5(b)-(Figure 5c) characterize the WDM FBG-CA module and verify its wavelength-parallel computing capability. The system was evaluated using Fashion-MNIST (FMNIST) [24], a ten-class grayscale image dataset of fashion products with the same image size and data format as MNIST. Four representative classes (0, 1, 2 and 5) were retained and remapped to four output classes. Figure 5(b) shows the measured optical spectrum of the resulting WDM input signal, where multiple subcarriers are clearly resolved within the 1550-nm band. Figure 5(c) compares the designed and measured FBG weight responses for the four wavelength channels. The measured reflection peaks generally follow the target weight distributions in all channels, confirming that the chirped-FBG fabrication process can assign different reflection profiles to different wavelengths within the same computing fiber. The measured convolution outputs exhibit strong correlations with the numerical references, with correlation coefficients of 0.968, 0.926, 0.917, and 0.954 for wavelength channels 1–4, respectively. These results demonstrate that WDM FBG-CA can perform multiple convolution operations in parallel across different wavelength channels, validating its capability for high-density, passive, and transmission-compatible optical computing.

The complete optical forwarding and classification workflow is shown in Figure 6. As illustrated in Figure 6(a), the preprocessed 144-sample sequence is jointly modulated onto multiple WDM carriers. After propagating through the WDM FBG-CA module, the forward signal preserves the input sequence and can be reshaped to recover the original image at the output. Meanwhile, the backward-reflected branch carries the wavelength-parallel convolution results. This simultaneous preservation of the forward data stream and extraction of the reflected computing outputs confirms that the WDM FBG-CA module remains transparent to the normal transmission path while performing convolution during propagation. For the FMNIST implementation, each wavelength channel traverses approximately 10310^{3} weak FBG elements in the forward path. The reconstructed images achieve a mean SSIM of 0.9774 over ten representative samples, confirming that the forward transmission preserves the image structure with only minor distortion.

Figure 6. Multi-wavelength convolution and FMNIST classification using WDM FBG-CA. (a) Optical forwarding workflow of the FMNIST pulse sequence through the WDM FBG-CA module. (b) Demultiplexed WDM convolution outputs and the corresponding FMNIST classification result.

Figure 6(b) shows the demultiplexed convolution outputs from the four WDM channels. Each wavelength channel is reflected by its corresponding wavelength-selective FBG weights and independently performs temporal convolution with the input pulse sequence. After WDM demultiplexing, the measured output waveform of each channel is compared with the numerically calculated reference result. The measured traces generally follow the reference curves, indicating that the WDM FBG-CA module can execute multiple convolution operations in parallel across different wavelength channels. The demultiplexed convolution scores were subsequently used for four-class FMNIST classification, yielding an experimental accuracy of 92.25%. For comparison, the corresponding GPU-based numerical computation achieved an accuracy of 94.82%. The moderate accuracy degradation relative to the digital reference, as well as the more noticeable degradation compared with the single-wavelength implementation, can be mainly attributed to the increased fabrication complexity of the WDM FBG-CA device. In the WDM implementation, each FBG section must simultaneously control both the reflection wavelength and reflection strength of multiple sub-FBGs, making the system more sensitive to wavelength-position errors, reflectivity deviations, spectral overlap, inter-channel crosstalk, and wavelength-dependent loss. Despite these nonidealities, the WDM FBG-CA module maintains high classification accuracy and demonstrates the feasibility of high-density, wavelength-parallel, passive optical convolution.

Discussion

The key contribution of FBG-CA is the integration of optical transmission and computation within the same fiber medium. Unlike conventional architectures, in which optical data must first be converted, buffered, and transferred to electronic processors, FBG-CA performs weighted delay-and-accumulation operations directly during propagation. The forward-propagating signal delivers the original data stream to the remote receiver, while the backward-reflected branch simultaneously carries the convolution result, enabling the transmission medium itself to participate in data processing through computation-in-flight. An enabling element of this architecture is the automated through-coating fabrication process. Rather than relying on the fabrication and assembly of discrete optical components, the platform directly compiles a digitally specified kernel into distributed refractive-index structures along a continuous fiber. Longitudinal position, Bragg wavelength, and pulse-count-controlled reflectivity thereby constitute three jointly programmable physical degrees of freedom for optical computation. At a conceptual level, FBG-CA extends the fundamental role of optical fiber beyond data transmission by establishing it as a computing medium for in-flight information processing.

The computational capacity of FBG-CA is jointly determined by the longitudinal density of the FBG computing units and the number of wavelength channels. Let XX denote the length of the computing fiber, ρ\rho the number of FBG computing units per unit length, and cfc_f the optical group velocity in the fiber. The total number of FBG computing units is therefore NFBG=XρN_{\mathrm{FBG}} = X\rho. Because the round-trip delay between adjacent units defines the temporal sampling interval, the symbol period and symbol rate are given by

Ts=2ρcf,fs=1Ts=ρcf2.(1)T_s = \frac{2}{\rho c_f}, \qquad f_s = \frac{1}{T_s} = \frac{\rho c_f}{2}. \tag*{(1)}

During steady-state streaming operation, each FBG computing unit performs one multiplication and one accumulation for every input symbol, corresponding to two operations. Since all XρX\rho units operate in parallel at a symbol rate of ρcf/2\rho c_f/2, the intrinsic single-wavelength throughput is

R1λ=2NFBGfs=2(Xρ)(ρcf2)=Xρ2cf.(2)R_{1\lambda} = 2N_{\mathrm{FBG}}f_s = 2(X\rho)\left(\frac{\rho c_f}{2}\right) = X\rho^2c_f. \tag*{(2)}

The intrinsic optical latency is determined by the round-trip propagation time to the farthest FBG section,

τopt=2Xcf.(3)\tau_{\mathrm{opt}} = \frac{2X}{c_f}. \tag*{(3)}

Increasing the fiber length accommodates more computing units and therefore increases the steady-state throughput, but it also increases the propagation latency. By contrast, increasing the FBG density not only places more computing units within a given fiber length but also raises the symbol rate, resulting in a quadratic throughput scaling with density. When MM WDM channels are employed, each wavelength independently performs convolution using its own FBG-encoded kernel, and the ideal aggregate throughput becomes

RWDM=MR1λ=MXρ2cf.(4)R_{\mathrm{WDM}} = M R_{1\lambda} = M X \rho^{2} c_{\mathrm{f}}. \tag*{(4)}

Accordingly, for a fixed fiber length and group velocity, the intrinsic throughput scales quadratically with the FBG density, or equivalently with the symbol rate, as R∝ρ2∝fs2R \propto\rho^{2} \propto f_{\mathrm{s}}^{2}, while WDM provides an additional linear scaling factor of MM. This multiplicative scaling across the spatial, temporal, and wavelength dimensions offers substantial computational headroom for future high-density FBG-CA systems. The above estimates assume continuous streaming and full pipeline utilization and do not include additional latency or bandwidth constraints arising from modulation, detection, data conversion, and electronic readout.

The fabricated computing fiber operates at a unit density of ρ=1 m−1\rho= 1\ \mathrm{m}^{-1} and a symbol rate of fs=ρcf/2=100f_{\mathrm{s}} = \rho c_{\mathrm{f}}/2 = 100 megabaud (MBd), corresponding to an intrinsic throughput density of ρ2cf=0.2\rho^{2} c_{\mathrm{f}} = 0.2 GOPS m−1\mathrm{m}^{-1} per wavelength channel. Under the experimentally demonstrated conditions, the single-wavelength MNIST implementation comprises 144×10144 \times10 computing units distributed over 1440 m of fiber, corresponding to an estimated aggregate throughput of 288 GOPS and an intrinsic round-trip latency of 14.4 μ\mus. The four-channel WDM Fashion-MNIST implementation encodes 144×4144 \times4 computing units within 144 m of fiber, i.e., 0.8 GOPS m−1\mathrm{m}^{-1}, yielding an estimated aggregate throughput of 115.2 GOPS and a latency of 1.44 μ\mus. To illustrate the scaling potential, a symbol rate of 100 gigabaud (Gbaud) per wavelength corresponds to an adjacent-unit spacing of Δz=cf/(2fs)=1\Delta z = c_{\mathrm{f}}/(2f_{\mathrm{s}}) = 1 mm and an FBG density of ρ=1000 m−1\rho= 1000\ \mathrm{m}^{-1}. With eight WDM channels, the resulting computational throughput density reaches RWDM/X=Mρ2cf=1.6×1015R_{\mathrm{WDM}}/X = M\rho^{2}c_{\mathrm{f}} = 1.6 \times10^{15} operations s−1m−1\mathrm{s}^{-1}\mathrm{m}^{-1}, equivalent to a throughput density of 1.6 POPS m−1\mathrm{m}^{-1}. This value represents an ideal scaling estimate, whereas the practically achievable throughput density will also be constrained by the FBG fabrication pitch and precision, transmitter and receiver bandwidths, accumulated optical loss, available dynamic range, chromatic dispersion, and inter-channel crosstalk.

The transmission-compatible topology of FBG-CA is applicable to scenarios in which optical links naturally coexist with fixed linear processing. Potential examples include confidence estimation and routing in AI-cluster interconnects [25, 26, 27], analog signal processing in radio-over-fiber links [28], and preprocessing of fiber-sensing signals [29, 30]. In these cases, operations such as correlation, matched filtering, feature extraction, and anomaly detection can be performed during propagation rather than introduced as separate processing stages [31, 32].

The encoded weights are nonvolatile refractive-index structures and therefore require neither refresh energy nor static tuning power. The present architecture is most suitable for fixed or slowly reconfigurable kernels, although thermal or strain tuning may provide post-fabrication calibration and limited adjustment of the Bragg response [33, 34]. Signed weights could be supported through differential encoding, balanced detection, dual-wavelength channels, or offset-based representations [35, 36]. Further scaling will require higher-density grating fabrication, accurate spectral calibration, and improved control of accumulated loss and wavelength-channel crosstalk.

In summary, we demonstrated FBG-CA, a passive all-fiber computing medium that performs temporal convolution during optical transmission. The single-wavelength implementation achieved a convolution correlation coefficient of 0.987 and classification accuracies of 87.90% and 79.07% on the MNIST and MIT-BIH Arrhythmia datasets, respectively, while the four-channel WDM implementation achieved 92.25% accuracy on a four-class Fashion-MNIST task. These results demonstrate that distributed reflectivity, longitudinal delay, and wavelength selectivity can be jointly exploited as physical computational resources, providing a route toward embedding selected processing functions directly into optical transmission links.

Methods

FBG-CA signal model

For a single wavelength channel, the input intensity sequence is denoted by x[n]x[n] and the designed reflectivity of the kk-th FBG section by h[k]h[k]. Neglecting higher-order reflections and treating propagation loss as either pre-compensated or included in h[k]h[k], the backward reflected intensity collected by the circulator is

y[n]=∑k=0K−1h[k]⋅x[n−k].(5)y[n] = \sum_{k=0}^{K-1} h[k] \cdot x[n-k]. \tag*{(5)}

This is a finite-impulse-response convolution between the input sequence and the FBG-defined kernel. The system uses a broadband optical source, so reflected components from different sections are added primarily in optical intensity rather than through phase-sensitive coherent interference. The convolution output is read from the optical power at the photodetector, whereas the non-reflected component continues in the forward transmission path. The Bragg wavelength is λB=2neffΛ\lambda_{\mathrm{B}} = 2n_{\mathrm{eff}}\Lambda, where neffn_{\mathrm{eff}} is the effective modal index and Λ\Lambda is the grating period. Adjacent FBG sections separated by Δz\Delta z generate a round-trip delay Δτ=2ngΔz/c\Delta\tau= 2n_{\mathrm{g}}\Delta z/c, the input sampling period was matched to this delay.

For the mm-th WDM channel at wavelength λm\lambda_m, a separate reflectivity sequence hm[k]h_m[k] is encoded, yielding ym[n]=∑k=0K−1hm[k]xm[n−k]y_m[n] = \sum_{k=0}^{K-1} h_m[k]x_m[n-k]. The wavelength-selective FBG sections therefore implement co-located, independent convolution kernels for the WDM channels.

Hardware-aware training and fabrication-noise model

The neural-network weights were mapped to the available reflection levels using quantization-aware training (QAT). A full-precision weight ww was mapped to a hardware-compatible value as

w~=Q(w)=s clip⁡(round⁡(ws),qmin⁡,qmax⁡),(6)\tilde{w} = Q(w) = s\,\operatorname{clip}\left(\operatorname{round}\left(\frac{w}{s}\right), q_{\min}, q_{\max}\right), \tag*{(6)}

where ss is the quantization step and qmin⁡q_{\min} and qmax⁡q_{\max} define the available reflection levels. The task loss was evaluated using quantized weights, LQAT(w)=L(Q(w))\mathcal{L}_{\mathrm{QAT}}(\mathbf{w}) = \mathcal{L}(Q(\mathbf{w})). The non-differentiable rounding operation was handled with a straight-through estimator during backpropagation.

Sharpness-aware minimization (SAM) was combined with QAT to improve tolerance to fabrication and measurement perturbations. SAM minimizes the worst-case loss within an ℓ2\ell_2-bounded neighbourhood of the model parameters,

LSAM(θ)=max⁡∥ϵ∥2≤ρL(θ+ϵ),(7)\mathcal{L}_{\mathrm{SAM}}(\boldsymbol{\theta}) = \max_{\lVert\boldsymbol{\epsilon}\rVert_2 \le\rho} \mathcal{L}(\boldsymbol{\theta} + \boldsymbol{\epsilon}), \tag*{(7)}

with the adversarial perturbation approximated at each iteration by

ϵ^=ρ∇θL(θ)∥∇θL(θ)∥2.(8)\hat{\boldsymbol{\epsilon}} = \rho\frac{\nabla_{\boldsymbol{\theta}}\mathcal{L}(\boldsymbol{\theta})}{\lVert\nabla_{\boldsymbol{\theta}}\mathcal{L}(\boldsymbol{\theta})\rVert_2}. \tag*{(8)}

The QAT+SAM strategy was selected for the fabricated device because it provided the most robust performance under the measured FBG-weight deviations. The measured deviations and the comparative robustness ablation are provided in Supplementary Fig. S2.

Datasets and preprocessing

For MNIST [37], all ten digit classes were evaluated. Original 28×2828 \times28 grayscale images were centre-cropped to 20×2020 \times20, resized to 12×1212 \times12, and flattened to 144-element input vectors. The single-layer 144×10144 \times10 model reduced the number of optical weights from 784×10=7840784 \times10 = 7840 to 144×10=1440144 \times10 = 1440.

For the MIT-BIH Arrhythmia Database [22, 23], the first ECG channel of each record was sampled at 360 Hz. A beat-centred segment containing 90 samples before and 90 samples after each valid annotation was extracted to form a 180-point sequence (approximately 0.5 s), then independently min–max normalized to [0,1][0, 1] without further downsampling or binarization. The Normal, Supraventricular and Ventricular beat classes were selected for the three-kernel physical implementation.

For the WDM experiment, FMNIST [24] inputs were preprocessed in the same manner as MNIST. T-shirt/top, Trouser, Pullover and Sandal (original labels 0, 1, 2 and 5) were retained and remapped to four output classes.

Optical experiments and input encoding

For serial FBG-CA experiments, a broadband amplified spontaneous emission (ASE) source was spectrally filtered by a wavelength-selective switch (WSS) to select a 1-nm-wide slice centred in the 1550-nm telecommunications band. The ASE-WSS configuration was adopted mainly for experimental convenience. In practical implementations, it can be replaced by compact broadband or low-coherence optical sources, such as superluminescent diodes (SLDs) [38], semiconductor optical amplifier (SOA)-based ASE sources [39], or highly multimode/random semiconductor lasers [38, 40], provided that their optical spectra cover the reflection band of the FBG computing module. Input sequences were converted into one-dimensional temporal pulse sequences and modulated using a Mach–Zehnder modulator (MZM) driven by an arbitrary waveform generator (AWG). A lookup-table predistortion was applied to compensate the nonlinear electro-optic transfer function of the MZM [41]. The modulated signal was amplified by an erbium-doped fiber amplifier (EDFA) and injected into the FBG-CA module through an optical circulator. The backward-reflected branch was detected as the computing output and the forward branch was used to assess transmission fidelity.

For WDM experiments, the ASE source was shaped by the WSS to generate multiple wavelength channels, which were jointly modulated by the same input sequence. Each wavelength interacted with its assigned FBG kernel. The backward-reflected WDM outputs were separated by a wavelength demultiplexer and detected individually, while the forward WDM signal continued through the link.

Acknowledgements

This research is supported by the National Key Research and Development Program of China(2023YFB2906300); National Natural Science Foundation of China (62225110 and 62205114); JD project of Hubei province (2023BAA013); Hubei Provincial Natural Science Foundation of China (2025AFB008).

Author contributions

M. T. and H. W. proposed the idea and the conceptual design. K. L. and Z. L. built the experiments, optimized the system, and performed the measurements. M. Z. assisted with the experiments. X. X., W. Z., Z. W., and Z. Y. designed and manufactured the FBG. K. L. and H. W. wrote the paper. All authors revised the paper.

Data availability

The datasets, source code, and data-processing scripts supporting this study are available in the GitHub repository: https://github.com/HUST-IOF/FBG-CA.

Conflict of interest

The authors declare no competing interests.

References

  1. [1]Miller, D.A.: Optical interconnects to electronic chips. Applied optics 49(25), 59–70 (2010)DOI
  2. [2]Atabaki, A.H., Moazeni, S., Pavanello, F., Gevorgyan, H., Notaros, J., Alloatti, L., Wade, M.T., Sun, C., Kruger, S.A., Meng, H., et al.: Integrating photonics with silicon nanoelectronics for the next generation of systems on a chip. Nature 556(7701), 349–354 (2018)DOI
  3. [3]Jouppi, N., Kurian, G., Li, S., Ma, P., Nagarajan, R., Nai, L., Patil, N., Subramanian, S., Swing, A., Towles, B., et al.: Tpu v4: An optically reconfigurable supercomputer for machine learning with hardware support for embeddings. In: Proceedings of the 50th Annual International Symposium on Computer Architecture, pp. 1–14 (2023)arxiv.org/abs/2304.01433
  4. [4]Cheng, Q., Bahadori, M., Glick, M., Rumley, S., Bergman, K.: Recent advances in optical technologies for data centers: a review. Optica 5(11), 1354–1370 (2018)DOI
  5. [5]Shekhar, S., Bogaerts, W., Chrostowski, L., Bowers, J.E., Hochberg, M., Soref, R., Shastri, B.J.: Roadmapping the next generation of silicon photonics. Nature Communications 15(1), 751 (2024)DOI
  6. [6]Narayanan, D., Shoeybi, M., Casper, J., LeGresley, P., Patwary, M., Korthikanti, V., Vainbrand, D., Kashinkunti, P., Bernauer, J., Catanzaro, B., et al.: Efficient large-scale language model training on gpu clusters using megatron-lm. In: Proceedings of the International Conference for High Performance Computing, Networking, Storage and Analysis, pp. 1–15 (2021)arxiv.org/abs/2104.04473
  7. [7]Lao, C., Le, Y., Mahajan, K., Chen, Y., Wu, W., Akella, A., Swift, M.: {ATP}: In-network aggregation for multi-tenant learning. In: 18th USENIX Symposium on Networked Systems Design and Implementation (NSDI 21), pp. 741–761 (2021)
  8. [8]Hwang, C., Park, K., Shu, R., Qu, X., Cheng, P., Xiong, Y.: {ARK}:{GPU-driven} code execution for distributed deep learning. In: 20th USENIX Symposium on Networked Systems Design and Implementation (NSDI 23), pp. 87–101 (2023)
  9. [9]Li, J., Jiang, Y., Zhu, Y., Wang, C., Xu, H.: Accelerating distributed {MoE} training and inference with lina. In: 2023 USENIX Annual Technical Conference (USENIX ATC 23), pp. 945–959 (2023)arxiv.org/abs/2210.17223
  10. [10]Sarrazin, D.B., Jordan, H.F., Heuring, V.P.: Fiber optic delay line memory. Applied Optics 29(5), 627–637 (1990) https://doi.org/10.1364/AO.29.000627
  11. [11]Carmack, J.: On using optical fiber as delay-line storage for AI model weights. X (formerly Twitter) (2026). https://x.com/id_aa_carmack/status/2019839335382790342 Accessed 2026-08-07
  12. [12]Atmer, H., Voigt, T., Yao, Y., Kaxiras, S.: Who Needs DRAM? We Have Fiber (2026)
  13. [13]Shen, Y., Harris, N.C., Skirlo, S., Prabhu, M., Baehr-Jones, T., Hochberg, M., Sun, X., Zhao, S., Larochelle, H., Englund, D., et al.: Deep learning with coherent nanophotonic circuits. Nature photonics 11(7), 441–446 (2017)
  14. [14]Xie, Y., Ke, X., Hong, S., Sun, Y., Song, L., Li, H., Wang, P., Dai, D.: Complex-valued matrix-vector multiplication using a scalable coherent photonic processor. Science Advances 11(14), 7475 (2025)DOI
  15. [15]Xu, X., Tan, M., Corcoran, B., Wu, J., Boes, A., Nguyen, T.G., Chu, S.T., Little, B.E., Hicks, D.G., Morandotti, R., et al.: 11 tops photonic convolutional accelerator for optical neural networks. Nature 589(7840), 44–51 (2021)DOI
  16. [16]Bai, Y., Xu, Y., Chen, S., Zhu, X., Wang, S., Huang, S., Song, Y., Zheng, Y., Liu, Z., Tan, S., et al.: Tops-speed complex-valued convolutional accelerator for feature extraction and inference. Nature Communications 16(1), 292 (2025)DOI
  17. [17]Zhu, Y., Luo, M., Hua, X., Xu, L., Lei, M., Liu, M., Liu, J., Liu, Y., Wang, Q., Yang, C., et al.: Silicon photonic neuromorphic accelerator using integrated coherent transmit-receive optical sub-assemblies. Optica 11(4), 583–594 (2024)DOI
  18. [18]Zhu, H., Gu, J., Wang, H., Jiang, Z., Zhang, Z., Tang, R., Feng, C., Han, S., Chen, R.T., Pan, D.Z.: Lightening-transformer: A dynamically-operated optically-interconnected photonic transformer accelerator. In: 2024 IEEE International Symposium on High-Performance Computer Architecture (HPCA), pp. 686–703 (2024). IEEEarxiv.org/abs/2305.19533
  19. [19]Zhu, Y., Liu, K., Gong, Y., Liu, Y., Yang, C., Luo, M., Zhang, H., Chen, D., Xiao, X., Yu, S.: Coherent-lightning: A photonic-electronic ai accelerator facilitating dynamic real/complex-valued matrix multiplication. Journal of Lightwave Technology (2025)DOI
  20. [20]Jacob, B., Kligys, S., Chen, B., Zhu, M., Tang, M., Howard, A., Adam, H., Kalenichenko, D.: Quantization and training of neural networks for efficient integer-arithmetic-only inference. In: Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 2704–2713 (2018). https://doi.org/10.1109/CVPR.2018.00286
  21. [21]Foret, P., Kleiner, A., Mobahi, H., Neyshabur, B.: Sharpness-aware minimization for efficiently improving generalization. In: International Conference on Learning Representations (2021). https://openreview.net/forum?id=6Tm1mposlrMarxiv.org/abs/2010.01412
  22. [22]Goldberger, A.L., Amaral, L.A.N., Glass, L., Hausdorff, J.M., Ivanov, P.C., Mark, R.G., Mietus, J.E., Moody, G.B., Peng, C.-K., Stanley, H.E.: Physiobank, physio-toolkit, and physionet: Components of a new research resource for complex physiologic signals. Circulation 101(23), 215–220 (2000) https://doi.org/10.1161/01.CIR.101.23.e215
  23. [23]Moody, G.B., Mark, R.G.: The impact of the mit-bih arrhythmia database. IEEE Engineering in Medicine and Biology Magazine 20(3), 45–50 (2001) https://doi.org/10.1109/51.932724
  24. [24]Xiao, H., Rasul, K., Vollgraf, R.: Fashion-mnist: a novel image dataset for benchmarking machine learning algorithms. arXiv preprint arXiv:1708.07747 (2017)arxiv.org/abs/1708.07747
  25. [25]Teerapittayanon, S., McDanel, B., Kung, H.T.: Branchynet: Fast inference via early exiting from deep neural networks. In: Proceedings of the 23rd International Conference on Pattern Recognition, pp. 2464–2469 (2016). https://doi.org/10.1109/ICPR.2016.7900006
  26. [26]Shazeer, N., Mirhoseini, A., Maziarz, K., Davis, A., Le, Q., Hinton, G., Dean, J.: Outrageously large neural networks: The sparsely-gated mixture-of-experts layer. In: International Conference on Learning Representations (2017). https://openreview.net/forum?id=B1ckMDqlg
  27. [27]Fedus, W., Zoph, B., Shazeer, N.: Switch transformers: Scaling to trillion parameter models with simple and efficient sparsity. Journal of Machine Learning Research 23(120), 1–39 (2022)arxiv.org/abs/2101.03961
  28. [28]Beas, J., Castanon, G., Aldaya, I., Aragon-Zavala, A., Campuzano, G.: Millimeter-wave frequency radio over fiber systems: A survey. IEEE Communications Surveys & Tutorials 15(4), 1593–1619 (2013)DOI
  29. [29]Gao, Z., Jiang, T., Zhang, M., Wu, H., Tang, M.: Optical semantic communication through multimode fiber: from symbol transmission to sentiment analysis. Light: Science & Applications 14(1), 60 (2025)DOI
  30. [30]Gao, Z., Jiang, T., Zhang, M., Xiong, Y., Wu, H., Tang, M.: Breaking the speed limitation of wavemeter through spectra-space-time mapping. Light: Advanced Manufacturing 4(2), 187–194 (2024)DOI
  31. [31]Zhong, Z., Wang, W., Ghobadi, M., Sludds, A., Hamerly, R., Bernstein, L., Englund, D.: IoT: In-network optical inference. In: Proceedings of the ACM SIGCOMM 2021 Workshop on Optical Systems. OptSys ’21. Association for Computing Machinery, ??? (2021). https://doi.org/10.1145/3473938.3474508
  32. [32]Sludds, A., Bandyopadhyay, S., Hamerly, R., Zhong, Z., Soljačić, M., Englund, D.: Delocalized photonic deep learning on the internet’s edge. Science 378(6617), 270–276 (2022) https://doi.org/10.1126/science.abq8271
  33. [33]Kersey, A.D., Davis, M.A., Patrick, H.J., LeBlanc, M., Koo, K.P., Askins, C.G., Putnam, M.A., Friebele, E.J.: Fiber grating sensors. Journal of Lightwave Technology 15(8), 1442–1463 (1997) https://doi.org/10.1109/50.618377
  34. [34]Campanella, C.E., Cuccovillo, A., Campanella, C., Yurt, A., Passaro, V.M.N.: Fibre bragg grating based strain sensors: Review of technology and applications. Sensors 18(9), 3115 (2018) https://doi.org/10.3390/s18093115
  35. [35]Li, J., Mengu, D., Luo, Y., Rivenson, Y., Ozcan, A.: Class-specific differential detection in diffractive optical neural networks improves inference accuracy. Advanced Photonics 1(4), 046001 (2019) https://doi.org/10.1117/1.AP.1.4.046001
  36. [36]Tait, A.N.: Quantifying power in silicon photonic neural networks. Physical Review Applied 17(5), 054029 (2022) https://doi.org/10.1103/PhysRevApplied.17.054029
  37. [37]LeCun, Y., Bottou, L., Bengio, Y., Haffner, P.: Gradient-based learning applied to document recognition. Proceedings of the IEEE 86(11), 2278–2324 (1998)
  38. [38]Lu, H., Alkhazragi, O., Wang, Y., Almaymoni, N., Yan, W., Gunawan, W.H., Lin, H., Park, T.-Y., Ng, T.K., Ooi, B.S.: Low-coherence semiconductor light sources: devices and applications. npj Nanophotonics 1(1), 9 (2024)DOI
  39. [39]Yeh, C., Chow, C.W., Chen, J., Lu, S.: Ultra-broadband amplified spontaneous emission source by using heterogeneous optical amplifier. Laser Physics 22(11), 1700–1703 (2012)DOI
  40. [40]Redding, B., Cerjan, A., Huang, X., Lee, M.L., Stone, A.D., Choma, M.A., Cao, H.: Low spatial coherence electrically pumped semiconductor laser for speckle-free full-field imaging. Proceedings of the National Academy of Sciences 112(5), 1304–1309 (2015)
  41. [41]Yang, M., Yang, A., Guo, P., Zhao, Z., Xu, T., Wan, W.: Digital pre-distortion for mach–zehnder modulators in imdd optical systems. In: 2023 Opto-Electronics and Communications Conference (OECC), pp. 1–5 (2023). IEEEDOI

Paper details

vlnc:W_f3pb9ewy
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 3

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Physics and Astronomy

Not recorded for this paper

View statement
Looking for related papers…
Contents