Papers
Topics
Authors
Recent
Search
2000 character limit reached

Quantum Semi-Random Forest (QsRF)

Updated 7 July 2026
  • Quantum Semi-Random Forest (QsRF) is an ensemble method that replaces uniform subspace sampling with structured, quantum-inspired feature selection to improve the bias–variance trade-off.
  • It computes Fraction Transition Probabilities from PCA-derived variance and regression coefficients, biasing tree construction towards informative principal components.
  • In recommender systems, QsRF extends to a hybrid pipeline that uses QAOA-based optimization for qubit-efficient feature selection, yielding competitive performance with minimal quantum resources.

Searching arXiv for the cited QsRF-related papers to ground the article in published work. arXiv search: "Quantum-Inspired Forest Regressors (Xie et al., 2017)" Quantum semi-Random Forest (QsRF) designates two distinct lines of research that share Random-Forest-style ensemble structure while altering how feature subspaces are chosen. In the earlier usage, introduced by Xie and Sato, QsRF denotes the Quantum-Inspired Forest, also called Quantum-Inspired Semi-Random Forest: a fully classical ensemble regressor in which principal components are sampled according to a quantum-inspired “Fraction Transition Probability” derived from PCA variance and regression coefficients (Xie et al., 2017). In a later usage for recommender systems, QsRF denotes a hybrid quantum-classical pipeline in which feature compression and performance scoring are followed by QAOA-based selection of a fixed small subspace, after which a classical semi-random forest is trained on the selected codes (Alavi et al., 30 Jul 2025). The common theme is that the conventional uniform random-subspace step of Random Forest is replaced by a structured, nonuniform feature-selection mechanism.

1. Terminological scope and lineage

The expression “Quantum semi-Random Forest” is not uniform across the literature. In Xie and Sato’s ACML 2017 work, the method is described as a Quantum-Inspired Subspace Ensemble Method and Quantum-Inspired Forest Regressor, with the alternative designation Quantum-Inspired Semi-Random Forest (QsRF) (Xie et al., 2017). In that formulation, the method remains classical: the “quantum” aspect is an interpretive device used to define feature-sampling probabilities from a density-matrix view of PCA covariance.

In the 2025 recommender-system formulation, QsRF refers to a three-stage hybrid machine learning algorithm that compresses sparse item-tag profiles, optimizes feature selection under a fixed qubit budget via QAOA, and scores recommendations with a Quantum semi-Random Forest built on just five qubits (Alavi et al., 30 Jul 2025). Here the quantum component is operational rather than metaphorical, but it is restricted to the feature-selection stage; the final ensemble of decision trees is explicitly classical.

This dual usage suggests that QsRF is better understood as a naming family than as a single canonical algorithm. A plausible implication is that the defining property across usages is not a particular tree architecture, but the replacement of uniform feature randomness by a structured subspace-selection prior.

2. Core formulation in the quantum-inspired regressor

In the 2017 formulation, QsRF differs from a standard Random Forest only in how it chooses the random subspace for each base regressor (Xie et al., 2017). The procedure begins with a full-rank PCA of the centered training data matrix XRn×mX \in \mathbb{R}^{n \times m} and centered response yRny \in \mathbb{R}^n. The unnormalized Gram matrix is written as

P=XXT=UΣpUT,P = X X^T = U \Sigma^p U^T,

where Σp=diag(σ12,,σr2)\Sigma^p = \operatorname{diag}(\sigma_1^2,\dots,\sigma_r^2) and r=rank(X)r=\operatorname{rank}(X).

Normalizing to trace $1$ yields

ρ=P/Tr(P)=UΣUT,Σ=diag(s12,,sr2),isi2=1.\rho = P / \operatorname{Tr}(P) = U \Sigma U^T,\qquad \Sigma=\operatorname{diag}(s_1^2,\dots,s_r^2),\quad \sum_i s_i^2=1.

With the physics-inspired interpretation

ρ=isi2uiui,\rho = \sum_i s_i^2 |u_i\rangle \langle u_i|,

the quantity si2s_i^2 is the “Fraction Probability” of eigenstate ui|u_i\rangle (Xie et al., 2017).

Regression is then viewed as a linear operator yRny \in \mathbb{R}^n0 mapping PCA-space to yRny \in \mathbb{R}^n1, with transition amplitude

yRny \in \mathbb{R}^n2

and classical transition probability yRny \in \mathbb{R}^n3. Combining variance and target relevance gives the Fraction Transition Probability

yRny \in \mathbb{R}^n4

