Non unitary and nonlinear quantum generative large model design and fast large-scale training without back propagation
Key takeaways · machine-generated
- Inference time complexity scales logarithmically rather than polynomially with the hidden dimension of the Transformer.
- Non-unitary transformations use SVD-based quantum circuits, and activations use pre-trained parameterized quantum circuits, with inference run on quantum hardware.
- Multi-agent reinforcement learning trains large parameterized circuits without back-propagation, at about 25% of the cost of leading quantum training methods.
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.
A fully quantum Transformer large model is studied, with non-unitary matrix operations implemented via SVD-decomposition-based quantum circuits and nonlinear activations approximated by pre-trained parameterized quantum circuits. The inference time dependence on hidden dimension is reduced from polynomial to logarithmic. Circuits are trained with a multi-agent reinforcement learning algorithm that avoids gradient back-propagation.