Challenges
Datasets
Workspaces
Papers
Discussions
Leaderboard
Log inSign up
Challenges
Datasets
Workspaces
Papers
Discussions
Leaderboard
Blog
Job Board
Q3AS

© 2026 Aqora Quantum S.A.S.

TermsPrivacyLegal Notice

Hybrid Quantum-Classical Recurrent Models for Sarcasm Detection: A Comparative Study

Islam Djemmal, Hacene Belhadef

Published Apr 22, 2026• 0 citations
Publisher

Abstract

Sarcasm detection is a challenging task in Natural Language Processing (NLP) due to its reliance on subtle and implicit linguistic cues that are often not explicitly expressed in text. Designing models capable of capturing such nuanced patterns remains an open problem. In this work, we investigate hybrid quantum–classical recurrent architectures for sarcasm detection by conducting a comparative study of classical and quantum-enhanced sequence models, including Long Short-Term Memory (LSTM), Gated Recurrent Unit (GRU), and their quantum counterparts, Quantum LSTM (QLSTM) and Quantum GRU (QGRU).We employ a pre-trained BERT model to extract contextualized token embeddings, which are subsequently compressed through classical neural layers to ensure compatibility with Noisy Intermediate-Scale Quantum (NISQ) devices. In the proposed quantum-enhanced models, classical linear transformations within recurrent gates are replaced by Variational Quantum Circuits (VQCs), enabling the exploitation of quantum properties such as superposition and entanglement within a hybrid learning framework.Experimental results on a balanced sarcasm-labeled dataset indicate that both QLSTM and QGRU achieve performance levels comparable to their classical counterparts, despite utilizing significantly fewer trainable parameters. Notably, the quantum-enhanced models require approximately 10% of the parameters used by their classical equivalents while maintaining similar macro F1 scores. These findings suggest that hybrid quantum recurrent architectures can serve as compact and parameter-efficient alternatives to classical sequence models, highlighting their potential applicability in quantum natural language processing under near-term hardware constraints.

DOI
10.21203/rs.3.rs-9296095/v1

Related papers

Toward Quantum-Enhanced Natural Language Understanding: Sarcasm and Claim Detection with QLSTM

Pritam Pal, Dipankar Das

Traditional machine learning (ML) and deep learning (DL) models have shown effectiveness in natural language processing (NLP) tasks, such as sentiment analysis.However, they often struggle with complex linguistic structures, such as sarcasm and implicit claims.This paper introduces a Quantum Long Short-Term Memory (QLSTM) framework for detecting sarcasm and identifying claims in text, aiming to enhance the analysis of complex sentences.We evaluate four approaches: (1) classical LSTM, (2) quantum framework using QLSTM, (3) voting ensemble combining classical and quantum LSTMs, and (4) hybrid framework integrating both types.The experimental results indicate that the QLSTM approach excels in sarcasm detection, while the voting framework performs best in claim identification.

International conference Recent advances in natural language processing•Jan 1, 2025•4 citations

Mathematical Framework for Detecting Sentiments Analysis Using Quantum Computing

Anitya Kumar Gupta, Pankaj Vaidya, Anurag Rana

Sentiment analysis aims at determining the stance or point of view of a topic, author, or speaker about a certain topic, document, or event. The given paper proposes a hybrid quantum-classical model of sentiment classification, which is known as Complex-Valued Quantum-Enhanced Recurrent Neural Network (CQRNN). The model combines Quantum Long Short-Term Memory (QLSTM) and Quantum Gated Recurrent Units (QGRU) with the use of Variational Quantum Circuits (VQCs) and complex-valued embeddings designed at the level of semantic information, both in the real and imaginary domains. Experiments on benchmark sentiment datasets show that CQRNN can be fine-tuned and reach an accuracy of 85% on noisy and ambiguous data, and this is a demonstration of its strength and better ability to discriminate between similar sentiment expressions like neutral and negative expressions. The performance of quantum-inspired architectures in sentiment classification compared with the traditional models, including SVM and Random Forest, establishes the potential. The article prepares the basis of benchmarking CQRNN to the transformer-based models (BERT, RoBERTa) and implementing it on actual quantum hardware.

Journal on artificial intelligence•Jan 1, 2026•0 citations

Architecture-Dependent Utility of Variational Quantum Gates in Recurrent Weather Forecasting: A Controlled QGRU–QLSTM Evaluation