In practice, after full-rank PCA one works in orthogonalized coordinates yRny \in \mathbb{R}^n5 and approximates yRny \in \mathbb{R}^n6 by the ordinary least squares solution

yRny \in \mathbb{R}^n7

Then yRny \in \mathbb{R}^n8 is the linear-regression coefficient on component yRny \in \mathbb{R}^n9, and the sampling vector is formed by element-wise multiplication:

P=XXT=UΣpUT,P = X X^T = U \Sigma^p U^T,0

The substantive claim of this construction is that feature subsets are biased toward principal components that both carry high variance and have strong regression coefficients. The remaining ensemble steps—bootstrap sampling, tree induction, and averaging—are identical to Breiman’s Random Forest (Xie et al., 2017).

3. Algorithmic realization of QIS and QsRF

The 2017 method decomposes into QISubspace and QsRF. QISubspace prepares the feature subsets P=XXT=UΣpUT,P = X X^T = U \Sigma^p U^T,1, while QsRF uses them inside an otherwise standard regression-forest pipeline (Xie et al., 2017). The prescribed sequence is:

  1. Input data P=XXT=UΣpUT,P = X X^T = U \Sigma^p U^T,2, target P=XXT=UΣpUT,P = X X^T = U \Sigma^p U^T,3, feature set P=XXT=UΣpUT,P = X X^T = U \Sigma^p U^T,4, ensemble size P=XXT=UΣpUT,P = X X^T = U \Sigma^p U^T,5, and subspace size P=XXT=UΣpUT,P = X X^T = U \Sigma^p U^T,6.
  2. Perform full-rank PCA to obtain P=XXT=UΣpUT,P = X X^T = U \Sigma^p U^T,7 with orthogonal columns.
  3. Compute Fraction probabilities

P=XXT=UΣpUT,P = X X^T = U \Sigma^p U^T,8

  1. Compute transition amplitudes

P=XXT=UΣpUT,P = X X^T = U \Sigma^p U^T,9

  1. Set transition probabilities Σp=diag(σ12,,σr2)\Sigma^p = \operatorname{diag}(\sigma_1^2,\dots,\sigma_r^2)0.
  2. Form

Σp=diag(σ12,,σr2)\Sigma^p = \operatorname{diag}(\sigma_1^2,\dots,\sigma_r^2)1

  1. For each Σp=diag(σ12,,σr2)\Sigma^p = \operatorname{diag}(\sigma_1^2,\dots,\sigma_r^2)2, sample without replacement Σp=diag(σ12,,σr2)\Sigma^p = \operatorname{diag}(\sigma_1^2,\dots,\sigma_r^2)3 distinct indices from Σp=diag(σ12,,σr2)\Sigma^p = \operatorname{diag}(\sigma_1^2,\dots,\sigma_r^2)4 with probabilities Σp=diag(σ12,,σr2)\Sigma^p = \operatorname{diag}(\sigma_1^2,\dots,\sigma_r^2)5 and let Σp=diag(σ12,,σr2)\Sigma^p = \operatorname{diag}(\sigma_1^2,\dots,\sigma_r^2)6 be that subset.

The ensemble then proceeds as

Σp=diag(σ12,,σr2)\Sigma^p = \operatorname{diag}(\sigma_1^2,\dots,\sigma_r^2)7

where each tree Σp=diag(σ12,,σr2)\Sigma^p = \operatorname{diag}(\sigma_1^2,\dots,\sigma_r^2)8 is built on a bootstrap sample Σp=diag(σ12,,σr2)\Sigma^p = \operatorname{diag}(\sigma_1^2,\dots,\sigma_r^2)9 and feature subset r=rank(X)r=\operatorname{rank}(X)0 (Xie et al., 2017).

The practical recommendation accompanying this design is to prepend a full-rank PCA so that the parameter-invariance assumption holds. This adds only r=rank(X)r=\operatorname{rank}(X)1 cost once, after which r=rank(X)r=\operatorname{rank}(X)2 comes from PCA and r=rank(X)r=\operatorname{rank}(X)3 from a single OLS solve in PCA space (Xie et al., 2017). The method is described as trivially parallelizable because feature subsets and trees are independent.

4. First-order theory and ensemble ambiguity

Xie and Sato provide a theoretical analysis under a simplified linear-regression model and state that the QIS strategy simultaneously increases ensemble ambiguity and decreases individual-learner expected error, thereby reducing total generalization error (Xie et al., 2017). For an average ensemble

r=rank(X)r=\operatorname{rank}(X)4

the error–variance–covariance decomposition is given as

r=rank(X)r=\operatorname{rank}(X)5

