This course introduces the theoretical foundations and practical applications of artificial neural networks and deep learning, one of the central pillars of contemporary artificial intelligence. Starting from the artificial neuron model and the multilayer perceptron, students learn how networks are trained via backpropagation and gradient-based optimization algorithms, and how their ability to generalize is controlled.
Building on these foundations, the course covers the main deep learning architectures: convolutional networks for computer vision, recurrent networks for sequential data, and attention mechanisms and the transformer architecture that underpin current language models and foundation models, along with an introduction to generative models.
The course combines an understanding of mathematical principles with a strong practical component: students design, implement, train, tune, and evaluate real models using professional-grade deep learning libraries, and critically reflect on the capabilities, limitations, and ethical implications of this technology.
Titular Professors
Professors
Students are expected to have a solid working knowledge of the following before taking this course:
- Python programming: data structures, functions, object-oriented programming, and use of scientific libraries (NumPy, Pandas, Matplotlib).
- Linear algebra: vectors, matrices, matrix multiplication, norms, and basic decomposition concepts.
- Calculus: partial derivatives, gradients, and the chain rule.
- Probability and statistics: probability distributions, expectation, variance, and basic inference concepts.
- Foundations of machine learning: supervised and unsupervised paradigms, data splitting (train/validation/test), overfitting, and model evaluation metrics.
- Understand the mathematical and computational foundations of artificial neural networks and deep learning.
- Understand the complete training pipeline of a neural network: loss functions, backpropagation, and gradient descent optimization.
- Know the main deep learning architectures (MLP, CNN, RNN/LSTM, transformers) and identify which is most appropriate for a given problem and data type.
- Develop the ability to diagnose and address common training problems (overfitting, vanishing/exploding gradients, poor convergence).
- Build practical competence in designing, implementing, and evaluating models with deep learning libraries (PyTorch / Keras).
- Apply transfer learning and fine-tuning techniques using pretrained models.
- Critically assess the capabilities, limitations, biases, and ethical implications of deep learning.
1. Introduction to deep learning
- From classical machine learning to deep learning.
- The artificial neuron and the perceptron. Historical perspective and current context.
- Types of problems and data. Working environment and libraries.
2. Feedforward neural networks (multilayer perceptron)
- Layered architecture and internal representations.
- Activation functions (sigmoid, tanh, ReLU and variants).
- Universal approximation theorem and the concept of depth.
3. Training neural networks
- Loss functions for regression and classification.
- Error backpropagation and automatic differentiation.
- Gradient descent and variants (SGD, mini-batch, momentum, RMSProp, Adam).
- Weight initialization and learning rate.
4. Regularization and generalization
- Overfitting and the bias–variance trade-off.
- L1/L2 regularization, dropout, and batch normalization.
- Data augmentation, early stopping, and cross-validation.
5. Convolutional neural networks (CNN)
- The convolution operation, filters, padding, and pooling.
- Reference architectures (LeNet, AlexNet, VGG, ResNet).
- Applications to computer vision. Transfer learning and fine-tuning.
6. Recurrent neural networks (RNN)
- Modeling sequential and temporal data.
- RNN, LSTM, and GRU. The gradient problem in long sequences.
- Applications to natural language processing and time series.
7. Attention mechanisms and transformers
- Attention and self-attention.
- The transformer architecture.
- Introduction to language models and foundation models.
8. Generative models
- Autoencoders and variational autoencoders (VAE).
- Generative adversarial networks (GAN). Introduction to diffusion models.
- The course combines theoretical and practical sessions within a project-oriented approach:
- Theory lectures: presentation of conceptual and mathematical foundations, with examples and discussion of application cases.
- Lab sessions: guided problem-solving and model implementation using Python and a deep learning library (PyTorch / Keras), working with real datasets.
- Project-based learning: development of an applied project throughout the course that integrates the course contents.
- Independent study: individual study, completion of assignments, and reading of supplementary material.
Continuous assessment based on exercises and final assessment through a project
This subject will have a grade as follows: FINAL GRADE = 20%·AC1 + 20%·AC2 + 20%·AC3 + 40%·Project; all parts >= 5
Bishop, C. M. i Bishop, H. (2024). Deep Learning: Foundations and Concepts. Springer.
Géron, A. (2022). Hands-On Machine Learning with Scikit-Learn, Keras & TensorFlow (3a ed.). O'Reilly Media.
Nielsen, M. (2015). Neural Networks and Deep Learning. [Disponible en línia: http://neuralnetworksanddeeplearning.com]
Howard, J. i Gugger, S. (2020). Deep Learning for Coders with fastai and PyTorch. O'Reilly Media.
Vaswani, A. et al. (2017). "Attention Is All You Need". Advances in Neural Information Processing Systems (NeurIPS).
Documentació oficial de PyTorch (https://pytorch.org) i Keras (https://keras.io).
Materials dels cursos CS231n (visió per computador) i CS224n (processament del llenguatge natural) de la Universitat de Stanford
Bishop, C. M. i Bishop, H. (2024). Deep Learning: Foundations and Concepts. Springer.
Géron, A. (2022). Hands-On Machine Learning with Scikit-Learn, Keras & TensorFlow (3a ed.). O'Reilly Media.
Nielsen, M. (2015). Neural Networks and Deep Learning. [Disponible en línia: http://neuralnetworksanddeeplearning.com]
Howard, J. i Gugger, S. (2020). Deep Learning for Coders with fastai and PyTorch. O'Reilly Media.
Vaswani, A. et al. (2017). "Attention Is All You Need". Advances in Neural Information Processing Systems (NeurIPS).
Documentació oficial de PyTorch (https://pytorch.org) i Keras (https://keras.io).
Materials dels cursos CS231n (visió per computador) i CS224n (processament del llenguatge natural) de la Universitat de Stanford