SELF-ATTENTION in NLP | How does it works? - Explained @DataScienceGarage
SELF-ATTENTION in NLP | How does it works? - Explained  @DataScienceGarage
Uploaded October 2022 | Updated September 2026, 2 weeks ago
This video clearly explains how Self-Attention works in NLP (Natural Language Processing). The main idea is calculate relationship between an actual token (word) and previous tokens in the same text sequence.

Self-attention is broadly used in areas such as text summarization and text generation. Self-attention was proposed by researchers at Google Research and Google Brain. It was proposed due to challenges faced by encoder-decoder in dealing with long sequences.

The self-attention model allows inputs to interact with each other (i.e calculate attention of all other inputs). To better understand self-attention mechanism, I suggest to check for material about Transformers in NLP, because: the Transformer model revolutionized the implementation of attention by dispensing of recurrence and convolutions and, alternatively, relying solely on a self-attention mechanism.

You can read more about it here: machinelearningmastery.com/the-transformer-attention-mechanism

As always in attention calculation (as we demonstrated in Decoder-Encoder attention in the last video lesson), we need to calculate a Dot product, which consists of K (Keys) transposed and Q (Queries).

The content of the video:
0:00 - Intro to attention and other mechanisms
0:48 - Principal scheme explanation of Self-Attention
6:40 - Quick example

Learn more in this video right now and enjoy!
I hope the attention intuition introduced in this video let you understand how self-attention mechanism works in more details. If yes, I would be so glad of that.

The first lesson: Encoder-Decoder Attention in NLP : youtu.be/z5upsjfVU9c

#attention #nlp #transformers #selfattention #dotproduct #ai #datascience #datasciencegarage #softmax
@DataScienceGarage
SELF-ATTENTION in NLP | How does it works? - ExplainedPython Web Scraping Real estate website in Lithuania - Aruodas.lt (DEMO)Batch Image Resize with Python (with explanation)Run Python on AWS EC2 (Step by Step Example)Python Real data Finance Stock Graph in HTML (2017 version!)Hyperparameter tuning for Ensemble of ML models (Simple Python Example)NLP with Tensorflow and Keras. Tokenizer, Sequences and PaddingMake Better Heatmap With Seaborn in PythonSpeech-To-Text. AWS Lambda function from S3 Event to AWS Transcribe (CloudWatch included)Landing at Warsaw Chopin Airport (from Belgrade to Washaw, Poland)Exam-Labs.com SCAM. Fake answers and Wrong Ads | REVIEWChocolate bar word intro animation by Blender
Data Science Garage |

SELF-ATTENTION in NLP | How does it works? - Explained

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER