Papers
Topics
Authors
Recent
Search
2000 character limit reached

Fed-QK-LSTM: Quantum Kernel LSTM for HAR

Updated 4 July 2026
  • The paper presents Fed-QK-LSTM, a novel architecture that combines quantum kernel methods with LSTM for enhanced human activity recognition.
  • It employs a DeepConv-QK-LSTM design that utilizes local convolutional layers and kernelized recurrent gates, coordinated via federated averaging for distributed learning.
  • Experimental results on the RealWorld HAR dataset indicate a 5% accuracy boost with 32% fewer parameters compared to classical federated LSTM models.

Searching arXiv for the specified paper and closely related federated quantum LSTM work. Federated Quantum Kernel-Based Long Short-term Memory (Fed-QK-LSTM) is a federated learning framework introduced for human activity recognition (HAR) that integrates quantum kernel methods with Long Short-term Memory and combines them with a client-server training regime based on Federated Averaging (Hsu et al., 8 Aug 2025). In the reported formulation, each client hosts a DeepConv-QK-LSTM model in which convolutional layers perform local temporal feature extraction and a shallow quantum-kernel-enhanced LSTM models longer-range dependencies in multivariate time-series data. The framework is presented as a privacy-preserving and communication-efficient approach for HAR in privacy-sensitive and edge-computing environments, with the additional claim that quantum kernelization enables complex non-linear modeling with fewer trainable parameters than a purely classical counterpart (Hsu et al., 8 Aug 2025).

1. Definition and problem setting

Fed-QK-LSTM was proposed in the paper "Federated Quantum Kernel-Based Long Short-term Memory for Human Activity Recognition" (Hsu et al., 8 Aug 2025). The stated objective is to enhance HAR in privacy-sensitive environments while leveraging quantum computing in distributed learning systems. The framework targets multivariate time-series sensor data and is evaluated on the RealWorld HAR dataset, described as having a sampling rate of 50 Hz and data collected from wrist and ankle accelerometers and gyroscopes, with a typical setup of 15 subjects, 6 activities, and time windows of 2 s length (Hsu et al., 8 Aug 2025).

The framework combines three elements. First, convolutional layers are used for efficient local pattern capture. Second, an LSTM layer is modified so that its gate computations are driven by quantum kernel expansions rather than the standard affine maps. Third, local client training is coordinated by a federated protocol in which model parameters are aggregated centrally by FedAvg (Hsu et al., 8 Aug 2025).

This architecture places Fed-QK-LSTM at the intersection of federated learning, hybrid quantum-classical sequence modeling, and sensor-based HAR. A plausible implication is that the framework is designed to reconcile three constraints simultaneously: non-IID or distributed data ownership, temporal dependence in sensor streams, and limited quantum resources.

2. Client-side DeepConv-QK-LSTM architecture

On each client, the local model is a DeepConv-QK-LSTM consisting of a stack of LL one-dimensional convolutional layers followed by a shallow QK-LSTM layer (Hsu et al., 8 Aug 2025). The input is a multivariate time series

X=[x1,…,xT]∈RT×d.X=[x_1,\dots,x_T]\in\mathbb R^{T\times d}.

For the convolutional stack, the reported layerwise computation is

