Solutions
Pricing
Log in
Teams
Get started
Log in
Get started
Signal
DT
by
Devansh Tripathi
·
6 views
·
Updated Aug 4, 2023
Share
Embed
Create your own
Chapters
00:00
Chapter 1
00:52
Chapter 2
01:30
Chapter 3
01:50
Chapter 4
01:54
Chapter 5
01:57
Chapter 6
03:07
Chapter 7
03:34
Chapter 8
03:37
Chapter 9
03:40
Chapter 10
04:40
Chapter 11
05:18
Chapter 12
05:21
Chapter 13
06:02
Chapter 14
06:12
Chapter 15
06:44
Chapter 16
06:48
Chapter 17
06:51
Chapter 18
07:29
Chapter 19
Audio Transcript
Auto-generated
00:03 - 00:08
We live in a dynamic era filled with uncertainty and marked with unexpected events
00:08 - 00:10
of wars, cybercrime,
00:11 - 00:12
data breaches,
00:12 - 00:15
conflicts, protests, riots, economic recession
00:16 - 00:16
and much more,
00:17 - 00:18
Hen said.
00:18 - 00:23
Every citizen or any user is vulnerable to these threats present around them
00:23 - 00:25
and also unknown to them.
00:26 - 00:28
Therefore, we need a digital mechanism
00:28 - 00:29
that can enable
00:29 - 00:33
the generation of 21st century to know about any threat
00:33 - 00:34
that surround them
00:35 - 00:36
and make them aware of it.
00:37 - 00:41
One of the technologies which has come up recently, is location entity recognition
00:41 - 00:44
that extracts crucial information from online data
00:45 - 00:45
and
00:45 - 00:48
text due location associated with them,
00:48 - 00:52
and then informs the concerned user regarding the threat if there are any,
00:53 - 00:54
and then
00:54 - 00:56
if you boil down location, entity recognition,
00:57 - 01:00
the core technology behind that is named entity recognition.
01:00 - 01:04
Now various named entity recognition models have been in use. Clavin
01:05 - 01:07
not is one such model used by Signal Corporation currently,
01:08 - 01:12
and there are other models as well, like Spacey Flare Gate, Open LP,
01:12 - 01:14
which are currently in use
01:14 - 01:17
Now. One drawback about all these models is that
01:17 - 01:19
they're heavily dependent upon
01:19 - 01:20
a data set
01:21 - 01:25
which has to be big enough and also accurate enough for the model to work well.
01:25 - 01:27
Unfortunately,
01:27 - 01:29
we don't have a vast and precise data set
01:29 - 01:30
present with us,
01:31 - 01:32
because
01:32 - 01:36
most of the data present in the social media platform is scattered
01:36 - 01:37
and cluttered.
01:37 - 01:42
Therefore, if the data set is not strong enough, as you can see from this diagram,
01:42 - 01:45
the model which is being trained is also weak enough.
01:45 - 01:48
And hence, when it acts upon the real time data,
01:48 - 01:51
the results that we get will be highly inaccurate.
01:51 - 01:52
And that's a problem
01:53 - 01:54
that we are facing as of now,
01:54 - 01:59
when it comes to named entity recognition system for security surveillance.
01:59 - 02:03
Therefore, we need a model that can directly act upon real time data
02:03 - 02:05
and gradually improve with time.
02:06 - 02:07
One such model,
02:07 - 02:08
which has been
02:09 - 02:09
a
02:09 - 02:11
new, exciting thing
02:11 - 02:14
in the realm of machine learning, is reinforcement learning,
02:14 - 02:16
and it learns, just like a human,
02:16 - 02:18
just like a baby, learns to walk
02:19 - 02:20
it slowly starts to crawl
02:21 - 02:23
and then tries to stand up, and then it falls.
02:23 - 02:26
Then again, it crawls and then again stand ups,
02:26 - 02:27
and
02:27 - 02:29
one day it stands on its feet
02:29 - 02:31
and gradually,
02:31 - 02:32
steadily,
02:32 - 02:34
it learns to put its steps forward,
02:34 - 02:36
and I finally learned to walk.
02:37 - 02:41
Now This method is also employed here, where an agent
02:42 - 02:43
learns to
02:43 - 02:45
perform any action
02:45 - 02:46
through a feedback mechanism
02:47 - 02:49
it performs, the action, receives the feedback
02:49 - 02:50
and then
02:50 - 02:51
it gains a reward
02:52 - 02:53
and
02:53 - 02:55
the next action it performs is to
02:55 - 02:56
increase that reward.
02:57 - 02:58
Hence, this becomes a
02:58 - 03:01
process of sequential decision making
03:01 - 03:03
where the next decision it makes
03:03 - 03:04
is to
03:04 - 03:06
increase the reward which it received
03:06 - 03:08
from the previous outcome.
03:09 - 03:10
Thus,
03:11 - 03:13
this process of feedback mechanism,
03:13 - 03:18
action, reward, state and then action reward state
03:18 - 03:21
and this continuous learning mechanism between agent and involvement
03:22 - 03:23
is a method
03:23 - 03:24
that can help us
03:24 - 03:28
crack the dilemma of named entity recognition
03:28 - 03:32
and also help us tackle with the constraint of the dataset,
03:32 - 03:34
which with other models have been facing
03:35 - 03:35
therefore
03:36 - 03:37
named entity recognition
03:38 - 03:40
as a reinforcement learning problem
03:40 - 03:43
can be visualised as a problem where
03:43 - 03:45
a textual data is given to the agent
03:45 - 03:47
and the goal of the agent is to
03:48 - 03:51
maximise the named entities it can extract from the data.
03:52 - 03:54
Now this picture that's in front
03:55 - 03:56
gives a rough idea for how named
03:56 - 04:00
entity recognition system can work using reinforcement,
04:00 - 04:00
learning
04:00 - 04:02
the textual data will be given
04:02 - 04:04
and then the named entities will be named.
04:05 - 04:08
Now the initial action
04:08 - 04:10
will give us the worst outcome.
04:10 - 04:14
It will probably tag every word which is being present in the text.
04:15 - 04:17
But gradually it receives the feedback
04:17 - 04:20
and then it tries to improve the reward that it gets.
04:20 - 04:24
The more the entities it names, the more the reward it gains.
04:24 - 04:24
And
04:25 - 04:25
as
04:26 - 04:27
we move with time,
04:28 - 04:29
the actions that it leads to
04:30 - 04:32
will be the ones that maximises. The reward
04:32 - 04:37
ultimately maximises the named entities extracted from a piece of text.
04:37 - 04:41
Now various candidate reinforcement learning algorithms are present.
04:41 - 04:45
One such is called natural language policy optimisation,
04:45 - 04:48
which is on policy method of reinforcement learning
04:48 - 04:52
where a policy structure is kind of given to a reinforcement learning model,
04:52 - 04:54
it uses that policy
04:54 - 04:55
to act upon
04:56 - 04:57
and perform upon the
04:58 - 05:00
data, which is real time.
05:01 - 05:05
This is a mass extension of a proximal policy optimisation process.
05:05 - 05:07
And here what basically happens is that
05:08 - 05:10
a top P sampling where P being the parameter,
05:11 - 05:14
leaves a restricted tokens to the smallest possible set,
05:14 - 05:18
whose cumulative probability is greater than the parameter.
05:18 - 05:18
Thus,
05:19 - 05:21
the best set of actions is basically selected
05:23 - 05:23
to
05:23 - 05:24
perform the
05:25 - 05:27
next set of actions
05:27 - 05:29
and then gain or maximise the reward
05:30 - 05:35
now same way. There is other method called GRUE General Reinforcement Language
05:35 - 05:37
Understanding evaluation
05:37 - 05:39
here. What happens is that
05:39 - 05:41
a set of seven generating and
05:41 - 05:41
PTAs
05:42 - 05:43
happen in real time,
05:44 - 05:44
like this ambiguous
05:45 - 05:46
tokenization word splitting.
05:47 - 05:47
And then
05:48 - 05:52
there is an evaluation metric simultaneously happening upon those actions.
05:52 - 05:55
Now these evaluation Mac metrics
05:55 - 05:56
help the actions
05:57 - 05:59
to perform such that
05:59 - 06:01
the reward that it gains is the maximum one.
06:02 - 06:02
Thus,
06:03 - 06:04
it's a strict model
06:05 - 06:07
where evaluation takes place upon the actions
06:07 - 06:11
to give the best feedback possible and maximise
06:11 - 06:14
the reward of naming the most entities possible.
06:14 - 06:19
Now. Reinforcement Learning for Language model is another package
06:19 - 06:22
which basically uses the algorithm for
06:22 - 06:24
off actor critique.
06:24 - 06:27
Now this happens in such a way that actor is basically
06:27 - 06:29
a policy structure.
06:29 - 06:31
While critique is a valuation function,
06:32 - 06:34
the critique valuation function
06:34 - 06:39
tries to minimise the reward while the actor policy structure tries to maximise it.
06:39 - 06:43
This way, accumulative learning happens between the two,
06:43 - 06:46
hence improvising the overall reinforcement learning model.
06:47 - 06:50
Now any of these algorithms can be applied
06:50 - 06:52
to enhance the named entity information present,
06:53 - 06:55
and also with us are various tools which is being
06:56 - 06:59
in use tensorflow agent is one such tool
06:59 - 07:02
used for building reinforcement learning models open.
07:02 - 07:05
I have also developed spinning Up, which is a library
07:05 - 07:09
for researching and developing reinforcement learning models.
07:09 - 07:12
Deep Mind Lab has also performed various
07:12 - 07:16
results and given various results regarding reinforcement, learning
07:16 - 07:20
and any of these tools, along with any of the
07:20 - 07:22
reinforcement learning algorithm,
07:23 - 07:26
can be embedded into named entity recognition system,
07:26 - 07:29
which can help us to act with real time data.
07:30 - 07:34
And once we are no more constrained with the presence of a data present with us,
07:34 - 07:36
a strong data present with us,
07:37 - 07:40
we can directly employ the model on real time data present online.
07:41 - 07:41
And then
07:41 - 07:43
as we move with time,
07:43 - 07:45
the model can maximise
07:45 - 07:47
the outcome that it produces
07:48 - 07:50
and with this outcome is
07:50 - 07:52
with being presented with
07:52 - 07:55
Signal Corporation can hence employ a
07:55 - 07:57
much more better
07:57 - 07:59
and enhanced named entity recognition system.
08:00 - 08:02
And this can lead to the path for
08:02 - 08:06
an open source intelligence where any person any user
08:06 - 08:08
can use the intelligence system
08:09 - 08:11
of named entity recognition system
08:12 - 08:14
empowered by reinforcement, learning
08:14 - 08:15
to extract
08:15 - 08:18
any information concerning that security
08:19 - 08:22
and with noise all around present on the Internet
08:22 - 08:23
signal
08:24 - 08:25
can employ models
08:26 - 08:30
that can help any layman, any user or any innocent person
08:31 - 08:33
to be aware about their security
08:33 - 08:35
and also protect them
08:36 - 08:38
in the most intelligent way possible
08:39 - 08:40
and make it easy
08:41 - 08:42
for any user
08:42 - 08:45
to be aware about their security
08:45 - 08:46
and also
08:46 - 08:47
help the society
08:48 - 08:50
become a more secure place
08:50 - 08:52
like never before.
08:53 - 08:54
Thank you. This was presented by the
08:55 - 08:55
party.
See full transcript