GitHub·Code

LuLuLuyi/LongHeads

[EMNLP'24] LongHeads: Multi-Head Attention is Secretly a Long Context Processor

32 stars·Updated May 2026
Open on GitHub

Linked papers

Code

LongHeads: Multi-Head Attention is Secretly a Long Context Processor

emnlp · 2024

Why Lacuna links this resource
Confirmed by the paper and resource

The paper explicitly states 'We release our code at https://github.com/LuLuLuyi/LongHeads' in span P1. The repository's description and README (spans R1, R2, R3, R4) explicitly mention the paper's title and provide a link to its arXiv preprint, confirming it is the official code for the paper.