wk5 2 review iat111 — Transcript
Full transcript
- 0:00Hi, welcome back. It's week five of INT
- 0:03111.
- 0:05I'm going to go over a little bit of a
- 0:07review and then get into ethics this
- 0:10week. Um, we've done a lot with how
- 0:14large language models work. Uh, this
- 0:17notion that you can write a prompt and
- 0:20it goes in a big context window with a
- 0:22lot of information. There's a model
- 0:25that's been made somewhere and that
- 0:27comes back to you. Um,
- 0:30we've discussed already that there are
- 0:32different kinds of large language models
- 0:35from very simple, which they all used to
- 0:36be. Today you see that sometimes with a
- 0:39fast moniker. Reasoning models that do
- 0:42the step-by-step. So still using the
- 0:44same technology as simple, but at least
- 0:47one part of it cuts it into steps and
- 0:50then those steps use that same system.
- 0:53Often you see this as
- 0:55thinking
- 0:56uh, or deep thinking.
- 0:58Um, there's going out to the web and as
- 1:01we've talked about,
- 1:03um, it's a kind of a tool that goes out,
- 1:07in this case to bring up a browser and
- 1:09get information.
- 1:10Um, it doesn't
- 1:12know
- 1:14how to think about that information per
- 1:17se. It's not in the main model, so it's
- 1:20simply going out getting that
- 1:21information and bringing that in to the
- 1:24context window and then goes out to a
- 1:27model.
- 1:28So it's a big distinction between uh,
- 1:31when an AI seems to know something
- 1:33that's that's past its its date that it
- 1:36was made by going out to the web. We've
- 1:39talked about multimodal, which can do
- 1:41text and visuals and data. And we've
- 1:44talked a lot about engetic models and
- 1:46the issues with them.
- 1:47So again with engetic models, these are
- 1:50models that can call um,
- 1:53different tasks, external tools like
- 1:56going to your Gmail or or your
- 1:59Apple Mail or um going to your calendar
- 2:03or more significantly going to other
- 2:06agents, even creating other agents as
- 2:09we've seen with that recent leak.
- 2:13So, we now know that they can go out to
- 2:15files and emails. Uh we spent some time
- 2:18talking about are you comfortable with
- 2:20this? There's systems that do this more
- 2:22and more that companies are probably
- 2:24very interested for that to happen, but
- 2:27these AI to AI chains have a huge risk.
- 2:30And when I first made this slide, it was
- 2:33only a risk of runaway behavior. Now, in
- 2:37in fall 2026, we know it's much more
- 2:41than a risk.
- 2:43Um
- 2:44with that in mind, I told you about
- 2:46these these possible consumer devices
- 2:49that will come out that work in this
- 2:51agent way that
- 2:52that listen to everything you say, to
- 2:55remind you of things, maybe taking
- 2:57pictures of everything. Amazon, OpenAI,
- 3:00Apple. Um
- 3:02what are the privacy stakes here and
- 3:05would you want this? So, this all fits
- 3:07in this very new world about uh using
- 3:11agent technology.
- 3:13In my research lab, we have a completely
- 3:16different ethical AI and some other
- 3:18things and we're slightly opposed to
- 3:22um
- 3:24agent technology in particular ways.
- 3:27So, and I'll talk more about that. Um
- 3:30so, I've also explained what a neural
- 3:32net
- 3:33is for you that that you know that we're
- 3:36emulating the neural nets in our brain
- 3:40uh more statistically
- 3:42um and that everything that AI does at
- 3:45this kind of level, whether it's text,
- 3:47images, sounds,
- 3:49um are put into some kind of vector
- 3:51number space that goes into the neural
- 3:54net to get a different one out and
- 3:56that's what gives us the speed and the
- 3:57ability for GPUs to do this quite
- 4:00quickly. These nets got deeper and we
- 4:02tend to call that deep learning. That's
- 4:04where the the current revolution
- 4:06happened and this is what we mean by
- 4:08these different um
- 4:11neural networks at different layers and
- 4:14then they build on each other. So, we
- 4:16only change the weights. Sometimes we
- 4:19give out the weights publicly.
- 4:21Uh um
- 4:22and the lower weights um
- 4:24are more kind of low-level information
- 4:27and from what's there, what's connected
- 4:29gives you the higher and higher and
- 4:31that's how we we build this up from
- 4:34edges to shapes to faces in this case,
- 4:36but from word pieces to phrases to
- 4:38meaning and style.
- 4:40Um
- 4:41by putting in all that information
- 4:44uh uh we could we could see how well um
- 4:49the network behaves on training data. It
- 4:52there's an error rate about how good it
- 4:54does and then we could back propagate
- 4:56through the system to keep changing the
- 4:58weight and we do this kind of building,
- 5:01you know, millions of times to billions
- 5:03of parameters and then later we clean
- 5:05it. Um so, that's what would give us our
- 5:08model.
- 5:10Uh by doing all that testing and
- 5:12inference is then once the model is made
- 5:15and cleaned um then you you are using it
- 5:20via
- 5:21um
- 5:22a chatbot like Claude or ChatGPT.
- 5:26Um
- 5:28I will get into more details in other
- 5:31classes, but surely it's not that simple
- 5:34and we're now trying to get meaning into
- 5:37words. So, when we say cat, it's the you
- 5:41know, the word left is it just left and
- 5:43right? Is that cat left something?
- 5:46That's quite different. Uh um litter
- 5:48means two different things here. So, we
- 5:50do spend a lot of time trying to
- 5:52understand what we call attention and
- 5:54awareness of words. That really made the
- 5:57system so much better. And after
- 5:59training, of course,
- 6:01there's post-training. So, this is
- 6:04almost like went from GPT to ChatGPT.
- 6:08That we started asking humans to look at
- 6:10what we had and going in there and
- 6:13cleaning it. And what would be an ideal
- 6:16answer and the model that imitates that.
- 6:18We did so much of that that we were able
- 6:21to start learning from all that human
- 6:23feedback. And that's what we call
- 6:25reinforcement learning by human
- 6:27feedback. And that it went into ranking
- 6:30and maybe you've seen sometimes where AI
- 6:32gives you two choices.
- 6:35So, it's actually still doing this
- 6:36reward model of what's the best answer.
- 6:39This really changed AI from or large
- 6:43language models from something that just
- 6:45gives you the next word, so it's good
- 6:46for writing poetry and ideas to much
- 6:50more significant notions of how we use
- 6:52it. So, there's other things we do in
- 6:55the training. Surely, Anthropic has a
- 6:58constitutional method of how you're it's
- 7:00supposed to think. There's other kinds
- 7:02of reasoning systems that are starting
- 7:04to come in. So, we're starting to hit
- 7:07some level of meaning space rather than
- 7:10just word space.
- 7:12But whose preferences does it learn?
- 7:15Who comes up with these values?
- 7:18It's got this approval-seeking issue
- 7:20where it's always trying to
- 7:23be nice to you, so to speak. And this
- 7:25reward hacking is a big issue that we've
- 7:28talked about.
- 7:29So, I want to remind us that this isn't,
- 7:32you know, that within the world of AI
- 7:33there's many kinds of AI. Large language
- 7:36models are just one of them.
- 7:38A lot of people talk about AGI, but we
- 7:41usually cut the world into weak or
- 7:43narrow AI or strong AI or AGI. Weak or
- 7:47narrow is domain specific. It's somebody
- 7:49who's just teaching it chess, and
- 7:51they're a master chess player, so
- 7:53they're training it well. Or music or so
- 7:55and so.
- 7:57Um and um
- 7:59therefore, that's what all AI generally
- 8:01is today. So, what about large language
- 8:04models? Well, large language models are
- 8:07really domain specific, too. They're
- 8:09trained on one area, text. But, text is
- 8:12unusual compared to like chess or music
- 8:15because text is a special domain. Words
- 8:18carry meaning in a way and we that we
- 8:20used in our book. So, it is interesting.
- 8:23It's our past knowledge, what humans
- 8:25wrote in books and on the internet. And
- 8:28because we wrote it with meaning,
- 8:29sometimes surely early AI didn't even
- 8:33understand the words. We're just passing
- 8:34it on to us, and it made sense to us
- 8:37because it was written by um us
- 8:40historically.
- 8:41So, um strong AI or AGI then is this
- 8:45human-level ability to to learn and
- 8:48reason and transfer tasks. And we're
- 8:50definitely not there yet, even though
- 8:52the companies and
- 8:54people quoting the stuff will push AGI.
- 8:57Some people are starting to use this
- 8:58super intelligence term, ASI or just SI,
- 9:02which means it's going to be far beyond
- 9:04best humans. It's funny, we didn't even
- 9:07reach AGI and people are now talking
- 9:09about ASI. And as you know,
- 9:13Trump in the White House,
- 9:15you know, went out of the way to say we
- 9:16no longer call it AI. We just want to
- 9:19call it super intelligence or SI. And he
- 9:22kind of went out of his way to say that
- 9:24if you don't, you're
- 9:25you're an enemy or something like that.
- 9:27Even though he doesn't realize that
- 9:29there's hundreds of papers and
- 9:30conferences with the name AI. It is an
- 9:33actual field of science. So, that gives
- 9:36you an idea of, you know, even though
- 9:38you hear that a large language model
- 9:40might hit AGI,
- 9:42I personally don't believe so. I think
- 9:44it's going to be the amazing front end
- 9:46of a system once you have reasoning and
- 9:48planning and meaning because it's very
- 9:51good at conversation and holding meaning
- 9:54for some length of time, but kind of not
- 9:56what do I do next? How do I think
- 9:58differently?
- 10:01This meaning, we'll talk about this a
- 10:02little bit more later, but we are moving
- 10:06better than I just said, past just well,
- 10:09it doesn't really know what the words
- 10:11mean. Some of that is because the
- 10:12multimodal, we have a text and image
- 10:15pair. So a text one would be a pup in
- 10:19the grass and it would be an image of
- 10:20that. And you could see in our embed
- 10:24chart here, here's text one and image
- 10:26one. So this gets a perfect score, let's
- 10:29out of from zero to one
- 10:32um in float space, it would get a one.
- 10:34It's a perfect answer
- 10:36um because it literally is an image of a
- 10:38dog a pup in the grass.
- 10:41Um and then we would have another one, a
- 10:43cat jumping up and then we have an image
- 10:45of that cat jumping up. And that would
- 10:47be T2, so that would be here and here.
- 10:49Again, perfect ones on the diagonal, but
- 10:52then when you're saying, well, what
- 10:53happens if I gave you two two, a cat
- 10:56jumping up, but I one um
- 11:01which is which is the dog. So it would
- 11:03do better than other things and with
- 11:06that and we run these embedding loops
- 11:10over and over again with some of the
- 11:11other stuff I just showed you and then
- 11:13we're able to actually have a kind of a
- 11:15reasoning nearness map that dogs and
- 11:17cats seem to be based on our work here,
- 11:22closer than buildings and violins and
- 11:25guitars. So this is where we're starting
- 11:27to move towards meaning. Um I'll have a
- 11:30lot more to say about that in in other
- 11:34um um lectures, but I just want to do
- 11:36the review here. So, on the large
- 11:39language model side, I want to remind
- 11:41you that it isn't just your prompt. We
- 11:45talked about this 2 weeks ago, that it's
- 11:47actually this is system prompt. What
- 11:49it's
- 11:50the instructions from if you're using a
- 11:53company tool from what the company would
- 11:56want to answer [clears throat] and how
- 11:57it answers and some other kinds of
- 11:59information.
- 12:00We do our own open-source ones, so we
- 12:03can write the system prompt. It's
- 12:05amazing how different the AI can be just
- 12:08from changing the system prompt of how
- 12:10it should act. Surely, there's a
- 12:12conversation history. Um so, it knows
- 12:15what you've talked about before, and
- 12:18there's the rags that we talked about,
- 12:20which is um uploading um documents in
- 12:25So, um the model never changes here.
- 12:29It's still the same way. It's It's just
- 12:31It's just a lot of what makes us an AI
- 12:33sophisticated is loading up what you
- 12:36think is just your prompt, but it's all
- 12:38these other things before it goes to the
- 12:40model and then comes back to you.
- 12:43So, that's the system prompt, which I
- 12:45just talked about. Um your prompt. Um
- 12:49the rag, which is these
- 12:51ways to get the data in through this
- 12:53chunking technique I've talked to you
- 12:54about, but all and the conversational
- 12:56history, but now it actually keeps a
- 12:59little bit of memory of you as well. And
- 13:02and then there's the tool side. The tool
- 13:04side for go could be for going out to
- 13:06the web or doing all this incentive
- 13:08work. So, all this happens just in the
- 13:11context window. So, this is not the AI
- 13:13model. This is getting ready to build a
- 13:16context window to then send it to the
- 13:18model. Uh we we do pre-put in the
- 13:21documents. So, we put in a prior
- 13:23document, we do send that. So, this is
- 13:25the rag system here that when you're
- 13:28putting in a document, it's doing some
- 13:30pre-processing.
- 13:31Um soon we're going to be talking about
- 13:34other kinds of systems, so visual
- 13:36systems that could be similar in that I
- 13:40could be putting in a video of a dancer
- 13:43and then some knowledge or image of a
- 13:45tree and I would put that through the
- 13:46system and I would have some kind of
- 13:51visual generation system that outputs um
- 13:55in this case a
- 13:57a moving dancer
- 13:58uh that looks like a tree.
- 14:02Um so, again with the rags um and it's
- 14:05really important for some of your work,
- 14:08it's always better not to dump a lot of
- 14:11data in the context window. It's better
- 14:15to have a document and put the document
- 14:18in because when you put the document in,
- 14:20we chop it into chunks.
- 14:23We send that to a small AI system and we
- 14:26get nearness and a chunk is about a
- 14:28paragraph. Hopefully, you know, a
- 14:30paragraph has one meaning and then we
- 14:32can we can get, you know, all those
- 14:35chunks, maybe thousands of them
- 14:37uh set up in this small vector database.
- 14:40So, you put in a PDF and before we
- 14:44start,
- 14:45well, when you put it in, we we separate
- 14:48that into chunks. It goes to a small AI
- 14:51to get the embeddings. We put that in a
- 14:53very fast database. So, then after
- 14:56that's in and you go in and and prompt,
- 15:00do the regular prompting, it's going to
- 15:03quickly access back to the database,
- 15:05"Hey, given this question, could you
- 15:08quickly go through the meaning space of
- 15:10all these thousands of chunks and maybe
- 15:13give me the four best ones um that would
- 15:16help this
- 15:18um context window be smarter when it
- 15:20goes. And that's that's what a rag is
- 15:23and how we use it. So, all those things
- 15:25come together when you're using a large
- 15:28language model, and it's good to be
- 15:29thinking about all those kinds of
- 15:30things. So, we've talked about the
- 15:32chunking system. So, again, I just this
- 15:35is a little bit of review, almost done,
- 15:37but LLMs
- 15:39um you know, have this pre-trained
- 15:41knowledge. However, they have a cutoff
- 15:43date, too. It takes It used to take a
- 15:46year, and you could know in GPT-2 and
- 15:49then three and then four. We're going a
- 15:51little faster, but still it takes a very
- 15:54long time to do all that pre-training
- 15:57and then cleaning it for another month
- 15:59and then testing it for another month.
- 16:01So, the knowledge you're you're you
- 16:04know, there's a cutoff date. It's
- 16:05usually about a year behind. If you ask
- 16:07it something before then, it um sooner
- 16:10than then uh sorry, later than then, it
- 16:13won't know about it. This is why rags
- 16:15are good, because companies use and
- 16:18people use rags, so they're there to
- 16:20give newer or very specific data, and of
- 16:23course going on out on the web.
- 16:26So, between going to the web and your
- 16:28documents, you're really making your
- 16:30your system a lot better. So, this
- 16:32context window has limits, and this is
- 16:36why we try and use rags. And this lost
- 16:39in the middle problem is with longer
- 16:41prompts, it really does get confused.
- 16:44This is just within one prompt. It's
- 16:46true in the thread, as well, too. We
- 16:48know that LLMs
- 16:50hallucinate, and some of this is because
- 16:52of these kinds of reasons. So, we've
- 16:54talked about a rag here, and I think I'm
- 16:56going to stop at this point, and uh I'll
- 16:59have a different lecture on ethics.
- 17:01Thanks.
About this transcript
This page contains the full transcript of wk5 2 review iat111 by ivizlab, generated from the public captions YouTube serves with the video. The transcript has 2,756 words across 413 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.
What you can do with it
Use the transcript to take notes, quote the speaker, build a study guide, generate a summary with ChatGPT or Claude via the YouTube Summary tool, or export it as a timed subtitle file with YouTube to SRT. You can also re-open it in the transcriber to choose a caption track available on the video.
Free YouTube transcript tool
YouTube2Text is a free YouTube transcript generator — no signup, no daily limit. Paste any YouTube link and get the full transcript instantly, with timestamps, click-to-jump, caption language selection, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.