SlideShare a Scribd company logo
Neural Network
Language Modeling
ADEL RAHIMI
Table of Contents
•Introduction to neural networks
•Neurons
•Activation Functions
•Types of neural networks
•Learning in neural networks
•Applications of neural networks
•Advantages of neural networks
•Disadvantages of neural networks
•Introduction to Language modeling
•Neural Networks Language Modeling
Neural Networks
Computing based on interaction of multiple connected processing elements
Powerful in doing many processes
Ability to adapt and learn
Ability to deal with incomplete data
Basics of neural networks
Developed from biological approaches
Developed in 1943
Has one or more layers
Has different types of feeding: including feedforward and feedback networks
neurons
Artificial
Biological
Perceptron
A mathematical model of biological neuron
Neural network neurons
Receives input
Multiplies input by weight
applies activation function to the sum of results
Output results
Neural network advantages
Neural networks can perform better than normal linear programs
As neural networks are parallel they can continue without failing
Can be implemented in variety of applications
Ability to derive meaning from complicated or imprecise data
Disadvantages
Neural networks need training data
Requires high processing time
Activation function
Control the activity of the unit
Threshold function outputs 1 when it is active and 0 when it is inactive
Some examples of activation functions:
Sigmoid = 1 / (1 + e-x)
Tanh = 2/(1+e-2x)-1 (-1, 1)
Types of neural networks
Connection type:
◦ Static
◦ Dynamic
Typology:
◦ Single layer
◦ Multiple layers
◦ Recurrent
Learning method:
◦ Supervised
◦ Unsupervised
◦ Reinforcement
Connections
Static:
Like feedforward networks
Dynamic:
Feedback networks; which their connection changes when the network is going backwards
Topology
Single layer Multilayer Recurrent
Learning methods
Supervised learning
◦ Each learning pattern: input + desired output
◦ At each presentation: adapts weights
◦ After many epochs convergence to a local minimum
Unsupervised learning
No help from outside
Learning by doing
Pick out structures in the input:
◦ Clustering
◦ Dimensionality reduction
Reinforcement learning
Inspired by behaviorist psychologists
Teacher: Training data
The teacher scores the performance of the training examples
Use performance to shuffle weights randomly
Relatively slow in learning due to randomness
Examples: Robotic tasks
Neural network applications
Pattern recognition
Investments analysis
Control systems and monitoring
Mobile computing
Natural language processing
Forecasting sales, market, meteorology
Language modeling
Filtering out bad sentences
Model the sentences via probability distribution over sequences of words:
Pr(w1,w2,…,wn)
Assign a probability to a given sentence:
S1 = “The cat jumped over the dog”, Pr(S1) ~1
S2 = “The Over cat dog jumped”, Pr(S2) ~0
Language modeling applications
Machine translation:
◦ P(high winds tonight) > P(large winds tonight)
Spell correction:
◦ The office is about fifteen minuets from my house
◦ P(about fifteen minutes from) > P(about fifteen minuets from)
Speech Recognition:
◦ P(I saw a van) > P(eyes awe of an)
Summarization, question-answering, etc.
N-gram models
A sentence s = (x1, x2, ... , xT)
How likely is s?
p(x1, x2, ... , xT)
N-gram models
Data sparsity
Lack of generalization:
[ride a horse], [ride a llama]
[ride a zebra]
One-hot encoding
V = {zebra, horse, school, summer}
V(zebra) = [1,0,0,0]
V(Horse) = [0,1,0,0]
V(school) = [0,0,1,0]
V(summer) = [0,1,0,1]
One hot encoding is simple and yet word similarity is undefined
Distributional Representation
Stars: shining, bright, light, dark
Stars: cucumber, computer, lava, Harvard
Distributional Representation
It is simple
It has the notion of word similarity
But it can be computationally and memory-wise inefficient
Distributional Representation
V is a vocabulary
wi ∈ V
v(wi) ∈ Rn
v(wi) is a low-dimensional, learnable, dense word vector
Distributed Representation
Deep learning + language modeling
Traditionally uses architecture such as Recurrent neural networks
Advancements In neural networks: LSTM
LSTM is a recurrent network that can be part of an eventually bigger recurrent network.
LSTM contains: Cell, input gate, output gate, forget gate
The Cell is the memory, the three other gates are conventional artificial neurons
LSTM
it= g(wxixt+whiht-1)
ft=g(wxfxt+whfht-1)
ot=g(wxoxt+whoht-1)
Neural Network Language Model
Neural Network Language Model
Convolutional networks
CNNs are breakthrough in image processing; however they can used in language modeling as
well.
Convolutional networks
The input of convolutional neural nets for language modelng could either be word2vec to one-
hot embedding.
Evaluation
Based on:
Jozefowicz, Rafal, et al. "Exploring the limits of language modeling." arXiv preprint
arXiv:1602.02410 (2016).
Best performance of LSTM in language modeling yields 23 in perplexity and RNN resulted 41 in
perplexity.

