Purpose
Dive into Deep Learning (D2L for short) is an interactive deep learning textbook intended for students, teachers, and practitioners who want to systematically learn deep learning. It integrates code, mathematical formulas, textual explanations, and discussions, and concepts and techniques are demonstrated and implemented through experiments on real datasets. The book has been adopted by 500 universities in 70 countries.
Main capabilities
- Each section is an executable Jupyter notebook, and readers can modify the code, adjust hyperparameters, and receive immediate feedback, thereby gaining hands-on experience in deep learning.
- It provides implementations in four frameworks: PyTorch, NumPy/MXNet, JAX, and TensorFlow.
- The content offers a learning experience that combines mathematics, diagrams, code, text, and discussion.
- The community is active, and readers can discuss and learn with thousands of peers through the link provided in each section.
- It can be used as a textbook or reference book, and provides a BibTeX entry for citation.
- Some chapters are accompanied by slides, Jupyter notebooks, assignments, and videos (from the Berkeley course).
- It offers options for running the book for free, such as Amazon SageMaker Studio Lab.
How to use
Readers can visit d2l.ai to read online and directly run or modify the Jupyter notebooks for each section. The book's content is organized by chapter, and each section can be executed independently. According to the official materials, the book can also be run for free through Amazon SageMaker Studio Lab. It can be implemented with PyTorch, NumPy/MXNet, JAX, and TensorFlow.
Content structure
The book contains the following chapters (based on the official table of contents):
- Introduction
- Preliminaries: data manipulation, data preprocessing, linear algebra, calculus, automatic differentiation, probability and statistics, documentation
- Linear neural networks for regression: linear regression, object-oriented implementation design, synthetic regression data, implementing linear regression from scratch, concise implementation of linear regression, generalization, weight decay
- Linear neural networks for classification: Softmax regression, image classification dataset, basic classification model, implementing Softmax regression from scratch, concise implementation of Softmax regression, generalization in classification, environment and distribution shift
- Multilayer perceptrons: multilayer perceptrons, implementation, forward propagation/backpropagation and computational graphs, numerical stability andInitialization, Generalization in Deep Learning, Dropout, Predicting House Prices on Kaggle
- Builder's Guide: Layers and Modules, Parameter Management, Parameter Initialization, Lazy Initialization, Custom Layers, File I/O, GPUs
- Convolutional Neural Networks: From Fully Connected to Convolution, Image Convolution, Padding and Stride, Multiple Input and Multiple Output Channels, Pooling, LeNet
- Modern Convolutional Neural Networks: AlexNet, VGG, NiN, GoogLeNet, Batch Normalization, ResNet and ResNeXt, DenseNet, Designing Convolutional Network Architectures
- Recurrent Neural Networks: Working with Sequences, Converting Raw Text into Sequence Data, Language Models, RNNs, Implementing RNNs from Scratch, Concise Implementation of RNNs, Backpropagation Through Time
- Modern Recurrent Neural Networks: LSTM, GRU, Deep RNNs, Bidirectional RNNs, Machine Translation and Datasets, Encoder-Decoder Architecture, Sequence-to-Sequence Learning for Machine Translation, Beam Search
- Attention Mechanisms and Transformers: Queries/Keys/Values, Attention Pooling Based on Similarity, Attention Scoring Functions, Bahdanau Attention, Multi-Head Attention, Self-Attention and Positional Encoding, Transformer Architecture, Transformers for Vision, Large-Scale Pretraining with Transformers
- Optimization Algorithms: Optimization and Deep Learning, Convexity, Gradient Descent, Stochastic Gradient Descent, Minibatch Stochastic Gradient Descent, Momentum, Adagrad, RMSProp, Adadelta, Adam, Learning Rate Scheduling
- Computational Performance: Compilers and Interpreters, Asynchronous Computation, Automatic Parallelism, Hardware, Multi-GPU Training, Concise Implementation of Multi-GPU, Parameter Servers
- Computer Vision: Image Augmentation, Fine-Tuning, Object Detection and Bounding Boxes, Anchor Boxes, Multi-Scale Object Detection, Object Detection Datasets, SSD, R-CNN, Semantic Segmentation and Datasets, Transposed Convolution, Fully Convolutional Networks, Neural Style Transfer, CIFAR-10 Image Classification on Kaggle, Dog Breed Identification on Kaggle
- Natural Language Processing: Pretraining: word2vec, Approximate Training, Word Embedding Pretraining Datasets, Pretraining word2vec, GloVe, Subword Embedding, Word Similarity and Analogy, BERT, BERT Pretraining Datasets, Pretraining BERT
- Natural Language Processing: Applications: Sentiment Analysis and Datasets, Sentiment Analysis Using RNNs, Sentiment Analysis Using CNNs, Natural Language Inference and Datasets, Using AttentionPerforming natural language inference, fine-tuning BERT for sequence-level and token-level applications, fine-tuning BERT for natural language inference
- Reinforcement learning: Markov decision processes, value iteration, Q-learning
- Gaussian processes: Introduction to Gaussian processes, Gaussian process priors, Gaussian process inference
- Hyperparameter optimization: What is hyperparameter optimization, hyperparameter optimization API, asynchronous random search, multi-fidelity hyperparameter optimization, asynchronous successive halving
- Generative adversarial networks: GAN, deep convolutional GAN
- Recommender systems: Overview of recommender systems, MovieLens dataset, matrix factorization, AutoRec, personalized ranking, neural collaborative filtering, sequence-aware recommender systems, feature-rich recommender systems, factorization machines, deep factorization machines
- Appendix: Mathematics for deep learning: geometric and linear algebraic operations, eigendecomposition, etc.
Version updates
The official materials record the following updates: In February 2023, the book will be published by Cambridge University Press, and the Chinese edition is a bestseller on the largest Chinese online bookstore; in December 2022, the JAX implementation became available, adding topics on reinforcement learning, Gaussian processes, and hyperparameter optimization; in July 2022, a new implementation API and new topics such as generalization in classification and deep learning, ResNeXt, CNN design spaces, vision Transformers, and large-scale pretraining; in May 2022, the community was invited to improve the Portuguese, Turkish, Vietnamese, Korean, and Japanese translations; in December 2021, the free running option SageMaker Studio Lab was added; in May 2021, the Berkeley course slides, Jupyter notebooks, assignments, and videos can be found on the syllabus page.
Applicable scenarios
Suitable for university course teaching, self-study of deep learning, use as a reference book for consultation, and hands-on experiments based on Jupyter notebooks.
Limitations
This material does not provide information such as fees, prices, specific platform requirements, or learning prerequisites.