TL;DR
What if a neural network didn’t do any math at inference time—no multiplications, no memory fetches—and instead acted as a giant, custom-wired circuit of tiny truth tables? PixLUT compiles a convolutional neural network directly into the native 6-input lookup tables (LUTs) of an FPGA, classifying a brand-new image every single clock cycle with a blistering latency of around 60 nanoseconds. It’s the first fully unrolled, pure-logic convolutional network to successfully route on a single chip and scale all the way from MNIST up to downsampled ImageNet.
What Problem Does This Paper Address?
For systems like particle-physics triggers at CERN (filtering collisions at 40 MHz) or ultra-high-speed industrial inspection, "fast" doesn't mean high batched throughput on a GPU—it means getting an answer for every single sample within nanoseconds.
Field-Programmable Gate Arrays (FPGAs) can hit this budget, provided you ditch traditional multiply-accumulate arithmetic and on-chip memory, and instead map every neuron directly onto the chip's native building blocks: 6-input Lookup Tables (LUTs), which are tiny 64-bit memories capable of computing any Boolean function of six bits in a single logic step. When "fully unrolled"—meaning every neuron at every spatial position gets its own dedicated physical hardware—a new image can enter the pipeline on every tick of the clock.
Until now, fully unrolled LUT networks were stuck with flat architectures (like MLPs), which flatten images into 1D vectors, lose spatial awareness, and fall apart on anything harder than MNIST. Building a convolutional LUT network hits three walls:
- Fan-in: A standard $3\times3$ convolution over 64 channels of 2-bit numbers looks at 1,152 bits—way more than a single LUT's 6-bit limit.
- Discrete learning: Passing gradients through quantized truth tables is notoriously tricky.
- Routing scale: Unrolling a vision network creates hundreds of thousands of LUTs. On modern multi-die FPGAs, flat networks create a rat's nest of all-to-all wires that exceed the physical wire limits between silicon dies, causing compilation to fail.
Methods
PixLUT pairs a novel convolutional LUT backbone with an adapted, locality-preserving classification head, trained in two stages before bit-exact hardware compilation:
- Stage 1: Learning Which Bits to Read (Connectivity). To fit into one 6-input LUT per output bit, a convolutional neuron can only read $k_\ell = \lfloor 6 / b_{\ell-1} \rfloor$ quantized activations (e.g., two 3-bit pixels, or three 2-bit features). PixLUT starts with standard dense $3\times3$ convolutions and gradually prunes them using an annealed top-$k$ mask across both spatial positions and channels, using a straight-through estimator so pruned weights can still recover during early training.
- Stage 2: Learning What to Compute (Functions). Once the $k_\ell$ inputs ("taps") are frozen, a simple dot product is too restrictive—it can only represent linear threshold functions. Following NeuraLUT, PixLUT replaces each node with a tiny sub-network (a linear residual plus $2^{k_\ell}$ ReLU units) initialized to match the masked convolution. Because this sub-network only ever sees 6 input bits, its extra complexity costs zero hardware—after training, you just evaluate all 64 possible 6-bit inputs and write the answers into a single LUT6 truth table!
- Locality-Preserving Multi-Die Routing. While PixLUT uses an existing weightless LUT head (DWN) that tallies votes via popcount, standard heads wire inputs globally across the whole image, which breaks multi-die routing. PixLUT slices the image into spatial stripes—placing one stripe on each of the FPGA's four dies—and restricts the head into block-local chunks so wires stay on their home die, only summing the compact class scores across die boundaries at the very end.
Datasets
The authors evaluate PixLUT on six standard vision benchmarks (no new datasets are introduced): MNIST, Fashion-MNIST, CIFAR-10, CIFAR-100, Tiny ImageNet (200 classes), and downsampled $32\times32$ ImageNet-1k (1,000 classes).
Key Insights and Ideas
- Spontaneous Edge & Color Filters in 64 Bits: Even though first-layer neurons can only peek at two 3-bit pixels inside a $3\times3\times3$ RGB patch, they naturally rediscover classic computer vision primitives! About two-thirds learn comparison truth tables (triangles along the diagonal): picking two pixels of the same color yields horizontal/vertical edge detectors, while picking two different colors yields color-opponent contrast filters.
- Free Nonlinearity: Adding hidden ReLU layers inside each neuron boosts accuracy without adding a single transistor to the final chip, because any function of 6 bits collapses into the exact same 64-bit LUT.
- Wiring, Not Logic, Is the Real Bottleneck: Competing larger baselines don't fail on complex datasets because the FPGA runs out of LUTs; they fail because their global, unstructured wiring demands over 500,000 wires across a die boundary that physically only has 23,040 wires. Convolutional locality + block-local heads solve this cleanly.
Key Results
Tested on an AMD Alveo U250 FPGA using zero DSPs and zero block RAM (pure LUTs and flip-flops), running at 200–204 MHz (over 200 million images/second):
- Accuracy & Latency: Averaged over three seeds, PixLUT hits 74.9% top-1 accuracy on CIFAR-10 (58.8 ns latency, 264k LUTs), 48.6% on CIFAR-100 (65.0 ns, 665k LUTs), 27.2% on Tiny ImageNet (63.7 ns, 638k LUTs), and 11.1% top-1 / 24.4% top-5 on ImageNet-1k $32\times32$ (75.0 ns, 696k LUTs).
- Crushing the Baselines: Across CIFAR-10 to ImageNet-1k, PixLUT achieves 1.2$\times$ to 3.7$\times$ the top-1 accuracy of the best place-and-routed LUT/logic-gate baselines, with the lead widening as class counts grow (on ImageNet-1k, routed baselines drop to $<3\%$).
- Bit-Exact Hardware: Cycle-accurate Verilog simulations match the PyTorch model's predictions on 100% of test images.
Limitations and Future Work
- Scaling to Many Classes: Because each class score is computed by counting votes (popcount) from a dedicated group of head nodes, the head must grow proportionally with the number of classes to keep score granularity fine. This drives up LUT usage and cross-die score-summing wires on 1,000-class tasks. Designing a classification head whose hardware cost scales sub-linearly with class count is an open challenge.
- Future Directions: Because lookup tables absorb arbitrary quantization thresholds at zero hardware cost, the authors suggest exploring learned non-uniform quantizers. Additionally, since the unrolled backbone naturally computes features at every spatial location simultaneously, PixLUT is a natural fit for nanosecond semantic segmentation.
Summary updated