Sandboxing the Software: How WASI-FPGA Lets Tiny WebAssembly Programs Drive Neuromorphic Hardware at the Edge

A Long Night at the Edge Cabinet
Consider a maintenance engineer at a citrus packing plant outside Valencia. It is nearly three in the morning. Conveyor belts hum, refrigeration fans roar, and an updated accelerator application needs to reach an FPGA equipped inspection system before the next shift begins.
The update should take minutes. Instead, the progress bar on her laptop crawls. The plant’s cellular uplink is shared with a dozen other machines, and the software package she is pushing weighs close to a gigabyte. Very little of that bulk relates to the inspection job itself. It holds an entire operating system image, runtime libraries, drivers, and the elevated permissions a container needs to reach down and touch the hardware. By the time the download finally finishes, the first trucks are already backing into the loading dock.
Now consider the same night with a different payload. This time the application program arrives as a file of roughly two megabytes. It cannot wander outside its own memory, and it talks to the FPGA through a narrow doorway of exactly ten functions. The transfer wraps up well before the trucks arrive.
The packing plant is a hypothetical setting, not a deployment reported in the study. Even so, the problem it represents, delivering hardware accelerated software without a bulky application package, sits at the center of a new paper presented at the 2026 International Conference on Field-Programmable Logic and Applications (FPL). In it, Diego Arguello Ron and Oscar Garcia Perales of Data Analytics for Industries 4.0, together with Jose Gil of Information Catalyst, all based in Xàtiva, Spain, introduce WASI-FPGA. The researchers built and tested the software mechanism behind that second possibility. According to the authors, it stands as the first extension to the WebAssembly System Interface that lets sandboxed WebAssembly programs run FPGA hardware kernels directly.
Two Boundaries Worth Stating Up Front
Before going further, two clarifications help both technical and general readers. First, the sandbox confines the WebAssembly program rather than the entire accelerator stack. A trusted native plugin still performs the privileged hardware operations, so the protection applies to each application module, not to the whole system.
Second, the contribution to neuromorphic computing is operational rather than biological. The researchers did not introduce a new neuron model or report improved learning. Instead, they showed that an existing brain modeled FPGA inference kernel could run through the same sandboxed interface as a simple arithmetic accelerator. In other words, this is deployment plumbing, and plumbing often decides how quickly lab results reach the field.
Why FPGAs Matter for Neuromorphic Computing
To understand why this work matters, it helps to start with the hardware. A field programmable gate array, or FPGA, sits somewhere between a general purpose processor and a custom chip. Engineers can rewire its internal logic after manufacturing, so the same board can become an image filter on Monday and a neural network accelerator on Tuesday. Because the circuit is shaped around the exact computation it performs, an FPGA often uses far less energy per task than a CPU running the same job in software.
That energy advantage makes FPGAs attractive for neuromorphic workloads, which tend to involve many small, parallel, local operations. The neuromorphic kernel in this study comes from earlier research by Al Hafiz, Ravichandran, Lansner, Herman, and Podobas, who built a stream based FPGA accelerator for Bayesian Confidence Propagation Neural Networks, known as BCPNN (see the references below). BCPNN is a brain modeled neural network approach. Within this paper, its role was to provide a more involved accelerator workload, with eight memory buffers and nine scalar arguments, compared with three buffers for a simple vector addition kernel.
So the hardware side of the story looks healthy. The friction shows up when someone tries to deploy that hardware the way modern cloud software gets deployed.
The Container Problem
Today, most cloud and edge software ships inside OCI containers, the packaging format popularized by Docker. Containers bundle an application with everything it needs to run, which makes deployment repeatable. However, that convenience carries real weight at the edge.
According to the authors, FPGA containers typically carry hundreds of megabytes of image overhead and require privileged execution so the container can reach the accelerator device. Large container images can complicate deployment over constrained network links. More worrying still, privileged access means a bug or a hijacked workload inside the container may gain broad control over the host machine.
Consequently, the researchers asked a simple question. What if the accelerated workload could ship as something far smaller and stay locked inside a sandbox while still reaching the FPGA?
Enter WebAssembly
WebAssembly, usually shortened to WASM, began life as a way to run fast compiled code safely inside web browsers. Since then, it has spread well beyond the browser. WASM programs compile to compact binaries, often under a megabyte. Even more important, each WASM module lives inside its own linear memory region and can only call outside functions that the host explicitly grants. If the host does not hand it a capability, the module simply cannot use it.
To let these sandboxed programs do useful work outside the browser, developers created the WebAssembly System Interface, or WASI. It standardizes how WASM modules reach files, network sockets, and clocks. Later, an extension called WASI-NN added a way to run neural network inference at the level of whole models.
Still, a gap remained. Nothing in the WASI landscape gave a module direct access to an FPGA. Loading a bitstream onto the chip, managing the direct memory access buffers that shuttle data to and from the accelerator, and binding arguments to a hardware kernel were all missing. WASI-FPGA fills that gap.
What the Small File Contains, and What It Does Not
One point deserves care here. The small WebAssembly file is not the FPGA circuit itself. Rather, it is the program that asks the hardware to allocate memory, move data, and run a compiled accelerator kernel. The board still needs its supporting runtime and drivers, while the FPGA configuration arrives through a separate hardware binary. Keeping that distinction in mind makes the size comparisons later in the paper easier to read fairly.
Ten Functions, One Narrow Doorway
At the heart of the design sits a compact interface of ten host functions, grouped under an import module named fpga. Each one maps closely to a single operation in OpenCL, the open standard that Xilinx (now part of AMD) uses to manage its accelerator kernels.
Two functions handle setup. One loads the compiled hardware file, called an xclbin, and another creates a handle to a kernel inside it. Four more functions manage memory, allocating and freeing buffers and writing data into or reading data out of them. Three functions bind arguments to the kernel, covering buffers, integers, and floating point values. Finally, a single run function wraps the full execution cycle by moving inputs to the device, launching the kernel, moving outputs back, and waiting for completion.
The authors describe three guiding principles behind this layout. First, the interface stays transparent, with one WASI call per OpenCL call and no hidden state. Second, it stays safe, because modules only ever receive integer buffer IDs and never raw device pointers. Third, it stays complete, since the run function covers the entire execute and synchronize pattern.
Just as important, the interface does not care which kernel sits behind it. According to the authors, any kernel built through the Vitis high level synthesis flow can be reached through the same ten functions. To back up that claim, the researchers ran two very different kernels through the identical, unmodified plugin. The BCPNN kernel takes 17 arguments, while the vector addition kernel, called vadd, takes just 3. Both worked without any change to the plugin code.
Under the hood, WASI-FPGA runs as a native plugin for the WasmEdge runtime, written in Rust and weighing only 438 KB. It manages the OpenCL device, context, command queue, and buffer pool behind thread safe state that initializes only when first needed.
A Hard Lesson About Abstraction Layers
One of the most practical findings in the paper came from a mistake. In their implementation, the engineers first built the backend on XRT HAL2, a low level interface in the Xilinx Runtime that works at the level of individual register writes and buffer syncs. That approach led to a cascade of DMA coherency failures, meaning the data the processor believed it had sent did not match what the accelerator actually saw.
Eventually, the researchers traced the problem to a mismatch in design intent. HAL2 targets RTL kernels, which are hand written hardware designs with explicit register maps. By contrast, kernels produced through high level synthesis compile into OpenCL program binaries, and they expect the OpenCL runtime to handle context setup, buffer migration, and scheduling. Switching to OpenCL resolved the mismatch and reduced the backend code by 40 percent. Their practical lesson was that OpenCL provided the appropriate abstraction for the HLS kernels and software stack they tested.
The broader takeaway for any reader is simple. A lower level interface does not automatically make a system smaller, faster, or easier to control.
How the Pieces Fit Together on Kubernetes
Of course, a plugin on its own does not make a deployment system. Accordingly, the researchers wired WASI-FPGA into K3s, a lightweight distribution of Kubernetes built for edge devices, running on the containerd runtime without Docker at all.
Within this setup, a Kubernetes feature called RuntimeClass decides where each workload goes. Ordinary infrastructure services still run as standard OCI containers through runc. Meanwhile, FPGA workloads run as WASM modules through a containerd shim that hands them to WasmEdge, which in turn loads the WASI-FPGA plugin. From there, calls travel through OpenCL, the Xilinx Runtime, and the ZOCL driver down to the programmable logic on the chip.
As a result, operators get a hybrid cluster in which familiar containers and lightweight WASM workloads share the same orchestration layer. Moreover, each WASM module can see only the ten fpga functions, with no access to host memory and no system calls. Compared with mounting a hardware device into a privileged container, that confinement offers a meaningful gain in module level isolation. As noted earlier, though, the host plugin itself still holds device access, and routing that access through a dedicated Kubernetes device plugin remains future work.
Putting the Numbers on the Table
All experiments ran on a Xilinx ZCU104 development board, which pairs FPGA fabric with a quad core ARM Cortex A53 processor clocked at 1.2 GHz. The software stack included WasmEdge 0.13.5, XRT 2023.1, K3s 1.28 or later, and Ubuntu 22.04. The evaluation reports 1,000 iterations for its benchmark experiments.
Deployment Footprint
The authors report a deployment artifact of 0.9 to 2.3 MB, made up of the WASM module and the 438 KB plugin, compared with a 949 MB unoptimized OCI image. That works out to a reduction of 413 to 1,021 times. However, the paper does not provide a complete component by component accounting of the two packages, so the figure is best read as a comparison of the reported artifacts rather than of the entire installed system. The authors also acknowledge that a carefully trimmed container would narrow the ratio, though they expect WASM to keep a clear size advantage.
Startup Time Versus Download Time
Meanwhile, the measured cold start difference was much smaller than the package size difference, at 14.0 milliseconds for OCI versus 8.7 milliseconds for WASM. The paper does not fully specify what those startup measurements include, and they should not be confused with the time needed to download and install an application. Notably, that 14 millisecond container figure sits far below the multi second container starts the paper’s introduction describes as typical, which suggests the two numbers capture different parts of the process.
Similar Overhead Across Two Different Kernels
Next, the researchers measured how much delay the WASM bridge adds. End to end latency reached 7.6 ms for BCPNN and 5.3 ms for vadd. Across the two tested kernels, the WASI write and read overhead stayed close to 1.3 ms, at 1.19 ms and 1.34 ms, even though kernel execution time differed by a factor of 1.66 (6.42 ms versus 3.86 ms) and the argument counts differed sharply. That suggests a modest, relatively stable interface cost under the evaluated conditions, not a guarantee that every FPGA workload will incur the same delay.
In these tests, FPGA execution accounted for 73 to 84 percent of each request. Even so, the paper reports no latency distributions or worst case timing bounds. The authors also note that their printed totals include dispatch time between phases, so the individual segments should not be read as an exact accounting. Behind the overhead sits a memory bridge that copies data between WASM memory and host buffers on every write and read. That double copy costs under a millisecond, and the authors flag it as a target for later optimization.
Power Draw
Against native, unsandboxed execution, the WASM sandbox added only 1.9 percent to power consumption, measuring 11.06 W versus 10.85 W. Put simply, the sandbox costs about a fifth of a watt in this setup.
Scaling Across Pods
When the researchers ran multiple pods at once, throughput scaled close to linearly up to four concurrent pods, holding 87 percent of ideal scaling. At eight pods, however, scaling dropped to 60 percent. The cause lies in contention over a single shared OpenCL command queue, which forces requests to wait their turn.
A Full Day of Continuous Operation
Finally, the authors ran the BCPNN workload continuously for 24 hours, completing roughly 11.25 million iterations. During that run, they recorded no WASI or OpenCL errors and no memory depletion, while the FPGA held at 41 degrees Celsius, give or take one degree, well under its rated maximum of 85 degrees. That is encouraging evidence of runtime stability. Still, the paper does not describe continuous checking of inference outputs, so the result falls short of showing fault free operation under every deployment condition.
What the Researchers Leave Open
Commendably, the paper lists its own open questions without hedging. All tests ran on a single board. The shared command queue serializes work beyond four pods. The memory bridge still copies data twice. The container baseline was not optimized. And the host plugin still holds direct device access.
Looking ahead, the authors outline a clear roadmap. They plan to build a Kubernetes FPGA device plugin, move to zero copy DMA so data no longer needs duplicating, pursue formal WASI standardization, and validate the approach on Intel Agilex hardware using the oneAPI toolchain. Cross vendor support would matter a great deal, since edge operators rarely want to tie an entire fleet to one chip maker.
Where This Could Go Next
These are potential application settings, not deployments evaluated in the paper.
Industrial Inspection and Remote Maintenance
Returning to the packing plant from the opening scene, inspection lines in food processing, electronics assembly, and textile mills increasingly run vision and anomaly detection workloads beside the conveyor. A smaller application package would let plant operators push updates over modest connections and roll them back quickly, while handing each application fewer permissions than a privileged container requires.
Remote Energy and Environmental Monitoring
Similarly, wind turbines, solar fields, substations, and environmental sensor stations often sit at the end of thin cellular or satellite links. In those places, every megabyte of transfer matters. Accelerated detectors for equipment wear, grid faults, crop disease, or wildlife sounds could be refreshed remotely, with the application confined to a narrow, explicitly defined hardware interface.
Neuromorphic Research Deployments
Likewise, research groups working on brain modeled algorithms often juggle several FPGA kernels across shared edge testbeds. Because the same plugin carried both BCPNN and vadd without modification, researchers could swap or update neuromorphic kernels as small WASM programs instead of rebuilding large container images each time. Over time, that could make field trials of neuromorphic inference easier to run and repeat.
Further out, telecom edge systems could become another setting, although securely sharing an accelerator among unrelated customers would require protections beyond those tested here.
Why Neuromorphic Readers Should Care
Neuromorphic computing has long faced a quiet gap between the lab and the field. Researchers keep building brain modeled networks that run frugally on specialized hardware, yet the software needed to deploy, update, and secure those networks at scale has lagged behind. WASI-FPGA does not invent a new neural model. Instead, it offers a delivery route that treats a neuromorphic kernel like any other cloud workload, small enough to ship over thin links and given a narrower, explicitly defined interface.
Furthermore, the pairing of BCPNN with vadd carries some weight. Argument count shows interface variety rather than computational sophistication. Even so, the fact that a 17 argument neuromorphic kernel and a 3 argument arithmetic kernel ran through one unmodified plugin offers early support for the authors’ generality claim.
The Bottom Line
WASI-FPGA does not make a neuromorphic network smarter. Instead, it tackles the less visible work of delivering and running an accelerator application through a smaller package and a more restricted software interface. The ZCU104 experiments offer an encouraging early result, not yet a complete production deployment or a guarantee of hardware level isolation. Still, the eventual payoff for the engineer beside that cabinet would be practical, namely less software to transfer and fewer permissions to hand to the application.
References
Arguello Ron, D., Gil, J., and Garcia Perales, O. (2026). WASI-FPGA: Sandboxed Hardware Acceleration on Edge FPGAs via WebAssembly System Interface Extensions. In Proceedings of the 36th International Conference on Field-Programmable Logic and Applications (FPL 2026), pages 350 and 351. DOI 10.23919/FPLCPS00026.2026.00060
Al Hafiz, M. I., Ravichandran, N. B., Lansner, A., Herman, P., and Podobas, A. (2025). A Reconfigurable Stream-Based FPGA Accelerator for Bayesian Confidence Propagation Neural Networks. In Proceedings of the International Symposium on Applied Reconfigurable Computing (ARC), Lecture Notes in Computer Science, Springer.

Responses