English

Comparative study of the ans\"atze in quantum language models

Quantum Physics 2025-03-03 v1

Abstract

Quantum language models are the alternative to classical language models, which borrow concepts and methods from quantum machine learning and computational linguistics. While several quantum natural language processing (QNLP) methods and frameworks exist for text classification and generation, there is a lack of systematic study to compare the performance across various ans\"atze, in terms of their hyperparameters and classical and quantum methods to implement them. Here, we evaluate the performance of quantum natural language processing models based on these ans\"atze at different levels in text classification tasks. We perform a comparative study and optimize the QNLP models by fine-tuning several critical hyperparameters. Our results demonstrate how the balance between simplification and expressivity affects model performance. This study provides extensive data to improve our understanding of QNLP models and opens the possibility of developing better QNLP algorithms.

Keywords

Cite

@article{arxiv.2502.20744,
  title  = {Comparative study of the ans\"atze in quantum language models},
  author = {Jordi Del Castillo and Dan Zhao and Zongrui Pei},
  journal= {arXiv preprint arXiv:2502.20744},
  year   = {2025}
}

Comments

10 pages, 6 figures

R2 v1 2026-06-28T22:01:13.282Z