Introduction
The rapid evolution of Transformer-based models, such as BERT and GPT, has revolutionized natural language processing and computer vision. However, these models introduce a significant computational burden known as the "Attention Tax." While modern Convolutional Neural Network (CNN) accelerators excel at high-throughput matrix multiplications, they are often ill-equipped to handle the complex non-linear operations—such as Softmax, LayerNorm, and GeLU—that define attention layers.
The Bottleneck: The "Attention Tax"
In traditional hardware architectures, non-linear operations are typically offloaded to the CPU or handled by dedicated vector units. This creates a performance bottleneck, with these operations sometimes accounting for up to 40% of total execution time. A common workaround involves using Lookup Tables (LUTs) for piecewise linear approximation. However, implementing a LUT at every processing element (PE) in a large-scale accelerator is prohibitively expensive in terms of silicon area and power consumption, particularly for edge devices.
The NOVA Architecture: NoC as Distributed Storage
NOVA (NoC-based Vector Unit) addresses this challenge by reimagining the Network-on-Chip (NoC) as a distributed storage medium rather than just a communication fabric. NOVA utilizes piecewise linear approximation ($y = ax + b$) to compute non-linear functions. Instead of storing the slope ($a$) and bias ($b$) parameters in local memories at each PE, NOVA broadcasts these parameters across the NoC.
Key Mechanisms
- Temporal Parameter Broadcasting: NOVA uses a line-topology NoC with clockless repeaters to broadcast sets of slope and bias values. By cycling through these parameters over time, the system eliminates the need for redundant spatial storage (LUTs) at every core.
- "Catch" Logic: Each PE is equipped with a simple comparator and "catch" logic. When a PE needs to compute a non-linear function, it compares its input value against the current segment being broadcast. If the input falls within that segment's range, the PE "catches" the corresponding $a$ and $b$ values from the NoC and performs a single Multiply-Accumulate (MAC) operation.
- Hardware Overlay Design: NOVA is designed as a lightweight hardware overlay. This allows it to be integrated into existing systolic array architectures, such as Google’s TPU or NVIDIA’s NVDLA, with minimal modifications to the underlying design.
Performance and Efficiency
The researchers evaluated NOVA using a 22nm CMOS process and the SCALE-Sim toolchain across diverse benchmarks, including ImageNet (VGG-16, MobileNet) and NLP tasks (MobileBERT on SQuAD, RoBERTa on SST-2).
The results demonstrate that NOVA achieves high fidelity with minimal hardware overhead. Using only 16 linear segments, NOVA approximates complex functions like Softmax with an accuracy loss of 0% to 0.2%.
In terms of hardware efficiency, NOVA provides:
- Area Efficiency: 3.23x better than standard dedicated vector units.
- Power Efficiency: 16.56x better than traditional vector units and over 37.8x better than the non-linear processing stage in the NVIDIA NVDLA.
- Footprint Reduction: Compared to NACU (a dedicated non-linear unit), NOVA reduced the area footprint from approximately 9600 $\mu m^2$ to just 900 $\mu m^2$.
Limitations and Future Directions
While NOVA offers significant gains, its current implementation uses a line topology that faces scalability constraints. In clusters exceeding 10 routers, the traversal time for the broadcast can impact performance, potentially requiring lower clock frequencies or multi-cycle latencies. Furthermore, the current design assumes fixed breakpoints determined at compile time.
Future research will explore alternative NoC topologies, such as trees or rings, to support larger systolic arrays and investigate dynamic breakpoint mapping to accommodate emerging models with learnable activation functions.
Conclusion
By leveraging the inherent efficiency of on-chip wires over local memory storage, NOVA provides a scalable and power-efficient solution for the "Attention Tax." It enables resource-constrained edge devices to execute modern Transformer models with performance levels previously reserved for much larger, power-hungry accelerators.
Summary updated