Introduction
Training deep neural networks (DNNs) directly on edge devices is a critical goal for privacy-preserving and personalized AI. However, these devices are severely resource-constrained. Tensorized Neural Networks (TNNs) offer a promising solution by using tensor decomposition to compress massive weight matrices into small "core" tensors, drastically reducing model size.
Despite their compression benefits, TNNs introduce complex tensor contraction operations—essentially high-dimensional matrix multiplications. Standard hardware like GPUs and TPUs often fail to execute these efficiently due to fixed dataflows and the high "shaping tax" associated with rearranging data in memory. FETTA (Flexible and Efficient Hardware Accelerator for Tensorized Neural Network Training) is a hardware-algorithm co-optimization framework designed to overcome these bottlenecks.
The FETTA Framework
FETTA addresses the inefficiencies of TNN training through a two-pronged approach: a specialized search engine for contraction sequences and a reconfigurable hardware architecture.
Contraction Sequence Search Engine (CSSE)
The order in which a chain of tensors is multiplied significantly impacts computational overhead. FETTA’s CSSE uses a two-stage process to find the optimal path:
- Stage 1: A depth-first search identifies candidate sequences that minimize total floating-point operations (FLOPs).
- Stage 2: A hardware-aware performance model evaluates these candidates to select the sequence that yields the lowest latency and energy consumption on the FETTA hardware.
Flexible Accelerator Architecture
The FETTA hardware is designed to be highly adaptable:
- Reconfigurable Contraction Engine (CE): Features a $4 \times 4$ transposable systolic array capable of switching between Weight-Stationary, Input-Stationary, and Output-Stationary dataflows on the fly.
- Butterfly-based Interconnects: Instead of rigid wiring, FETTA utilizes transposable butterfly networks. This allows the hardware to perform complex data "shaping" (e.g., transposing a matrix) during data transfer, eliminating the need for costly memory write-backs.
Evaluation and Benchmarks
The framework was evaluated across several major benchmarks using various tensor decomposition methods, including Tensor Train (TT), Tensor Ring (TR), and Hierarchical Tucker (HT).
Benchmarks included:
- Transformer on ATIS and WMT14 datasets.
- BERT on the SQuAD dataset.
- LSTM on the UCT-11 dataset.
Key Insights and Results
The primary innovation in FETTA is the realization that data movement, rather than just raw computation, is the main bottleneck for TNNs. By integrating data reordering into the interconnects, FETTA bypasses the memory bottlenecks that hinder traditional accelerators.
Synthesized using a 7nm process, FETTA demonstrates remarkable performance:
- Performance vs. GPU/TPU: FETTA achieved latency reductions of 20.5× to 100.9× and energy-delay product (EDP) improvements of up to 11,609× compared to an RTX 3090 GPU.
- Performance vs. Specialized Accelerators: It outperformed prior state-of-the-art TNN accelerators (e.g., Tetrix, TRETA) by 3.87× to 14.63× in speed and 1.41× to 2.73× in energy efficiency.
- Edge Suitability: Operating at 1.0 GHz with a power consumption of just 102.59 mW, FETTA is highly optimized for mobile and edge integration.
Limitations and Future Directions
While highly effective, FETTA faces challenges with "intermediate result bloat" in certain models like WMT-TT, where long contraction sequences increase memory access. Additionally, the flexible butterfly networks introduce some area and power overhead compared to fixed arrays. Future work may explore combining tensor decomposition with sparsity to further enhance efficiency.
Summary updated