Papers

Papers every engineer should read

DSA & MathSoftware & SystemsAI, ML & Data

Widely read papers on module boundaries, why software stays hard, trusting your tools, floating point, remote calls and the hidden cost of machine learning in production, for engineers in any field.

6 papers · 6 h 0/6

  1. On the Criteria To Be Used in Decomposing Systems into Modules(opens in a new tab)

    Parnas 1972 Communications of the ACM 30 min

    Information hiding: start from the design decisions that are difficult or likely to change, and give each module one of them to hide, instead of making each step of a flowchart a module. Two decompositions of the same keyword-in-context (KWIC) index program show the difference.

  2. No Silver Bullet: Essence and Accidents of Software Engineering(opens in a new tab)

    Brooks 1987 IEEE Computer 45 min

    Brooks separates the essential difficulty of software, which comes from the problem a program must solve, from the accidental difficulty of expressing it with current tools. Because high-level languages and time-sharing had already removed much of the accidental part, he argues that no single technique would improve productivity tenfold within a decade.

  3. Reflections on Trusting Trust(opens in a new tab)

    Thompson 1984 Communications of the ACM 20 min

    Thompson's Turing Award lecture describes a C compiler changed to insert a backdoor into the login program and to reinsert both changes whenever it compiles a clean copy of its own source, so the attack survives with no trace in any source file.

  4. What Every Computer Scientist Should Know About Floating-Point Arithmetic(opens in a new tab)

    Goldberg 1991 ACM Computing Surveys 180 min

    A tutorial on IEEE 754 floating point: how results are rounded, how relative error and units in the last place measure the rounding, why subtracting nearly equal numbers loses accuracy, and what guard digits, infinities, NaNs and denormalized numbers are for.

  5. A Note on Distributed Computing(opens in a new tab)

    Waldo et al. 1997 Mobile Object Systems, LNCS 1222 40 min

    An argument that a remote call cannot be made to look like a local one, because distribution adds latency, a separate memory space, concurrency and partial failure, and a local interface has no way to express them. It first appeared as a Sun Microsystems Laboratories report in 1994.

  6. Hidden Technical Debt in Machine Learning Systems(opens in a new tab)

    Sculley et al. 2015 NeurIPS 2015 40 min

    The maintenance costs an ML system builds up outside its model code: entangled features (changing anything changes everything), hidden feedback loops, undeclared consumers of predictions, unstable data dependencies, glue code, pipeline jungles and configuration. Its best-known figure draws the model code as a small box inside the serving, data and monitoring infrastructure around it.

Algorithms and data structures in real systems

DSA & MathSoftware & Systems

The shortest-path and ranking algorithms, indexes, hashing schemes, sketches and columnar layouts inside maps, search engines, databases and storage services, for engineers who choose or tune them and students who want to see where these structures are used.

