Beyond Fully-Connected Layers with Quaternions: Parameterization of Hypercomplex Multiplications with 1/n Parameters
By Aston Zhang, Yi Tay, Shuai Zhang, Alvin Chan, Anh Tuan Luu, Siu Cheung Hui, Jie Fu. 2021
95 citations recorded by the source corpus.
Recent works have demonstrated reasonable success of representation learning in hypercomplex space. Specifically,"fully-connected layers with Quaternions"(4D hypercomplex numbers), which replace real-valued matrix multiplications in fully-connected layers with Hamilton products of Quaternions, both enjoy parameter savings with only 1/4 learnable parameters and achieve comparable performance in various applications. However, one key caveat is that hypercomplex space only exists at very few predefined dimensions (4D, 8D, and 16D). This restricts the flexibility of models that leverage hypercomplex multiplications. To this end, we propose parameterizing hypercomplex multiplications, allowing models to learn multiplication rules from data regardless of whether such rules are predefined. As a result, our method not only subsumes the Hamilton product, but also learns to operate on any arbitrary nD hypercomplex space, providing more architectural flexibility using arbitrarily $1/n$ learnable parameters compared with the fully-connected layer counterpart. Experiments of applications to the LSTM and Transformer models on natural language inference, machine translation, text style transfer, and subject verb agreement demonstrate architectural flexibility and effectiveness of the proposed approach.
Subfields: Artificial Intelligence, Computational Mathematics, Model Architectures
How researchers see this paper
The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.
In Artificial Intelligence
- Yi Tay
- Mostafa Dehghani
- Donald Metzler
- Luke S. Zettlemoyer
- Noah A. Smith
- Jianfeng Gao
- Quoc V. Le
- Mohit Bansal
In Computational Mathematics
In Model Architectures
- Yi Tay
- Mostafa Dehghani
- Donald Metzler
- Luke S. Zettlemoyer
- William Fedus
- Dani Yogatama
- James Henderson
- Sharan Narang
Citations in the corpus
- Scale Efficiently: Insights from Pre-training and Fine-tuning Transformers (2021, background): “…(but not limited to) distillation (Hinton et al., 2015), compression (Zafrir et al., 2019), parameter sharing (Lan et al., 2019; Tay et al., 2019; Zhang et al., 2021), efficient attention (Tay et al., 2020c; Kitaev et al., 2020; Choromanski et al., 2020; Tay et al., 2020b; Ainslie et al., 2020;…”
- Compacter: Efficient Low-Rank Hypercomplex Adapter Layers (2021, methodology): “COMPACTER builds on ideas from adapters [1], low-rank methods [13], as well as recent hypercomplex multiplication layers [17].”
- Structured Pruning Adapters (2022, methodology): “To devise a pruning-sensitive adapter under block pruning, we follow a previous study [28] and draw on Parameterized Hypercomplex Multiplication (PHM) layers [46].”
- Prompt-free and Efficient Few-shot Learning with Language Models (2022, methodology): “(2021a) proposed compacter layers by building on top of ideas of parameterized hypercomplex layers (Zhang et al., 2021) and low-rank methods (Li et al.”
- Parameter-Efficient Fine-Tuning Methods for Pretrained Language Models: A Critical Review and Assessment (2023, background): “Compacter [58] is developed based on adapters, low-rank optimization, and a parameterized hypercomplex multiplication (PHM) layer [95].”