75 years of Language Models

CodeEmporium · Advanced ·🧬 Deep Learning ·2y ago

Key Takeaways

The video discusses 75 years of language models and provides a list of 20 research papers to master language modeling, covering topics such as mathematical theory of communication, neural probabilistic language models, and transformer-based architectures like BERT and Attention Is All You Need.

Full Transcript

in this video we're going to mention 20 of the most important research papers that made language models as powerful as they are today we're going to distill this by covering research since the 1940s so let's get to it first off language models can predict the next word in a given sentence given its previous words and these models don't actually process words but they process numbers and so we need a way to represent language with numbers so that these models can understand them and eventually they'll be able to perform intelligent tasks and this is the basis of language processing with that the 20 papers that we're going to go through will represent language with numbers in the most effective way as possible so let's get to it we start off with the paper mathematical theory of communication this paper was written in 1948 by Claude Shannon who is regarded as the father of information Theory so essentially with this paper since we want to represent language with numbers we do so by representing sentence with n gram vectors this is done by first breaking down the sentence into its corresponding engrams and determining which engrams are present in the representation this was one of the earliest ways that computers understood sentences the second paper is the one titled neural probabilistic language models so an issue with the engram vectors approach is that they were sparse vectors so they're too large for computers to process this paper introduced the idea of neural networks to solve the problem of language modeling and during this training the model learns also how to represent words with a dense fixed size Vector which may be of size like 64 128 or 256 Dimensions this is a lot smaller in Vector size than like the n-gram vectors the next paper here is NLP almost from scratch so until now we would need to learn vectors by training neural networks on language modeling or some other task but if we change the problem then we would need to train these word vectors from scratch so instead of training a neural network on a specific problem why don't we train it on multiple problems with a unifying architecture and so different problems could share the same word Vector representation and this is somewhat a philosophy that we even follow today now in this research the core architecture uses convolution to learn vectors this was inspired by previous research on time delay neural networks introduced in 1989 for phoneme detection so overall the NLP almost from scratch paper introduces the idea of learning shared representations of words next up we have the efficient estimation of word representations in Vector space now this is the paper that introduced word to VEC so keep in mind that the goal even since the 1940s paper was to represent text that is like words and sentences with some Vector that preserves meaning and is tractable for computers to understand the previous architecture is an NLP almost from scratch does learn word representations that are reasonably high quality but it needs a lot of data and a complex architecture to do so word tovec learns word vectors but with a much simpler architecture word to VEC itself is a framework of two architectures one is C bowel and the other is Skip Graham we train this network by passing in and also passing out one hot Vector of words but this Center layer is going to have the internal dense word representation that will eventually be learned and so once it's trained we're going to have a dictionary of every word followed by its Vector representation now a similar paper is glove which is global vectors for word representation this is similar to word to VEC but the vectors are formed instead of just using local context information we use Global co-occurrence of words in order to form the final dense word representations another paper that is very similar also is enriching word vectors with sub word information this is the paper that introduced fast text which is also similar to word to VEC but it's very useful in morphologically Rich languages like Finnish Arabic and some Indian languages morphologically Rich languages have words that can change their forms slightly just based on gender or preposition if you want more information on word to VEC love and fast text I have a full video as well next is a convolution neural network for modeling sentences so we've spoken about words and representing words as vectors but we also want to represent present sometimes sentences as a fixed length vectors such that their meaning is preserved so this dcnn does so using a convolution and some Max K pooling operations and this K really depends on the size of the input and hence this is a dynamic Network and this way longer sequences of words can be represented pretty well for more information on Dynamic convolution neural networks and also time delay neural networks you can check out my companion video here now the next paper I want to introduce is learning internal representations by error propagation so this is the paper that was written in 1985 and introduced recurrent neural networks so recurrent neural networks like Dynamic convolution neural networks can process sentences they get representations of sentences and can even solve tasks involving these sentences this dissertation is laced with however a ton of math and so I would recommend actually reading chapter 10 of the deep learning book because it actually gives a good intuition about recurrent neural networks from scratch and also has very nice visuals to accompany it next up is long short term memory the main issue with traditional recurrent neural networks is that the gradients would either explode or vanish so the lstm architecture was introduced to combat this issue for longer inputs now the outline of this paper is kind of clear but there is a lot of math laced into it as well and so for this case I would also recommend a popular blog post on this topic by Cola and I think they explained lstm's very good with some stunning visuals for additional information I have a full companion video on this topic too and yes I make a lot of videos now I also wanted to call to attention a PhD thesis by Ilya skever the premise here is the original rnns and lstms that were introduced in the 80s and 90s didn't quite gain popularity until past the 2010s a big reason for this was that they were very tricky to train and this thesis showed how they can be stably trained using some techniques on parameter initialization optimization and regularization and this is why recurrent neural networks for NLP became super popular around like the 2013 to 2016 time next up we have deep contextualized word representations so let's pivot back to word representations like using word to VEC now the goal is to understand really high quality embeddings for words now the main issue with word to VEC is that it really doesn't care about contacts the same Vector is generated no matter where the word is in the sentence but this isn't good because the word meanings can change but the vector doesn't to solve this Elmo considers contacts so every word Vector that is generated is a function of all words in the sentence and it does so by having a bi-directional STM architecture so lstm networks help them train on Long sequences in the bi-directional component allows Elmo to understand words that come before it as well as words that come after it the result is a deep contextualized word representation hence the paper and we can fine tune this on any other NLP problem now the next paper I want to talk about is a very famous one called attention is all you need another issue with lstms and rnns are that they are slow to train and this is because data needs to be passed into them sequentially the architecture consists of an encoder and a decoder that makes use of attention for processing long-term dependencies kind of like lstms now this transform architecture was kind of the turning point from the recurrent base architectures to more attention-based methods that set the stage for a modern language models for a brief overview on this topic I have a video and also to code this out completely from scratch I have a playlist of videos more fun more homework next up we have Bert the pre-training of deep bi-directional Transformers for language understanding so Bert essentially is a stack of Transformer encoders the main issue with Transformers is that we need to train the architecture from scratch every single time that we need to train on a new task which is also language related so language modeling question answering machine translation each of them we need a lot of examples of each and this may not be super easy to get your hands on so to deal with this Bert split it's training phase into two parts one is a pre-training phase where we train on language modeling and next sentence prediction and then we fine tune it on whatever NLP task that we want to do and the idea is that with fine tuning you don't need as much data next up we have improving language understanding by generative pre-training this is the paper that introduced GPT so GPT is a stack of Transformer decoders that also leverage transfer learning in order to learn language tasks it dives into the same pre-training and fine-tuning phase that we also saw with Bert next up is the paper language models are unsupervised multi-taskers this is the paper that introduced gpt2 so the older versions of gbt and Bert still required quite a bit of data for fine tuning overfitting is also easy and honestly the fine tuning process is not exactly how humans would learn we don't need like hundreds of thousands of fine-tuned examples just to understand how to translate from one language to another or how to complete the sentence we might need just like one or a few examples and this is where meta learning such as like zero shot learning One-Shot learning and few shot learning come into play now while gpg2 wasn't super successful this paper called the language models are few shot Learners that that introduce gpt3 was pretty successful so gpt3 is essentially a scaled up version of gpt2 which has a suite of architecture such that its largest architecture is 175 billion parameters now for more information on gbt one two and three and its progression I suggest you check out this video next up is sentence Bert sentence embeddings using Siamese Bert networks this is the paper that delves into a new kind of architecture called sentence Transformers so Burton gbt produce high quality word embeddings but how do you get sentence embeddings from this if you simply take like the average of the word embeddings that you get and just use that average Vector as a sentence embedding well that's not very high quality instead we would want to train a Siamese network of birds in a pooling layer on a few tasks so one of them is natural language inference where we check if one sentence either entails contradicts or is neutral with respect to another sentence and the other task is sentence text similarity where we have two sentences and want to see how similar they are to each other once these networks are trained we can then just use that Bert plus pooling layer in order to input the words of a sentence the pulling layer will take some form of weighted averaging and then it's that Vector that is going to be much higher quality in representing a sentence the next recommendation here is the chat GPT blog chat TPT is probably one of the most well-known items on this list and it is a fine tune chat bot that makes use of reinforcement learning with human feedback the original GPT architecture is fine-tuned to answer questions we then build a rewards model that says given a question and an answer give a score that says how acceptable this is within use reinforcement learning to fine-tune the GPT model and this is done to ensure that chat TPT is safe factual and non-toxic and I have a playlist of videos explaining this infographic too and next up here we have llama so this is the main paper for llama two llama two is to gpt3 as llama to chat is to chat gbt so llama itself is a pre-trained language model it is open source architecture that is trained on publicly available data compared to GPT it has a smaller architecture but is trained on much more data and because of its small architecture inference becomes faster and for more information on llama I have another full companion video that's all for today I hope these papers helped you navigate the idea of what papers are important in the fields of language modeling and natural language processing in general if you like the video please do give it a like subscribe and I will see you very soon in another one bye

