Create and explore imaginative 3D worlds with our new product Dreamfield (opens in a new tab)
Papers
Topics
Authors
Recent
Search
2000 character limit reached

A Flexible Sparsity-Aware FPGA Accelerator with Column-Wise Compression for Efficient CNN Inference

Published 21 Jul 2026 in cs.AR | (2607.19248v1)

Abstract: Efficient acceleration of convolutional neural networks (CNNs) on resource-constrained platforms remains challenging due to the irregularity of sparsity patterns and the associated hardware overhead. While unstructured sparsity offers high model accuracy, it introduces significant inefficiencies in hardware mapping, whereas structured sparsity simplifies execution at the cost of reduced flexibility. This paper presents SparHiXcel-v2, a cost-effective and highly configurable FPGA-based CNN accelerator that achieves an improved balance between sparsity flexibility and hardware efficiency. The proposed architecture is built around a scalable two-dimensional MAC array and introduces a column-wise kernel compression technique that enables efficient handling of irregular sparsity patterns with minimal hardware overhead. To further enhance performance, we propose a hardware-algorithm co-design framework, including an ordering optimization scheme and a multi-phase structured pruning and revival algorithm tailored to the microarchitecture. Extensive evaluations on VGG16 and ResNet18 demonstrate that SparHiXcel-v2 achieves substantial improvements in processing throughput and energy efficiency through the proposed optimizations. In structured sparsity mode, the accelerator reaches over 2.5 TOPS and 210 GOP/s/W for VGG16, and over 1.1 TOPS and 72 GOP/s/W for ResNet18 on a cost-effective AMD Kintex UltraScale+ FPGA, while maintaining modest accuracy degradation.

Summary

  • The paper introduces SparHiXcel-v2, an FPGA accelerator that combines column-wise kernel compression with static PE scheduling to support irregular sparsity while limiting hardware overhead.
  • The design achieves up to 2,574.5 GOP/s and 211.4 GOP/s/W on VGG16, while SIPR pruning reaches 171.54% effective PE efficiency and 3.63× speedup over dense execution.
  • The results show that hardware-aware pruning and channel–filter reordering substantially improve utilization, but V-Line contention, residual zeros, and accuracy loss in ResNet18 remain important limitations.

Motivation and design space

Sparsity-aware CNN accelerators face a persistent trade-off between sparsity flexibility and hardware efficiency. Unstructured pruning preserves accuracy but produces irregular, input-dependent sparsity patterns that require complex scheduling, load balancing, and reduction networks; structured pruning simplifies the datapath but degrades accuracy at equivalent sparsity levels and typically requires re-pruning every target model with hardware-specific algorithms. Existing designs tend to occupy one end of this trade-off: SCNN, DSTC, and EIE handle arbitrary sparsity at significant control overhead, while SIGMA and SNAP impose rigid patterns. SparHiXcel-v2, presented by Zarei and Vakili, targets the middle ground: a configurable FPGA accelerator that exploits irregular weight sparsity with modest overhead, complemented by a co-designed pruning algorithm for models that can be retrained.

Column-wise kernel compression

The central technique compresses each 2D convolution kernel by shifting nonzero weights leftward within rows (preserving their original column indices) and then deleting rightmost all-zero columns. Unlike CSR/CSC, the format permits controlled inter-column movement of nonzeros, and unlike index-based sparse encodings, the kernel remains rectangular. This is deliberate: rectangular kernels allow static, uniform PE allocation and a simple reduction network. The number of retained columns is determined by the densest row of each kernel, which is a known limitation — sparsity in non-densest rows does not yield further compression, leaving residual idle PEs that the paper's pruning algorithm later addresses.

Microarchitecture and dataflow

SparHiXcel-v2 is built around a scalable 2D array of PEs with a weight-stationary dataflow. For an n×n×cn \times n \times c kernel, each group of nn PE rows handles one channel; kernels are placed horizontally, and a dynamically configurable number of PE columns (from nn down to 1) is allocated per compressed kernel. Partial sums propagate vertically within a PE group and then horizontally along the bottom row. Cross-channel accumulation is performed by a distributed network of vertical nodes (V-Nodes) organized into vertical lines (V-Lines), each supporting pass-through, accumulation, and buffering modes — the buffering mode synchronizes cases where an entire channel is zero. Each PE connects to nearby V-Lines through a MUX-T multiplexer of transfer length TT, and a Partial Result Store with PP FSUM-Store units accumulates filter outputs across channels. Control is microprogrammed: a Python-based scheduler statically determines PE assignments, V-Line mappings, and schedules, emitting per-PE control signals loaded alongside weights. This static scheduling is what keeps hardware overhead low; the cost is that all mapping decisions are made offline per model and per configuration.

Performance analysis and bottlenecks

Using cycle-accurate modeling, the paper measures effective PE efficiency — dense-equivalent MAC operations per PE per cycle, normalized to dense execution — which can exceed 100% when sparsity reduces cycle counts below the dense baseline. On a 15×1515\times15 PE array with 50%/70% randomly pruned models, SparHiXcel-v2 achieves average speedups of 9.9%/31.6% on ResNet18 and 8.8%/30.6% on VGG16. The analysis identifies four bottlenecks: (i) V-Line exclusivity limits filter-level parallelism, most acutely in 1×11\times1 convolutions where each PE row maps to one channel; (ii) limited TT restricts which V-Lines a PE can reach, forcing idle PEs; (iii) non-uniform sparsity across channels causes imbalanced PE allocation; and (iv) residual zeros after compression. Configuration-space exploration for EfficientNetV2-S — where 1×11\times1 convolutions constitute over 54% of operations — confirms that fewer PE rows mitigate V-Line contention: a 3×483\times48 array outperforms a nn0 array at 70% sparsity despite having more PEs, and for equal PE counts, fewer rows yield higher sparsity-driven gains.

