Training large language models on long sequences is computationally expensive due to the quadratic scaling of attention. Researchers at Nous Research have introduced Lighthouse Attention, a method that accelerates pretraining by 1.40x to 1.69x while maintaining or improving final loss.
Existing sparse attention methods suffer from asymmetric compression and custom kernels that prevent reuse of optimized dense-attention kernels. Lighthouse uses symmetric pooling of queries, keys, and values across a multi-level pyramid, with selection performed outside the attention kernel. After selection, only a contiguous dense sub-sequence is passed to standard FlashAttention, reducing compute from O(N²) to O(S²) where S ≪ N.
The four-stage pipeline constructs a pyramid via average pooling, scores entries using ℓ₂ norms, selects top-K entries with a chunked-bitonic kernel, gathers them into a dense sub-sequence, and scatters results back. This design ensures no gaps in the sequence, preserving gradient flow.
Lighthouse achieves 21x faster forward pass and 17.3x faster forward+backward pass on an NVIDIA B200 at 512K context compared to cuDNN-backed SDPA. It is a training-only method, as autoregressive decoding does not support symmetric pooling.
Experiments with a 530M-parameter Llama-3 model on C4 at 98,304 context show that after a two-stage training (Lighthouse followed by short dense fine-tuning), the model recovers dense attention capability and achieves lower final loss than a dense baseline.