AI Engineering › XLCX
Not startedLearningMasteredNeeds review
XLCX
Long Context and Memory in Transformers
M1Special topic in AI Engineering4 topics · 8 subtopics · 17 knowledge points
Topics
Sign up free to see the knowledge pointsA free account opens the knowledge points of 5 courses.
XLCX-01Positions that extrapolate
2 subtopics · 4 knowledge points · learn first: TRFM-05, LLMF-08
2 subtopics · 4 knowledge points · learn first: TRFM-05, LLMF-08
XLCX-01-01 · Paper: RoFormer (Su et al., 2021)
XLCX-01-02 · Paper: ALiBi (Press, Smith and Lewis, 2022)
XLCX-02Extending a trained model's context
2 subtopics · 4 knowledge points · learn first: XLCX-01
2 subtopics · 4 knowledge points · learn first: XLCX-01
XLCX-02-01 · Paper: Positional interpolation (Chen et al., 2023)
XLCX-02-02 · Paper: YaRN (Peng et al., 2024)
XLCX-03Memory beyond the window
3 subtopics · 6 knowledge points · learn first: XLCX-01
3 subtopics · 6 knowledge points · learn first: XLCX-01
XLCX-03-01 · Paper: Transformer-XL (Dai et al., 2019)
XLCX-03-02 · Paper: Memorizing transformers (Wu et al., 2022)
XLCX-03-03 · Paper: Infini-attention (Munkhdalai, Faruqui and Gopal, 2024)
XLCX-04Do models use long context?
1 subtopics · 3 knowledge points · learn first: XLCX-02
1 subtopics · 3 knowledge points · learn first: XLCX-02
XLCX-04-01 · Paper: Lost in the middle (Liu et al., 2024)
Papers in this course
Each paper is explained in the subtopic shown next to it.
DAI19Dai et al. (2019). Transformer-XL: Attentive Language Models Beyond a Fixed-Length Context. ACL 2019. arXiv:1901.02860XLCX-03-01
SU21Su et al. (2021). RoFormer: Enhanced Transformer with Rotary Position Embedding. Neurocomputing 568 (2024). arXiv:2104.09864XLCX-01-01
PRE22Press, Smith and Lewis (2022). Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolation (ALiBi). ICLR 2022. arXiv:2108.12409XLCX-01-02
CHE23BChen et al. (2023). Extending Context Window of Large Language Models via Positional Interpolation. preprint. arXiv:2306.15595XLCX-02-01
PEN24Peng et al. (2024). YaRN: Efficient Context Window Extension of Large Language Models. ICLR 2024. arXiv:2309.00071XLCX-02-02
MUN24Munkhdalai, Faruqui and Gopal (2024). Leave No Context Behind: Efficient Infinite Context Transformers with Infini-attention. preprint. arXiv:2404.07143XLCX-03-03
LIU24BLiu et al. (2024). Lost in the Middle: How Language Models Use Long Contexts. TACL 12. arXiv:2307.03172XLCX-04-01