부록 F. 참고 문헌 총람과 더 읽을거리

이 책의 근거는 장마다 끝의 "참고 문헌"에 각주로 달려 있습니다. 이 부록은 그것을 책 전체로 모아 봅니다.

  • F.1 더 읽을거리. 주제마다 먼저 읽을 것을 몇 개씩 골랐습니다.
  • F.2 논문 총람. 책이 인용한 논문 전부를, 어느 장이 인용했는지와 함께 싣습니다.
  • F.3 읽은 소스 저장소. 책이 소스를 읽거나 문서를 인용한 저장소 전부입니다.
  • F.4 참고한 책.
  • F.5 이 책의 근거를 읽는 법.

F.2와 F.3의 표는 손으로 쓴 것이 아닙니다. scripts/build_references.py가 모든 장의 각주를 읽어 만듭니다. 장의 각주를 고치면 이 표도 따라 바뀝니다.

F.1 더 읽을거리

장마다의 각주는 "이 문장의 근거"입니다. 여기에는 "이 주제를 더 알고 싶으면 무엇부터"를 적습니다. 모두 본문에서 인용한 것 가운데 골랐습니다.

먼저 밝혀 둡니다. 논문은 대부분 초록까지만 읽었습니다. 어디까지 읽었는지는 그 논문을 인용한 장의 각주에 적혀 있습니다. 아래의 한 줄은 "무엇을 다루는 글인가"이지 "읽어 보니 어떻더라"가 아닙니다. 반대로 소스 저장소는 실제로 열어 읽은 것이고, 각주에 파일과 줄 번호가 있습니다.

트랜스포머와 LLM의 구조 (2부)

무엇얻을 수 있는 것
Vaswani 외, "Attention Is All You Need" (arXiv:1706.03762)트랜스포머를 처음 내놓은 논문. 9장의 구조가 여기서 나왔다
Su 외, "RoFormer" (arXiv:2104.09864)회전 위치 임베딩(RoPE). 9장에서 구현한 것
Ainslie 외, "GQA" (arXiv:2305.13245)그룹 질의 어텐션. KV 캐시가 작아지는 까닭(9, 24장)
Holtzman 외, "The Curious Case of Neural Text Degeneration" (arXiv:1904.09751)top-p 샘플링. 왜 가장 그럴듯한 글이 좋은 글이 아닌가(12장)
llama.cpp의 소스 (ggml-org/llama.cpp)이 책의 2부, 3부와 나란히 읽을 실전 엔진. 13, 20, 25장의 각주에 읽은 파일이 있다

성능 (3부)

무엇얻을 수 있는 것
Reddi 외, "MLPerf Inference Benchmark" (arXiv:1911.02549)추론을 재는 규칙을 업계가 어떻게 정했는가(14장)
Jacob 외, "Quantization and Training of Neural Networks for Efficient Integer-Arithmetic-Only Inference" (arXiv:1712.05877)정수 양자화의 스케일과 영점. 19장과 29장의 식이 여기서 나왔다
Nagel 외, "A White Paper on Neural Network Quantization" (arXiv:2106.08295)양자화 전반을 정리한 글(19장)
Dao 외, "FlashAttention" (arXiv:2205.14135)어텐션을 토막 내어 메모리를 오가지 않게 계산하는 법(24장)
Milakov와 Gimelshein, "Online normalizer calculation for softmax" (arXiv:1805.02867)소프트맥스를 한 번만 훑어 계산하는 법. 24장의 융합이 기대는 것

그래프와 모바일 엔진 (4부의 앞)

무엇얻을 수 있는 것
Pisarchyk와 Lee, "Efficient Memory Management for Deep Neural Net Inference" (arXiv:2001.03288)가운데 값의 자리를 겹쳐 쓰는 계획. 26장의 메모리 계획
Dukhan, "The Indirect Convolution Algorithm" (arXiv:1907.02129)창을 베끼지 않는 합성곱. XNNPACK이 쓰는 방법(28, 31장)
Lavin과 Gray, "Fast Algorithms for Convolutional Neural Networks" (arXiv:1509.09308)위노그라드 합성곱(28장)
LiteRT의 소스 (google-ai-edge/LiteRT)와 XNNPACK (google/XNNPACK)그래프 해석기의 실전판. 26, 29, 31장의 각주에 읽은 파일과 줄이 있다
Jiang 외, "MNN" (arXiv:2002.12418)모바일 엔진 하나의 설계를 엔진을 만든 쪽이 설명한 글(1, 31장)

분야별 모델 (4부의 뒤)