More Related Content

What's hot (20)

PDF
Recurrent Neural Networks. Part 1: Theory
Andrii Gakhov
 
PDF
Support Vector Machines ( SVM )
Mohammad Junaid Khan
 
PPTX
Recurrent Neural Network (RNN) | RNN LSTM Tutorial | Deep Learning Course | S...
Simplilearn
 
PDF
Introduction to Deep learning
Massimiliano Ruocco
 
PPT
Introduction to Natural Language Processing
Pranav Gupta
 
PPTX
Machine learning
eonx_32
 
PDF
Machine learning in image processing
Data Science Thailand
 
PDF
Recurrent Neural Networks, LSTM and GRU
ananth
 
PDF
Introduction to Neural Networks
Databricks
 
PDF
Machine learning
Amit Kumar Rathi
 
PDF
Introduction to Deep Learning
Oleg Mygryn
 
PDF
Yurii Pashchenko: Zero-shot learning capabilities of CLIP model from OpenAI
Lviv Startup Club
 
PPTX
Introduction to Machine Learning
Rahul Jain
 
PPTX
Image classification with Deep Neural Networks
Yogendra Tamang
 
PDF
Machine Learning: Introduction to Neural Networks
Francesco Collova'
 
PDF
Convolutional Neural Networks and Natural Language Processing
Thomas Delteil
 
PPTX
GPT-X
gohyunwoong
 
PPT
Natural Language Processing
Yasir Khan
 
PDF
Introduction to Recurrent Neural Network
Knoldus Inc.
 
PPTX
Natural lanaguage processing
gulshan kumar
 
Recurrent Neural Networks. Part 1: Theory
Andrii Gakhov
 
Support Vector Machines ( SVM )
Mohammad Junaid Khan
 
Recurrent Neural Network (RNN) | RNN LSTM Tutorial | Deep Learning Course | S...
Simplilearn
 
Introduction to Deep learning
Massimiliano Ruocco
 
Introduction to Natural Language Processing
Pranav Gupta
 
Machine learning
eonx_32
 
Machine learning in image processing
Data Science Thailand
 
Recurrent Neural Networks, LSTM and GRU
ananth
 
Introduction to Neural Networks
Databricks
 
Machine learning
Amit Kumar Rathi
 
Introduction to Deep Learning
Oleg Mygryn
 
Yurii Pashchenko: Zero-shot learning capabilities of CLIP model from OpenAI
Lviv Startup Club
 
Introduction to Machine Learning
Rahul Jain
 
Image classification with Deep Neural Networks
Yogendra Tamang
 
Machine Learning: Introduction to Neural Networks
Francesco Collova'
 
Convolutional Neural Networks and Natural Language Processing
Thomas Delteil
 
Natural Language Processing
Yasir Khan
 
Introduction to Recurrent Neural Network
Knoldus Inc.
 
Natural lanaguage processing
gulshan kumar
 

Similar to Neural Networks with Focus on Language Modeling (20)

PPTX
Gnerative AI presidency Module1_L4_LLMs_new.pptx
Arunnaik63
 
PDF
Ted Willke - The Brain’s Guide to Dealing with Context in Language Understanding
MLconf
 
PPTX
RNN JAN 2025 ppt fro scratch looking from basic.pptx
webseriesnit
 
PDF
(Kpi summer school 2015) word embeddings and neural language modeling
Serhii Havrylov
 
PDF
Representation Learning of Text for NLP
Anuj Gupta
 
PDF
Anthiil Inside workshop on NLP
Satyam Saxena
 
PPTX
Deep Learning for Natural Language Processing
Jonathan Mugan
 
PPTX
Deep Learning for Natural Language Processing
ParrotAI
 
PPTX
NLP Bootcamp
Anuj Gupta
 
PPTX
What Deep Learning Means for Artificial Intelligence
Jonathan Mugan
 
PPTX
Deep Learning and Modern Natural Language Processing (AnacondaCon2019)
Zachary S. Brown
 
