arXiv:2608.12140cs.ARAug 2026

Manuscript Offprint

arXiv:2608.12140

FQTree: Fine-grained Quantization and Hardware Generation of Boosted Decision Trees

Zhiqiang Que, Chang Sun, Haiyang Wang, Dinesh Pamunuwa, Roshan Weerasekera, Qijia Tang, Bakhtiar Zadeh, Wayne Luk, Maria Spiropulu

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Boosted decision trees (BDTs) are widely used in latency-critical applications, but efficient hardware deployment remains challenging. Existing designs often rely on uniform or manually tuned fixed-point formats, which can introduce unnecessary hardware cost or accuracy loss. This work presents the FQTree algorithm for fine-grained quantization-aware training of BDTs, together with the QXGB framework for automatic hardware generation. FQTree introduces a hardware-oriented leaf-value quantization scheme that uses a global quantization step together with a tree-wise shift, enabling compact non-negative integer leaf representations, controlled clipping/pruning, and bias folding to reduce datapath cost. This work further applies this quantization during boosting so that later trees adapt to the errors of the already-quantized ensemble, and then lowers the trained model into low-latency hardware implementations through a compiler-based flow. Results on JSC, MNIST, and NID show that our method reduces LUT usage by 26–57% compared with the state-of-the-art FPGA-based BDT designs while matching or improving accuracy.

I Introduction

Boosted decision trees (BDTs) remain one of the most widely used machine learning models in real-world applications due to their strong predictive performance, compact model size, and relatively simple inference procedure [1]. Compared with large neural networks, BDTs are often easier to train, more robust on tabular data, and attractive for latency-critical scenarios where fast and deterministic decision making is required [1]. These properties make them appealing candidates for deployment on reconfigurable hardware platforms such as field-programmable gate arrays (FPGAs) [2, 3, 4], particularly in domains where strict latency and resource constraints are imposed.

Efficient FPGA deployment of BDTs, however, is still challenging. Although tree inference is structurally simpler than dense neural network inference, practical implementations must still balance prediction quality against hardware cost, including comparator width, storage footprint, accumulation precision, and overall datapath complexity. Existing FPGA-oriented BDT implementations typically rely on uniform or manually selected fixed-point representations across the model [5, 6, 7]. Such a design choice is convenient, but it fails to reflect the heterogeneous numerical roles of different components in the ensemble. In a BDT, input features, split thresholds, leaf values, and the ensemble accumulation logic have very different sensitivity to quantization, and treating them with a single precision often leads either to unnecessary hardware cost or to avoidable accuracy degradation.

This challenge is especially acute for BDTs because quantization affects not only arithmetic precision, but also the routing decisions of the trees themselves. Small perturbations to features or thresholds may change branch outcomes and therefore alter the selected leaf entirely. As a result, straightforward post-training quantization is often not robust, particularly at low precision. This motivates the need for a quantization-aware training (QAT) approach that exposes the model to quantization effects during optimization, allowing it to adapt its numerical parameters to reduced precision while preserving predictive quality.

To address this challenge, this work presents a QAT algorithm for BDTs that adapts the precision of multiple numerical components of the model under hardware constraints. In particular, we observe that the resource cost of a BDT is dominated by the precision of leaf values, and therefore propose a magnitude-based precision assignment strategy integrated into training. Unlike post-training quantization, the bitwidths are not assigned after the model is fixed. Instead, during QAT, leaf values are learned under quantization and hardware-aware constraints, and their evolving magnitudes are used to guide precision allocation. Since BDT leaf values contribute additively to the output logits, their magnitude provides a direct indicator of their relative importance to the final prediction. As a result, the learned precision allocation naturally adapts to the importance of different leaves for classification accuracy. For instance, the early trees that make larger contributions receive more bits, while later trees that provide small corrective updates are represented with fewer bits. This allows the model to adapt its quantized parameters under quantization constraints, with the resulting precision assignments reflecting both task loss and hardware cost.

Beyond model optimization, we also target practical hardware realization. The quantized BDT produced by our training flow is automatically lowered to synthesizable hardware, enabling low-latency FPGA implementations without manual redesign of a separate datapath for each precision configuration. In this way, the proposed approach provides an end-to-end path from fine-grained QAT to hardware generation, which permits systematic exploration of the trade-off between accuracy, latency, and resource usage.

To the best of our knowledge, the FQTree algorithm together with the QXGB framework provides the first unified workflow for FPGA deployment of BDTs that combines hardware-oriented leaf-value quantization, quantization-aware training, and automatic hardware generation.

The main contributions of this work are:

  • The FQTree algorithm, a hardware-aware and fine-grained quantization-aware training approach for boosted decision trees, featuring a hardware-oriented leaf-value quantization formulation with a global quantization step, tree-wise shift, and bias folding.
  • The QXGB framework (Quantized XGBoost, qxgb), a compiler-based scalable flow for generating efficient low-latency FPGA-based BDT implementations for both high-level synthesis (HLS) and RTL design, with a focus on minimizing latency and resource usage.
  • A comprehensive evaluation of our method, showing that it reduces LUT usage by 26-57% compared to the state-of-the-art BDT designs while matching or improving accuracy and achieving lower latency.

References (22)