무엇얻을 수 있는 것
Dosovitskiy 외, "An Image is Worth 16x16 Words" (arXiv:2010.11929)비전 트랜스포머(32장)
Radford 외, "Robust Speech Recognition via Large-Scale Weak Supervision" (arXiv:2212.04356)Whisper(33장)
Reimers와 Gurevych, "Sentence-BERT" (arXiv:1908.10084)문장 임베딩을 만드는 법(34장)
Malkov와 Yashunin, HNSW (arXiv:1603.09320)근사 검색. 34장이 만들지 않고 남긴 것
Rombach 외, "High-Resolution Image Synthesis with Latent Diffusion Models" (arXiv:2112.10752)Stable Diffusion의 구조(35장)
Song 외, "Denoising Diffusion Implicit Models" (arXiv:2010.02502)35장에서 구현한 스케줄러
Marafioti 외, "SmolVLM" (arXiv:2504.05299)작은 멀티모달 모델을 어떻게 줄였는가(36장)

서빙 (5부)

무엇얻을 수 있는 것
Kwon 외, "Efficient Memory Management for Large Language Model Serving with PagedAttention" (arXiv:2309.06180)vLLM. KV 캐시를 페이지로 나누는 생각(40장)
Agrawal 외, "Sarathi-Serve" (arXiv:2403.02310)긴 프롬프트를 끊어 읽어 쓰는 요청을 막지 않는 법(40장)
Leviathan 외, "Fast Inference from Transformers via Speculative Decoding" (arXiv:2211.17192)추측 디코딩(41장)
Willard와 Louf, "Efficient Guided Generation for Large Language Models" (arXiv:2307.09702)문법으로 출력을 제한하는 법(41장)
Hu 외, "LoRA" (arXiv:2106.09685)작은 어댑터로 모델을 고치는 법(41장)
Kiely, Inference Engineering (F.4절)데이터센터에서 추론을 운영하는 쪽의 관점

기기와 브라우저 (6부)

무엇얻을 수 있는 것
Lee 외, "On-Device Neural Net Inference with Mobile GPUs" (arXiv:1907.01989)LiteRT의 GPU 델리게이트를 만든 쪽의 설명(45장)
Hinton 외, "Distilling the Knowledge in a Neural Network" (arXiv:1503.02531)증류(46장)
Han 외, "Learning both Weights and Connections for Efficient Neural Networks" (arXiv:1506.02626)가지치기와 재학습(46장)
Ruan 외, "WebLLM" (arXiv:2412.15803)컴파일한 모델을 브라우저에서 돌리는 엔진(50, 52장)
ExecuTorch (pytorch/executorch)와 LiteRT-LM (google-ai-edge/LiteRT-LM)기기용 LLM 엔진의 실전판(47, 51장)

컴파일러 (7부)

무엇얻을 수 있는 것
Chen 외, "TVM" (arXiv:1802.04799)ML 컴파일러의 대표. 그래프의 층과 연산자의 층(52장)
Chen 외, "Learning to Optimize Tensor Programs" (arXiv:1805.08166)커널을 찾는 일(52.7절의 큰 판)
Lai 외, "Relax" (arXiv:2311.02103)동적 형상을 다루는 컴파일러의 표현
Lattner 외, "MLIR" (arXiv:2002.11054)컴파일러를 짓는 재료
Paszke 외, "PyTorch" (arXiv:1912.01703)즉시 실행이 무엇을 위해 무엇을 치르는가(51장)

F.2 논문 총람

책이 인용한 논문 가운데 arXiv 번호가 있는 것 전부입니다. 처음 인용한 장의 순서로 늘어놓았습니다. 제목과 저자와 연도는 arXiv가 알려 주는 값을 그대로 실었고(reference/arxiv_titles.tsv), 번호마다 각주에 적힌 제목과 arXiv의 제목이 맞는지 대조했습니다.

