Library

Reading

Papers that keep being referenced here. Not a syllabus; the annotation is why each one is here. Links go to arXiv — PDFs are not mirrored.

  1. Attention Is All You Need

    Vaswani et al., 2017

    The block, the residual, the multi-head trick. The diagrams have aged better than the training details.

    Transformers
  2. Dense Passage Retrieval for Open-Domain Question Answering

    Karpukhin et al., 2020

    A clean dense-retrieval baseline. If your retriever loses to BM25, start here.

    Retrieval
  3. Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks

    Lewis et al., 2020

    The original RAG paper. Note how much of the work is indexing and retrieval, not prompting.

    Retrieval
  4. ColBERT: Efficient and Effective Passage Search via Contextualized Late Interaction over BERT

    Khattab & Zaharia, 2020

    The middle point between a bi-encoder and a cross-encoder. Read it for the token-level score.

    Retrieval
  5. GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpoints

    Ainslie et al., 2023

    The KV-cache arithmetic from the first note, in paper form.

    Inference
  6. Efficient Memory Management for LLM Serving with PagedAttention

    Kwon et al., 2023

    Why serving long contexts is an allocator problem. Read it before promising 128k on one card.

    Inference
  7. Fast Inference from Transformers via Speculative Decoding

    Leviathan et al., 2023

    The acceptance/rejection argument. The speedup is a property of your draft and your traffic.

    Inference
  8. LLM.int8(): 8-bit Matrix Multiplication for Transformers at Scale

    Dettmers et al., 2022

    Why a few outlier features force mixed-precision matmul. The paper behind a lot of int8 serving.

    Inference
  9. GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformers

    Frantar et al., 2022

    The layer-wise reconstruction method behind a lot of 4-bit models. Read the calibration assumptions.

    Inference
  10. LoRA: Low-Rank Adaptation of Large Language Models

    Hu et al., 2021

    The adapter trick that made fine-tuning cheap. Read it for what it does not change.

    Training
  11. Mixtral of Experts

    Jiang et al., 2024

    Sparse experts, dense memory. The serving bill for a model that only uses part of itself.

    Architecture
  12. Lost in the Middle: How Language Models Use Long Contexts

    Liu et al., 2023

    The paper to hand someone who wants to stuff fifty chunks into the prompt.

    Retrieval
  13. Judging LLM-as-a-Judge with MT-Bench and Chatbot Arena

    Zheng et al., 2023

    Useful, biased, and cheap. Read it before you automate your eval.

    Evaluation

If a link dies, email varkanar.ch@gmail.com.