This decomposition makes explicit that reduced ensemble error is associated with smaller expected base-learner error and larger r=rank(X)r=\operatorname{rank}(X)6, described as larger ambiguity.

After PCA, with r=rank(X)r=\operatorname{rank}(X)7 the r=rank(X)r=\operatorname{rank}(X)8-th principal feature and corresponding linear-regression weight r=rank(X)r=\operatorname{rank}(X)9, a base learner on feature subset $1$0 is written as

$1$1

Assuming orthogonality so that $1$2 are unchanged by feature-subset choice, and further assuming $1$3 i.i.d., the randomness of subset selection yields

$1$4

subject to $1$5 (Xie et al., 2017).

Uniform Random Subspace sets $1$6, while QIS sets $1$7. By choosing $1$8, the analysis states that one minimizes $1$9 and simultaneously increases ρ=P/Tr(P)=UΣUT,Σ=diag(s12,,sr2),isi2=1.\rho = P / \operatorname{Tr}(P) = U \Sigma U^T,\qquad \Sigma=\operatorname{diag}(s_1^2,\dots,s_r^2),\quad \sum_i s_i^2=1.0 over the uniform choice, so QIS strictly raises ensemble ambiguity (Xie et al., 2017). Under the Gaussian prior on ρ=P/Tr(P)=UΣUT,Σ=diag(s12,,sr2),isi2=1.\rho = P / \operatorname{Tr}(P) = U \Sigma U^T,\qquad \Sigma=\operatorname{diag}(s_1^2,\dots,s_r^2),\quad \sum_i s_i^2=1.1, the marginal expected ρ=P/Tr(P)=UΣUT,Σ=diag(s12,,sr2),isi2=1.\rho = P / \operatorname{Tr}(P) = U \Sigma U^T,\qquad \Sigma=\operatorname{diag}(s_1^2,\dots,s_r^2),\quad \sum_i s_i^2=1.2 is ρ=P/Tr(P)=UΣUT,Σ=diag(s12,,sr2),isi2=1.\rho = P / \operatorname{Tr}(P) = U \Sigma U^T,\qquad \Sigma=\operatorname{diag}(s_1^2,\dots,s_r^2),\quad \sum_i s_i^2=1.3, and this is also shown to lower the expected individual-learner squared error. The stated conclusion is

ρ=P/Tr(P)=UΣUT,Σ=diag(s12,,sr2),isi2=1.\rho = P / \operatorname{Tr}(P) = U \Sigma U^T,\qquad \Sigma=\operatorname{diag}(s_1^2,\dots,s_r^2),\quad \sum_i s_i^2=1.4

in the first-order linear approximation.

A common misconception is that this result establishes a general quantum advantage. It does not: the proof concerns a first-order approximation for ensemble regression under specific orthogonality and Gaussian assumptions. The significance of the result is instead methodological: it links the quantum-inspired probability assignment to a classical bias–variance–covariance argument.

5. Empirical behavior in regression settings

The empirical evaluation in the 2017 paper uses 10 UCI regression sets, including Abalone, Crime, Forest Fires, Housing, and Wine Quality, with preprocessing by full-rank PCA and centering of ρ=P/Tr(P)=UΣUT,Σ=diag(s12,,sr2),isi2=1.\rho = P / \operatorname{Tr}(P) = U \Sigma U^T,\qquad \Sigma=\operatorname{diag}(s_1^2,\dots,s_r^2),\quad \sum_i s_i^2=1.5 so that any performance difference is due only to QIS rather than PCA itself (Xie et al., 2017). The base learners are regression trees with mean-squared-error split, no depth limit, and no min-sample splits. Performance is measured by mean square error (MSE), reported as meanρ=P/Tr(P)=UΣUT,Σ=diag(s12,,sr2),isi2=1.\rho = P / \operatorname{Tr}(P) = U \Sigma U^T,\qquad \Sigma=\operatorname{diag}(s_1^2,\dots,s_r^2),\quad \sum_i s_i^2=1.6std over 15 runs.