논문연도arXiv인용한 장
Tianqi Chen 외, "TVM: An Automated End-to-End Optimizing Compiler for Deep Learning"20181802.047991, 52
Adam Paszke 외, "PyTorch: An Imperative Style, High-Performance Deep Learning Library"20191912.017031, 51
Chris Lattner 외, "MLIR: A Compiler Infrastructure for the End of Moore's Law"20202002.110541, 52
Xiaotang Jiang 외, "MNN: A Universal and Efficient Inference Engine"20202002.124181
Dan Hendrycks 외, "Gaussian Error Linear Units (GELUs)"20161606.084153, 32
Stefan Elfwing 외, "Sigmoid-Weighted Linear Units for Neural Network Function Approximation in Reinforcement Learning"20171702.031183
Prajit Ramachandran 외, "Searching for Activation Functions"20171710.059413
Rico Sennrich 외, "Neural Machine Translation of Rare Words with Subword Units"20151508.079098
Ashish Vaswani 외, "Attention Is All You Need"20171706.037629
Biao Zhang 외, "Root Mean Square Layer Normalization"20191910.074679
Noam Shazeer, "GLU Variants Improve Transformer"20202002.052029
Jianlin Su 외, "RoFormer: Enhanced Transformer with Rotary Position Embedding"20212104.098649
Hugo Touvron 외, "LLaMA: Open and Efficient Foundation Language Models"20232302.139719
Joshua Ainslie 외, "GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpoints"20232305.132459, 24
Albert Q. Jiang 외, "Mixtral of Experts"20242401.040889
Loubna Ben Allal 외, "SmolLM2: When Smol Goes Big -- Data-Centric Training of a Small Language Model"20252502.027379, 46
Ofir Press 외, "Using the Output Embedding to Improve Language Models"20161608.0585910
Hakan Inan 외, "Tying Word Vectors and Word Classifiers: A Loss Framework for Language Modeling"20161611.0146210
Mingjie Sun 외, "Massive Activations in Large Language Models"20242402.1776210
Geoffrey Hinton 외, "Distilling the Knowledge in a Neural Network"20151503.0253112, 46
Angela Fan 외, "Hierarchical Neural Story Generation"20181805.0483312
Ari Holtzman 외, "The Curious Case of Neural Text Degeneration"20191904.0975112
Nitish Shirish Keskar 외, "CTRL: A Conditional Transformer Language Model for Controllable Generation"20191909.0585812
Minh Nhat Nguyen 외, "Turning Up the Heat: Min-p Sampling for Creative and Coherent LLM Outputs"20242407.0108212
Vijay Janapa Reddi 외, "MLPerf Inference Benchmark"20191911.0254914
Benoit Jacob 외, "Quantization and Training of Neural Networks for Efficient Integer-Arithmetic-Only Inference"20171712.0587719, 29, 46
Raghuraman Krishnamoorthi, "Quantizing deep convolutional networks for efficient inference: A whitepaper"20181806.0834219
Dhiraj Kalamkar 외, "A Study of BFLOAT16 for Deep Learning Training"20191905.1232219
Markus Nagel 외, "A White Paper on Neural Network Quantization"20212106.0829519
Stephen Merity 외, "Pointer Sentinel Mixture Models"20161609.0784321
Maxim Milakov 외, "Online normalizer calculation for softmax"20181805.0286724
Noam Shazeer, "Fast Transformer Decoding: One Write-Head is All You Need"20191911.0215024
Iz Beltagy 외, "Longformer: The Long-Document Transformer"20202004.0515024
Tri Dao 외, "FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness"20222205.1413524
Albert Q. Jiang 외, "Mistral 7B"20232310.0682524
Yury Pisarchyk 외, "Efficient Memory Management for Deep Neural Net Inference"20202001.0328826
Kaiming He 외, "Deep Residual Learning for Image Recognition"20151512.0338527
Andrew G. Howard 외, "MobileNets: Efficient Convolutional Neural Networks for Mobile Vision Applications"20171704.0486127
Mark Sandler 외, "MobileNetV2: Inverted Residuals and Linear Bottlenecks"20181801.0438127
Andrew Lavin 외, "Fast Algorithms for Convolutional Neural Networks"20151509.0930828
Yizhi Liu 외, "Optimizing CNN Model Inference on CPUs"20181809.0269728
Marat Dukhan, "The Indirect Convolution Algorithm"20191907.0212928
Sergey Ioffe 외, "Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shift"20151502.0316730
Jimmy Lei Ba 외, "Layer Normalization"20161607.0645032
Alexey Dosovitskiy 외, "An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale"20202010.1192932
Zheng Ge 외, "YOLOX: Exceeding YOLO Series in 2021"20212107.0843032
Alec Radford 외, "Robust Speech Recognition via Large-Scale Weak Supervision"20222212.0435633
Yu. A. Malkov 외, "Efficient and robust approximate nearest neighbor search using Hierarchical Navigable Small World graphs"20161603.0932034
Yonghui Wu 외, "Google's Neural Machine Translation System: Bridging the Gap between Human and Machine Translation"20161609.0814434
Daniel Cer 외, "SemEval-2017 Task 1: Semantic Textual Similarity - Multilingual and Cross-lingual Focused Evaluation"20171708.0005534
Jacob Devlin 외, "BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding"20181810.0480534
Nils Reimers 외, "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks"20191908.1008434
Wenhui Wang 외, "MiniLM: Deep Self-Attention Distillation for Task-Agnostic Compression of Pre-Trained Transformers"20202002.1095734
Olaf Ronneberger 외, "U-Net: Convolutional Networks for Biomedical Image Segmentation"20151505.0459735
Yuxin Wu 외, "Group Normalization"20181803.0849435
Jonathan Ho 외, "Denoising Diffusion Probabilistic Models"20202006.1123935
Jiaming Song 외, "Denoising Diffusion Implicit Models"20202010.0250235
Alec Radford 외, "Learning Transferable Visual Models From Natural Language Supervision"20212103.0002035
Robin Rombach 외, "High-Resolution Image Synthesis with Latent Diffusion Models"20212112.1075235
Jonathan Ho 외, "Classifier-Free Diffusion Guidance"20222207.1259835
Wenzhe Shi 외, "Real-Time Single Image and Video Super-Resolution Using an Efficient Sub-Pixel Convolutional Neural Network"20161609.0515836
Xiaohua Zhai 외, "Sigmoid Loss for Language Image Pre-Training"20232303.1534336
Andrés Marafioti 외, "SmolVLM: Redefining small and efficient multimodal models"20252504.0529936
Zhuang Liu 외, "A ConvNet for the 2020s"20222201.0354537
Chengyi Wang 외, "Neural Codec Language Models are Zero-Shot Text to Speech Synthesizers"20232301.0211137
Hubert Siuzdak, "Vocos: Closing the gap between time-domain and Fourier-based neural vocoders for high-quality audio synthesis"20232306.0081437
Shengpeng Ji 외, "WavTokenizer: an Efficient Acoustic Discrete Codec Tokenizer for Audio Language Modeling"20242408.1653237
Chenchen Gu 외, "Auditing Prompt Caching in Language Model APIs"20252502.0777639
Daniel Crankshaw 외, "Clipper: A Low-Latency Online Prediction Serving System"20161612.0307940
Woosuk Kwon 외, "Efficient Memory Management for Large Language Model Serving with PagedAttention"20232309.0618040
Amey Agrawal 외, "Taming Throughput-Latency Tradeoff in LLM Inference with Sarathi-Serve"20242403.0231040
Edward J. Hu 외, "LoRA: Low-Rank Adaptation of Large Language Models"20212106.0968541
Yaniv Leviathan 외, "Fast Inference from Transformers via Speculative Decoding"20222211.1719241
Charlie Chen 외, "Accelerating Large Language Model Decoding with Speculative Sampling"20232302.0131841
Brandon T. Willard 외, "Efficient Guided Generation for Large Language Models"20232307.0970241
Tianle Cai 외, "Medusa: Simple LLM Inference Acceleration Framework with Multiple Decoding Heads"20242401.1077441
Yuhui Li 외, "EAGLE: Speculative Sampling Requires Rethinking Feature Uncertainty"20242401.1507741
Yixin Dong 외, "XGrammar: Flexible and Efficient Structured Generation Engine for Large Language Models"20242411.1510041
Lianmin Zheng 외, "SGLang: Efficient Execution of Structured Language Model Programs"20232312.0710442
Robert David 외, "TensorFlow Lite Micro: Embedded Machine Learning on TinyML Systems"20202010.0867843
Colby Banbury 외, "MLPerf Tiny Benchmark"20212106.0759743
Juhyun Lee 외, "On-Device Neural Net Inference with Mobile GPUs"20191907.0198945
Yoshua Bengio 외, "Estimating or Propagating Gradients Through Stochastic Neurons for Conditional Computation"20131308.343246
Song Han 외, "Learning both Weights and Connections for Efficient Neural Networks"20151506.0262646
Song Han 외, "Deep Compression: Compressing Deep Neural Networks with Pruning, Trained Quantization and Huffman Coding"20151510.0014946
Hao Li 외, "Pruning Filters for Efficient ConvNets"20161608.0871046
Victor Sanh 외, "DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lighter"20191910.0110846
Erich Elsen 외, "Fast Sparse ConvNets"20191911.0972346
Elias Frantar 외, "SparseGPT: Massive Language Models Can Be Accurately Pruned in One-Shot"20232301.0077446
Zechun Liu 외, "LLM-QAT: Data-Free Quantization Aware Training for Large Language Models"20232305.1788846
Mingjie Sun 외, "A Simple and Effective Pruning Approach for Large Language Models"20232306.1169546
Charlie F. Ruan 외, "WebLLM: A High-Performance In-Browser LLM Inference Engine"20242412.1580350
Tianqi Chen 외, "Learning to Optimize Tensor Programs"20181805.0816652
Lianmin Zheng 외, "Ansor: Generating High-Performance Tensor Programs for Deep Learning"20202006.0676252
Ruihang Lai 외, "Relax: Composable Abstractions for End-to-End Dynamic Machine Learning"20232311.0210352