Optimization for unstructured sparsity

Two optimizations target unstructured (off-the-shelf pruned) models without retraining. First, an automatic decremental search finds the smallest MUX-T length nn1 that stays within a user-defined round-count threshold; empirically, reducing nn2 from 45 to 10 on VGG16 layers causes negligible round increases while substantially cutting LUT usage, indicating that large nn3 values buy little performance at real hardware cost. Second, a genetic algorithm optimizes channel–filter ordering. The search space is nn4 — roughly nn5 for a 256×256 layer — so exhaustive search is infeasible. The GA uses a fitness function equal to percentage speedup over dense execution, sequence-preserving crossover, and elitism; a population of 2000 saturates solution quality across tested layers. Ordering optimization is hardware-free and yields substantial per-layer PE efficiency improvements, with the example in the paper showing a 33% speedup from reordering alone. The gains are larger for arrays with more PE rows, since row count increases the chance that a single dense channel bottlenecks a round — precisely the imbalance the reordering redistributes.

Hardware-aware structured pruning (SIPR)

For retrainable models, the paper proposes Surgical Iterative Pruning and Revival (SIPR), a four-phase algorithm coupled to the scheduler. Phase 1 applies magnitude pruning restricted to rows with the fewest prior prunes, enforcing row-balanced sparsity. Phase 2 prioritizes rows with the highest density imbalance, targeting weights whose removal eliminates columns. Phase 3 is hardware-aware: the scheduler reports per-round PE occupancy and bottleneck channels, and the algorithm prunes minimum-magnitude columns from bottlenecks until the round count for each sequence drops by one. Phase 4 revives pruned weights to fill idle PEs without adding rounds: Step 1 restores up to nn6 highest-magnitude weights per row (which compression cannot exploit anyway), and Step 2 iteratively back-fills unused columns, validating each candidate against the scheduler and blacklisting any revival that increases rounds or changes assignments. Because revivals are constrained to be performance-neutral, they recover accuracy at zero throughput cost. The paper reports effective PE efficiency of 171.54% for ResNet18 and 299.59% for VGG16 under SIPR, with speedups of 2.86× and 3.63× over dense, respectively — a clear improvement over unstructured pruning both with and without ordering optimization. Accuracy is maintained through iterative retraining with rollback (maximum drops of 2% in Phases 1–2, 3–3.5% in Phase 3), followed by INT8 quantization-aware training.

Implementation results

The accelerator is implemented on an AMD XCKU19P Kintex UltraScale+ at 217 MHz with 8-bit precision, using a nn7 array (nn8) for VGG16 and nn9 (nn0) for ResNet18. Key results:

Model / mode Throughput Energy efficiency Top-1 accuracy drop
VGG16, 67% optimized unstructured 1122.5 GOP/s 92.2 GOP/s/W −0.33 (improvement)
VGG16, 82% structured (SIPR) 2574.5 GOP/s (~2.57 TOPS) 211.4 GOP/s/W 1.67
ResNet18, 84% optimized unstructured 964.2 GOP/s 62.8 GOP/s/W 0.00
ResNet18, 79% structured (SIPR) 1106.7 GOP/s (~1.11 TOPS) 72.1 GOP/s/W 3.25

Relative to dense execution, structured mode improves throughput and energy efficiency by 263.0% on VGG16 and 186.0% on ResNet18. Against prior 8-bit accelerators, only the Winograd-plus-sparsity design of Meng et al. exceeds SparHiXcel-v2's VGG16 throughput, and it does so with larger accuracy loss (at least 2.04%) and substantially lower energy efficiency (114.3 vs. 211.4 GOP/s/W). The VGG16-versus-ResNet18 gap is attributed to stride-2 convolutions reducing data reuse under weight-stationary dataflow, and to ResNet18's nn1 first layer forcing nn2 (versus nn3), enlarging per-PE multiplexers and shift registers — which is why the smaller ResNet18 array consumes resources comparable to the larger VGG16 array.

Limitations and open questions

The paper concedes several limitations. V-Line exclusivity remains a structural bottleneck in nn4-heavy models; the proposed remedy — duplicating V-Lines decoupled from PE columns — is explicitly left as future work rather than evaluated. The compression ratio is capped by the densest kernel row, and residual zeros persist under unstructured sparsity, which is why SIPR requires model retraining; the accelerator's advantage on off-the-shelf pruned models, while real, is considerably smaller than its structured-mode results. The GA-based ordering and all PE assignments are computed statically per model and configuration, so the approach does not address input-dependent (activation) sparsity or dynamic workloads. The ResNet18 structured configuration incurs a 3.25% top-1 drop, larger than most compared designs, indicating that the accuracy budget is tighter for residual architectures. Whether the SIPR methodology transfers beyond CNNs, and how V-Line duplication affects routing cost and critical paths, remain open.

Conclusion

SparHiXcel-v2 demonstrates that column-wise kernel compression, a flexible statically-scheduled PE assignment scheme, and co-designed ordering and pruning optimizations can narrow the gap between unstructured sparsity flexibility and structured sparsity efficiency on a cost-effective FPGA. The structured-mode results — 2574 GOP/s and 211 GOP/s/W on VGG16, 1107 GOP/s and 72 GOP/s/W on ResNet18, at 217 MHz on a Kintex UltraScale+ — position the design favorably against contemporary 8-bit sparse accelerators in energy efficiency, with the principal open issues being V-Line contention in nn5 convolutions and the dependence of peak gains on hardware-aware retraining.

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Open Problems

We haven't generated a list of open problems mentioned in this paper yet.

Tweets

Sign up for free to view the 1 tweet with 4 likes about this paper.