References

Every work the book cites. A chapter cites a work as [strang-la] and lists the ones it uses at its end, with the sections to read. The free ones are linked.

Calculus and analysis

  1. G. Strang, E. Herman. Calculus, Volumes 1, 2 and 3. OpenStax, 2016. Free: openstax.org.
  2. J. Stewart. Calculus: Early Transcendentals, 8th ed. Cengage Learning, 2016.
  3. M. Spivak. Calculus, 4th ed. Publish or Perish, 2008.
  4. T. Tao. Analysis I, 3rd ed. Hindustan Book Agency / Springer, 2016.
  5. W. Rudin. Principles of Mathematical Analysis, 3rd ed. McGraw-Hill, 1976.
  6. R. L. Graham, D. E. Knuth, O. Patashnik. Concrete Mathematics, 2nd ed. Addison-Wesley, 1994.
  7. F. W. J. Olver et al., eds. NIST Digital Library of Mathematical Functions, chapter 4: Elementary Functions. Free: dlmf.nist.gov/4.
  8. L. N. Trefethen. Approximation Theory and Approximation Practice, extended ed. SIAM, 2019.

Differential equations and numerical analysis

  1. W. E. Boyce, R. C. DiPrima. Elementary Differential Equations and Boundary Value Problems, 10th ed. Wiley, 2012.
  2. E. Hairer, S. P. Nørsett, G. Wanner. Solving Ordinary Differential Equations I: Nonstiff Problems, 2nd ed. Springer, 1993.
  3. R. L. Burden, J. D. Faires. Numerical Analysis, 9th ed. Brooks/Cole, 2011.
  4. W. H. Press, S. A. Teukolsky, W. T. Vetterling, B. P. Flannery. Numerical Recipes: The Art of Scientific Computing, 3rd ed. Cambridge University Press, 2007.

Linear algebra, inequalities and convexity

  1. G. Strang. Introduction to Linear Algebra, 5th ed. Wellesley-Cambridge Press, 2016.
  2. S. Axler. Linear Algebra Done Right, 4th ed. Springer, 2024. Free: linear.axler.net.
  3. S. Boyd, L. Vandenberghe. Introduction to Applied Linear Algebra: Vectors, Matrices, and Least Squares. Cambridge University Press, 2018. Free: web.stanford.edu/~boyd/vmls.
  4. S. Boyd, L. Vandenberghe. Convex Optimization. Cambridge University Press, 2004. Free: web.stanford.edu/~boyd/cvxbook.
  5. J. M. Steele. The Cauchy–Schwarz Master Class. Cambridge University Press, 2004.
  6. G. H. Hardy, J. E. Littlewood, G. Pólya. Inequalities, 2nd ed. Cambridge University Press, 1952.

Probability and statistics

  1. J. K. Blitzstein, J. Hwang. Introduction to Probability, 2nd ed. CRC Press, 2019. Free: probabilitybook.net.
  2. L. Wasserman. All of Statistics. Springer, 2004.
  3. D. A. Levin, Y. Peres, with E. L. Wilmer. Markov Chains and Mixing Times, 2nd ed. American Mathematical Society, 2017. Chapter 4 defines the total variation distance.
  4. T. M. Cover, J. A. Thomas. Elements of Information Theory, 2nd ed. Wiley, 2006.
  5. K. Pearson. Notes on regression and inheritance in the case of two parents. Proceedings of the Royal Society of London 58:240–242, 1895.
  6. C. Spearman. The proof and measurement of association between two things. American Journal of Psychology 15(1):72–101, 1904.
  7. R. A. Fisher. The distribution of the partial correlation coefficient. Metron 3:329–332, 1924.
  8. P. J. Fleming, J. J. Wallace. How not to lie with statistics: the correct way to summarize benchmark results. Communications of the ACM 29(3):218–221, 1986.

Floating point and machines

  1. D. Goldberg. What every computer scientist should know about floating-point arithmetic. ACM Computing Surveys 23(1):5–48, 1991.
  2. N. J. Higham. Accuracy and Stability of Numerical Algorithms, 2nd ed. SIAM, 2002.
  3. J.-M. Muller et al. Handbook of Floating-Point Arithmetic, 2nd ed. Birkhäuser, 2018.
  4. IEEE Standard for Floating-Point Arithmetic, IEEE Std 754-2019. IEEE, 2019.
  5. W. Kahan. Further remarks on reducing truncation errors. Communications of the ACM 8(1):40, 1965.
  6. P. T. P. Tang. Table-driven implementation of the exponential function in IEEE floating-point arithmetic. ACM Transactions on Mathematical Software 15(2):144–157, 1989.
  7. D. E. Knuth. The Art of Computer Programming, Volume 2: Seminumerical Algorithms, 3rd ed. Addison-Wesley, 1997.
  8. D. Kalamkar et al. A study of BFLOAT16 for deep learning training. arXiv:1905.12322, 2019.
  9. Intel Corporation. Intel 64 and IA-32 Architectures Software Developer's Manual. Free: intel.com.
  10. A. Fog. Software optimization resources (optimization manuals and instruction tables). Free: agner.org/optimize.
  11. J. L. Hennessy, D. A. Patterson. Computer Architecture: A Quantitative Approach, 6th ed. Morgan Kaufmann, 2017.
  12. U. Drepper. What every programmer should know about memory. 2007. Free: people.freebsd.org.
  13. S. Williams, A. Waterman, D. Patterson. Roofline: an insightful visual performance model for multicore architectures. Communications of the ACM 52(4):65–76, 2009.
  14. P. Tillet, H. T. Kung, D. Cox. Triton: an intermediate language and compiler for tiled neural network computations. MAPL, 2019.

