ScarletNX / From Derivatives to Attention / References
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
- G. Strang, E. Herman. Calculus, Volumes 1, 2 and 3. OpenStax, 2016. Free: openstax.org.
- J. Stewart. Calculus: Early Transcendentals, 8th ed. Cengage Learning, 2016.
- M. Spivak. Calculus, 4th ed. Publish or Perish, 2008.
- T. Tao. Analysis I, 3rd ed. Hindustan Book Agency / Springer, 2016.
- W. Rudin. Principles of Mathematical Analysis, 3rd ed. McGraw-Hill, 1976.
- R. L. Graham, D. E. Knuth, O. Patashnik. Concrete Mathematics, 2nd ed. Addison-Wesley, 1994.
- F. W. J. Olver et al., eds. NIST Digital Library of Mathematical Functions, chapter 4: Elementary Functions. Free: dlmf.nist.gov/4.
- L. N. Trefethen. Approximation Theory and Approximation Practice, extended ed. SIAM, 2019.
Differential equations and numerical analysis
- W. E. Boyce, R. C. DiPrima. Elementary Differential Equations and Boundary Value Problems, 10th ed. Wiley, 2012.
- E. Hairer, S. P. Nørsett, G. Wanner. Solving Ordinary Differential Equations I: Nonstiff Problems, 2nd ed. Springer, 1993.
- R. L. Burden, J. D. Faires. Numerical Analysis, 9th ed. Brooks/Cole, 2011.
- 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
- G. Strang. Introduction to Linear Algebra, 5th ed. Wellesley-Cambridge Press, 2016.
- S. Axler. Linear Algebra Done Right, 4th ed. Springer, 2024. Free: linear.axler.net.
- S. Boyd, L. Vandenberghe. Introduction to Applied Linear Algebra: Vectors, Matrices, and Least Squares. Cambridge University Press, 2018. Free: web.stanford.edu/~boyd/vmls.
- S. Boyd, L. Vandenberghe. Convex Optimization. Cambridge University Press, 2004. Free: web.stanford.edu/~boyd/cvxbook.
- J. M. Steele. The Cauchy–Schwarz Master Class. Cambridge University Press, 2004.
- G. H. Hardy, J. E. Littlewood, G. Pólya. Inequalities, 2nd ed. Cambridge University Press, 1952.
Probability and statistics
- J. K. Blitzstein, J. Hwang. Introduction to Probability, 2nd ed. CRC Press, 2019. Free: probabilitybook.net.
- L. Wasserman. All of Statistics. Springer, 2004.
- 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.
- T. M. Cover, J. A. Thomas. Elements of Information Theory, 2nd ed. Wiley, 2006.
- K. Pearson. Notes on regression and inheritance in the case of two parents. Proceedings of the Royal Society of London 58:240–242, 1895.
- C. Spearman. The proof and measurement of association between two things. American Journal of Psychology 15(1):72–101, 1904.
- R. A. Fisher. The distribution of the partial correlation coefficient. Metron 3:329–332, 1924.
- 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
- D. Goldberg. What every computer scientist should know about floating-point arithmetic. ACM Computing Surveys 23(1):5–48, 1991.
- N. J. Higham. Accuracy and Stability of Numerical Algorithms, 2nd ed. SIAM, 2002.
- J.-M. Muller et al. Handbook of Floating-Point Arithmetic, 2nd ed. Birkhäuser, 2018.
- IEEE Standard for Floating-Point Arithmetic, IEEE Std 754-2019. IEEE, 2019.
- W. Kahan. Further remarks on reducing truncation errors. Communications of the ACM 8(1):40, 1965.
- 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.
- D. E. Knuth. The Art of Computer Programming, Volume 2: Seminumerical Algorithms, 3rd ed. Addison-Wesley, 1997.
- D. Kalamkar et al. A study of BFLOAT16 for deep learning training. arXiv:1905.12322, 2019.
- Intel Corporation. Intel 64 and IA-32 Architectures Software Developer's Manual. Free: intel.com.
- A. Fog. Software optimization resources (optimization manuals and instruction tables). Free: agner.org/optimize.
- J. L. Hennessy, D. A. Patterson. Computer Architecture: A Quantitative Approach, 6th ed. Morgan Kaufmann, 2017.
- U. Drepper. What every programmer should know about memory. 2007. Free: people.freebsd.org.
- S. Williams, A. Waterman, D. Patterson. Roofline: an insightful visual performance model for multicore architectures. Communications of the ACM 52(4):65–76, 2009.
- P. Tillet, H. T. Kung, D. Cox. Triton: an intermediate language and compiler for tiled neural network computations. MAPL, 2019.
Machine learning and transformers
- I. Goodfellow, Y. Bengio, A. Courville. Deep Learning. MIT Press, 2016. Free: deeplearningbook.org.
- D. Jurafsky, J. H. Martin. Speech and Language Processing, 3rd ed. draft. Free: web.stanford.edu/~jurafsky/slp3.
- D. Bahdanau, K. Cho, Y. Bengio. Neural machine translation by jointly learning to align and translate. arXiv:1409.0473, 2014 (ICLR 2015).
- A. Vaswani et al. Attention is all you need. NeurIPS, 2017. arXiv:1706.03762.
- N. Shazeer. Fast transformer decoding: one write-head is all you need. arXiv:1911.02150, 2019.
- J. Ainslie et al. GQA: training generalized multi-query transformer models from multi-head checkpoints. EMNLP, 2023. arXiv:2305.13245.
- J. Su et al. RoFormer: enhanced transformer with rotary position embedding. arXiv:2104.09864, 2021.
- M. Milakov, N. Gimelshein. Online normalizer calculation for softmax. arXiv:1805.02867, 2018.
- 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.
- T. Dao. FlashAttention-2: faster attention with better parallelism and work partitioning. arXiv:2307.08691, 2023.
- R. Pope et al. Efficiently scaling transformer inference. MLSys, 2023. arXiv:2211.05102.
- W. Kwon et al. Efficient memory management for large language model serving with PagedAttention. SOSP, 2023. arXiv:2309.06180.
- G. Xiao, Y. Tian, B. Chen, S. Han, M. Lewis. Efficient streaming language models with attention sinks. ICLR, 2024. arXiv:2309.17453.
- Z. Zhang et al. H2O: heavy-hitter oracle for efficient generative inference of large language models. NeurIPS, 2023. arXiv:2306.14048.
- Y. Li et al. SnapKV: LLM knows what you are looking for before generation. arXiv:2404.14469, 2024.
- Z. Cai et al. PyramidKV: dynamic KV cache compression based on pyramidal information funneling. arXiv:2406.02069, 2024.
- J. Tang et al. Quest: query-aware sparsity for efficient long-context LLM inference. ICML, 2024. arXiv:2406.10774.
- M. Oren, M. Hassid, N. Yarden, Y. Adi, R. Schwartz. Transformers are multi-state RNNs. arXiv:2401.06104, 2024.
- S. Ren, K. Q. Zhu. On the efficacy of eviction policy for key-value constrained generative language model inference. arXiv:2402.06262, 2024.
- E. Lu et al. MoBA: mixture of block attention for long-context LLMs. arXiv:2502.13189, 2025.
- 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.
- W. Ni et al. Double-P: hierarchical top-p sparse attention for long-context LLMs. arXiv:2602.05191, 2026.
- A. Grattafiori, A. Dubey, A. Jauhri et al. The Llama 3 herd of models. arXiv:2407.21783, 2024.
- A. Yang et al. (Qwen team). Qwen2.5 technical report. arXiv:2412.15115, 2024.
- S. P. Lloyd. Least squares quantization in PCM. IEEE Transactions on Information Theory 28(2):129–137, 1982.
- Y. Bai et al. LongBench: a bilingual, multitask benchmark for long context understanding. arXiv:2308.14508, 2023.
- C.-P. Hsieh et al. RULER: what's the real context size of your long-context language models? arXiv:2404.06654, 2024.
- H. Yen et al. HELMET: how to evaluate long-context language models effectively and thoroughly. arXiv:2410.02694, 2024.
- 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.