PDF
NLP Bootcamp 2018 : Representation Learning of text for NLP
Anuj Gupta
 
PDF
Deep learning for nlp
Viet-Trung TRAN
 
PDF
Big Data Intelligence: from Correlation Discovery to Causal Reasoning
Wanjin Yu
 
PPTX
What Deep Learning Means for Artificial Intelligence
Jonathan Mugan
 
PDF
Nlp and Neural Networks workshop
QuantUniversity
 
PDF
Frontiers of Natural Language Processing
Sebastian Ruder
 
PDF
Engineering Intelligent NLP Applications Using Deep Learning – Part 2
Saurabh Kaushik
 
PDF
Representation Learning of Vectors of Words and Phrases
Felipe Moraes
 
PDF
Crafting Your Customized Legal Mastery: A Guide to Building Your Private LLM
ChristopherTHyatt
 
Gnerative AI presidency Module1_L4_LLMs_new.pptx
Arunnaik63
 
Ted Willke - The Brain’s Guide to Dealing with Context in Language Understanding
MLconf
 
RNN JAN 2025 ppt fro scratch looking from basic.pptx
webseriesnit
 
(Kpi summer school 2015) word embeddings and neural language modeling
Serhii Havrylov
 
Representation Learning of Text for NLP
Anuj Gupta
 
Anthiil Inside workshop on NLP
Satyam Saxena
 
Deep Learning for Natural Language Processing
Jonathan Mugan
 
Deep Learning for Natural Language Processing
ParrotAI
 
NLP Bootcamp
Anuj Gupta
 
What Deep Learning Means for Artificial Intelligence
Jonathan Mugan
 
Deep Learning and Modern Natural Language Processing (AnacondaCon2019)
Zachary S. Brown
 
NLP Bootcamp 2018 : Representation Learning of text for NLP
Anuj Gupta
 
Deep learning for nlp
Viet-Trung TRAN
 
Big Data Intelligence: from Correlation Discovery to Causal Reasoning
Wanjin Yu
 
What Deep Learning Means for Artificial Intelligence
Jonathan Mugan
 
Nlp and Neural Networks workshop
QuantUniversity
 
Frontiers of Natural Language Processing
Sebastian Ruder
 
Engineering Intelligent NLP Applications Using Deep Learning – Part 2
Saurabh Kaushik
 
Representation Learning of Vectors of Words and Phrases
Felipe Moraes
 
Crafting Your Customized Legal Mastery: A Guide to Building Your Private LLM
ChristopherTHyatt
 
Ad

More from Adel Rahimi (13)

PDF
Singapore's Macroeconomics analysis
Adel Rahimi
 
PPTX
Artificial Bee Colony: An introduction
Adel Rahimi
 
PDF
Talking Animals
Adel Rahimi
 
PDF
Neural Networks
Adel Rahimi
 
PPTX
Improvement of English to Persian Machine Translation via N-grams of Part-of-...
Adel Rahimi
 
PPTX
corpus study of multi token units
Adel Rahimi
 
PPTX
Big Data + Sentiment Analysis = Awesome
Adel Rahimi
 
PPTX
Detecting negative words
Adel Rahimi
 
PPTX
Persian Intonation
Adel Rahimi
 
PPTX
X bar theory
Adel Rahimi
 
PPTX
Content based language learning I
Adel Rahimi
 
PPTX
Phonological CA
Adel Rahimi
 
PPTX
Suprasegmentals
Adel Rahimi
 
Singapore's Macroeconomics analysis
Adel Rahimi
 
Artificial Bee Colony: An introduction
Adel Rahimi
 
Talking Animals
Adel Rahimi
 
Neural Networks
Adel Rahimi
 
Improvement of English to Persian Machine Translation via N-grams of Part-of-...
Adel Rahimi
 
corpus study of multi token units
Adel Rahimi
 
Big Data + Sentiment Analysis = Awesome
Adel Rahimi
 
Detecting negative words
Adel Rahimi
 
Persian Intonation
Adel Rahimi
 
X bar theory
Adel Rahimi
 
Content based language learning I
Adel Rahimi
 
Phonological CA
Adel Rahimi
 
Suprasegmentals
Adel Rahimi
 
Ad

Recently uploaded (20)

PPTX
Optimizing Cancer Screening With MCED Technologies: From Science to Practical...
i3 Health
 
