TL;DR
Teaching an AI on an edge device a new trick usually requires rewriting its neural weights—a slow, energy-hungry process that often overwrites old knowledge. SCoPE flips this paradigm on FPGAs: it freezes the network's weights entirely and learns new tasks simply by flipping 1-bit switches to route data through unique "sub-networks" inside the classifier. The result is zero catastrophic forgetting, a massive drop in memory overhead, and near-instantaneous hardware adaptation.
What Problem Does This Paper Address?
Human brains can learn to play the piano without forgetting how to ride a bike. Artificial neural networks, however, suffer from catastrophic forgetting: train them on a new task, and the updated weights bulldoze the parameters needed for previous tasks.
Continual Learning (CL) tries to fix this, usually by replaying old data or penalizing changes to important weights. While effective in software, these methods hit a physical wall on resource-constrained edge hardware (like FPGAs). Updating a model for a new task typically means streaming an entirely new set of weights from off-chip DRAM. Because fetching data from off-chip DRAM consumes roughly 200× more energy than a single multiply-accumulate (MAC) math operation, constant weight-streaming creates severe latency and energy bottlenecks. Meanwhile, algorithmic methods that isolate task-specific "sub-networks" haven't had dedicated hardware architectures to actually exploit their dynamic wiring—until now.
Methods
SCoPE (Subnetwork-Configurable Processing Elements) bridges continual learning algorithms and custom hardware design through two main innovations:
- Classifier-Only Binary Masking: Instead of training weights, SCoPE uses a frozen, pre-trained convolutional backbone (ResNet-18) to extract general visual features, feeding them into a 3-layer classifier whose randomly initialized weights are also frozen and quantized to 8-bit integers (INT8). To learn a task, the algorithm learns a binary 1-bit mask per connection (keeping the top $k\%$ most important connections via a straight-through estimator during training). Switching tasks just means swapping the binary mask.
- Runtime-Configurable FPGA Dataflow: Built via High-Level Synthesis (HLS) for a Zynq SoC FPGA, SCoPE maps each output neuron of a classifier layer to a parallel Processing Element (PE). The frozen 8-bit weights stay in fast on-chip memory (BRAM). At runtime, the 1-bit task mask acts as a hardware multiplexer gate inside each PE: if the mask bit is
1, the weight enters the MAC unit; if0, a hardwired zero is fed instead. Thus, the physical chip dynamically rewires its own active dataflow graph per task without resynthesis or weight reloading.
Datasets
- ImageNet: Used solely via publicly released pre-trained weights for the frozen ResNet-18 feature extractor.
- Split-CIFAR-100: Used to benchmark continual learning. Its 60,000 images (32×32 RGB across 100 object classes) are divided into 20 sequential tasks of 5 classes each, with no access to historical data from prior tasks. No new datasets were introduced.
Key Insights and Ideas
- Don't mask the whole brain: Prior sub-network methods (like SupSup) mask every layer of a randomly initialized network—meaning 11.28 million mask bits per task on ResNet-18. By trusting pre-trained visual features and restricting masking to the 82,560-parameter classifier, SCoPE slashes per-task mask storage by 137× without sacrificing accuracy.
- Pre-training pays the quantization tax: Quantizing the model from 32-bit floats to hardware-friendly 8-bit integers drops accuracy by about 2.1 percentage points. However, starting with a pre-trained backbone gives such a strong feature boost (+2.0 points over random-backbone baselines) that the quantized INT8 model ends up matching full-precision baselines anyway.
- Zero forgetting by construction: Because underlying weights never change and each task owns a dedicated, frozen bit-mask, catastrophic forgetting isn't just reduced—it is mathematically impossible for previously learned tasks to degrade.
Key Results
Tested on Split-CIFAR-100 and deployed on an AMD/Xilinx PYNQ-ZU SoC FPGA (running at 100 MHz):
- Accuracy & Memory: Achieved 89.8% cumulative accuracy (while naive fine-tuning collapsed from 94.6% to 27.4%), matching full-precision, full-network masking baselines with 4× smaller weight storage and 137× smaller mask overhead.
- Inference Speedup: Delivered a 5.62× speedup (stabilizing around 15–16 µs per feature vector) over a heavily optimized 128-bit SIMD NEON C implementation running on the onboard ARM Cortex-A53 CPU.
- Task Adaptation Latency & Energy: Reconfiguring the hardware for a new task took just 25.59 µs (consuming 1.77 µJ) to stream the 1-bit masks, a 7.61× reduction in both latency and transfer energy compared to streaming 8-bit weights (194.79 µs / 13.44 µJ).
Limitations and Future Work
- Task-Incremental Scope: The system relies on knowing which task is active so the ARM processor can point the FPGA to the right 1-bit mask bank in memory (task-incremental learning, rather than class-incremental where task IDs are unknown).
- Classifier Restriction: SCoPE currently only adapts the final classification layers. If a new task requires fundamentally different low-level visual features than ImageNet provides, a frozen backbone may struggle. The authors note future work will explore extending SCoPE's configurable architecture to deeper networks and additional layers.
- On-Chip Training vs. Inference: Training and mask discovery were performed offline on an NVIDIA RTX 3090 GPU; the FPGA hardware evaluates runtime inference and rapid task-switching rather than on-device backpropagation.
Summary updated