Skip to main content
QUICK REVIEW

[Paper Review] Flex-TPU: A Flexible TPU with Runtime Reconfigurable Dataflow Architecture

Mohammed Elbtity, Peyton Chandarana|arXiv (Cornell University)|Jul 11, 2024
Embedded Systems Design TechniquesComputer Science3 citations
TL;DR

This paper proposes Flex-TPU, a runtime-reconfigurable TPU that dynamically switches between input, output, and weight stationary dataflows per DNN layer to maximize performance. By adding minimal hardware (two multiplexers and one register per processing element), it achieves up to 2.75× speedup over conventional TPUs with only 13.6% area and 6.44% power overhead.

ABSTRACT

Tensor processing units (TPUs) are one of the most well-known machine learning (ML) accelerators utilized at large scale in data centers as well as in tiny ML applications. TPUs offer several improvements and advantages over conventional ML accelerators, like graphical processing units (GPUs), being designed specifically to perform the multiply-accumulate (MAC) operations required in the matrix-matrix and matrix-vector multiplies extensively present throughout the execution of deep neural networks (DNNs). Such improvements include maximizing data reuse and minimizing data transfer by leveraging the temporal dataflow paradigms provided by the systolic array architecture. While this design provides a significant performance benefit, the current implementations are restricted to a single dataflow consisting of either input, output, or weight stationary architectures. This can limit the achievable performance of DNN inference and reduce the utilization of compute units. Therefore, the work herein consists of developing a reconfigurable dataflow TPU, called the Flex-TPU, which can dynamically change the dataflow per layer during run-time. Our experiments thoroughly test the viability of the Flex-TPU comparing it to conventional TPU designs across multiple well-known ML workloads. The results show that our Flex-TPU design achieves a significant performance increase of up to 2.75x compared to conventional TPU, with only minor area and power overheads.

Motivation & Objective

  • Address the performance limitations of conventional TPUs that are restricted to a single static dataflow (input, output, or weight stationary).
  • Overcome the suboptimal performance caused by fixed dataflow mapping across DNN layers, which vary in compute and memory access patterns.
  • Design a TPU architecture that supports dynamic reconfiguration of dataflow at runtime to match layer-specific workloads.
  • Minimize hardware overhead while enabling flexible dataflow switching to maintain high clock frequency and energy efficiency.
  • Demonstrate scalability and real-world performance gains across diverse ML workloads including ResNet-18 and other standard DNNs.

Proposed method

  • Enhance each processing element (PE) in a systolic array with two multiplexers and one register to support runtime selection of input, output, or weight stationary dataflow.
  • Implement a control logic that reconfigures the dataflow per layer based on workload characteristics and performance analysis.
  • Use a dynamic scheduling mechanism to determine the optimal dataflow for each DNN layer during inference.
  • Synthesize and evaluate the Flex-TPU against conventional TPU designs using standard TPU synthesis constraints (10 ns clock, 2% uncertainty).
  • Simulate performance across multiple DNNs (e.g., ResNet-18) and systolic array sizes (8×8 to 256×256) to assess speedup, area, and power trade-offs.
  • Compare execution cycles and performance across IS, OS, WS, and Flex-TPU dataflows to quantify gains.

Experimental results

Research questions

  • RQ1Can runtime reconfiguration of dataflow in a TPU significantly improve inference performance across diverse DNN layers?
  • RQ2What is the minimal hardware overhead required to enable dynamic dataflow reconfiguration in a systolic array-based TPU?
  • RQ3How does the performance of Flex-TPU scale with increasing systolic array size (e.g., 128×128 and 256×256)?
  • RQ4Does the Flex-TPU maintain comparable clock frequency and power efficiency compared to conventional TPUs with static dataflows?
  • RQ5Can Flex-TPU achieve substantial speedups across real-world ML workloads without incurring prohibitive area or power costs?

Key findings

  • Flex-TPU achieves a maximum performance speedup of 2.75× over conventional TPU designs on selected DNN layers, with an average speedup of 36.7% across all workloads.
  • The area overhead of Flex-TPU is at most 13.607% and power overhead is at most 6.44% compared to a conventional TPU with the same systolic array size.
  • The critical path delay increases by no more than 2.07% even at the smallest array size (8×8), indicating minimal impact on clock frequency.
  • At larger scales (128×128 and 256×256), Flex-TPU achieves average speedups of 1.238× and 1.349× respectively, outperforming the OS dataflow baseline.
  • The performance gain is most pronounced in models like ResNet-18, where different layers benefit from different dataflows, with up to 10.99 ms reduction in inference time.
  • The proposed hardware modifications (two multiplexers and one register per PE) enable full runtime reconfigurability with minimal architectural disruption.

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.