10 papers · 11.5 h 0/10

  1. A Note on Two Problems in Connexion with Graphs(opens in a new tab)

    Dijkstra 1959 Numerische Mathematik 20 min

    The shortest-path algorithm that grows a set of nodes whose distance from the source is final, always adding the nearest remaining node. The first of the two problems is the minimum spanning tree, solved by the method now usually credited to Prim and Jarník.

  2. The Ubiquitous B-Tree(opens in a new tab)

    Comer 1979 ACM Computing Surveys 60 min

    A survey of B-trees and their variants, including the B+-tree, which keeps every key in the leaves and links the leaves left to right for sequential scans. It explains why a shallow, wide tree suits storage where each node read costs one disk access.

  3. Skip Lists: A Probabilistic Alternative to Balanced Trees(opens in a new tab)

    Pugh 1990 Communications of the ACM 40 min

    Skip lists: sorted linked lists with extra express levels chosen by coin flips, giving expected O(log n) search, insertion and deletion with no rebalancing code.

  4. The Log-Structured Merge-Tree (LSM-Tree)(opens in a new tab)

    O'Neil et al. 1996 Acta Informatica 120 min

    The LSM-tree: collect index updates in a memory component and merge them into larger sorted components on disk in batches, so random index writes become sequential disk I/O.

  5. Consistent Hashing and Random Trees: Distributed Caching Protocols for Relieving Hot Spots on the World Wide Web(opens in a new tab)

    Karger et al. 1997 STOC 1997 60 min

    Consistent hashing: hash each cache to several random points and each item to one point in the same unit interval, then assign the item to the closest cache point, so adding or removing a cache moves only the items near its points. With hash mod n, changing n moves almost every item.

  6. The Anatomy of a Large-Scale Hypertextual Web Search Engine(opens in a new tab)

    Brin and Page 1998 Computer Networks and ISDN Systems 60 min

    The design of the first Google prototype: crawler, inverted index, link-based ranking with PageRank, and the storage layout behind a database of at least 24 million pages.

  7. HyperLogLog: the analysis of a near-optimal cardinality estimation algorithm(opens in a new tab)

    Flajolet et al. 2007 AofA 2007 120 min

    HyperLogLog: hash each item, use the first bits to pick a register, and keep the longest run of leading zeros seen in each register. A harmonic mean over the registers estimates counts well beyond a billion with about 2 percent error in 1.5 kilobytes.

  8. An Improved Data Stream Summary: The Count-Min Sketch and its Applications(opens in a new tab)

    Cormode and Muthukrishnan 2005 Journal of Algorithms 75 min

    The Count-Min sketch: a small grid of counters, one hash function per row, that estimates how often each item appeared in a stream, with error bounded by a fraction of the total count.

  9. C-Store: A Column-oriented DBMS(opens in a new tab)

    Stonebraker et al. 2005 VLDB 2005 75 min

    C-Store, a read-optimized database that stores each column separately, keeps overlapping projections of a table sorted on different columns, compresses each column, and takes new writes in a small writeable store that a tuple mover merges into the read-optimized store.

  10. Dremel: Interactive Analysis of Web-Scale Datasets(opens in a new tab)

    Melnik et al. 2010 VLDB 2010 60 min

    A columnar format for nested records that encodes their structure with repetition and definition levels, combined with a multi-level serving tree that runs aggregation queries over trillion-row tables in seconds.

Distributed systems

Software & Systems

Time, consensus, replicated storage and large-scale data processing, read through the papers behind the systems at Google, Amazon and LinkedIn, for engineers preparing for system design or running these systems.

