arXiv:2609.10089cs.LGSep 2026

Manuscript Offprint

arXiv:2609.10089

Hybrid Quantum-Classical NLP Classification with Compact Semantic Representations: An Experimental Analysis of Representation Compression

Ali Hassan, Zijia Zhao, Maha A. Metawei

Abstract

Large language and sentence-embedding models provide rich semantic representations, but their high dimensionality creates a fundamental challenge for near-term quantum machine learning (QML), where quantum circuits can directly process only a limited number of input features. This work investigates a hybrid quantum-classical pipeline that transforms high-dimensional sentence embeddings into compact representations suitable for variational quantum classification. The proposed workflow combines a pretrained sentence-embedding model, dimensionality reduction, angle encoding, a variational quantum circuit (VQC), and a classical decision layer. Three dimensionality-reduction techniques are systematically investigated: principal component analysis (PCA), neighborhood components analysis (NCA), and linear discriminant analysis (LDA), enabling a comparison of unsupervised and supervised approaches to quantum-compatible representation learning. Using the TREC question-classification dataset, we study the relationship between representation dimensionality, information retention, qubit count, and classification performance. Preliminary PCA-based experiments show a clear information bottleneck under aggressive compression: reducing 768-dimensional sentence embeddings to 3, 4, 5, and 8 dimensions retains approximately 8.2%, 10.2%, 11.9%, and 16.4% of the variance, respectively, while the corresponding preliminary classification accuracies are 50.3%, 51.2%, 57.9%, and 63.4%. In contrast, supervised reduction proves far more efficient: LDA reaches 85.3% accuracy and NCA reaches 83.1% accuracy using only 5 dimensions, both validated under a leakage-free cross-validation protocol and comparable to a full 384-dimensional classical baseline (85.1%). These findings show that supervised dimensionality reduction preserves task-relevant information far more effectively than variance-based compression, and motivate a systematic evaluation against matched classical baselines and larger quantum representations. The study aims to characterize the practical operating regime of hybrid quantum-classical NLP models and to assess the impact of representation compression without assuming quantum advantage a priori.

1 Introduction

Natural language processing (NLP) systems increasingly rely on high-dimensional semantic representations produced by pretrained language models. Sentence embeddings provide a convenient interface between modern language models and downstream classification algorithms, but their dimensionality can make them difficult to integrate with near-term quantum machine learning (QML) models. A quantum circuit with nn qubits provides a Hilbert space of dimension 2n2^n, yet the number of directly encoded classical features is typically constrained by the selected encoding strategy and circuit architecture.

This creates a central question for hybrid quantum-classical NLP: how much semantic information can be compressed into a quantum-compatible representation without making classification performance unacceptable? This paper investigates this question using a hybrid pipeline consisting of sentence embeddings, dimensionality reduction, quantum feature encoding, and a variational quantum classifier. Rather than claiming quantum advantage from classification accuracy alone, the study explicitly separates the effects of classical representation compression from those of the quantum model.