The default hyperparameters are ρ=P/Tr(P)=UΣUT,Σ=diag(s12,,sr2),isi2=1.\rho = P / \operatorname{Tr}(P) = U \Sigma U^T,\qquad \Sigma=\operatorname{diag}(s_1^2,\dots,s_r^2),\quad \sum_i s_i^2=1.7 trees, subspace size ρ=P/Tr(P)=UΣUT,Σ=diag(s12,,sr2),isi2=1.\rho = P / \operatorname{Tr}(P) = U \Sigma U^T,\qquad \Sigma=\operatorname{diag}(s_1^2,\dots,s_r^2),\quad \sum_i s_i^2=1.8 with ρ=P/Tr(P)=UΣUT,Σ=diag(s12,,sr2),isi2=1.\rho = P / \operatorname{Tr}(P) = U \Sigma U^T,\qquad \Sigma=\operatorname{diag}(s_1^2,\dots,s_r^2),\quad \sum_i s_i^2=1.9, bootstrap sample size equal to ρ=isi2uiui,\rho = \sum_i s_i^2 |u_i\rangle \langle u_i|,0 of training data drawn with replacement, and training set fraction ρ=isi2uiui,\rho = \sum_i s_i^2 |u_i\rangle \langle u_i|,1 (Xie et al., 2017). Under these settings, the reported averaged MSE over 10 sets is:

Method Averaged MSE over 10 sets
QsRF ρ=isi2uiui,\rho = \sum_i s_i^2 |u_i\rangle \langle u_i|,2
RF ρ=isi2uiui,\rho = \sum_i s_i^2 |u_i\rangle \langle u_i|,3

The summary given is that QsRF significantly outperforms RF on 8/10 datasets, is slightly worse on 1/10 (Facebook Metrics), and ties in 1 (Xie et al., 2017). When trees are replaced by linear regressors, described as “QIE-LR vs RE-LR,” QIS again wins on all 10.

The robustness studies vary ρ=isi2uiui,\rho = \sum_i s_i^2 |u_i\rangle \langle u_i|,4, ρ=isi2uiui,\rho = \sum_i s_i^2 |u_i\rangle \langle u_i|,5, and training fraction ρ=isi2uiui,\rho = \sum_i s_i^2 |u_i\rangle \langle u_i|,6. The reported pattern is that QsRF beats RF at every ρ=isi2uiui,\rho = \sum_i s_i^2 |u_i\rangle \langle u_i|,7, with larger gain for smaller ρ=isi2uiui,\rho = \sum_i s_i^2 |u_i\rangle \langle u_i|,8; maintains a lead for all ρ=isi2uiui,\rho = \sum_i s_i^2 |u_i\rangle \langle u_i|,9, with advantage most pronounced for small si2s_i^20; and outperforms RF for all si2s_i^21, with the gap growing as si2s_i^22 shrinks (Xie et al., 2017). This supports the paper’s practical recommendation that QsRF is particularly useful when computational budget is low or data are scarce.

6. Hybrid QsRF for qubit-efficient recommender systems

In the 2025 usage, QsRF is a hybrid quantum-classical pipeline for recommender systems rather than a PCA-weighted regression forest (Alavi et al., 30 Jul 2025). The architecture contains four stages: Dictionary Learning & Compression, Performance-Driven Importance Scoring, QAOA-Based Feature Selection with fixed qubit budget si2s_i^23, and a Classical Semi-Random Forest on 5-Dim Codes.

The input is a TF–IDF item-feature matrix si2s_i^24 with si2s_i^25 or si2s_i^26 and si2s_i^27 items (Alavi et al., 30 Jul 2025). A global dictionary si2s_i^28 is learned using a randomized SVD sketch with top-si2s_i^29 right singular vectors, preserving ui|u_i\rangle0 of the Frobenius energy, followed by Mini-Batch k-means into ui|u_i\rangle1 groups, and sparse coding per cluster via alternating LARS–Lasso updates in a K-SVD-style scheme. With ui|u_i\rangle2 atoms per cluster, the concatenated dictionary has ui|u_i\rangle3 atoms. At inference, an item row ui|u_i\rangle4 is encoded as

ui|u_i\rangle5

where ui|u_i\rangle6 contains the final ui|u_i\rangle7 atoms selected by the quantum step.

Stage 2 computes atom-wise performance weights

ui|u_i\rangle8

where ui|u_i\rangle9 is a yRny \in \mathbb{R}^n00 bootstrap of users (Alavi et al., 30 Jul 2025). The top yRny \in \mathbb{R}^n01 atoms are retained to form a candidate set, and the selection of yRny \in \mathbb{R}^n02 atoms is posed as the binary optimization

yRny \in \mathbb{R}^n03

with objective

yRny \in \mathbb{R}^n04

equivalently a dense yRny \in \mathbb{R}^n05 QUBO

yRny \in \mathbb{R}^n06

The QUBO is solved via depth-yRny \in \mathbb{R}^n07 QAOA on exactly five logical qubits, with

yRny \in \mathbb{R}^n08

initial state

yRny \in \mathbb{R}^n09

and variational state

yRny \in \mathbb{R}^n10

