Open Access iconOpen Access

ARTICLE

Beyond Classical Positional Encodings: A Learnable QFT-Inspired Framework for Transformer Language Models

Sara Tehsin1, Tallha Akram2,*, Syed Rameez Naqvi3, Meshal Alharbi4, Abdulrahman Alabduljabbar2

1 Faculty of Informatics, Kaunas University of Technology, Kaunas, Lithuania
2 Dept. Information Systems, College of Computer Engineering and Sciences, Prince Sattam bin Abdulaziz University, Al-Kharj, Saudi Arabia
3 Dept. Computer Science, Tulane University, New Orleans, LA, USA
4 Department of Computer Science, College of Computer Engineering and Sciences, Prince Sattam bin Abdulaziz University, Al-Kharj, Saudi Arabia

* Corresponding Author: Tallha Akram. Email: email

Computers, Materials & Continua 2026, 88(3), 6 https://doi.org/10.32604/cmc.2026.081304

Abstract

Transformers have become the dominant architecture for sequence modeling in natural language processing; however, their effectiveness critically depends on how positional information is encoded. Conventional positional encodings, while effective, may have limited structural flexibility for capturing complex global sequence relationships. Recent quantum-inspired approaches have sought to address this limitation, yet many either oversimplify quantum principles or introduce substantial computational or hardware overhead. We introduce a novel Quantum Fourier Transform (QFT)-inspired positional encoding scheme for transformers, motivated by the structured frequency representation of the QFT. Unlike prior approaches that either emulate quantum operations superficially or require complex circuit constructions, the proposed method provides a learnable hybrid encoding that preserves quantum-inspired structure while remaining aligned with hardware-efficient circuit primitives and structurally compatible with future near-term quantum implementations. Experiments on WikiText-103 indicate that the proposed encoding achieves competitive perplexity, improved robustness to input scrambling, and stable training behavior relative to alternative quantum-inspired baselines under the evaluated settings. Preliminary circuit-level simulations further suggest favorable noise resilience of the associated encoding primitives. These findings support the potential utility of incorporating quantum-inspired design principles into deep learning architectures and provide a foundation for future exploration at the interface of quantum computing and transformer-based natural language processing (NLP).

Keywords

LLMs; positional encoding; Quantum Fourier Transform; positional embeddings; hybrid quantum-classical models; near-term quantum devices; quantum transformer

Cite This Article

APA Style
Tehsin, S., Akram, T., Naqvi, S.R., Alharbi, M., Alabduljabbar, A. (2026). Beyond Classical Positional Encodings: A Learnable QFT-Inspired Framework for Transformer Language Models. Computers, Materials & Continua, 88(3), 6. https://doi.org/10.32604/cmc.2026.081304
Vancouver Style
Tehsin S, Akram T, Naqvi SR, Alharbi M, Alabduljabbar A. Beyond Classical Positional Encodings: A Learnable QFT-Inspired Framework for Transformer Language Models. Comput Mater Contin. 2026;88(3):6. https://doi.org/10.32604/cmc.2026.081304
IEEE Style
S. Tehsin, T. Akram, S. R. Naqvi, M. Alharbi, and A. Alabduljabbar, “Beyond Classical Positional Encodings: A Learnable QFT-Inspired Framework for Transformer Language Models,” Comput. Mater. Contin., vol. 88, no. 3, pp. 6, 2026. https://doi.org/10.32604/cmc.2026.081304



cc Copyright © 2026 The Author(s). Published by Tech Science Press.
This work is licensed under a Creative Commons Attribution 4.0 International License , which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
  • 264

    View

  • 46

    Download

  • 0

    Like

Share Link