Signed binary path encoding for efficient non-interactive private decision tree evaluation on TFHESigned Dyadic Path Encoding for Efficient Non-Interactive Private Decision Tree Evaluation over TFHE
The authors propose a signed binary path encoding for TFHE non-interactive private decision tree evaluation, reducing the number of leaf-selection PBSs from |L| to |P|, with latency reduced by 1.51×–1.92× on UCI datasets at depths 1–4.
- In non-interactive private decision tree evaluation, the server classifies the client's query on the ciphertext; under TFHE, leaf selection requires one programmable bootstrapping (PBS) per leaf, which is the main source of inference latency.
- The authors propose a signed binary path-sum encoding: assign a signed binary label to each layer so that every root-to-leaf path accumulates a distinct integer sum, thereby packing the two child leaves of the same leaf parent node into a single test polynomial resolved simultaneously by one PBS, reducing the number of PBSs from the number of leaves |L| to the number of leaf parent nodes |P|.
- On four UCI datasets at depths 1–4, single-tree latency is reduced by 1.51×–1.92× (Table VI); on Steel, a GBDT ensemble at depth 3 with 80 trees per class reduces latency by 2×, with accuracy rising from 0.61 to 0.79 and no loss in precision.
- The authors point out that the number of rounds grows linearly with the plaintext range, and the favorable regime is limited to depth ≤4; at depth 5 the speedup is below 1. The optimal labeling problem for j-ary tree expansion is unsolved and was not experimentally evaluated; the comparator uses XCMP, and the authors state that the results are a lower bound for a fully optimized pipeline.
- Threat model
- Non-interactive single-tree private decision tree evaluation: the client quantizes and encrypts the feature vector with its own key and sends it to the semi-honest server in a single message; the server holds the decision tree in plaintext, evaluates it homomorphically, and returns a single ciphertext. Client privacy reduces to the IND-CPA security of TFHE; circuit privacy is not claimed, and the model is not treated as confidential.
- Benchmarks
- Breast Cancer (Cancer)Heart Disease (Heart)SpambaseSteel Plates Faults (Steel)
- Metrics
- 单树推理延迟(ms)加速比(speedup)模型准确率(model accuracy)每次推理失败概率 perror
Signed binary path encoding reduces the number of PBS operations for non-interactive private decision tree evaluation on TFHE from the number of leaves to the number of leaf parent nodes, nearly halving the cost. It assigns signed binary labels to internal nodes so that each root-to-leaf path accumulates a different integer sum, packing the two children of a leaf parent node into a single test polynomial. On UCI benchmarks at depths 1-4, it speeds up a single tree by 1.51×-1.92× and gradient boosting ensembles by 2×, with no loss in accuracy; the advantage is limited to depth ≤4.
Paper analysis
What problem does this paper attempt to solve?
In TFHE non-interactive private decision tree evaluation, leaf selection costs one PBS per leaf, which is the cost bottleneck; the authors use encoding to halve it.
Core question: Under a minimal uplink budget (one RLWE ciphertext per attribute), can leaf selection in TFHE non-interactive private decision tree evaluation (PDTE) be done with fewer programmable bootstrappings (PBSs) without reducing accuracy or changing the compact response.
- Scenario and importance: Machine learning as a service requires clients to disclose sensitive inputs (medical records, financial history, etc.) to servers. Decision trees and their ensembles remain mainstream on tabular data, making private inference a practical need. Non-interactive PDTE allows the client to encrypt a query and then go offline, while the server evaluates the entire tree on the ciphertext and returns a single ciphertext (Figure 1).
- Shortcomings of existing methods: The authors state that the MultiplyPath family requires no PBS but needs RGSW-format operands, causing uplink bloat or restoring per-node PBS; the SumPath family keeps the minimal query but requires one zero test per leaf for leaf selection (TE0), i.e., |L| PBSs, which dominates inference time.
- Core observation: Two leaves sharing the same parent node are distinguished only by a single test at that parent node, so resolving them with two independent per-leaf zero tests constitutes redundant work.
- Proposed scheme: Proposes a signed binary path-sum encoding, assigning a signed integer label to each layer so that every root-to-leaf path accumulates a distinct integer sum, packing the two child leaves of a leaf parent node into a single test polynomial resolved by one PBS, reducing the number of PBSs from |L| to |P|.
- Threat model:
- Adversary/protected party: a semi-honest server holding the decision tree model in plaintext.
- Client privacy: reduces to the IND-CPA security of TFHE; the server learns nothing about the query.
- The client may learn the quantization precision b; circuit privacy is not claimed.
- In the GBDT extension, the server returns per-class scores, which may leak the class margin; the authors state that this is acceptable under the threat model.
What related research exists?
The paper divides related work into four categories: private comparison, tree traversal (SinglePath/MatrixTransform/MultiplyPath/SumPath), leaf selection location, and batch amortization.
Private comparison
- XCMP [12]: a private comparison operator with constant multiplicative depth; XXCMP [19] extends support to higher-precision data.
- RCC [19], [21] and RDCMP [22]: improve amortized performance through batched comparison across multiple inputs.
Tree traversal
- SinglePath [8], [16], [24]: traverses layer by layer; the number of private comparisons equals the tree depth, but it requires expensive Blind Array Access; [25] combines single-branch comparison with baby-step giant-step branch selection on CKKS, and the authors state that its benefit only emerges at larger depths with η ≥ 7.
- MatrixTransform [10], [20]: traverses using a feature-selection matrix and can parallelize across nodes, but the authors state that it introduces substantial computational overhead for irregular trees.
- MultiplyPath [2], [3], [17] (PathConjugation): chains ciphertext multiplications along the path without PBS, but requires RGSW operands, entailing a fundamental trade-off between server computation and client query size.
- SumPath [4], [5], [19], [21], [23], [27]: sums node values along the path; the active path sum is zero, and a zero test then isolates the correct leaf.
Leaf selection location and batching
- Client-side selection [4], [5], [19]: returns the encrypted path result to the client for local resolution; server load is low, but server-side aggregation is impossible, and ensemble evaluation requires leaking per-tree information.
- Server-side selection: represented by TE0 [21], which maps the zero-sum path to 1 and the rest to 0 and returns a single ciphertext; on TFHE this requires one PBS per leaf, and on BFV/CKKS it requires η−1 ciphertext multiplications per leaf.
- Batch amortization [9], [21], [22], [25]: uses BFV/CKKS SIMD packing to batch multiple queries, but the authors state that this either does not affect single-query latency or reintroduces interaction rounds.
Baseline and benchmarks: The paper uses TE0 [21] as the baseline; because no TFHE implementation exists in the literature, the authors instantiate its most efficient form on TFHE themselves (per-leaf zero test as a single PBS). The benchmarks are four UCI datasets: Breast Cancer, Heart Disease, Spambase, Steel Plates Faults.
Author positioning: In the minimal-query class, existing schemes reduce |L| only by removing zero-valued leaves [21], and none packs sibling leaves for the active-leaf test; this paper uses a single packed PBS to simultaneously resolve the two child leaves of a leaf parent node, filling this gap.
How does the paper address this problem?
The signed binary path-sum encoding packs the two child leaves of a leaf parent node into a single LUT, reducing the number of PBSs from |L| to |P|, and proves that this encoding has the minimum range.
Overall idea: For the leaf-selection stage, assign a signed integer label to each tree layer so that every root-to-leaf path accumulates a distinct integer sum; pack the two child leaves of a leaf parent node into a single test polynomial, and use one PBS to simultaneously determine the active child leaf and return its class label. The core of the method is the signed dyadic path-sum encoding.
Problem setting and threat model
- The client quantizes and encrypts the feature vector with its own key and sends it in a single message; the semi-honest server holds the decision tree in plaintext, evaluates it homomorphically, and returns a single ciphertext.
- Client privacy reduces to the IND-CPA security of TFHE; circuit privacy is not claimed, and the model is not treated as confidential.
Signed binary path encoding
- Label system S = ((a1, b1), …, (aη, bη)): a node at layer d takes value ad when the comparison routes left and bd when it routes right; the path sum is the prefix sum σv = ∑d [(1−εd)ad + εd bd].
- Uses the semi-symmetric signed binary system S*: root label (−1, 0), layer d ≥ 2 label (−2^{d−2}, +2^{d−2}); the increment sequence is {1, 2, 4, ..., 2^{η−1}}, and the attainable path sums occupy the contiguous interval {−2^{η−1}, ..., 2^{η−1} − 1}.
Packed leaf selection
- For each leaf parent node v ∈ P, construct a single test polynomial f_v, placing the class labels of the two leaves into LUT buckets indexed by the path sum, with the remaining coefficients zero.
- When v is on the active path, the PBS returns the label of the child leaf selected by the final comparison; otherwise the path sum deviates from the reference value and the extracted coefficient is zero.
- At most one leaf parent node is on the active path; the final prediction is obtained by summing the outputs of |P| blind rotations, one sample extraction, and a key switch (Algorithm 3).
Optimality theory
- Defines the distinct-sum property (DSP): the 2^m layer combinations map to pairwise distinct sums. Proposition 1 gives the characterization: DSP holds if and only if ∑ ci δi = 0 (ci ∈ {−1,0,1}) has only the trivial solution.
- Theorem 1: In a non-negative label system satisfying DSP, maxε Σ(ε) ≥ 2m − 1, with equality if and only if the increments are a permutation of {1, 2, 4, ..., 2^{m−1}}.
- Theorem 2: When signed labels are allowed, the worst-case path sum M(S) ≥ 2m−1; the semi-symmetric binary system S* attains equality, with image {−2^{m−1}, ..., 2^{m−1} − 1}.
Correctness and failure probability
- Lemma 1 gives two correctness conditions: the blind-rotation input error |einv| < 1/(2p) and the aggregated output error |eout| < 1/(2p).
- Under the standard independence heuristic, the noise variance is derived, and the per-inference failure probability is perror ≤ |P| · erfc(m/(σin√2)) + erfc(m/(σout√2)); parameters are chosen so that perror ≤ 2^{−64} (Table IV, VI).
- The signed encoding halves the label magnitude at each layer (except the root), reducing the comparison-stage noise term from (4^η − 1)/3 to (4^{η−1} + 2)/3, with factors of 2.5, 3.5, and 3.9 for η = 2, 3, 4 respectively.
Cost analysis and extensions
- Leaf selection dominates the cost: the baseline requires |L| PBSs, this paper |P|; node comparison omits per-node complement, and path summation accumulates only up to the leaf parent node.
- The ring degree grows linearly with the consumed plaintext range; the cost model predicts a lead at depths 1–4, while at depth 5 N_min exceeds 2048 and the speedup falls below 1; the favorable regime is η ≤ 4.
- Extension to GBDT: each tree is evaluated independently, leaf weights are quantized by κ onto a torus grid of step 2^{−κ}·q, and the ensemble prediction is the sum of T ciphertexts; q_rlwe = 2^{56} and κ = 10 are used to satisfy perror ≤ 2^{−64}.
What experiments did the paper conduct?
On four UCI datasets at depths 1–4, single-tree latency is reduced by 1.51×–1.92×; on Steel, the GBDT ensemble is reduced by 2×, with accuracy 0.61→0.79.
Experimental Setup
- Evaluated schemes: the method in this paper and the TE0 baseline (the most efficient form instantiated by the authors themselves on TFHE, with zero tests per leaf as a single PBS).
- Datasets: four UCI classification datasets (Table V): Cancer (30 features, 569 instances, 2 classes), Heart (13, 303, 2), Spambase (57, 4601, 2), Steel (27, 1941, 7).
- Training and quantization: scikit-learn trains trees of depth 1–4, and features and thresholds are quantized to b = 6-bit integers; Figure 4 shows that at b = 6 the quantized accuracy converges to the floating-point baseline on all datasets.
- Parameters and security: all homomorphic operations are at the 128-bit security level; single-tree configurations take the cost-optimal choice for each depth and scheme (Table VI footnote), with failure probability perror ≤ 2^{−64}; single trees use a 32-bit RLWE modulus, and ensembles use q_rlwe = 2^{56}, N = 2048, n = 1024, κ = 10 (Table IV).
- Runtime environment: AMD Ryzen 9 9950X3D CPU, 128 GB RAM, Ubuntu 24.04.4; single-tree is single-threaded, ensemble is 16-threaded; single-tree latency is the mean of 50 queries (Table VI).
- Metrics: staged CPU time (cmp/sum/sel/grp/total), speedup, model accuracy, communication volume.
Main Results
According to Table VI (each (scheme, η) pair measured under its own cost-optimal parameters):
Swipe horizontally to read the table
Dataset η Ours total (ms) TE0 total (ms) speedup Cancer 1 26.2 48.3 1.84× Cancer 2 47.8 90.8 1.90× Cancer 3 91.6 173.7 1.90× Cancer 4 303.3 493.3 1.63× Heart 1 26.4 47.7 1.80× Heart 4 344.1 606.3 1.76× Spambase 4 343.2 531.3 1.55× Steel 4 301.6 456.3 1.51× (Depth 1–3 rows for Heart, Spambase, Steel are omitted; in the full table the depth 1–3 speedup range is 1.79×–1.92×.)
- The authors state that the dominant driver of speedup is the PBS count saving R = |L|/|P|: R = 2 at depth 1–3, and R = 1.7–2 at depth 4.
- At depth 1–3 both schemes have plaintext modulus p = 16 and identical parameters, so the measured ratio isolates the encoding effect and stays stable at 1.8×–1.9×; the slightly lower ratio at depth 1 is a dilution effect from the fixed-cost leaf grouping stage.
- At depth 4 the path and requirements of this paper force p = 32 while the baseline keeps p = 16, so the baseline obtains a lighter configuration and the advantage narrows to 1.5×–1.8×.
Correctness and Quantization Accuracy
- What was measured: the consistency between encrypted inference and the quantized plaintext model outputs. Results: across all datasets and depths, the encrypted output of the scheme in this paper agrees with the quantized plaintext model on every test instance (consistent with the ≤ 2^{−64} bound), and matches the baseline output exactly. The authors state that the two schemes are functionally identical and differ only in cost.
- Quantization accuracy: Figure 4 reports the accuracy of quantized models at depth 4 for bit widths 1–14; at b = 6 all datasets converge to the floating-point baseline; the authors therefore adopt b = 6.
GBDT Ensemble Extension
- What was measured: a gradient-boosted forest of depth 3 with 80 trees per class on the Steel dataset (7 classes). Results: 13.5 s for this paper, 27.5 s for TE0, speedup 2× (Table VII); the encrypted output agrees with the quantized plaintext ensemble on every test instance.
- Model accuracy rises from 0.61 for a single tree to 0.79 (Section IV-H); Figure 6 shows that depth 3 is slightly better than depth 4 in cost with no statistical loss in accuracy.
- Thread sensitivity: the authors report that at t = 1, 2, 4, 8, 16, 32 the speedup stays at 1.94×–2.07×, close to the blind rotation ratio |L|/|P| = 1.97 (Section IV-H footnote).
Communication
- Both schemes have the same communication profile: the client uploads a single encrypted query (208–912 KB, varying with the number of dataset features) and receives a single TLWE ciphertext (3 KB); the Steel ensemble returns 7 TLWE ciphertexts totaling 28 KB, still an order of magnitude lower than the 864 KB query (Sections IV-G, IV-H).
Other Ablations and Analysis
- Staged breakdown (Table VI): leaf selection accounts for the vast majority of the cost of both schemes; at depth 4 the baseline's lighter configuration offsets part of the PBS halving benefit.
- Cost model (Table S2): predicts a speedup of 2.00× at depth 1–3, 1.81× at depth 4, and dropping to 0.58× (below 1) at depth 5; measured latencies follow this ordering but are lower than the model estimates.
- Tree truncation interaction (Section V-C): truncation can reduce the baseline's PBS count to the same as this paper's, but not lower; the speedup is at most 1 + a/(a + b).
- Comparator orthogonality (Section V-B): the savings are independent of the comparator, and XXCMP, RCC, RDCMP can be substituted directly; the authors state that the reported results are a lower bound for a fully optimized pipeline.
What are some points that can be further explored?
The authors note that the favorable regime is limited to depth ≤4, that j-ary tree extension is open, and that future directions include tighter failure analysis and multi-way tree generalization.
Limitations and future directions noted by the authors
- The ring degree grows linearly with the consumed plaintext range; the depth limit is an economic boundary, and the favorable regime is limited to shallow depths (≤ 4); at depth 5 this paper's N_min exceeds 2048 and the speedup falls below 1 (Section III-I, Table S2).
- For deeper trees, the baseline's linear bucket requirement dominates; when multiple queries can be batched, square-root extension designs such as [25] are preferable (Section III-I).
- In the j-ary tree extension, the optimality results are limited to binary variables, and the minimum-weight problem for j-valued variables is unsolved; the path sum occupies η⌈log2 j⌉ bits of plaintext space, and comparison noise grows as j^{2i}; the authors state this as an analytical property rather than an evaluation result (Section V-D).
- Future directions: tighten the modulus-switching lower bound via drift-aware failure analysis [33] or noise-reduced PBS; extend the encoding to multi-way trees (Section VI).
- In the ensemble, the server returning per-class scores leaks the class margin; the authors state that server-side arg max can reduce this exposure, but that this belongs to another line of research (Sections III-A, IV-H).
Scope of experimental coverage
- The evaluated schemes are two: this paper's method and the TE0 baseline, both implemented on the authors' own TFHE library and sharing the underlying kernels.
- The datasets are four UCI classification datasets with tree depths 1–4; single-tree latency is the mean of 50 queries per condition.
- The GBDT experiment is conducted only on the Steel dataset, at depth 3 with 80 trees per class; the κ sweep covers 3–10 (Figure 5), and the tree-count sweep covers 10–220 per class (Figure 6).
- The comparator uses only the polynomial-evaluation version of XCMP; the paper does not report end-to-end experiments combining it with other comparators.
- The paper does not report statistical significance tests; Figures 4, 5, and 6 are means over 10 seeds (the captions note ±1σ or mean over 10 seeds).
Summarize the main content of the paper
The signed binary path encoding halves the number of PBSs for leaf selection in TFHE non-interactive PDTE, with 1.51×–1.92× single-tree speedup at depths 1–4 and 2× speedup for GBDT.
A paper on the efficiency of TFHE non-interactive private decision tree evaluation, targeting the cost bottleneck of one PBS per leaf in the leaf-selection stage.
- Problem: In SumPath-style PDTE under a minimal query budget, leaf selection requires |L| zero-test PBSs, which dominates inference latency; the authors observe that resolving two leaves sharing a parent node with two independent zero tests is redundant.
- Method: Proposes a signed binary path-sum encoding, assigning a signed integer label to each layer so that every root-to-leaf path sum is distinct, packing the two child leaves of a leaf parent node into a single LUT, so that one PBS simultaneously locates the active child leaf and returns its label, reducing the number of PBSs from |L| to |P|. The authors prove that the semi-symmetric signed binary system S* minimizes the worst-case path-sum magnitude (Theorems 1, 2), and give a parameter instantiation with perror ≤ 2^{−64} and 128-bit security.
- Single-tree results: On four UCI datasets at depths 1–4, with each scheme at its own cost-optimal parameters, latency is reduced by 1.51×–1.92× (Table VI); at depths 1–3 with identical parameters the ratio is stable at 1.8×–1.9×, and at depth 4 it narrows to 1.5×–1.8× because the baseline can use lighter parameters.
- Ensemble results: On Steel at depth 3 with 80 trees per class, GBDT latency is reduced by 2× (13.5 s vs. 27.5 s, Table VII), model accuracy rises from 0.61 to 0.79, and the encrypted output exactly matches the quantized plaintext.
- Authors' conclusion: The reduction in PBS count translates directly into end-to-end speedup; the method is an interface-compatible replacement for existing TE0 aggregation, preserving a single-ciphertext non-interactive response; the favorable regime is depth ≤ 4, and at greater depths the baseline's linear bucket requirement dominates.
- Implications: The authors state that the encoding is orthogonal to the choice of comparator, and that the reported results are a lower bound for a fully optimized pipeline; future directions include tighter failure analysis and multi-way tree extension.