Machine learning and transformers

  1. I. Goodfellow, Y. Bengio, A. Courville. Deep Learning. MIT Press, 2016. Free: deeplearningbook.org.
  2. D. Jurafsky, J. H. Martin. Speech and Language Processing, 3rd ed. draft. Free: web.stanford.edu/~jurafsky/slp3.
  3. D. Bahdanau, K. Cho, Y. Bengio. Neural machine translation by jointly learning to align and translate. arXiv:1409.0473, 2014 (ICLR 2015).
  4. A. Vaswani et al. Attention is all you need. NeurIPS, 2017. arXiv:1706.03762.
  5. N. Shazeer. Fast transformer decoding: one write-head is all you need. arXiv:1911.02150, 2019.
  6. J. Ainslie et al. GQA: training generalized multi-query transformer models from multi-head checkpoints. EMNLP, 2023. arXiv:2305.13245.
  7. J. Su et al. RoFormer: enhanced transformer with rotary position embedding. arXiv:2104.09864, 2021.
  8. M. Milakov, N. Gimelshein. Online normalizer calculation for softmax. arXiv:1805.02867, 2018.
  9. T. Dao, D. Y. Fu, S. Ermon, A. Rudra, C. Ré. FlashAttention: fast and memory-efficient exact attention with IO-awareness. NeurIPS, 2022. arXiv:2205.14135.
  10. T. Dao. FlashAttention-2: faster attention with better parallelism and work partitioning. arXiv:2307.08691, 2023.
  11. R. Pope et al. Efficiently scaling transformer inference. MLSys, 2023. arXiv:2211.05102.
  12. W. Kwon et al. Efficient memory management for large language model serving with PagedAttention. SOSP, 2023. arXiv:2309.06180.
  13. G. Xiao, Y. Tian, B. Chen, S. Han, M. Lewis. Efficient streaming language models with attention sinks. ICLR, 2024. arXiv:2309.17453.
  14. Z. Zhang et al. H2O: heavy-hitter oracle for efficient generative inference of large language models. NeurIPS, 2023. arXiv:2306.14048.
  15. Y. Li et al. SnapKV: LLM knows what you are looking for before generation. arXiv:2404.14469, 2024.
  16. Z. Cai et al. PyramidKV: dynamic KV cache compression based on pyramidal information funneling. arXiv:2406.02069, 2024.
  17. J. Tang et al. Quest: query-aware sparsity for efficient long-context LLM inference. ICML, 2024. arXiv:2406.10774.
  18. M. Oren, M. Hassid, N. Yarden, Y. Adi, R. Schwartz. Transformers are multi-state RNNs. arXiv:2401.06104, 2024.
  19. S. Ren, K. Q. Zhu. On the efficacy of eviction policy for key-value constrained generative language model inference. arXiv:2402.06262, 2024.
  20. E. Lu et al. MoBA: mixture of block attention for long-context LLMs. arXiv:2502.13189, 2025.
  21. C. Hooper, S. Zhao, L. Manolache, S. Kim, M. W. Mahoney, Y. S. Shao, K. Keutzer, A. Gholami. Multipole attention for efficient long context reasoning. arXiv:2506.13059, 2025.
  22. W. Ni et al. Double-P: hierarchical top-p sparse attention for long-context LLMs. arXiv:2602.05191, 2026.
  23. A. Grattafiori, A. Dubey, A. Jauhri et al. The Llama 3 herd of models. arXiv:2407.21783, 2024.
  24. A. Yang et al. (Qwen team). Qwen2.5 technical report. arXiv:2412.15115, 2024.
  25. S. P. Lloyd. Least squares quantization in PCM. IEEE Transactions on Information Theory 28(2):129–137, 1982.
  26. Y. Bai et al. LongBench: a bilingual, multitask benchmark for long context understanding. arXiv:2308.14508, 2023.
  27. C.-P. Hsieh et al. RULER: what's the real context size of your long-context language models? arXiv:2404.06654, 2024.
  28. H. Yen et al. HELMET: how to evaluate long-context language models effectively and thoroughly. arXiv:2410.02694, 2024.
  29. K. Lian, J. Zhai, A. Liu. RefineKV: query-adaptive KV cache compression via attention-error bounds. arXiv:2611.28171, 2026. The paper this book leads to.

From Derivatives to Attention. GPL-3.0-or-later, as the site.