Abhishek Sunil Tiwari, Bhushan Kape, Pankaj Tyagi +2 more

Hybrid quantum recurrent models are commonly evaluated against compact classical networks, making it diffcult to determine whether observed gains arise from the variational quantum circuit (VQC) or from the surrounding recurrent architecture. This study presents an architecture and parameter-controlled evaluation of quantum gated recurrent unit (QGRU) and quantum long short-term memory (QLSTM) models for one-step-ahead meteorological forecasting. Each quantum model is compared with both a compact, approximately parameter-matched recurrent baseline and an exact classical gate-core surrogate that preserves the hidden width, recurrent equations, gate-specific pre-/post-projections, optimization protocol, and total trainable-parameter count. All models use 17 input features, 24-step histories, a chronological 80/10/10 train–validation–test split, trainingonly standardization, and ten matched random seeds. QGRU achieves an RMSE of 1.1045 ± 0.0693, reducing test RMSE by 19.01% relative to the compact GRU and by 5.47% relative to its exact 773-parameter surrogate. It also attains a lower mean best validation MSE, reaches 95% of its achievable validation improvement after 5.5 ± 0.5 epochs, and exhibits a smaller final train–validation gap. QLSTM reduces test RMSE by 24.80% relative to the compact LSTM, while its exact 1,025-parameter surrogate achieves comparable predictive performance with slightly greater validation stability. Analysis of 1,949 epoch-level records across convergence, checkpoint quality, early stopping, generalization, and runtime demonstrates that VQC utility depends on the recurrent architecture in which it is embedded. All experiments are conducted using ideal noiseless statevector simulation.

•Aug 14, 2026•0 citations

Hybrid Quantum-Classical Layers for Sentiment Analysis in Natural Language Processing

Medisetti Esther Rani, Tupakula Sai Sarnya

NLP models have shown remarkable performance for sentiment analysis and text classification tasks due to the deep neural networks and transformer architectures. However, these models typically necessitate considerable computational resources, high parameter complexity and large scale training datasets. Recently, quantum computing has emerged as a promising paradigm that can enhance machine learning systems using quantum parallelism, superposition, and entanglement. In this paper, we propose a new Hybrid Quantum-Classical NLP architecture that combines variational quantum circuit (VQC) layers with classical neural network layers for effective sentiment analysis. The proposed framework combines classical embedding and LSTM layers with a quantum-enhanced variational layer to improve feature representation and classification performance. The proposed framework combines classical embedding and LSTM layers with a quantum-enhanced variational layer to enhance the feature representation and classification performance. The quantum layer is realized via parameterized quantum circuits and optimized using hybrid gradient-based learning techniques. The effectiveness of The proposed framework combines classical embedding and LSTM layers with a quantum-enhanced variational layer to enhance the feature representation and classification performance. The quantum layer is realized via parameterized quantum circuits and optimized using hybrid gradient-based learning techniques. The effectiveness of the proposed model is evaluated on the benchmark sentiment analysis datasets such as IMDb and SST-2 experiments. The hybrid architecture is compared with standard deep learning models in terms of accuracy, training complexity and parameter efficiency. The experimental results show that the proposed quantum-enhanced model can achieve competitive classification accuracy while reducing model complexity and improving contextual semantic learning.

International Conference on Natural Language Processing and Computer Vision (ICNPCV)•Jul 1, 2026•0 citations

Quantum Long Short-Term Memory

Samuel Yen-Chi Chen, Shinjae Yoo, Yao-Lung L. Fang

Long short-term memory (LSTM) is a kind of recurrent neural networks (RNN) for sequence and temporal dependency data modeling and its effectiveness has been extensively established. In this work, we propose a hybrid quantum-classical model of LSTM, which we dub QLSTM. We demonstrate that the proposed model successfully learns several kinds of temporal data. In particular, we show that for certain testing cases, this quantum version of LSTM converges faster, or equivalently, reaches a better accuracy, than its classical counterpart. Due to the variational nature of our approach, the requirements on qubit counts and circuit depth are eased, and our work thus paves the way toward implementing machine learning algorithms for sequence modeling such as natural language processing, speech recognition on noisy intermediate-scale quantum (NISQ) devices.

IEEE International Conference on Acoustics Speech and Signal Processing•Apr 27, 2022•370 citations

Quantum Natural Language Processing Using Hybrid AI Algorithms: A Variational Quantum–Classical Framework for Efficient Text Classification

