[Paper Review] A Highly Configurable Hardware/Software Stack for DNN Inference Acceleration
This paper presents a highly configurable hardware/software stack for DNN inference acceleration by enhancing the TVM/VTA stack with pipelined ALU and GEMM units, parameterized memory width (8–64 bytes/cycle), and new instructions, achieving up to 11.5x lower cycle count with 12x area increase, while enabling end-to-end support for ResNet and MobileNet. The Agile, feature-by-feature methodology enables rapid exploration of area-performance tradeoffs across tens of configurations.
This work focuses on an efficient Agile design methodology for domain-specific accelerators. We employ feature-by-feature enhancement of a vertical development stack and apply it to the TVM/VTA inference accelerator. We have enhanced the VTA design space and enabled end-to-end support for additional workloads. This has been accomplished by augmenting the VTA micro-architecture and instruction set architecture (ISA), as well as by enhancing the TVM compilation stack to support a wide range of VTA configs. The VTA tsim implementation (CHISEL-based) has been enhanced with fully pipelined versions of the ALU/GEMM execution units. In tsim, memory width can now range between 8-64 bytes. Field widths have been made more flexible to support larger scratchpads. New instructions have been added: element-wise 8-bit multiplication to support depthwise convolution, and load with a choice of pad values to support max pooling. Support for more layers and better double buffering has also been added. Fully pipelining ALU/GEMM helps significantly: 4.9x fewer cycles with minimal area change to run ResNet-18 under the default config. Configs featuring a further 11.5x decrease in cycle count at a cost of 12x greater area can be instantiated. Many points on the area-performance pareto curve are shown, showcasing the balance of execution unit sizing, memory interface width, and scratchpad sizing. Finally, VTA is now able to run Mobilenet 1.0 and all layers for ResNets, including the previously disabled pooling and fully connected layers. The TVM/VTA architecture has always featured end-to-end workload evaluation on RTL in minutes. With our modifications, it now offers a much greater number of feasible configurations with a wide range of cost vs. performance. All capabilities mentioned are available in opensource forks while a subset of these capabilities have already been upstreamed.
Motivation & Objective
- To reduce non-recurring engineering (NRE) costs for domain-specific accelerators by enabling rapid, configurable hardware/software co-design.
- To enhance the VTA accelerator stack with improved performance, configurability, and end-to-end support for complex DNN workloads like ResNet and MobileNet.
- To develop an Agile, incremental methodology for co-designing hardware and software that supports continuous integration and fast end-to-end validation.
- To expand the design space of VTA configurations to explore area-performance tradeoffs while maintaining correctness across RTL, simulation, and FPGA platforms.
- To enable efficient, open-source hardware/software co-design for DNN inference accelerators through upstream contributions and reusable flows.
Proposed method
- Employed an Agile, feature-by-feature development methodology to incrementally enhance the TVM/VTA stack, starting from a minimal VTA implementation.
- Enhanced the VTA micro-architecture with fully pipelined ALU and GEMM units, reducing cycle counts significantly.
- Parameterized memory interface width (8–64 bytes per cycle) and field widths in the ISA to support diverse configurations and larger scratchpads.
- Added new instructions including 8-bit element-wise multiplication, pad-selective load for max pooling, and a clip instruction to accelerate common ResNet patterns.
- Extended the TVM compiler stack to generate optimized uops, support double buffering, and handle new layers including pooling and fully connected layers.
- Implemented a continuous integration pipeline with fsim (behavioral model), tsim (Verilator-based RTL simulation), and FPGA simulation to ensure correctness across all stages.
Experimental results
Research questions
- RQ1How can an Agile, incremental methodology reduce NRE costs in domain-specific accelerator development?
- RQ2What hardware and software enhancements are required to enable end-to-end support for complex DNNs like ResNet and MobileNet on a configurable accelerator?
- RQ3To what extent can pipelining and parameterization improve performance with minimal area overhead?
- RQ4How can a unified hardware/software co-design flow enable rapid exploration of area-performance tradeoffs across tens of configurations?
- RQ5What role do simulation and continuous integration play in maintaining correctness during iterative hardware and compiler enhancements?
Key findings
- The fully pipelined ALU and GEMM units reduced cycle count by ~4.9x with minimal area increase for ResNet-18 under default configuration.
- By tuning configuration parameters, a further ~11.5x reduction in cycle count was achieved at the cost of ~12x greater area, demonstrating a wide performance-area tradeoff space.
- Tens of intermediate configurations on the area-performance Pareto curve were exposed, enabling systematic exploration of execution unit size, memory width, and scratchpad size.
- The enhanced stack now supports all layers of ResNet and MobileNet 1.0, including previously unsupported pooling and fully connected layers.
- End-to-end workload evaluation on RTL now takes only minutes, enabling rapid feedback for co-design and DNN architecture exploration.
- Critical memory timing bugs were discovered only on the FPGA platform, highlighting the value of FPGA-level integration testing despite fast RTL simulation.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.