$h_t^{(l,c)} = \mathrm{ReLU}\Bigl(\sum_{i=0}^{K-1}\sum_{c'=1}^{C^{(l-1)} w_{i,c'}^{(l,c)}\,h_{t+i}^{(l-1,c')} + b^{(l,c)}\Bigr),$

with final representation ϕ(xt)∈Rp\phi(x_t)\in\mathbb R^p (Hsu et al., 8 Aug 2025). A second equivalent formulation is also given: ht(0,c)=xt,h_t^{(0,c)}=x_t, and, for l=1,…,Ll=1,\dots,L, channels k=1,…,C(l)k=1,\dots,C^{(l)},

$h_t^{(l,k)} = \mathrm{ReLU}\Bigl(\sum_{i=0}^{K-1}\sum_{c=1}^{C^{(l-1)} w_{i,c}^{(l,k)}\,h_{t+i}^{(l-1,c)} + b^{(l,k)}\Bigr).$

The output is

ϕ(xt)=[ ht(L,1),…,ht(L,C(L))]∈Rp.\phi(x_t)=[\,h_t^{(L,1)},\dots,h_t^{(L,C^{(L)})}]\in\mathbb R^p.

The recurrent stage is explicitly shallow. At time step tt, the model forms

X=[x1,…,xT]∈RT×d.X=[x_1,\dots,x_T]\in\mathbb R^{T\times d}.0

Instead of classical gate-affine maps, each gate uses a kernel expansion: X=[x1,…,xT]∈RT×d.X=[x_1,\dots,x_T]\in\mathbb R^{T\times d}.1 Each gate has its own trainable coefficients X=[x1,…,xT]∈RT×d.X=[x_1,\dots,x_T]\in\mathbb R^{T\times d}.2 and quantum kernel X=[x1,…,xT]∈RT×d.X=[x_1,\dots,x_T]\in\mathbb R^{T\times d}.3 (Hsu et al., 8 Aug 2025).

For comparison, the paper also reports the standard LSTM gate equations: X=[x1,…,xT]∈RT×d.X=[x_1,\dots,x_T]\in\mathbb R^{T\times d}.4 Fed-QK-LSTM replaces the linear maps X=[x1,…,xT]∈RT×d.X=[x_1,\dots,x_T]\in\mathbb R^{T\times d}.5 by kernel sums (Hsu et al., 8 Aug 2025).

Architecturally, the reported significance is that the convolutional front end captures local temporal structure, allowing a shallow QK-LSTM to focus on long-range dependencies in HAR data. The paper further states that the quantum kernel method captures complex non-linear relationships in multivariate time-series data with fewer trainable parameters (Hsu et al., 8 Aug 2025).

3. Quantum kernel formalism and its role in the recurrent cell

The quantum component is defined through a quantum feature map

X=[x1,…,xT]∈RT×d.X=[x_1,\dots,x_T]\in\mathbb R^{T\times d}.6

implemented by an embedding circuit X=[x1,…,xT]∈RT×d.X=[x_1,\dots,x_T]\in\mathbb R^{T\times d}.7 using angle encoding with variational parameters X=[x1,…,xT]∈RT×d.X=[x_1,\dots,x_T]\in\mathbb R^{T\times d}.8 (Hsu et al., 8 Aug 2025). The explicit kernel is

X=[x1,…,xT]∈RT×d.X=[x_1,\dots,x_T]\in\mathbb R^{T\times d}.9

The reported circuit-level procedure is:

  1. Prepare $h_t^{(l,c)} = \mathrm{ReLU}\Bigl(\sum_{i=0}^{K-1}\sum_{c'=1}^{C^{(l-1)} w_{i,c'}^{(l,c)}\,h_{t+i}^{(l-1,c')} + b^{(l,c)}\Bigr),$0.
  2. Prepare $h_t^{(l,c)} = \mathrm{ReLU}\Bigl(\sum_{i=0}^{K-1}\sum_{c'=1}^{C^{(l-1)} w_{i,c'}^{(l,c)}\,h_{t+i}^{(l-1,c')} + b^{(l,c)}\Bigr),$1 similarly.
  3. Evaluate the overlap via a SWAP test or direct adjoint approach:

$h_t^{(l,c)} = \mathrm{ReLU}\Bigl(\sum_{i=0}^{K-1}\sum_{c'=1}^{C^{(l-1)} w_{i,c'}^{(l,c)}\,h_{t+i}^{(l-1,c')} + b^{(l,c)}\Bigr),$2

  1. Square the magnitude to obtain $h_t^{(l,c)} = \mathrm{ReLU}\Bigl(\sum_{i=0}^{K-1}\sum_{c'=1}^{C^{(l-1)} w_{i,c'}^{(l,c)}\,h_{t+i}^{(l-1,c')} + b^{(l,c)}\Bigr),$3 (Hsu et al., 8 Aug 2025).

Once $h_t^{(l,c)} = \mathrm{ReLU}\Bigl(\sum_{i=0}^{K-1}\sum_{c'=1}^{C^{(l-1)} w_{i,c'}^{(l,c)}\,h_{t+i}^{(l-1,c')} + b^{(l,c)}\Bigr),$4 is available for support vectors $h_t^{(l,c)} = \mathrm{ReLU}\Bigl(\sum_{i=0}^{K-1}\sum_{c'=1}^{C^{(l-1)} w_{i,c'}^{(l,c)}\,h_{t+i}^{(l-1,c')} + b^{(l,c)}\Bigr),$5, the gate activations follow the kernelized formulas above. The variational parameters $h_t^{(l,c)} = \mathrm{ReLU}\Bigl(\sum_{i=0}^{K-1}\sum_{c'=1}^{C^{(l-1)} w_{i,c'}^{(l,c)}\,h_{t+i}^{(l-1,c')} + b^{(l,c)}\Bigr),$6 inside $h_t^{(l,c)} = \mathrm{ReLU}\Bigl(\sum_{i=0}^{K-1}\sum_{c'=1}^{C^{(l-1)} w_{i,c'}^{(l,c)}\,h_{t+i}^{(l-1,c')} + b^{(l,c)}\Bigr),$7 may be fixed or jointly trained by back-propagating gradients through kernel estimation via parameter-shift rules (Hsu et al., 8 Aug 2025).

The experimental setup further specifies that the kernel circuits are built from Block-Product State (BPS) embeddings requiring only a few qubits and shallow depth to accommodate NISQ-era devices, with simulation performed via PennyLane + PyTorch (Hsu et al., 8 Aug 2025). In this form, Fed-QK-LSTM is not a fully quantum recurrent model in which all recurrent dynamics are encoded directly in quantum hardware; rather, the reported design is a hybrid model in which the quantum contribution appears through kernel evaluation inside otherwise classical recurrent updates. This distinction is important because it determines both the communication format and the hardware assumptions.

4. Federated optimization and communication protocol

The federated workflow is described at the block level for one communication round (Hsu et al., 8 Aug 2025). On the client side, for $h_t^{(l,c)} = \mathrm{ReLU}\Bigl(\sum_{i=0}^{K-1}\sum_{c'=1}^{C^{(l-1)} w_{i,c'}^{(l,c)}\,h_{t+i}^{(l-1,c')} + b^{(l,c)}\Bigr),$8, the process is:

  1. Receive global model parameters $h_t^{(l,c)} = \mathrm{ReLU}\Bigl(\sum_{i=0}^{K-1}\sum_{c'=1}^{C^{(l-1)} w_{i,c'}^{(l,c)}\,h_{t+i}^{(l-1,c')} + b^{(l,c)}\Bigr),$9.
  2. Locally train DeepConv-QK-LSTM on private data ϕ(xt)∈Rp\phi(x_t)\in\mathbb R^p0 for ϕ(xt)∈Rp\phi(x_t)\in\mathbb R^p1 epochs, updating ϕ(xt)∈Rp\phi(x_t)\in\mathbb R^p2.
  3. Send ϕ(xt)∈Rp\phi(x_t)\in\mathbb R^p3 to the server.

On the server side, the process is:

  1. Collect ϕ(xt)∈Rp\phi(x_t)\in\mathbb R^p4.
  2. Aggregate by Federated Averaging:

ϕ(xt)∈Rp\phi(x_t)\in\mathbb R^p5

  1. Broadcast updated ϕ(xt)∈Rp\phi(x_t)\in\mathbb R^p6 back to clients (Hsu et al., 8 Aug 2025).

The local client objective is

ϕ(xt)∈Rp\phi(x_t)\in\mathbb R^p7

where ϕ(xt)∈Rp\phi(x_t)\in\mathbb R^p8 is cross-entropy for HAR classification and ϕ(xt)∈Rp\phi(x_t)\in\mathbb R^p9 (Hsu et al., 8 Aug 2025). After ht(0,c)=xt,h_t^{(0,c)}=x_t,0 epochs of SGD/Adam, the server performs FedAvg using the same aggregation equation.

The framework’s privacy claim is narrowly specified. Raw sensor data never leaves the client, and only real-valued model parameters and kernel coefficients ht(0,c)=xt,h_t^{(0,c)}=x_t,1 are transmitted (Hsu et al., 8 Aug 2025). The paper further states that the kernel-based feature map allows highly expressive models with compact parameter vectors, reducing communication payload. This should not be conflated with a formal differential privacy guarantee, because no additive DP mechanism is specified in the Fed-QK-LSTM description.

A useful comparison is provided by the related paper "A Privacy-Preserving Federated Framework with Hybrid Quantum-Enhanced Learning for Financial Fraud Detection" (Sawaika et al., 15 Jul 2025). That work uses a quantum-enhanced LSTM and augments federated training with "FedRansel," a randomized subset-sharing scheme in which only sampled parameters are exchanged, explicitly noting that no additive DP noise is used but that ht(0,c)=xt,h_t^{(0,c)}=x_t,2 DP can be combined at the client side. This suggests that federated quantum sequence models can differ substantially in what they mean by privacy preservation: in Fed-QK-LSTM it is primarily data locality, whereas in the fraud-detection framework it also includes an explicit anti-poisoning and anti-inference aggregation mechanism (Sawaika et al., 15 Jul 2025).

5. Experimental configuration and reported performance

The reported client and communication settings are ht(0,c)=xt,h_t^{(0,c)}=x_t,3 clients and local epochs ht(0,c)=xt,h_t^{(0,c)}=x_t,4 (Hsu et al., 8 Aug 2025). The batch size is noted as not specified and typically 32 or 64. The model hyperparameters are:

  • Convolution: 4 layers, each with 64 filters, kernel size ht(0,c)=xt,h_t^{(0,c)}=x_t,5
  • QK-LSTM: 2 layers, each 64 units
  • Optimizer: Adam with learning rate ht(0,c)=xt,h_t^{(0,c)}=x_t,6, weight decay ht(0,c)=xt,h_t^{(0,c)}=x_t,7, dropout 0.5 (Hsu et al., 8 Aug 2025)

The principal reported trends are that, as ht(0,c)=xt,h_t^{(0,c)}=x_t,8 grows, test accuracy, precision, and recall still improve but with diminishing returns, and that increasing ht(0,c)=xt,h_t^{(0,c)}=x_t,9 accelerates convergence at the expense of local computation (Hsu et al., 8 Aug 2025).

The paper reports a direct ablation against a classical federated LSTM on the RealWorld HAR dataset for 3 clients and 4 local epochs (Hsu et al., 8 Aug 2025):

Metric Fed-LSTM Fed-QK-LSTM
Accuracy 0.90 0.95
Precision 0.95 0.97
Recall 0.94 0.97
F1-score 0.94 0.97
Trainable Params 202,696 137,996

The stated summary is that Fed-QK-LSTM attains higher accuracy l=1,…,Ll=1,\dots,L0 with 32% fewer parameters (Hsu et al., 8 Aug 2025). Within the paper’s framing, this result underwrites the claim that quantum kernelization can improve predictive performance while reducing the trainable parameter count.

The resource assumptions are also part of the experimental picture. Because the kernel circuits use BPS embeddings requiring only a few qubits and shallow depth, the model is positioned as viable for scarce quantum devices and near-term hardware constraints, while simulations are performed through PennyLane + PyTorch (Hsu et al., 8 Aug 2025).

6. Interpretation, applicability, and relation to adjacent federated quantum LSTM models

Fed-QK-LSTM is presented as suitable for privacy-sensitive HAR in real-world applications, especially in edge-computing environments and on scarce quantum devices (Hsu et al., 8 Aug 2025). The stated rationale is twofold: the recurrent component is shallow, and the quantum kernels are shallow enough to fit resource-constrained edge devices equipped with small QPUs or quantum simulators. The federated design is also described as supporting asynchronous updates and heterogeneous client capabilities (Hsu et al., 8 Aug 2025).

A recurring misconception in discussions of hybrid quantum sequence models is that all such systems implement quantum gates directly as replacements for recurrent state transitions. Fed-QK-LSTM does not follow that pattern. Its reported formulation uses quantum kernels inside gate computations, whereas the related fraud-detection framework in (Sawaika et al., 15 Jul 2025) replaces each of the four classical LSTM gates with a small variational quantum circuit and measures expectation values l=1,…,Ll=1,\dots,L1 to produce l=1,…,Ll=1,\dots,L2, l=1,…,Ll=1,\dots,L3, l=1,…,Ll=1,\dots,L4, and l=1,…,Ll=1,\dots,L5. The two approaches therefore represent different design points within hybrid quantum-enhanced recurrent learning: kernelized recurrence in one case, direct VQC-gated recurrence in the other.

Another misconception is that federated privacy claims imply resistance to all inference or poisoning attacks. In the Fed-QK-LSTM description, the concrete privacy statement is limited to keeping raw sensor data on device and exchanging only real-valued parameters and kernel coefficients (Hsu et al., 8 Aug 2025). By contrast, the financial fraud framework explicitly introduces FedRansel to defend against poisoning and inference attacks, reporting that without FedRansel there is up to 6% degradation in Accuracy and 5% in AUC, while with FedRansel this is reduced to approximately 2% and 1% degradation (Sawaika et al., 15 Jul 2025). This comparison suggests that privacy preservation, communication efficiency, and robustness should be treated as related but distinct properties.

In summary, the reported contribution of Fed-QK-LSTM is the combination of convolutional pruning of local time-series structure, quantum-kernel-powered LSTM gates, and federated averaging into a single HAR pipeline (Hsu et al., 8 Aug 2025). The framework’s significance lies not in claiming a general solution to federated quantum learning, but in specifying one concrete hybrid architecture that, on the RealWorld HAR benchmark, improves over a classical federated LSTM while remaining compatible with shallow, near-term quantum resources.

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 Federated Quantum Kernel-Based Long Short-term Memory (Fed-QK-LSTM).