13 papers · 12 h 0/13

  1. End-to-End Arguments in System Design(opens in a new tab)

    Saltzer, Reed and Clark 1984 ACM Transactions on Computer Systems 45 min

    The end-to-end argument: functions such as reliable delivery can only be implemented completely at the endpoints of a system, so a lower layer should provide them only as a performance improvement.

  2. Time, Clocks, and the Ordering of Events in a Distributed System(opens in a new tab)

    Lamport 1978 Communications of the ACM 50 min

    The happened-before relation and logical clocks, which order events across machines without synchronized physical clocks, and a way to extend that order into a total order every process agrees on.

  3. Paxos Made Simple(opens in a new tab)

    Lamport 2001 ACM SIGACT News 45 min

    A plain-language derivation of the Paxos consensus algorithm, built up from what safety requires so that each rule of the protocol comes with its reason.

  4. In Search of an Understandable Consensus Algorithm(opens in a new tab)

    Ongaro and Ousterhout 2014 USENIX ATC 2014 75 min

    Raft, a consensus algorithm designed to be understood: it separates leader election, log replication and safety, and log entries flow only from the leader to the other servers.

  5. The Chubby lock service for loosely-coupled distributed systems(opens in a new tab)

    Burrows 2006 OSDI 2006 60 min

    Chubby, a coarse-grained lock service with a small file system interface, run as cells of five replicas that agree through Paxos. Google systems such as GFS and Bigtable use it to elect masters and store small configuration files, and clients cache its data with invalidations and leases.

  6. The Google File System(opens in a new tab)

    Ghemawat, Gobioff and Leung 2003 SOSP 2003 75 min

    GFS: a file system for very large files on commodity machines, with one master that holds all metadata, 64 MB chunks replicated across chunkservers, and a relaxed consistency model built around record appends.

  7. MapReduce: Simplified Data Processing on Large Clusters(opens in a new tab)

    Dean and Ghemawat 2004 OSDI 2004 50 min

    MapReduce: users write a map function and a reduce function, and the runtime handles partitioning, scheduling, machine failures and slow machines across thousands of workers.

  8. Bigtable: A Distributed Storage System for Structured Data(opens in a new tab)

    Chang et al. 2006 OSDI 2006 70 min

    Bigtable: a sparse, sorted map indexed by row, column and timestamp, split into tablets that are stored as immutable SSTables on GFS plus an in-memory memtable, with the Chubby lock service for coordination.

  9. Dynamo: Amazon's Highly Available Key-value Store(opens in a new tab)

    DeCandia et al. 2007 SOSP 2007 75 min

    Dynamo: a key-value store that stays writable during failures by combining consistent hashing, sloppy quorums with hinted handoff, vector clocks for conflicting versions and Merkle trees for background repair.

  10. CAP Twelve Years Later: How the "Rules" Have Changed(opens in a new tab)

    Brewer 2012 IEEE Computer 35 min

    Brewer's correction of the "two of three" reading of his CAP theorem: partitions are rare, so a system should detect a partition, enter an explicit partition mode that limits some operations, and then run a recovery step that restores consistency and compensates for mistakes made during the partition.

  11. Spanner: Google's Globally-Distributed Database(opens in a new tab)

    Corbett et al. 2012 OSDI 2012 90 min

    Spanner: a database that shards data across Paxos groups worldwide and gives externally consistent transactions using TrueTime, a clock API that reports time as an interval with bounded uncertainty.

  12. Kafka: a Distributed Messaging System for Log Processing(opens in a new tab)

    Kreps, Narkhede and Rao 2011 NetDB 2011 30 min

    Kafka: topics split into partitions that are append-only logs, messages addressed by their offset, consumers that track their own position, and brokers that rely on the operating system page cache and sendfile.

  13. The Tail at Scale(opens in a new tab)

    Dean and Barroso 2013 Communications of the ACM 30 min

    Why rare slow responses dominate latency when one request fans out to many servers, and techniques such as hedged requests and tied requests that reduce tail latency without making each server faster.

Essays and online books engineers quote

Software & Systems

The essays and free books that working engineers pass around, on learning to program, latency, technology choices, code you can delete, deployment, logs, distributed failure, reliability and system design interviews.

8 essays, 2 books · 3.5 h 0/10

  1. Teach Yourself Programming in Ten Years(opens in a new tab)

    Norvig 2001 Essay 15 min

    Norvig's reply to books that promise to teach programming in days: expertise takes about ten years of deliberate practice, built by writing many programs, working with other programmers, learning languages of different kinds and knowing what the computer is doing underneath, with a table of approximate times for common operations.

  2. Latency Numbers Every Programmer Should Know(opens in a new tab)

    Dean and Norvig 2012 Essay 10 min

    A table of typical costs, from an L1 cache reference (0.5 ns) and a main memory reference (100 ns) to a round trip within a datacenter (0.5 ms), a disk seek (10 ms) and a packet from California to the Netherlands and back (150 ms), credited to Jeff Dean and originally Peter Norvig and collected in Jonas Bonér's gist. The gist now also lists rough 2026 timings for local and hosted LLMs.

  3. Choose Boring Technology(opens in a new tab)

    McKinley 2015 Essay 20 min

    McKinley's argument, from his years at Etsy, that a company has only a few innovation tokens to spend, so it should build most of its stack from well-understood tools whose failure modes are known and spend the tokens only where new technology gives it a real advantage.

  4. Write code that is easy to delete, not easy to extend(opens in a new tab)

    tef 2016 Essay 25 min

    An essay on arranging code so parts can be thrown away cheaply, told as a sequence of steps that starts with writing no code and copying code before turning it into a library, and ends with separating the parts that change often from the parts that rarely change, with an easy-to-use layer over an easy-to-extend one.

  5. The Twelve-Factor App(opens in a new tab)

    Wiggins 2011 Essay 30 min

    Twelve practices for web services that deploy cleanly to cloud platforms, drawn from Heroku's experience running apps: one codebase per app, declared dependencies, configuration in environment variables, backing services as attached resources, stateless processes, logs as event streams and parity between development and production.

  6. The Log: What every software engineer should know about real-time data's unifying abstraction(opens in a new tab)

    Kreps 2013 Essay 60 min

    Kreps describes the log, an append-only sequence of records ordered by time, as the common structure under database replication, consensus, data integration between systems and stream processing, drawing on how LinkedIn built Kafka around it.

  7. Notes on Distributed Systems for Young Bloods(opens in a new tab)

    Hodges 2013 Essay 25 min

    Lessons engineers usually learn from production incidents: distributed systems fail often and partially, coordination is hard, metrics are the only way to see what the system is doing, use percentiles rather than averages, implement backpressure, find ways to stay partially available and roll out changes behind feature flags.

  8. How Complex Systems Fail(opens in a new tab)

    Cook 1998 Essay 15 min

    Eighteen short observations by a physician who studied failure in medicine and other high-risk work: complex systems always run with latent faults, a catastrophe needs several of them to line up, blaming one root cause afterwards is wrong, and the operators who keep the system running also produce its safety.

  9. Site Reliability Engineering: How Google Runs Production Systems(opens in a new tab)

    Beyer et al. 2016 Online book

    Google's book on running production services, free to read online: service level objectives and error budgets, eliminating toil, monitoring and alerting, on-call work, emergency response, blameless postmortems, load balancing, handling overload and preventing cascading failures.

  10. The System Design Primer(opens in a new tab)

    Martin 2017 Online book

    A free guide on GitHub to designing large-scale systems: caching, load balancing, replication, sharding, consistency and asynchronous queues, with worked interview questions such as a URL shortener and a web crawler, and Anki flashcards for review.

