TL;DR
Existing quaternion self-attention mechanisms increase computational costs by calculating separate scores for each component. A new shared-score quaternion self-attention method computes a single score using quaternion inner products, significantly reducing complexity.
✦ Why It Matters
Engineers can implement shared-score quaternion self-attention to improve computational efficiency in AI models.
Key Takeaways
Full Summary
Quaternion neural networks efficiently model multidimensional data by combining four related features into one entity. Traditional quaternion self-attention calculates separate scores for each component, leading to higher computational costs and divergent attention distributions.
The proposed shared-score quaternion self-attention method simplifies this by using a single real-valued score derived from the quaternion inner product, applying a unified attention distribution across all components. This innovation reduces the number of score computations by 75% and softmax operations from four to one.
Experimental results show that this method can cut inference time by up to 44.3% on GPUs and 58.1% on CPUs in speech enhancement tasks, while also demonstrating consistent improvements in vision and natural language processing applications. These findings suggest that shared-score mechanisms can enhance efficiency without sacrificing quality.
Related