facebookresearch / facebookresearch/SpinQuant

On your R2 rotation Matrix

Open
#47 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
428
Forks
93
PR merge metrics
No merged PRs in 30d

Description

In multi-head attention, the rotation matrix must be block-diagonal with one block per head. Why does SpinQuant train a single shared R2 matrix of shape [head_dim, head_dim] and replicate it across all heads (creating a block-diagonal with identical blocks), rather than training independent rotation matrices for each head?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.