Original Description

Here are 20 research papers you should read to master Language modeling. ABOUT ME ⭕ Subscribe: https://www.youtube.com/c/CodeEmporium?sub_confirmation=1 📚 Medium Blog: https://medium.com/@dataemporium 💻 Github: https://github.com/ajhalthor 👔 LinkedIn: https://www.linkedin.com/in/ajay-halthor-477974bb/ PAPERS [1 📚] A Mathematical Theory of Communication: https://people.math.harvard.edu/~ctm/home/text/others/shannon/entropy/entropy.pdf [2 📚] A Neural Probabilistic Language Model: https://www.jmlr.org/papers/volume3/bengio03a/bengio03a.pdf [3 📚] NLP (Almost) from scratch: https://www.jmlr.org/papers/volume12/collobert11a/collobert11a.pdf [4 📚] Phoneme Recognition using Time Delay Neural Networks: https://www.cs.toronto.edu/~fritz/absps/waibelTDNN.pdf [5 📚] Efficient Estimation of words in vector space: https://arxiv.org/pdf/1301.3781.pdf [6 📚] GloVe: https://nlp.stanford.edu/pubs/glove.pdf [7 📚] Enriching word vectors with subword information: https://arxiv.org/pdf/1607.04606.pdf [8 📚] A Convolution Neural Network for modeling sentences: https://arxiv.org/pdf/1404.2188.pdf [9 📚] Learning Internal Representations by error propagation: https://apps.dtic.mil/dtic/tr/fulltext/u2/a164453.pdf [10 📚] Sequence Modeling (from the deep learning book): https://www.deeplearningbook.org/contents/rnn.html#pf1d [11 📚] Long Short Term Memory: http://www.bioinf.jku.at/publications/older/2604.pdf [12 📚] Colah's blog to understanding LSTM: https://colah.github.io/posts/2015-08-Understanding-LSTMs/ [13 📚] Training Recurrent Neural Networks (PhD Thesis): https://www.cs.utoronto.ca/~ilya/pubs/ilya_sutskever_phd_thesis.pdf [14 📚] Deep contextualized word representations: https://arxiv.org/pdf/1802.05365.pdf [15 📚] Attention is all you need: https://arxiv.org/pdf/1706.03762.pdf [16📚] BERT: https://arxiv.org/pdf/1810.04805.pdf [17 📚] Improving language understanding by generative pretraining: https://s3-us-west-2.amazonaws.com/openai-assets/research-covers/language-unsupe
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from CodeEmporium · CodeEmporium · 0 of 60