The yRny \in \mathbb{R}^n11 angles are tuned on the validation split by SPSA with yRny \in \mathbb{R}^n12 shots per evaluation (Alavi et al., 30 Jul 2025). If the measured bit-string satisfies the cardinality constraint, those atoms are selected; otherwise the method falls back to the classical top-yRny \in \mathbb{R}^n13 by yRny \in \mathbb{R}^n14.

The final ensemble stage is classical. Each tree is trained on a bootstrap sample of the code vectors in yRny \in \mathbb{R}^n15 and a random subset of the yRny \in \mathbb{R}^n16 features at each split. Nodes scan thresholds to maximize Gini gain or entropy, and the best split yRny \in \mathbb{R}^n17 partitions the data according to yRny \in \mathbb{R}^n18 versus yRny \in \mathbb{R}^n19 (Alavi et al., 30 Jul 2025). The ensemble contains yRny \in \mathbb{R}^n20 trees, arranged as yRny \in \mathbb{R}^n21 runs yRny \in \mathbb{R}^n22 yRny \in \mathbb{R}^n23 trees each, and each tree outputs yRny \in \mathbb{R}^n24. Final ranking uses

yRny \in \mathbb{R}^n25

with items sorted in descending order of yRny \in \mathbb{R}^n26.

The resource analysis given for this stage emphasizes exactly yRny \in \mathbb{R}^n27 logical qubits, circuit depth yRny \in \mathbb{R}^n28, and gate complexity yRny \in \mathbb{R}^n29 two-qubit gates and yRny \in \mathbb{R}^n30 single-qubit rotations, with total roughly yRny \in \mathbb{R}^n31 entangling and rotation gates plus initial Hadamards (Alavi et al., 30 Jul 2025). The paper contrasts this with competing pipelines such as MIQUBO and CAQUBO, which embed all original features onto qubits and require 130+ qubits or more.

On the QuantumCLEF ICM-150 split, the 2025 QsRF configuration with 5 qubits, yRny \in \mathbb{R}^n32 codes, 100 trees, and yRny \in \mathbb{R}^n33 reports macro nDCG@10 of yRny \in \mathbb{R}^n34, ROC-AUC of yRny \in \mathbb{R}^n35, Log-Loss of yRny \in \mathbb{R}^n36, and train+validate+test time of approximately 10 minutes wall-clock on Apple M2 (Alavi et al., 30 Jul 2025). On the same benchmark, CAQUBO with 130 qubits reports nDCG@10 yRny \in \mathbb{R}^n37, AUC yRny \in \mathbb{R}^n38, LL yRny \in \mathbb{R}^n39, and runtime of 2 hours, while MIQUBO with 130 qubits reports nDCG@10 yRny \in \mathbb{R}^n40, AUC yRny \in \mathbb{R}^n41, LL yRny \in \mathbb{R}^n42.

On ICM-500, QsRF with 5 qubits reports macro nDCG@10 yRny \in \mathbb{R}^n43, ROC-AUC yRny \in \mathbb{R}^n44, and Log-Loss yRny \in \mathbb{R}^n45, while CAQUBO with 400 qubits reports nDCG@10 yRny \in \mathbb{R}^n46, AUC yRny \in \mathbb{R}^n47, LL yRny \in \mathbb{R}^n48, and MIQUBO with 450 qubits reports nDCG@10 yRny \in \mathbb{R}^n49, AUC yRny \in \mathbb{R}^n50, LL yRny \in \mathbb{R}^n51 (Alavi et al., 30 Jul 2025). The paper interprets these results as showing that QsRF performs similarly to state-of-the-art methods while using only five qubits.

An important interpretive boundary is that the ensemble itself is not a quantum tree model. The paper explicitly states that no quantum gates or qubits are invoked in Stage 4; the “quantumness” sits entirely in the preceding feature-selection subcircuit (Alavi et al., 30 Jul 2025). This distinguishes the method from other quantum forest proposals. A related example is the kernel-based Quantum Random Forest, in which each split node is a quantum-kernel SVM and the ensemble consists of quantum decision trees trained by bagging, with a low-rank Nyström approximation used to reduce the number of kernel estimations (Srikumar et al., 2022). That model is a different architecture: the quantum component is embedded in split functions themselves rather than isolated to a front-end feature-selection routine.

Taken together, these works indicate that “QsRF” names a broader design principle: preserving the bagged-tree backend while re-engineering feature-subspace generation through either quantum-inspired probability weighting or a small-scale quantum optimization step. This suggests that the central research question is not whether forests are quantum in a categorical sense, but how structured subspace selection alters the accuracy–diversity trade-off under classical or hybrid computational constraints.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Quantum semi-Random Forest (QsRF).