Purpose: This course is aimed at learners who want to gain an in-depth understanding of the internal principles of deep learning systems, teaching "full-stack" knowledge from high-level modeling design, automatic differentiation implementation, to device-level efficient algorithms. Students will design and build a complete deep learning library, Needle (Necessary Elements of Deep Learning), from scratch, supporting efficient GPU computation, automatic differentiation, as well as parameterized layers, loss functions, data loaders, and optimizers, and use it to implement convolutional networks, recurrent networks, self-attention models, and generative models.
Main abilities and objectives: After completion, students should be able to design and implement from scratch a deep learning framework containing automatic differentiation, optimization algorithms, and neural network modules; analyze and optimize the computational and memory efficiency of deep learning operations on CPU and GPU; implement core operators such as matrix multiplication, convolution, and attention in C++ and CUDA; use hardware acceleration techniques such as memory coalescing, tiling, and parallel computation to achieve near-production-level performance; build and train CNNs, RNNs, and Transformers using a self-implemented framework; evaluate the trade-offs of different implementation strategies in terms of speed, memory, and numerical stability; and extend custom operators and optimizations for specific scenarios.
Usage and schedule: Fall 2026 course, first class on 8/25, lectures on Tuesday and Thursday 11:00-12:20 (DH 2315), with multiple TA office hours. The first few classes use an In-Person Expectation Rotation, assigning on-campus days by the first letter of the Andrew ID (a-m attend on Tuesday and remote on Thursday; n-z vice versa), and all lectures are recorded. The main resources are lecture slides and implementation notebooks released before class. There are also 2022 course recordings on YouTube. It is recommended to use Google Colab's GPU runtime, discussions use the Ed platform, and there is no assigned textbook. Assignments are HW0-HW4 to gradually build the Needle library (HW0 background review and softmax regression, HW1 automatic differentiation framework, HW2 neural network modules and optimizers, HW3 NDArray library with CPU/CUDA backends, HW4 convolution, RNN, and advanced architectures), using mugrade for automatic grading, with multiple submissions allowed before the deadline; the final is a 2-3 person group implementing a new feature in Needle and building a model that uses that feature. Grading consists of 45% final project, 10% class participation (at least 5 meaningful discussions on the forum), etc.
Applicable scenarios: Suitable for students with systems programming, linear algebra, calculus/probability and proofs, Python and C++, and basic machine learning foundations to systematically study the underlying implementation of deep learning.
Restrictions: Prerequisite background is required, and HW0 serves as a diagnostic test of prerequisite knowledge; assignments must be completed independently, projects may be done in group collaboration, and code solutions may not be shared on the forum; generative AI tools may be used to assist with coding but students must take full responsibility for submitted code; there are 5 late days total for the semester, with at most 2 days per assignment, not applicable to the final project. Specific fees, prices, and other information beyond the Chinese introduction are not yet provided.gramming, linear algebra, calculus/probability and proofs, Python and C++, and basic machine learning foundations to systematically study the underlying implementation of deep learning.
Restrictions: Prerequisite background is required, and HW0 serves as a diagnostic test of prerequisite knowledge; assignments must be completed independently, projects may be done in group collaboration, and code solutions may not be shared on the forum; generative AI tools may be used to assist with coding but students must take full responsibility for submitted code; there are 5 late days total for the semester, with at most 2 days per assignment, not applicable to the final project. Specific fees, prices, and other information beyond the Chinese introduction are not yet provided.