Quantum Large Language Models via Tensor Network Disentanglers

Borja Aizpurua, Saeed S. Jahromi, Sukhbinder Singh, Roman Orus
10/22/2024
quant-phcs.AIcs.LG

No confident code implementation found for this paper.

Abstract

We propose a method to enhance the performance of Large Language Models (LLMs) by integrating quantum computing and quantum-inspired techniques. Specifically, our approach involves replacing the weight matrices in the Self-Attention and Multi-layer Perceptron layers with a combination of two variational quantum circuits and a quantum-inspired tensor network, such as a Matrix Product Operator (MPO). This substitution enables the reproduction of classical LLM functionality by decomposing weight matrices through the application of tensor network disentanglers and MPOs, leveraging well-established tensor network techniques. By incorporating more complex and deeper quantum circuits, along with increasing the bond dimensions of the MPOs, our method captures additional correlations within the quantum-enhanced LLM, leading to improved accuracy beyond classical models while maintaining low memory overhead.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{aizpurua2024quantum,
  title  = {Quantum Large Language Models via Tensor Network Disentanglers},
  author = {Borja Aizpurua and Saeed S. Jahromi and Sukhbinder Singh and Roman Orus},
  year   = {2024},
  eprint = {2410.17397},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.17397v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2410.17397.svg)](https://codeofpaper.com/paper/2410.17397)

Discussion