International Conference on Multidisciplinary Research and Innovations in Engineering (MRIE)
A Hybrid Quantum-Classical Language Model for Text Generation: A Case Study on The Gift of the Magi
Aadrian Routh, Juhi M Singh
Abstract
This paper presents a hybrid quantum-classical language model for text generation, evaluated through a detailed case study of O. Henry's classic short story, The Gift of the Magi. The model integrates a classical transformer with a quantum generator to enhance the extraction of abstract narrative features. Our system architecture includes stages for input tokenization, contextual embedding through multi-head attention, quantumenhanced feature extraction using a parameterized quantum circuit, and output refinement through a classical discriminator. Quantitative evaluations using the BLEU score, besides qualitative analysis, reveal that while the hybrid approach generates syntactically coherent text, it currently falls short in capturing the nuanced symbolic and emotional depth of the original narrative. The findings show the present limitations of quantum-enhanced language models and point towards future research directions in refining quantum circuit designs, reducing noise, and improving integration strategies to fully exploit the potential of quantum computing in natural language processing.