Skip to main content
QUICK REVIEW

[Paper Review] CFU Playground: Full-Stack Open-Source Framework for Tiny Machine Learning (tinyML) Acceleration on FPGAs

Shvetank Prakash, Tim Callahan|arXiv (Cornell University)|Jan 5, 2022
Parallel Computing and Optimization TechniquesComputer Science5 citations
TL;DR

CFU Playground is an open-source, full-stack framework enabling rapid, agile hardware-software co-design of custom function units (CFUs) for TinyML inference on FPGAs. By tightly coupling a soft RISC-V CPU with domain-specific CFUs and using automated optimization via Vizier, the framework achieves 55× to 75× speedups through iterative design, profiling, and optimization of model-specific operations.

ABSTRACT

Need for the efficient processing of neural networks has given rise to the development of hardware accelerators. The increased adoption of specialized hardware has highlighted the need for more agile design flows for hardware-software co-design and domain-specific optimizations. In this paper, we present CFU Playground: a full-stack open-source framework that enables rapid and iterative design and evaluation of machine learning (ML) accelerators for embedded ML systems. Our tool provides a completely open-source end-to-end flow for hardware-software co-design on FPGAs and future systems research. This full-stack framework gives the users access to explore experimental and bespoke architectures that are customized and co-optimized for embedded ML. Our rapid, deploy-profile-optimization feedback loop lets ML hardware and software developers achieve significant returns out of a relatively small investment in customization. Using CFU Playground's design and evaluation loop, we show substantial speedups between 55$ imes$ and 75$ imes$. The soft CPU coupled with the accelerator opens up a new, rich design space between the two components that we explore in an automated fashion using Vizier, an open-source black-box optimization service.

Motivation & Objective

  • To address the lack of agile, low-cost design flows for domain-specific TinyML accelerators in resource-constrained embedded systems.
  • To enable holistic hardware-software co-design that accounts for system-level bottlenecks, not just isolated accelerator performance.
  • To provide an open, extensible, and vendor-agnostic framework for rapid prototyping and evaluation of custom function units (CFUs) on FPGAs.
  • To explore the design space between a soft CPU and a tightly-coupled CFU for model-specific optimizations without high NRE costs.
  • To support iterative, feedback-driven design cycles (deploy → profile → optimize) for efficient TinyML acceleration.

Proposed method

  • Integrates open-source toolchains including TensorFlow Lite Micro, GCC, LiteX, VexRiscv, Migen, Amaranth, yosys, nextpnr, and F4PGA/SymbiFlow for end-to-end FPGA-based SoC generation.
  • Employs a soft RISC-V CPU extended with custom, application-specific CFUs to accelerate critical ML computation hotspots such as convolution operations.
  • Uses Vizier, an open-source black-box optimization service, to automate the exploration of design space trade-offs between CPU and CFU configurations.
  • Applies iterative optimization techniques such as loop unrolling, SIMD multiply-accumulate operations, and data layout transformations to accelerate key kernels like MobileNetV2's depthwise separable convolutions.
  • Enables model-agnostic, incremental customization of both hardware (CFUs) and software (TFLM kernels) to co-optimize performance and resource usage.
  • Supports full hardware-in-the-loop evaluation, capturing system-level overheads such as data movement, scheduling, and pre-processing that are often ignored in isolated accelerator design.

Experimental results

Research questions

  • RQ1How can a full-stack, open-source framework enable agile, low-cost design and evaluation of TinyML accelerators on FPGAs?
  • RQ2What performance gains can be achieved by co-designing a soft CPU with custom function units (CFUs) for model-specific operations?
  • RQ3How effective is automated, ML-driven design space exploration (via Vizier) in identifying optimal hardware-software trade-offs for TinyML inference?
  • RQ4To what extent do system-level bottlenecks—such as data movement and scheduling—impact the effectiveness of isolated accelerator optimizations?
  • RQ5Can CFUs provide a flexible, scalable, and efficient alternative to discrete accelerators in ultra-low-power embedded systems?

Key findings

  • CFU Playground enables a complete, open-source, end-to-end flow for designing and evaluating TinyML accelerators on FPGAs without vendor lock-in or high NRE costs.
  • The framework achieves 55× to 75× speedups in inference performance for MobileNetV2 by co-optimizing the soft CPU and custom CFUs for convolution operations.
  • Automated design space exploration using Vizier significantly improves performance with minimal manual effort, enabling rapid iteration and optimization.
  • The integration of CFUs with the software stack allows for efficient acceleration of critical computation hotspots while maintaining flexibility for algorithmic changes.
  • System-level profiling reveals that software overheads and data movement can be major bottlenecks, which CFU Playground accounts for through holistic evaluation.
  • The framework supports incremental customization, allowing developers to grow from small CFUs to full accelerators, demonstrating a scalable path to high-performance TinyML systems.

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.