Skip to main content
QUICK REVIEW

[Paper Review] Unlocking the Power of Inline Floating-Point Operations on Programmable Switches

Yifan Yuan, Omar Alama|arXiv (Cornell University)|Dec 11, 2021
Parallel Computing and Optimization TechniquesComputer Science7 citations
TL;DR

This paper proposes Fpisa, a software-defined floating-point representation that enables efficient inline floating-point operations on programmable switches by decomposing FP values into exponent and mantissa components and processing them across pipeline stages using existing hardware. Fpisa achieves up to 85.9% higher throughput in distributed training and 2.7× better throughput in floating-point query processing compared to state-of-the-art systems, with minimal hardware modifications that are feasible in a 15-nm process.

ABSTRACT

The advent of switches with programmable dataplanes has enabled the rapid development of new network functionality, as well as providing a platform for acceleration of a broad range of application-level functionality. However, existing switch hardware was not designed with application acceleration in mind, and thus applications requiring operations or datatypes not used in traditional network protocols must resort to expensive workarounds. Applications involving floating point data, including distributed training for machine learning and distributed query processing, are key examples. In this paper, we propose FPISA, a floating point representation designed to work efficiently in programmable switches. We first implement FPISA on an Intel Tofino switch, but find that it has limitations that impact throughput and accuracy. We then propose hardware changes to address these limitations based on the open-source Banzai switch architecture, and synthesize them in a 15-nm standard-cell library to demonstrate their feasibility. Finally, we use FPISA to implement accelerators for training for machine learning and for query processing, and evaluate their performance on a switch implementing our changes using emulation. We find that FPISA allows distributed training to use 25-75% fewer CPU cores and provide up to 85.9% better throughput in a CPU-constrained environment than SwitchML. For distributed query processing with floating point data, FPISA enables up to 2.7x better throughput than Spark.

Motivation & Objective

  • To address the lack of native floating-point support in programmable switches, which hinders acceleration of datacenter workloads like distributed ML training and query processing.
  • To overcome the limitations of existing workarounds—such as software-based format conversion or dedicated FPU hardware—that incur high overhead or are inflexible and expensive.
  • To design a generic, efficient, and hardware-feasible floating-point representation (Fpisa) that operates directly on P4-programmable switches without requiring custom ASICs.
  • To demonstrate the feasibility and performance benefits of Fpisa through hardware synthesis and emulation on a modified switch architecture.

Proposed method

  • Fpisa decomposes 32-bit floating-point numbers into separate exponent and signed mantissa components, processing them across multiple pipeline stages to avoid multi-cycle bottlenecks.
  • It repurposes existing network-oriented hardware elements—such as shifters and comparators—in the switch pipeline to implement sub-operations not natively supported by integer ALUs.
  • An approximate variant, Fpisa-a, is first implemented on commodity Intel Tofino to evaluate baseline performance and identify throughput and accuracy limitations.
  • The authors propose minimal, low-overhead hardware extensions based on the open-source Banzai switch architecture to support full-precision, high-throughput Fpisa operations.
  • The proposed hardware changes are synthesized in a 15-nm standard-cell library to validate feasibility in terms of area, power, and timing.
  • Performance is evaluated via emulation using real workloads: Cheetah for query processing and a modified Cheetah benchmark for distributed training with FP32 data.

Experimental results

Research questions

  • RQ1Can floating-point operations be efficiently implemented in programmable switches using only existing hardware components and software-level decomposition?
  • RQ2What are the performance and accuracy trade-offs of implementing floating-point computation via software-defined representations like Fpisa on commodity programmable switches?
  • RQ3How can minimal, cost-effective hardware extensions improve throughput and precision in Fpisa without significantly increasing area or power?
  • RQ4To what extent can Fpisa accelerate real-world applications such as distributed machine learning training and floating-point database query processing compared to existing solutions?
  • RQ5Is it feasible to integrate Fpisa-compatible hardware extensions into a standard 15-nm CMOS process with acceptable overhead?

Key findings

  • Fpisa enables distributed training to reduce CPU core usage by 25–75% and achieve up to 85.9% higher throughput than SwitchML in CPU-constrained environments.
  • For distributed query processing with floating-point data, Fpisa delivers up to 2.7× better throughput than native Spark, matching the performance gains seen with integer datatypes.
  • The initial Fpisa-a implementation on Intel Tofino revealed significant throughput and accuracy limitations due to the switch’s existing pipeline constraints.
  • The proposed hardware extensions to the Banzai architecture are synthetically feasible in a 15-nm standard-cell library with minimal impact on area, power, and timing.
  • Emulation results confirm that Fpisa can accelerate both ML training and query processing workloads at scale, with performance gains aligned with those seen in integer-based accelerators.
  • Fpisa provides a generic, extensible, and hardware-efficient alternative to dedicated FPUs or FPGA-based accelerators, avoiding the high cost and inflexibility of ASIC redesigns.

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.