Deep learning foundations

AI, ML & Data

How neural networks learn, and the image and sequence models that came before the Transformer, for engineers who want the background that language-model papers assume.

8 papers · 6.5 h 0/8

  1. Learning representations by back-propagating errors(opens in a new tab)

    Rumelhart, Hinton and Williams 1986 Nature 30 min

    Backpropagation for networks with hidden units: run the input forward, pass the error derivative backward through each layer with the chain rule to get the gradient for every weight, and adjust the weights by gradient descent. The hidden units learn useful internal features on tasks such as detecting symmetry and learning family relationships.

  2. Long Short-Term Memory(opens in a new tab)

    Hochreiter and Schmidhuber 1997 Neural Computation 90 min

    The LSTM cell: a memory unit whose contents carry from step to step through a self-connection of weight 1, with multiplicative input and output gates deciding what to write and what to read, so error signals can flow across more than 1,000 time steps without vanishing.

  3. ImageNet Classification with Deep Convolutional Neural Networks(opens in a new tab)

    Krizhevsky, Sutskever and Hinton 2012 NeurIPS 2012 45 min

    AlexNet: an eight-layer convolutional network with 60 million parameters, trained on two GPUs with ReLU activations, dropout and data augmentation, that won the ILSVRC 2012 image classification contest with a top-5 error of 15.3 percent against 26.2 percent for the second-best entry.

  4. Adam: A Method for Stochastic Optimization(opens in a new tab)

    Kingma and Ba 2015 ICLR 2015 40 min

    Adam: an optimizer that keeps running averages of each parameter's gradient and squared gradient, corrects their bias toward zero early in training, and scales each step by their ratio, so every parameter gets its own step size.

  5. Deep Residual Learning for Image Recognition(opens in a new tab)

    He et al. 2016 CVPR 2016 50 min

    Residual connections: each block learns a change that is added to its input, which made networks of up to 152 layers trainable and won the ILSVRC 2015 classification task.

  6. Efficient Estimation of Word Representations in Vector Space(opens in a new tab)

    Mikolov et al. 2013 ICLR 2013 Workshop 40 min

    Two cheap architectures, continuous bag-of-words and skip-gram, that learn word vectors from very large text corpora, plus an analogy test set (king minus man plus woman should land near queen) for measuring them.

  7. Sequence to Sequence Learning with Neural Networks(opens in a new tab)

    Sutskever, Vinyals and Le 2014 NeurIPS 2014 40 min

    Sequence-to-sequence learning: one LSTM reads the source sentence into a fixed-size vector and a second LSTM generates the translation from it, trained end to end. Reversing the source word order improved results markedly.

  8. Neural Machine Translation by Jointly Learning to Align and Translate(opens in a new tab)

    Bahdanau, Cho and Bengio 2015 ICLR 2015 60 min

    Attention for translation: at each output step the decoder takes a learned weighted average of all encoder states, so the source no longer has to fit into a single vector.