← Previous Next →
1 Linear Regression and Multiple Regression
Linear Regression and Multiple Regression
CodeEmporium
2 Logistic Regression - THE MATH YOU SHOULD KNOW!
Logistic Regression - THE MATH YOU SHOULD KNOW!
CodeEmporium
3 Generative Adversarial Networks - FUTURISTIC & FUN AI !
Generative Adversarial Networks - FUTURISTIC & FUN AI !
CodeEmporium
4 Deep Learning on the Cloud - GPU TO LEARN FASTER
Deep Learning on the Cloud - GPU TO LEARN FASTER
CodeEmporium
5 Deep Mind's AlphaGo Zero - EXPLAINED
Deep Mind's AlphaGo Zero - EXPLAINED
CodeEmporium
6 Mask Region based Convolution Neural Networks - EXPLAINED!
Mask Region based Convolution Neural Networks - EXPLAINED!
CodeEmporium
7 Attention in Neural Networks
Attention in Neural Networks
CodeEmporium
8 Depthwise Separable Convolution - A FASTER CONVOLUTION!
Depthwise Separable Convolution - A FASTER CONVOLUTION!
CodeEmporium
9 One Neural network learns EVERYTHING ?!
One Neural network learns EVERYTHING ?!
CodeEmporium
10 Neural Voice Cloning
Neural Voice Cloning
CodeEmporium
11 AI creates Image Classifiers…by DRAWING?
AI creates Image Classifiers…by DRAWING?
CodeEmporium
12 Unpaired Image-Image Translation using CycleGANs
Unpaired Image-Image Translation using CycleGANs
CodeEmporium
13 K-Means Clustering - EXPLAINED!
K-Means Clustering - EXPLAINED!
CodeEmporium
14 Random Forest Classification
Random Forest Classification
CodeEmporium
15 Data Science in Finance
Data Science in Finance
CodeEmporium
16 Hypothesis testing with Applications in Data Science
Hypothesis testing with Applications in Data Science
CodeEmporium
17 A/B Testing - Simply Explained
A/B Testing - Simply Explained
CodeEmporium
18 The Kernel Trick - THE MATH YOU SHOULD KNOW!
The Kernel Trick - THE MATH YOU SHOULD KNOW!
CodeEmporium
19 Support Vector Machines - THE MATH YOU  SHOULD KNOW
Support Vector Machines - THE MATH YOU SHOULD KNOW
CodeEmporium
20 Principal Component Analysis (PCA) - THE MATH YOU SHOULD KNOW!
Principal Component Analysis (PCA) - THE MATH YOU SHOULD KNOW!
CodeEmporium
21 History of Calculus - Animated
History of Calculus - Animated
CodeEmporium
22 Curiosity in AI
Curiosity in AI
CodeEmporium
23 DropBlock - A BETTER DROPOUT for Neural Networks
DropBlock - A BETTER DROPOUT for Neural Networks
CodeEmporium
24 Autoencoders - EXPLAINED
Autoencoders - EXPLAINED
CodeEmporium
25 Recurrent Neural Networks - EXPLAINED!
Recurrent Neural Networks - EXPLAINED!
CodeEmporium
26 LSTM Networks - EXPLAINED!
LSTM Networks - EXPLAINED!
CodeEmporium
27 Building an Image Captioner with Neural Networks
Building an Image Captioner with Neural Networks
CodeEmporium
28 10 Machine Learning Questions - ANSWERED!
10 Machine Learning Questions - ANSWERED!
CodeEmporium
29 How do neural networks work?
How do neural networks work?
CodeEmporium
30 Evolution of Face Generation |  Evolution of GANs
Evolution of Face Generation | Evolution of GANs
CodeEmporium
31 How does Google Translate's AI work?
How does Google Translate's AI work?
CodeEmporium
32 How to keep up with AI research?
How to keep up with AI research?
CodeEmporium
33 How does YouTube recommend videos? - AI EXPLAINED!
How does YouTube recommend videos? - AI EXPLAINED!
CodeEmporium
34 Variational Autoencoders - EXPLAINED!
Variational Autoencoders - EXPLAINED!
CodeEmporium
35 Logistic Regression - VISUALIZED!
Logistic Regression - VISUALIZED!
CodeEmporium
36 Gradient Descent - THE MATH YOU SHOULD KNOW
Gradient Descent - THE MATH YOU SHOULD KNOW
CodeEmporium
37 Boosting - EXPLAINED!
Boosting - EXPLAINED!
CodeEmporium
38 Transformer Neural Networks - EXPLAINED! (Attention is all you need)
Transformer Neural Networks - EXPLAINED! (Attention is all you need)
CodeEmporium
39 Loss Functions - EXPLAINED!
Loss Functions - EXPLAINED!
CodeEmporium
40 Optimizers - EXPLAINED!
Optimizers - EXPLAINED!
CodeEmporium
41 NLP with Neural Networks & Transformers
NLP with Neural Networks & Transformers
CodeEmporium
42 Batch Normalization - EXPLAINED!
Batch Normalization - EXPLAINED!
CodeEmporium
43 Activation Functions - EXPLAINED!
Activation Functions - EXPLAINED!
CodeEmporium
44 Data Scientist Answers Interview Questions
Data Scientist Answers Interview Questions
CodeEmporium
45 Why use GPU with Neural Networks?
Why use GPU with Neural Networks?
CodeEmporium
46 How do GPUs speed up Neural Network training?
How do GPUs speed up Neural Network training?
CodeEmporium
47 BERT Neural Network - EXPLAINED!
BERT Neural Network - EXPLAINED!
CodeEmporium
48 ConvNets Scaled Efficiently
ConvNets Scaled Efficiently
CodeEmporium
49 Transformer Neural Net makes music! (JukeboxAI)
Transformer Neural Net makes music! (JukeboxAI)
CodeEmporium
50 What do filters of Convolution Neural Network learn?
What do filters of Convolution Neural Network learn?
CodeEmporium
51 We're hosting a Machine Learning Conference!
We're hosting a Machine Learning Conference!
CodeEmporium
52 MLconfEU 2020: Machine Learning Conference for Software Engineers
MLconfEU 2020: Machine Learning Conference for Software Engineers
CodeEmporium
53 Are Neural Networks Intelligent?
Are Neural Networks Intelligent?
CodeEmporium
54 Time Series Forecasting with Machine Learning
Time Series Forecasting with Machine Learning
CodeEmporium
55 Few Shot Learning - EXPLAINED!
Few Shot Learning - EXPLAINED!
CodeEmporium
56 How does a Data Scientist Fight FRAUD?
How does a Data Scientist Fight FRAUD?
CodeEmporium
57 How would a Data Scientist analyze Customer Churn?
How would a Data Scientist analyze Customer Churn?
CodeEmporium
58 Expectations with Machine Learning
Expectations with Machine Learning
CodeEmporium
59 Why Logistic Regression DOESN'T return probabilities?!
Why Logistic Regression DOESN'T return probabilities?!
CodeEmporium
60 How you SHOULD code Machine Learning
How you SHOULD code Machine Learning
CodeEmporium

This video provides a comprehensive overview of the history and evolution of language models, and provides a list of 20 research papers to master language modeling. By watching this video, viewers can gain a deeper understanding of the fundamentals of language modeling and stay up-to-date with the latest developments in the field.

Key Takeaways
  1. Read the research papers listed in the video
  2. Implement the concepts and techniques discussed in the papers
  3. Apply the knowledge gained to real-world problems
💡 The video highlights the importance of understanding the history and evolution of language models, and provides a roadmap for mastering the fundamentals of language modeling.

Related Reads

Up next
RNNs Explained in 60 Seconds #ai #coding #machinelearning
Ascent
Watch →