Skip to main content
QUICK REVIEW

[Paper Review] On-FPGA Training with Ultra Memory Reduction: A Low-Precision Tensor Method

Kaiqi Zhang, Cole Hawkins|arXiv (Cornell University)|Apr 7, 2021
Tensor decomposition and applicationsMathematics23 references10 citations
TL;DR

This paper proposes a low-precision, rank-adaptive tensorized neural network training framework that enables on-FPGA training with up to 292× memory reduction by combining tensor-train decomposition with Bayesian rank adaptation and low-precision computation. The method achieves 59× speedup and 123× energy reduction over an embedded CPU on a Xilinx MPSoC, demonstrating end-to-end on-device training with minimal accuracy loss.

ABSTRACT

Various hardware accelerators have been developed for energy-efficient and real-time inference of neural networks on edge devices. However, most training is done on high-performance GPUs or servers, and the huge memory and computing costs prevent training neural networks on edge devices. This paper proposes a novel tensor-based training framework, which offers orders-of-magnitude memory reduction in the training process. We propose a novel rank-adaptive tensorized neural network model, and design a hardware-friendly low-precision algorithm to train this model. We present an FPGA accelerator to demonstrate the benefits of this training method on edge devices. Our preliminary FPGA implementation achieves $59 imes$ speedup and $123 imes$ energy reduction compared to embedded CPU, and $292 imes$ memory reduction over a standard full-size training.

Motivation & Objective

  • To enable on-device, energy-efficient, and real-time training of neural networks on resource-constrained edge devices such as FPGAs.
  • To address the challenge of high memory and computational costs in on-device training by achieving orders-of-magnitude memory reduction.
  • To develop a hardware-friendly, one-shot training method that avoids iterative rank tuning or multiple training runs.
  • To demonstrate end-to-end training on FPGA with full model parameters stored on-chip, enabling privacy-preserving and low-latency learning.
  • To achieve high efficiency in speed and energy consumption while maintaining competitive model accuracy.

Proposed method

  • The method employs Tensor-Train Matrix (TTM) decomposition to compactly represent neural network weights using a sequence of low-rank tensors, drastically reducing parameter count.
  • A rank-adaptive training model is introduced using a Bayesian prior that automatically determines optimal tensor ranks during training, eliminating the need for manual rank selection.
  • The framework integrates low-precision optimization (fixed-point arithmetic) to further reduce memory and computational costs during training.
  • A custom FPGA accelerator is designed with three processing elements (PEs): PE1 performs parallel tensor contractions along the first and last dimensions, PE2 handles intermediate contractions, and PE3 computes outer products with 16-way parallelism.
  • The hardware design uses 128 MAC units in parallel, with memory access optimized by aligning tensor dimensions to multiples of 16 for efficient data reuse.
  • The training pipeline is implemented in HLS and targets a Xilinx MPSoC, enabling on-chip storage of all model parameters and full end-to-end training on FPGA.

Experimental results

Research questions

  • RQ1Can a tensorized neural network with rank-adaptive compression enable on-FPGA training with minimal memory footprint and high efficiency?
  • RQ2How much memory reduction can be achieved using low-precision tensorized training compared to standard full-precision training?
  • RQ3What are the speedup and energy efficiency gains of FPGA-based training versus embedded CPU training for on-device learning?
  • RQ4Can the proposed Bayesian rank-adaptive method achieve high model accuracy without requiring manual hyperparameter tuning or multiple training iterations?
  • RQ5To what extent can low-precision computation be integrated into tensorized training without significant accuracy degradation?

Key findings

  • The proposed method achieves 292× memory reduction compared to standard full-precision training, with only a 4.5% drop in testing accuracy on FashionMNIST.
  • The FPGA implementation achieves 59× speedup and 123× energy reduction compared to training on a Raspberry Pi 3B with a 1.2GHz ARM processor.
  • The model parameters are fully stored on-chip, enabling end-to-end on-device training without off-chip weight storage.
  • The rank-adaptive Bayesian prior enables automatic, one-shot model compression without requiring combinatorial rank search or hyperparameter tuning.
  • The hardware design utilizes 79.55% of LUTs, 21.37% of FFs, 77.22% of DSPs, and 17.82% of BRAMs, demonstrating efficient resource utilization.
  • The method achieves 294× memory reduction in practice, slightly exceeding the 292× figure in the abstract, confirming robust memory efficiency.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.