How language models are built

AI, ML & Data

From tokenizers to the Transformer, scaling laws, instruction tuning, preference tuning, reasoning and fine-tuning on one GPU, the papers that explain how modern language models are built and adapted, for engineers who use, fine-tune or deploy LLMs.

13 papers · 18 h 0/13

  1. Neural Machine Translation of Rare Words with Subword Units(opens in a new tab)

    Sennrich, Haddow and Birch 2016 ACL 2016 40 min

    Byte-pair encoding for word segmentation: start from characters and repeatedly merge the most frequent adjacent pair, giving a fixed vocabulary of subword units that can spell any word.

  2. Attention Is All You Need(opens in a new tab)

    Vaswani et al. 2017 NeurIPS 2017 90 min

    The Transformer: an encoder-decoder built only from multi-head self-attention and feed-forward layers, with positional encodings in place of recurrence, so training runs in parallel across the whole sequence.

  3. BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding(opens in a new tab)

    Devlin et al. 2019 NAACL 2019 60 min

    BERT: pre-train a Transformer encoder on unlabeled text by predicting masked words and whether two sentences follow each other, then fine-tune the same model with one small output layer per task.

  4. Language Models are Unsupervised Multitask Learners(opens in a new tab)

    Radford et al. 2019 50 min

    GPT-2: a Transformer language model of up to 1.5 billion parameters trained on WebText, 40 GB of text from pages linked on Reddit, that answered questions, translated and summarized with no task-specific training, by treating each task as text to continue.

  5. Scaling Laws for Neural Language Models(opens in a new tab)

    Kaplan et al. 2020 90 min

    Language model loss falls as a power law in model size, dataset size and training compute, with some trends spanning more than seven orders of magnitude, while width and depth matter little within a wide range.

  6. Language Models are Few-Shot Learners(opens in a new tab)

    Brown et al. 2020 NeurIPS 2020 120 min

    GPT-3, a 175-billion-parameter decoder-only model that performs many tasks from a few examples placed in the prompt, with no gradient updates (in-context learning).

  7. Training Compute-Optimal Large Language Models(opens in a new tab)

    Hoffmann et al. 2022 NeurIPS 2022 75 min

    For a fixed compute budget, parameters and training tokens should grow in equal proportion. Chinchilla, a 70B model trained on 4 times more data with Gopher's compute budget, outperformed the 280B Gopher.

  8. Training language models to follow instructions with human feedback(opens in a new tab)

    Ouyang et al. 2022 NeurIPS 2022 90 min

    InstructGPT: fine-tune GPT-3 on human-written demonstrations, train a reward model on human rankings of outputs, then optimize the model against that reward with reinforcement learning (RLHF).

  9. Direct Preference Optimization: Your Language Model is Secretly a Reward Model(opens in a new tab)

    Rafailov et al. 2023 NeurIPS 2023 60 min

    DPO: fine-tune a language model on pairs of preferred and rejected responses with a simple classification loss, which optimizes the same objective as RLHF without training a separate reward model or sampling from the model during training.

  10. DeepSeek-R1 incentivizes reasoning in LLMs through reinforcement learning(opens in a new tab)

    Guo et al. 2025 Nature 60 min

    Reinforcement learning with rule-based rewards for correct final answers, applied to a base model with no supervised reasoning examples, produced long chains of thought that check and revise themselves (DeepSeek-R1-Zero). The released DeepSeek-R1 adds a small cold-start dataset and further training stages, and its reasoning was distilled into smaller open models.

  11. LoRA: Low-Rank Adaptation of Large Language Models(opens in a new tab)

    Hu et al. 2022 ICLR 2022 50 min

    LoRA: freeze the pre-trained weights and train two small low-rank matrices per layer whose product is added to a frozen weight matrix, which for GPT-3 175B cut trainable parameters by 10,000 times and GPU memory by 3 times.

  12. QLoRA: Efficient Finetuning of Quantized LLMs(opens in a new tab)

    Dettmers et al. 2023 NeurIPS 2023 60 min

    QLoRA: train LoRA adapters through a frozen model stored in a new 4-bit NormalFloat format, with double quantization of the quantization constants and paged optimizers for memory spikes, which fits fine-tuning of a 65B model on a single 48GB GPU.

  13. The Llama 3 Herd of Models(opens in a new tab)

    Grattafiori et al. 2024 240 min

    Meta's report on Llama 3: dense Transformers of up to 405B parameters with grouped-query attention and a context window of up to 128K tokens, pre-trained on 15.6T tokens and post-trained with supervised fine-tuning, rejection sampling and DPO.

