Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Deep Learning for NLP - Part 2
Rating: 5.0 out of 5(7 ratings)
146 students

Deep Learning for NLP - Part 2

Part 2: Encoder-decoder models, attention and Transformers
Created byManish Gupta
Last updated 7/2021
English
English [Auto],

What you'll learn

  • Deep Learning for Natural Language Processing
  • Encoder-decoder models, Attention models, ELMo
  • GLUE, Transformers, GPT, BERT
  • DL for NLP

Course content

2 sections13 lectures2h 52m total length
  • Introduction1:51

    Explore decoder and attention-based models, including global, local, and hierarchical attention, with examples in machine translation, plus context-sensitive embeddings like Elmo and their training and use.

  • Encoder-decoder models4:52

    Explore encoder-decoder models for sequence-to-sequence tasks like machine translation, with context vectors guiding decoding, start and end symbols, and beam search for best hypotheses.

  • Global, local, hierarchical attention; attention for sentence pairs16:23

    Explore global, local, and hierarchical attention in encoder-decoder models, which compute context vectors from all encoder states to align source sentences with target translations.

  • Attention based models30:32

    Explore variants of attention: global, local, and hierarchical, showing how context vectors influence decoder outputs, and apply cross-attention for sentence pairs using attention-based CNN architectures.

  • ELMo14:02

    Elmo trains forward and backward language models to produce context-sensitive word embeddings, giving different vectors for bank in different contexts, combined into a task-specific representation for downstream models.

  • Summary2:01

    Summarize core NLP models from encoder-decoder architectures with attention, exploring self-attention, hierarchical and local variants, two-sentence inputs, and Elmo embeddings. Next, the course shifts to transforming based models.

Requirements

  • Basics of machine learning
  • Recurrent Models: RNNs, LSTMs, GRUs and variants
  • Multi-Layered Perceptrons (MLPs)

Description

This course is a part of "Deep Learning for NLP" Series. In this course, I will introduce concepts like Encoder-decoder attention models, ELMo, GLUE, Transformers, GPT and BERT. These concepts form the base for good understanding of advanced deep learning models for modern Natural Language Processing.

The course consists of two main sections as follows.

In the first section, I will talk about Encoder-decoder models in the context of machine translation and how beam search decoder works. Next, I will talk about the concept of encoder-decoder attention. Further, I will elaborate on different types of attention like Global attention, local attention, hierarchical attention, and attention for sentence pairs using CNNs as well as LSTMs. We will also talk about attention visualization. Finally, we will discuss ELMo which is a way of using recurrent models to compute context sensitive word embeddings.

In the second section, I will talk about details about the various tasks which are a part of the GLUE benchmark and details about other benchmark NLP datasets across tasks. Then we will start our modern NLP journey with understanding different parts of an encoder-decoder Transformer model. We will delve into details of Transformers in terms of concepts like self attention, multi-head attention, positional embeddings, residual connections, and masked attention. After that I will talk about two most popular Transformer models: GPT and BERT. In the GPT part, we will discuss how is GPT trained and what are differences in variants like GPT2 and GPT3. In the BERT part, we will discuss how BERT is different from GPT, how it is pretrained using the masked language modeling and next sentence prediction tasks. We will also quickly talk about finetuning for BERT and multilingual BERT.

Who this course is for:

  • Beginners in deep learning
  • Python developers interested in data science concepts