arXiv에 없는 것은 이 표에 없습니다. 예를 들어 MNIST의 논문(7장), GPT-2의 보고서(8장), 위상 정렬의 논문(26장), 수학 함수의 근사 계수가 실린 책(32장), RFC들(39장)입니다. 그 장의 각주에 있습니다.

F.3 읽은 소스 저장소

각주에 나오는 GitHub의 저장소 전부입니다. 많이 인용한 순서입니다. 어느 커밋의 어느 파일, 몇 번째 줄을 읽었는지는 각주에 있습니다.

F.4 참고한 책

Philip Kiely, Inference Engineering, Baseten Books, 2026. 데이터센터의 GPU 위에서 기존 엔진(vLLM, SGLang, TensorRT-LLM)을 써서 생성 모델을 운영하는 법을 다루는 책입니다. 이 책을 기획할 때 검토했고, 다음을 아이디어 수준에서 참고했습니다. 문장과 그림은 가져오지 않았고, 모두 직접 구현하고 재서 새로 썼습니다.

참고한 것이 책의 어디
지연, 처리량, 비용, 품질 사이의 균형이라는 틀과 지표의 낱말(첫 토큰 시간, 초당 토큰, 토큰 사이의 간격, 백분위수)1, 14장
병목을 계산하는 법(산술 강도, 루프라인)15장
양자화한 뒤의 품질을 재는 법21장
어텐션의 최적화와 커널 융합, 긴 문맥24장
전문가 혼합(MoE) 모델의 구조9장
추측 디코딩의 여러 방식41장
KV 캐시를 다시 쓰는 법(접두사 캐시, 페이지, 끊어 읽기)39, 40장
음성 인식의 실전 파이프라인33장
LLM에 바탕을 둔 음성 합성의 구조와 지표37장