LLM inference engineering

AI, ML & DataSoftware & Systems

Why generating tokens is limited by memory bandwidth, and how attention kernels, KV-cache management, batching, speculative decoding and quantization raise throughput, for engineers who deploy models or build serving systems.

10 papers · 9.5 h 0/10

  1. Roofline: An Insightful Visual Performance Model for Multicore Architectures(opens in a new tab)

    Williams, Waterman and Patterson 2009 Communications of the ACM 45 min

    The roofline model: plot attainable performance against operational intensity (operations per byte moved from memory), so each kernel is capped either by peak compute or by memory bandwidth.

  2. GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpoints(opens in a new tab)

    Ainslie et al. 2023 EMNLP 2023 25 min

    Grouped-query attention: each key and value head is shared by a group of query heads, a middle point between standard multi-head attention and multi-query attention, where every query head shares one key and value head. It also gives a recipe that converts an existing multi-head checkpoint using 5 percent of its original pre-training compute.

  3. FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness(opens in a new tab)

    Dao et al. 2022 NeurIPS 2022 75 min

    FlashAttention: compute exact attention in tiles that stay in on-chip SRAM, so the full attention matrix is never written to GPU memory, which cuts memory traffic and makes memory use linear in sequence length.

  4. Orca: A Distributed Serving System for Transformer-Based Generative Models(opens in a new tab)

    Yu et al. 2022 OSDI 2022 60 min

    Iteration-level scheduling, now usually called continuous batching: the server re-forms the batch after every decoding step, so finished requests leave and new ones join without waiting for the whole batch. Selective batching makes this work for attention.

  5. Efficient Memory Management for Large Language Model Serving with PagedAttention(opens in a new tab)

    Kwon et al. 2023 SOSP 2023 60 min

    PagedAttention and vLLM: store each request's KV cache in fixed-size blocks found through a block table, like pages of virtual memory, which nearly removes fragmentation and lets requests share blocks.

  6. SGLang: Efficient Execution of Structured Language Model Programs(opens in a new tab)

    Zheng et al. 2024 NeurIPS 2024 60 min

    SGLang: a language for programs that make many LLM calls, and a runtime whose RadixAttention keeps KV caches in a radix tree so calls that share a prompt prefix reuse it, plus compressed state machines for faster structured output.

  7. DistServe: Disaggregating Prefill and Decoding for Goodput-optimized Large Language Model Serving(opens in a new tab)

    Zhong et al. 2024 OSDI 2024 60 min

    Disaggregated serving: run prefill and decoding on separate GPUs and choose resources and parallelism for each phase against its own latency target, time to first token or time per output token.

  8. Fast Inference from Transformers via Speculative Decoding(opens in a new tab)

    Leviathan, Kalman and Matias 2023 ICML 2023 50 min

    Speculative decoding: a small draft model proposes several tokens, the large model checks them all in one parallel pass, and a modified rejection-sampling rule keeps the output distribution identical to the large model's.

  9. GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformers(opens in a new tab)

    Frantar et al. 2023 ICLR 2023 75 min

    GPTQ: quantize a trained model's weights to 3 or 4 bits layer by layer, using approximate second-order information to adjust the not-yet-quantized weights for each rounding error. A 175B model takes about four GPU hours.

  10. AWQ: Activation-aware Weight Quantization for LLM Compression and Acceleration(opens in a new tab)

    Lin et al. 2024 MLSys 2024 50 min

    Activation-aware weight quantization: find the roughly 1 percent of weight channels that matter most by looking at activation magnitudes, and scale them up before 4-bit quantization so their rounding error shrinks.