P. Anitha

Quantum Natural Language Processing (QNLP) represents a novel interdisciplinaryparadigm that integrates Quantum Computing with Natural Language Processing toenhance semantic modeling and computational efficiency. Despite the remarkable successof transformer-based architectures such as BERT and GPT, classical NLP systems requirelarge-scale computational resources and extensive parameter tuning. This paper proposesa hybrid quantum–classical architecture employing parameterized quantum circuits (PQCs)integrated with classical embedding layers for text classification tasks. The frameworkutilizes classical preprocessing, quantum state encoding, variational optimization, andclassical post-measurement classification. Experimental results on benchmark sentimentanalysis datasets demonstrate competitive accuracy with significantly reduced parametercomplexity. The findings indicate that hybrid QNLP models provide enhanced semanticcompositionality and efficient representation in Hilbert space while remaining feasiblewithin Noisy Intermediate-Scale Quantum (NISQ) constraints

International Journal For Multidisciplinary Research•Mar 4, 2026•0 citations
Sarcasm detection is a challenging task in Natural Language Processing (NLP) due to its reliance on subtle and implicit linguistic cues that are often not explicitly expressed in text. Designing models capable of capturing such nuanced patterns remains an open problem. In this work, we investigate hybrid quantum–classical recurrent architectures for sarcasm detection by conducting a comparative study of classical and quantum-enhanced sequence models, including Long Short-Term Memory (LSTM), Gated Recurrent Unit (GRU), and their quantum counterparts, Quantum LSTM (QLSTM) and Quantum GRU (QGRU).We employ a pre-trained BERT model to extract contextualized token embeddings, which are subsequently compressed through classical neural layers to ensure compatibility with Noisy Intermediate-Scale Quantum (NISQ) devices. In the proposed quantum-enhanced models, classical linear transformations within recurrent gates are replaced by Variational Quantum Circuits (VQCs), enabling the exploitation of quantum properties such as superposition and entanglement within a hybrid learning framework.Experimental results on a balanced sarcasm-labeled dataset indicate that both QLSTM and QGRU achieve performance levels comparable to their classical counterparts, despite utilizing significantly fewer trainable parameters. Notably, the quantum-enhanced models require approximately 10% of the parameters used by their classical equivalents while maintaining similar macro F1 scores. These findings suggest that hybrid quantum recurrent architectures can serve as compact and parameter-efficient alternatives to classical sequence models, highlighting their potential applicability in quantum natural language processing under near-term hardware constraints.
Traditional machine learning (ML) and deep learning (DL) models have shown effectiveness in natural language processing (NLP) tasks, such as sentiment analysis.However, they often struggle with complex linguistic structures, such as sarcasm and implicit claims.This paper introduces a Quantum Long Short-Term Memory (QLSTM) framework for detecting sarcasm and identifying claims in text, aiming to enhance the analysis of complex sentences.We evaluate four approaches: (1) classical LSTM, (2) quantum framework using QLSTM, (3) voting ensemble combining classical and quantum LSTMs, and (4) hybrid framework integrating both types.The experimental results indicate that the QLSTM approach excels in sarcasm detection, while the voting framework performs best in claim identification.
Sentiment analysis aims at determining the stance or point of view of a topic, author, or speaker about a certain topic, document, or event. The given paper proposes a hybrid quantum-classical model of sentiment classification, which is known as Complex-Valued Quantum-Enhanced Recurrent Neural Network (CQRNN). The model combines Quantum Long Short-Term Memory (QLSTM) and Quantum Gated Recurrent Units (QGRU) with the use of Variational Quantum Circuits (VQCs) and complex-valued embeddings designed at the level of semantic information, both in the real and imaginary domains. Experiments on benchmark sentiment datasets show that CQRNN can be fine-tuned and reach an accuracy of 85% on noisy and ambiguous data, and this is a demonstration of its strength and better ability to discriminate between similar sentiment expressions like neutral and negative expressions. The performance of quantum-inspired architectures in sentiment classification compared with the traditional models, including SVM and Random Forest, establishes the potential. The article prepares the basis of benchmarking CQRNN to the transformer-based models (BERT, RoBERTa) and implementing it on actual quantum hardware.
Hybrid quantum recurrent models are commonly evaluated against compact classical networks, making it diffcult to determine whether observed gains arise from the variational quantum circuit (VQC) or from the surrounding recurrent architecture. This study presents an architecture and parameter-controlled evaluation of quantum gated recurrent unit (QGRU) and quantum long short-term memory (QLSTM) models for one-step-ahead meteorological forecasting. Each quantum model is compared with both a compact, approximately parameter-matched recurrent baseline and an exact classical gate-core surrogate that preserves the hidden width, recurrent equations, gate-specific pre-/post-projections, optimization protocol, and total trainable-parameter count. All models use 17 input features, 24-step histories, a chronological 80/10/10 train–validation–test split, trainingonly standardization, and ten matched random seeds. QGRU achieves an RMSE of 1.1045 ± 0.0693, reducing test RMSE by 19.01% relative to the compact GRU and by 5.47% relative to its exact 773-parameter surrogate. It also attains a lower mean best validation MSE, reaches 95% of its achievable validation improvement after 5.5 ± 0.5 epochs, and exhibits a smaller final train–validation gap. QLSTM reduces test RMSE by 24.80% relative to the compact LSTM, while its exact 1,025-parameter surrogate achieves comparable predictive performance with slightly greater validation stability. Analysis of 1,949 epoch-level records across convergence, checkpoint quality, early stopping, generalization, and runtime demonstrates that VQC utility depends on the recurrent architecture in which it is embedded. All experiments are conducted using ideal noiseless statevector simulation.
NLP models have shown remarkable performance for sentiment analysis and text classification tasks due to the deep neural networks and transformer architectures. However, these models typically necessitate considerable computational resources, high parameter complexity and large scale training datasets. Recently, quantum computing has emerged as a promising paradigm that can enhance machine learning systems using quantum parallelism, superposition, and entanglement. In this paper, we propose a new Hybrid Quantum-Classical NLP architecture that combines variational quantum circuit (VQC) layers with classical neural network layers for effective sentiment analysis. The proposed framework combines classical embedding and LSTM layers with a quantum-enhanced variational layer to improve feature representation and classification performance. The proposed framework combines classical embedding and LSTM layers with a quantum-enhanced variational layer to enhance the feature representation and classification performance. The quantum layer is realized via parameterized quantum circuits and optimized using hybrid gradient-based learning techniques. The effectiveness of The proposed framework combines classical embedding and LSTM layers with a quantum-enhanced variational layer to enhance the feature representation and classification performance. The quantum layer is realized via parameterized quantum circuits and optimized using hybrid gradient-based learning techniques. The effectiveness of the proposed model is evaluated on the benchmark sentiment analysis datasets such as IMDb and SST-2 experiments. The hybrid architecture is compared with standard deep learning models in terms of accuracy, training complexity and parameter efficiency. The experimental results show that the proposed quantum-enhanced model can achieve competitive classification accuracy while reducing model complexity and improving contextual semantic learning.
Long short-term memory (LSTM) is a kind of recurrent neural networks (RNN) for sequence and temporal dependency data modeling and its effectiveness has been extensively established. In this work, we propose a hybrid quantum-classical model of LSTM, which we dub QLSTM. We demonstrate that the proposed model successfully learns several kinds of temporal data. In particular, we show that for certain testing cases, this quantum version of LSTM converges faster, or equivalently, reaches a better accuracy, than its classical counterpart. Due to the variational nature of our approach, the requirements on qubit counts and circuit depth are eased, and our work thus paves the way toward implementing machine learning algorithms for sequence modeling such as natural language processing, speech recognition on noisy intermediate-scale quantum (NISQ) devices.
Quantum Natural Language Processing (QNLP) represents a novel interdisciplinaryparadigm that integrates Quantum Computing with Natural Language Processing toenhance semantic modeling and computational efficiency. Despite the remarkable successof transformer-based architectures such as BERT and GPT, classical NLP systems requirelarge-scale computational resources and extensive parameter tuning. This paper proposesa hybrid quantum–classical architecture employing parameterized quantum circuits (PQCs)integrated with classical embedding layers for text classification tasks. The frameworkutilizes classical preprocessing, quantum state encoding, variational optimization, andclassical post-measurement classification. Experimental results on benchmark sentimentanalysis datasets demonstrate competitive accuracy with significantly reduced parametercomplexity. The findings indicate that hybrid QNLP models provide enhanced semanticcompositionality and efficient representation in Hilbert space while remaining feasiblewithin Noisy Intermediate-Scale Quantum (NISQ) constraints