PPTX
HEAD INJURY IN CHILDREN: NURSING MANAGEMENGT.pptx
PRADEEP ABOTHU
 
PPTX
How to Define Translation to Custom Module And Add a new language in Odoo 18
Celine George
 
PPTX
How to Configure Prepayments in Odoo 18 Sales
Celine George
 
PPSX
Health Planning in india - Unit 03 - CHN 2 - GNM 3RD YEAR.ppsx
Priyanshu Anand
 
PPTX
Explorando Recursos do Summer '25: Dicas Essenciais - 02
Mauricio Alexandre Silva
 
PPTX
How to Configure Lost Reasons in Odoo 18 CRM
Celine George
 
PPTX
Latest Features in Odoo 18 - Odoo slides
Celine George
 
PPTX
Capitol Doctoral Presentation -July 2025.pptx
CapitolTechU
 
PDF
CONCURSO DE POESIA “POETUFAS – PASSOS SUAVES PELO VERSO.pdf
Colégio Santa Teresinha
 
PPTX
How to Configure Access Rights of Manufacturing Orders in Odoo 18 Manufacturing
Celine George
 
PPTX
SCHOOL-BASED SEXUAL HARASSMENT PREVENTION AND RESPONSE WORKSHOP
komlalokoe
 
PDF
Federal dollars withheld by district, charter, grant recipient
Mebane Rash
 
PDF
1, 2, 3… E MAIS UM CICLO CHEGA AO FIM!.pdf
Colégio Santa Teresinha
 
PDF
Zoology (Animal Physiology) practical Manual
raviralanaresh2
 
PPTX
2025 Winter SWAYAM NPTEL & A Student.pptx
Utsav Yagnik
 
PPTX
ROLE OF ANTIOXIDANT IN EYE HEALTH MANAGEMENT.pptx
Subham Panja
 
PDF
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - GLOBAL SUCCESS - CẢ NĂM - NĂM 2024 (VOCABULARY, ...
Nguyen Thanh Tu Collection
 
PPTX
ASRB NET 2023 PREVIOUS YEAR QUESTION PAPER GENETICS AND PLANT BREEDING BY SAT...
Krashi Coaching
 
PPTX
Views on Education of Indian Thinkers Mahatma Gandhi.pptx
ShrutiMahanta1
 
Optimizing Cancer Screening With MCED Technologies: From Science to Practical...
i3 Health
 
HEAD INJURY IN CHILDREN: NURSING MANAGEMENGT.pptx
PRADEEP ABOTHU
 
How to Define Translation to Custom Module And Add a new language in Odoo 18
Celine George
 
How to Configure Prepayments in Odoo 18 Sales
Celine George
 
Health Planning in india - Unit 03 - CHN 2 - GNM 3RD YEAR.ppsx
Priyanshu Anand
 
Explorando Recursos do Summer '25: Dicas Essenciais - 02
Mauricio Alexandre Silva
 
How to Configure Lost Reasons in Odoo 18 CRM
Celine George
 
Latest Features in Odoo 18 - Odoo slides
Celine George
 
Capitol Doctoral Presentation -July 2025.pptx
CapitolTechU
 
CONCURSO DE POESIA “POETUFAS – PASSOS SUAVES PELO VERSO.pdf
Colégio Santa Teresinha
 
How to Configure Access Rights of Manufacturing Orders in Odoo 18 Manufacturing
Celine George
 
SCHOOL-BASED SEXUAL HARASSMENT PREVENTION AND RESPONSE WORKSHOP
komlalokoe
 
Federal dollars withheld by district, charter, grant recipient
Mebane Rash
 
1, 2, 3… E MAIS UM CICLO CHEGA AO FIM!.pdf
Colégio Santa Teresinha
 
Zoology (Animal Physiology) practical Manual
raviralanaresh2
 
2025 Winter SWAYAM NPTEL & A Student.pptx
Utsav Yagnik
 
ROLE OF ANTIOXIDANT IN EYE HEALTH MANAGEMENT.pptx
Subham Panja
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - GLOBAL SUCCESS - CẢ NĂM - NĂM 2024 (VOCABULARY, ...
Nguyen Thanh Tu Collection
 
ASRB NET 2023 PREVIOUS YEAR QUESTION PAPER GENETICS AND PLANT BREEDING BY SAT...
Krashi Coaching
 
Views on Education of Indian Thinkers Mahatma Gandhi.pptx
ShrutiMahanta1
 

Neural Networks with Focus on Language Modeling