두 책은 방향이 다릅니다. 그 책은 있는 엔진을 운영하는 법이고, 이 책은 엔진을 만드는 법입니다. 5부를 읽고 운영 쪽이 더 궁금하면 그 책이 이어집니다.

Rust를 배우는 자료는 부록 A의 끝에 있습니다.

F.5 이 책의 근거를 읽는 법

장마다의 각주는 다음 규칙으로 썼습니다. 근거가 의심스러울 때 어디를 봐야 하는지를 알려 주는 규칙입니다.

무엇에 근거를 다는가. 이 책이 직접 재지 않은 사실, 다른 엔진이 무엇을 한다는 설명, 모델과 알고리즘의 출처입니다. 이 책이 잰 숫자의 근거는 bench/의 파일과 그것을 만든 스크립트입니다.

소스 코드. 저장소, 커밋의 해시, 파일, 줄 번호를 적었습니다. 엔진은 날마다 바뀌므로 커밋이 없으면 근거가 되지 못합니다.

논문. 저자, 제목, 연도, arXiv 번호를 적고, 어디까지 읽었는지도 적었습니다. "초록까지만 읽었습니다", "서지 정보만 확인했습니다"가 붙은 각주가 많습니다. 그런 논문에서 가져온 것은 초록에 적힌 주장뿐입니다.

웹 문서. 주소를 적고, 인용한 문장을 원문 그대로 옮겼습니다. 문서는 바뀌므로 읽은 날짜를 적은 곳이 있습니다.

확인하지 못한 것. 본문에 "확인하지 않았습니다", "읽지 않았습니다", "짐작입니다"라고 적었습니다. 그 문장을 찾으면 이 책이 어디에서 근거 없이 말하는지를 알 수 있습니다. 53.4절의 격차 분류와 부록 D의 예상이 그런 곳입니다.

각주의 수입니다.

부각주의 수
1부49
2부51
3부90
4부122
5부49
6부111
7부14
모두486

논문은 95편, 저장소는 59곳입니다.

이 책은 초고입니다. 저자가 근거를 하나씩 다시 열어 확인하기 전까지, 각주는 "여기를 보면 된다"는 안내이지 "확인이 끝났다"는 보증이 아닙니다.