Agents and retrieval

AI, ML & Data

How to give language models search, tools and multi-step reasoning, and how to measure whether it works, for engineers building RAG systems, agents and their evaluations.

11 papers · 9 h 0/11

  1. Efficient and robust approximate nearest neighbor search using Hierarchical Navigable Small World graphs(opens in a new tab)

    Malkov and Yashunin 2020 IEEE Transactions on Pattern Analysis and Machine Intelligence 60 min

    HNSW: approximate nearest-neighbor search over stacked proximity graphs, where each element appears in a random number of layers and a search starts in the sparse top layer and descends, giving logarithmic scaling.

  2. Dense Passage Retrieval for Open-Domain Question Answering(opens in a new tab)

    Karpukhin et al. 2020 EMNLP 2020 45 min

    Dense passage retrieval: two BERT encoders, one for questions and one for passages, trained with in-batch negatives so relevant pairs score high by dot product. It beat a strong BM25 system by 9 to 19 points in top-20 retrieval accuracy.

  3. Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks(opens in a new tab)

    Lewis et al. 2020 NeurIPS 2020 50 min

    Retrieval-augmented generation: a BART generator conditioned on Wikipedia passages found by a DPR retriever, fine-tuned together, so knowledge can be updated by swapping the index without retraining.

  4. BEIR: A Heterogenous Benchmark for Zero-shot Evaluation of Information Retrieval Models(opens in a new tab)

    Thakur et al. 2021 NeurIPS 2021 Datasets and Benchmarks 45 min

    BEIR: 18 retrieval datasets from different domains for testing retrievers on data unlike their training data. BM25 proved a strong baseline, rerankers and late-interaction models scored best at high cost, and dense retrievers often fell behind.

  5. Lost in the Middle: How Language Models Use Long Contexts(opens in a new tab)

    Liu et al. 2024 Transactions of the ACL 40 min

    Language models use relevant information at the start or end of a long context much better than information in the middle, and this holds even for models built for long contexts.

  6. Chain-of-Thought Prompting Elicits Reasoning in Large Language Models(opens in a new tab)

    Wei et al. 2022 NeurIPS 2022 40 min

    Chain-of-thought prompting: few-shot examples that show intermediate reasoning steps lead large models to write their own steps, raising accuracy on arithmetic, commonsense and symbolic reasoning tasks.

  7. ReAct: Synergizing Reasoning and Acting in Language Models(opens in a new tab)

    Yao et al. 2023 ICLR 2023 45 min

    ReAct: prompt a model to alternate reasoning with actions such as Wikipedia searches and to read each result before its next step, which reduced hallucination in question answering and beat imitation and reinforcement learning agents on interactive tasks.

  8. Evaluating Large Language Models Trained on Code(opens in a new tab)

    Chen et al. 2021 60 min

    Codex, a GPT model fine-tuned on public GitHub code (a separate production version powered GitHub Copilot), and HumanEval, 164 hand-written programming problems graded by unit tests, with an unbiased estimator for pass@k.

  9. Judging LLM-as-a-Judge with MT-Bench and Chatbot Arena(opens in a new tab)

    Zheng et al. 2023 NeurIPS 2023 Datasets and Benchmarks 50 min

    Using a strong model to grade other models' answers, checked against human votes on MT-Bench and Chatbot Arena. GPT-4 as judge agreed with humans over 80 percent of the time, about as often as humans agree with each other.

  10. SWE-bench: Can Language Models Resolve Real-World GitHub Issues?(opens in a new tab)

    Jimenez et al. 2024 ICLR 2024 40 min

    SWE-bench: 2,294 real GitHub issues from 12 Python repositories, where a model must edit the codebase so that the tests from the fixing pull request pass. The best model at publication resolved under 2 percent.

  11. SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering(opens in a new tab)

    Yang et al. 2024 NeurIPS 2024 50 min

    Agent-computer interfaces: commands designed for a language model, such as a windowed file viewer, repository search and an editor that runs a linter and rejects broken edits, raised SWE-bench results well above earlier systems.

