TL;DR
Early-exit neural networks save work by stopping inference as soon as an easy input is recognized, rather than running every layer. However, deciding when to stop usually requires heavy floating-point math (like softmax) that clogs up custom hardware like FPGAs. ExitLUT replaces that expensive math with tiny, learned Boolean lookup tables native to FPGA silicon—making early decisions virtually free, slashing latency, and freeing up chip area to make the rest of the network up to 1.82× faster.
What Problem Does This Paper Address?
Standard deep neural networks treat every input equally: a crystal-clear image of a cat goes through the exact same computational gauntlet as a blurry, ambiguous shadow. Early-exit neural networks fix this by attaching side-ramps (auxiliary classifiers) to intermediate layers. If an intermediate guess is confident enough, inference stops early.
On GPUs, calculating a confidence score—typically via a softmax function—is trivial. On Field-Programmable Gate Arrays (FPGAs), however, it’s an architectural mismatch. FPGAs are vast oceans of Lookup Tables (LUTs)—tiny blocks of memory that excel at mapping a handful of input bits directly to output bits using Boolean logic—sprinkled with precious arithmetic units called DSPs.
To get a simple 1-bit decision ("exit now" or "keep going"), existing FPGA frameworks like ATHEENA build multi-stage floating-point pipelines just to compute exponents, sums, and divisions. You end up spending the very hardware resources and clock cycles you hoped to save just deciding whether to save them.
Methods
The core realization of ExitLUT is simple: stop calculating probabilities when all the hardware needs is a binary routing flag. Instead of computing arithmetic confidence and comparing it to a threshold at runtime, ExitLUT maps quantized intermediate scores directly to Boolean exit signals inside the FPGA's native LUTs.
Because FPGA neural networks come in two very different flavors, the authors instantiate ExitLUT in two distinct ways:
- External Policy Replacement (for Arithmetic CNN Accelerators): In conventional fixed-point dataflow CNNs (built on the ATHEENA toolflow), ExitLUT rips out the 180-cycle floating-point softmax pipeline and drops in a compact, 6-layer sparse LUT-based neural network. Logits are truncated to 8-bit integers, and this tiny predictor is trained via cross-entropy to mimic the original softmax threshold decision—producing the 1-bit branch signal in just 12 cycles with zero DSPs.
- Embedded Exits (for Ultra-Low-Latency LUT NNs): A newer breed of FPGA networks (like NeuraLUT-Assemble) compiles the entire neural network into combinational LUTs, running at nanosecond scales. Here, even a 12-cycle external predictor is way too slow. Instead, ExitLUT folds integer threshold comparisons directly into the truth tables of the auxiliary exit LUTs during compilation. Each exit emits 1-bit flags per class right before the pipeline registers; if any bit fires, inference finishes immediately. Thresholds are tuned offline on the training set to minimize depth without exceeding a user-defined accuracy drop.
Datasets
No new datasets are introduced; the authors evaluate on established benchmarks matching prior FPGA literature:
- CNN Accelerators: MNIST (handwritten digits) and CIFAR-10 (object classification).
- LUT-based NNs: MNIST, alongside two high-energy physics Jet Substructure Classification (JSC) datasets (CERNBox and OpenML), where nanosecond-scale FPGA inference is critical for particle collider triggers.
Key Insights and Ideas
- Cheaper control buys faster datapaths: In CNN accelerators, swapping softmax for LUTs doesn't automatically boost throughput if the rest of the pipeline stays fixed. The magic happens when you re-run Design Space Exploration (DSE): the toolflow reinvests the freed-up LUTs, DSPs, and BRAMs into widening the main convolution engines.
- Match the exit to the backbone's timescale: External LUT predictors are great when replacing 180-cycle arithmetic blocks, but they double latency (from 2.1 ns to 4.9 ns) if bolted onto nanosecond-scale LUT networks. Folding thresholds directly into existing truth tables gives you early exits with virtually zero area or latency penalty.
- Aggressive pipelining without the latency tax: Normally, adding more pipeline registers increases clock speed ($F_{\text{max}}$) at the cost of deeper latency. With embedded exits, easy samples jump out early, letting designers pipeline aggressively for high clock rates while still lowering average latency.
Key Results
- CNN Accelerators (vs. fpgaConvNet & ATHEENA):
- Cuts exit-controller LUT usage by 2.58×, flip-flops by 7.41×, and drops decision-path DSP and BRAM usage to zero.
- Matches ATHEENA's top-1 accuracy (98.87% vs. 98.88% on B-LeNet) with 96.5% per-sample routing agreement.
- After reinvesting saved resources via DSE, throughput jumps by up to 4.08× over static fpgaConvNet and 1.82× over ATHEENA.
- LUT-based NNs (vs. static NeuraLUT-Assemble):
- Achieves 1.41–1.89× average time-to-decision speedup across benchmarks with under 1% LUT overhead and minimal accuracy loss (<0.1%).
- On JSC CERNBox, fine-grained pipelining with ExitLUT more than doubles clock frequency (from 352 MHz to 988 MHz) while cutting average latency nearly in half (5.7 ns down to 3.0 ns).
Limitations and Future Work
- Scaling to many classes: All evaluated tasks have 5 to 10 classes. As class counts grow (e.g., ImageNet's 1,000 classes), decision boundaries and predictor inputs get much wider, which will inflate LUT complexity independently of network depth.
- Heuristic optimization: Embedded thresholds are tuned greedily from earliest to latest exits using a uniform per-exit offset, rather than globally optimized. Future work aims to tackle larger class counts and jointly optimize where exits are placed alongside their thresholds.
Summary updated