Non unitary and nonlinear quantum generative large model design and fast large-scale training without back propagation
Tianze Zhu, Xiaofeng Jiang, Min Liao, Luying Zhang, Ruixi Liu, Sen Kuang, Yongzhe Lin, Chenhao Zhou, Shuangwu Chen, Huasen He, Xiaobin Tan, Quan Zheng, Jian Yang
Abstract
Transformer-based large models require huge computational and storage costs. Quantum computation is expected to address that due to its potential to speed up classical algorithms exponentially. Key challenges of implementing quantum large models include the linear, unitary nature of qubit evolutions contrast with the non-unitary matrices and nonlinear functions in classical Transformers, as well as the difficulty of implementing gradient back-propagation on quantum hardware. Here we propose a fully quantum large model containing all the Transformer layers, implementing the non-unitary transformations through SVD-decomposition-based quantum circuits, and approximated nonlinear activation functions through pre-trained parameterized quantum circuits. We also propose a quantum circuit training algorithm based on multi-agent Reinforcement Learning, which can train large-scale parameterized quantum circuits without back-propagation. The dependency between the inference time complexity and the model's hidden dimension has been reduced from polynomial to logarithmic, showing an exponential advantage. The inference executions on the quantum hardware verify our model's 300-1000 times speed-up, and the measurements on the sequence-to-sequence tasks shows its learning ability. The training algorithm achieves only 25% complexity of the best SOTA quantum circuit training algorithms, especially this ratio decreases fast as the parameter scale increases. Our work not only proposes a quantum large model that can significantly reduce the computational cost, but also promotes the quantum computation towards general computing.
Create a lesson
Related papers
Classically Trained Quantum Generative Models with Shared Training and Fine Tuning for Quantum Matter
Shared title terminology · Mario Herrero-Gonzalez, Elham Kashefi, Mina Doosti
Scaling of phase rigidity without eigenstate coalescence
Shared title terminology · Shang-En Xie, Li-Mei Chen, Yao Zhou et al.
Frequency-bin-encoded quantum secret sharing with fast basis switching
Shared title terminology · Chen-You Su, Suparna Seshadri, Hsuan-Hao Lu et al.
Harnessing Dephasing for Quantum Reservoir Computing with a Minimum Complexity Architecture: Applications to Nonlinear Time-Series Prediction
Shared title terminology · Yicheng Song, Zhipeng Yang, Heng Fan et al.
Fast, in-place, and ancilla-free quantum algorithms for integer multiplication and inversion
Shared title terminology · David Halpenny, Adithya Sireesh, Petros Wallden
On the design of sequential quantum repeaters with error detection
Shared title terminology · Javier Rey-Domínguez, Koji Azuma, Mohsen Razavi