Xiang Hu (@imhuim982) profile picture
Joined January 2022
Xiang Hu retweeted
Sparse attention (SA) holds the key to training and inference with infinite context length, but traditional SA methods struggle with inaccurate token selection and poor extrapolation. Why? Enter HiLS! ๐Ÿš€ A new architecture to solve those problems of long-context sparse attention. We propose an approximate query-aware token block compression for more accurate sparse selection, backed by highly efficient operators. Combined with partial positional encoding, HiLS achieves significantly more robust performance beyond the training context length. The Results (Trained on just 8K context!): 1. HiLS outperforms full attention baseline in and beyond training lengths on long-context benchmarks. 2. At least 13x faster than full attention baseline on 512K context length.
2
9
32
2,832