DAM: Dynamic Attention Mask for Long-Context Large Language Model Inference Acceleration
6 Jun · Hanzhi Zhang, Heng Fan, Kewei Sha +2 · arXiv:2506.11104
Long-context understanding is crucial for many NLP applications, yet transformers struggle with efficiency due to the quadratic complexity of self-attention. Sparse attention methods alleviate this cost but often impose static, predefined masks, failing to capture heterogeneous attention patterns. This results in suboptimal token interactions, limiting adaptability and retrieval accuracy in long-sequence tasks. This…