Abstract
SparsePixels is an open-source framework designed to deploy ultra-fast, sparse convolutional neural networks (CNNs) on FPGAs. In domains such as particle physics, data is often extremely sparse, with signals occupying less than 1% of the detector volume. Standard dense CNNs waste significant computational resources on empty space, leading to high latency. SparsePixels addresses this by processing only "active" pixels through a specialized hardware pipeline. The framework achieves up to a 73x speedup over standard CNNs, reaching sub-microsecond latencies while maintaining high accuracy.
Introduction
Experimental particle physics relies on high-speed detectors to capture subatomic interactions. These images are inherently sparse; for instance, a particle track might only activate a few pixels in a large detector array. Standard CNN architectures are "dense," performing operations on every pixel regardless of content. On FPGAs used for real-time data filtering (triggers), this density creates a bottleneck, resulting in long initiation intervals and latencies that often exceed the strict microsecond-scale requirements of modern experiments.
The core challenge in implementing sparse operations on FPGAs is the data-dependent nature of sparsity, which typically introduces hardware-level dependencies that hinder parallelization. SparsePixels overcomes this by introducing a hardware-first approach to sparsity.
The SparsePixels Framework
The SparsePixels framework implements a five-layer pipeline optimized for High-Level Synthesis (HLS) on FPGA deployment.
1. Sparse Input Reduction
The "secret sauce" of SparsePixels is its method for identifying active pixels. Instead of sequential checks, it uses a recursive binary reduction tree. This structure identifies and packs a fixed number of active pixels into compact feature and coordinate arrays at a constant rate, bypassing the "data-dependent write address" problem that usually slows down FPGA synthesis.
2. Sparsity-Preserving Convolution
Inspired by 3D point cloud processing, this layer only computes outputs for locations that were active in the input. This prevents the signal from "dilating" or spreading into empty regions, ensuring the data remains compact as it moves through the network. Notably, increasing kernel size in this implementation does not necessarily increase loop iterations, only weight lookup logic complexity.
3. Sparse Activation, Pooling, and Flattening
Subsequent layers (ReLU, Max Pooling) operate directly on the stored active pixel arrays. Finally, a "Sparse Flattening" layer scatters the sparse data back into a dense format to interface with standard fully connected layers for final classification.
The framework also includes a Python library for Quantization-Aware Training (QAT), allowing models to be compressed to 8-bit or 16-bit precision without significant accuracy loss.
Evaluation and Results
The researchers evaluated SparsePixels on three datasets: Sparsified MNIST, MicroBooNE Neutrino Data (LArTPC), and LHC Jet Tagging.
On the MicroBooNE neutrino detection task, SparsePixels achieved a 73x speedup compared to a standard dense CNN. Latency was reduced from 48.665 μs to 0.665 μs. This performance was achieved by computing on less than 1% of the input pixels. The trade-off in accuracy was minimal, with the Area Under the Curve (AUC) for neutrino detection dropping only slightly from 0.943 (dense) to 0.927 (sparse).
Furthermore, the resource footprint is efficient; even large configurations utilized only approximately 20% of the logic (LUTs) on an AMD/Xilinx Alveo FPGA, leaving ample room for additional trigger logic.
Conclusion
SparsePixels represents a significant advancement for low-latency physics triggers. By prioritizing hardware-efficient sparsity, it enables the deployment of complex CNNs in environments where they were previously too slow. Future work will focus on handling higher-resolution data through streaming sparse layers and integrating more advanced quantization techniques.
The SparsePixels code is publicly available on GitHub.
Summary updated