Essays, books and posts on AI

AI, ML & Data

The essays, online books and posts AI engineers quote, on why general methods that scale keep winning, how to train and debug networks, how Transformers and chat models work, and how to build agents and LLM products.

10 essays, 1 book, 1 post · 8 h 0/12

  1. The Bitter Lesson(opens in a new tab)

    Sutton 2019 Essay 10 min

    Sutton's argument from 70 years of AI research that general methods which use more computation, chiefly search and learning, end up beating methods built on human knowledge of the domain, with chess, Go, speech recognition and computer vision as his examples.

  2. The Unreasonable Effectiveness of Recurrent Neural Networks(opens in a new tab)

    Karpathy 2015 Essay 40 min

    Character-level recurrent networks trained on Shakespeare, Wikipedia, LaTeX and the Linux kernel source generate convincing text in each style one character at a time, and the post visualizes individual neurons that track quotes, line length and indentation.

  3. Software 2.0(opens in a new tab)

    Karpathy 2017 Essay 15 min

    Karpathy's argument that neural networks are a new way to write software: instead of coding the behavior, engineers collect a dataset and choose an architecture, and optimization finds the program, which is stored as weights.

  4. A Recipe for Training Neural Networks(opens in a new tab)

    Karpathy 2019 Essay 30 min

    A step-by-step process for training a network without silent bugs: inspect the data by hand, build the full training and evaluation pipeline around a simple model, overfit a small batch, then add regularization and tune, checking each step before moving on.

  5. The Illustrated Transformer(opens in a new tab)

    Alammar 2018 Essay 35 min

    A visual walk through the Transformer from Attention Is All You Need: how each word becomes query, key and value vectors, how attention scores are computed and combined across heads, and how the encoder and decoder stacks fit together.

  6. What Is ChatGPT Doing … and Why Does It Work?(opens in a new tab)

    Wolfram 2023 Essay 120 min

    A long explanation, for readers without a machine learning background, of how ChatGPT produces text: it repeatedly picks a next token from probabilities computed by a trained neural network, and Wolfram builds up to that through embeddings, training and the Transformer with small examples.

  7. How to Scale Your Model(opens in a new tab)

    Austin et al. 2025 Online book

    An online book from Google DeepMind on how language models run on TPUs and GPUs: rooflines, how matrix multiplications are sharded across chips and what the communication costs, and how to split training and inference with data, tensor and other kinds of parallelism, with worked examples for Llama 3.

  8. Rules of Machine Learning: Best Practices for ML Engineering(opens in a new tab)

    Zinkevich 2016 Essay 60 min

    43 rules from Google's experience building ML products, ordered by project stage, starting with launching without machine learning, keeping the first model simple while getting the pipeline right, and measuring training-serving skew.

  9. Patterns for Building LLM-based Systems & Products(opens in a new tab)

    Yan 2023 Essay 90 min

    Seven patterns for putting language models into products: evals, retrieval-augmented generation, fine-tuning, caching, guardrails, defensive UX and collecting user feedback, each explained with the papers and production examples behind it.

  10. LLM Powered Autonomous Agents(opens in a new tab)

    Weng 2023 Essay 45 min

    A survey of agent design built around three parts: planning (task decomposition and self-reflection), memory (the context window plus an external vector store) and tool use, with summaries of ReAct, Reflexion, Toolformer, HuggingGPT and the generative agents simulation.

  11. Building effective agents(opens in a new tab)

    Schluntz and Zhang 2024 Essay 25 min

    Anthropic's guide to LLM systems that separates workflows, where code decides the sequence of model calls, from agents, where the model decides its next step and tool calls, and describes five workflow patterns: prompt chaining, routing, parallelization, orchestrator-workers and evaluator-optimizer.

  12. There's a new kind of coding I call "vibe coding"(opens in a new tab)

    Karpathy 2025 X post 2 min

    The post that named vibe coding: building software by talking to an AI coding tool, accepting its changes without reading the diffs and pasting error messages back until the program works, which Karpathy described as fine for throwaway weekend projects.