Latest / AI Fire Daily / #195 Neil: The AI Toolbox Why LLMs Are Only 1 Of 8 Tools You Need
Transcript
- 0:00We often talk about AI, like it's just one huge
- 0:02thing, right? One big brain. But there's actually
- 0:06a massive difference, a really functional difference
- 0:09between, say, an AI that's read everything and
- 0:12can only talk about a solution versus one that
- 0:15can actually do the task for you. Right. It's
- 0:18pure theory versus action. It's like the shift
- 0:21from asking a large language model, an LLM, how
- 0:24to book a cheap flight to telling a language
- 0:27action model. a lamb, hey, book the cheapest
- 0:30flight, email me the receipt. Beat. That's the
- 0:33jump from talking to actually doing. Welcome
- 0:35to the deep dive. Yeah. And look, if you're starting
- 0:37to feel a bit lost in all the acronyms flying
- 0:40around, you're definitely not alone. Our mission
- 0:43today really is to cut through that noise, give
- 0:46you a kind of shortcut to understanding the different
- 0:49specializations. We need the AI toolbox. Exactly.
- 0:52Think about it, right? You wouldn't use a hammer
- 0:54to turn a screw. Doesn't matter how great the
- 0:57hammer is. We need to know the right tool for
- 0:59the job. So today we're diving into eight key
- 1:03AI model types. We'll look at what they do, their
- 1:06main uses, and yeah, the important watch outs
- 1:09for each. Okay. Let's start with the foundation.
- 1:11Probably the one most people know. The LM. Okay,
- 1:14let's unpack this. The LLM, the Large Language
- 1:16Model. This is... like the definition model.
- 1:19It's the most famous one out there. Think of
- 1:21it like that super smart friend who's basically
- 1:23read every book, every website, you know, Chet,
- 1:26GPT, Gemini, Claude, those ones. Yeah, and they're
- 1:29large because the amount of text they train on
- 1:32is just astronomical. They absorb all these patterns
- 1:35of language, but how they work, it's actually
- 1:37pretty simple at its core. They're mostly just
- 1:40next -word guessers. They don't actually know
- 1:41truth. Right. They break down sentences into
- 1:44tokens, sort of like pieces of words. Exactly.
- 1:47Pieces of words or even punctuation. And then
- 1:49they just do the math. calculating the most likely
- 1:51next token, the next piece, based on, well, billions
- 1:55of examples they've seen. If you start with,
- 1:56I need to put this on there. I guess a shelf
- 1:58or table or whatever fits statistically. Yeah.
- 2:01And this guessing ability makes them really good
- 2:04for tech stuff. Writing content, sure. Blog posts,
- 2:07emails, summarizing huge articles down to like
- 2:11three bullet points. Oh, yeah. Summarizing is
- 2:13huge and helping programmers, right? Explaining
- 2:16tricky code, debugging. Yeah. Even translation
- 2:20or customer service chat bots. But that's also
- 2:23where prompting gets tricky. Yeah. And honestly,
- 2:26I still wrestle with getting problems just right
- 2:28myself sometimes. It's not always easy. You really
- 2:31see the difference between just asking vaguely.
- 2:33versus being really specific? Totally. Like,
- 2:36a bad prompt is just, write an email to work
- 2:38from home, that's it. Vague. Super vague. A good
- 2:41prompt gives the goal, maybe the specific days
- 2:43you want off, the reasons why, like, needing
- 2:45deep work focus, and even the tone. Make it polite,
- 2:48professional, but ask firmly. You've got to guide
- 2:50the guesser. And this leads to the big watch
- 2:52out, right? The whole hallucination problem.
- 2:54Because they only guess what looks right statistically.
- 2:56They can just confidently make stuff up. Fake
- 2:59studies, incorrect historical facts, citations
- 3:02that lead nowhere. pure invention, but sounds
- 3:04plausible. So if an LLM is fundamentally a great
- 3:08guesser, what's the single most critical thing
- 3:10a user has to remember about its output? You
- 3:13absolutely must check important facts. The AI
- 3:16only guesses what looks right. It doesn't verify.
- 3:19Good. OK, so LLMs are great text guessers, but
- 3:22they can be slow and Well, inventive. Yeah. What
- 3:25if we need pictures and we need them fast? Ah,
- 3:28speed. That takes us to the LCM, right? Exactly.
- 3:31The latent consistency model, LCM. Think of it
- 3:34as the visual cousin to the LLM, but its whole
- 3:37reason for being is speed in making images. Much
- 3:40faster than older models. Yeah. If you've ever
- 3:42waited like 30 seconds or more for an AI image,
- 3:46that old model like stable diffusion was working
- 3:48slowly. taking maybe 50, even 100 steps to refine
- 3:52the image from noise like a really carol paint
- 3:54party adding tiny details. Right. The LCM, though,
- 3:57is more like a master painter who's done this
- 3:58a million times. It learns these underlying patterns
- 4:01of the latent consistency and figures out how
- 4:03to jump huge steps. Goes from step one, maybe
- 4:06straight, to step 25. Whoa. So it can generate
- 4:08really decent images in just like two to eight
- 4:10steps total. Two to eight. Compared to 50. That's
- 4:14a huge difference. Massive difference. And that
- 4:17speed opens up doors for anything real time.
- 4:19Think AR, VR apps. The scene needs to update
- 4:22instantly when you turn your head, right? Right,
- 4:24yeah. No lag. Or making pictures right there
- 4:26on your phone without needing to send data to
- 4:28the cloud and wait. fast design tools, improving
- 4:31video call quality in real time. OK, so speed's
- 4:34the big win. What's the catch? Well, the trade
- 4:36-off for skipping all those steps is sometimes
- 4:38the images might be a bit less detailed, maybe
- 4:41a little too smooth compared to the slower methods.
- 4:44But for many uses, that near -instant result
- 4:46is what matters most. So why is that master painter
- 4:50approach, that speed, so crucial for something
- 4:52like a VR headset? Because everything has to
- 4:55update instantly as you move. Lag breaks the
- 4:58whole illusion of immersion. Makes sense. Okay,
- 5:01so we have LLMs for talking, LCMs for fast painting,
- 5:03but they're both creating things. What if we
- 5:05need the AI to actually, you know, do a task?
- 5:09A multi -step task. Ah, now we get to the LAM.
- 5:11The LAM. Language Action Model. This is that
- 5:14critical shift you mentioned from talking to
- 5:16doing. Exactly. If the LLM is the smart friend
- 5:18who just talks, the LAM is like the project manager.
- 5:21It takes action. How does it do that? Is it just
- 5:24a better LLM? Not quite. It's more like a system.
- 5:28It starts with an LLM. Yeah, that's the brain
- 5:30for understanding your request. But then it adds
- 5:32memory like a notebook, a planner to map out
- 5:35the steps. And the really crucial part, the ability
- 5:39to use tools. This means it can connect to other
- 5:41things, your email, a web browser, calendars,
- 5:44using APIs. Ah, APIs. That's the key difference
- 5:47then, the connection to other services. That's
- 5:49the game changer. So an LLM tells you how to
- 5:52book a flight. A LAM connects to, say, Expedia's
- 5:55API, searches flights based on your criteria,
- 5:58finds the cheapest one, books it, and then asks
- 6:00you to confirm. Wow. OK. That sounds like the
- 6:04future of automation, really. And it is. Think,
- 6:06AI agents, these things can handle complex sequences.
- 6:09Like, you could tell it. Find 10 potential customers
- 6:11in the software industry in California, draft
- 6:13a personalized intro email based on our new product
- 6:16launch, and show me the drafts. A lot more sophisticated
- 6:20than just asking a question. Definitely. Advanced
- 6:22customer support, too, actually processing a
- 6:25refund, not just answering questions about the
- 6:27policy or just digital assistance that can actually
- 6:30turn on your lights or set alarms because they
- 6:32can connect to those systems. So what core function
- 6:35lets a lamb move beyond just conversation and
- 6:38actually access, say, your calendar or email?
- 6:41It's that ability to connect directly to other
- 6:43tools and services using APIs. Those are the
- 6:46hands and feet. Got it. But building one giant
- 6:49lamb that can do everything sounds incredibly
- 6:51complex and frankly expensive to run. It absolutely
- 6:55is. Which leads us perfectly to the next model
- 6:58type, which is all about efficiency. The MOE.
- 7:01MOE, mixture of experts. Yeah, mixture of experts.
- 7:03Now, this isn't one single giant model. It's
- 7:06actually a whole system. Think of lots of smaller...
- 7:09specialized models, the experts. And they're
- 7:11all managed by another AI called the router.
- 7:13OK, so instead of one generalist, it's like having
- 7:15a team of specialists. Exactly, like asking a
- 7:18specific group of pros. The router looks at your
- 7:21request, your prompt, and figures out, OK, this
- 7:23is about coding, and sends it only to the coding
- 7:25expert. Or this needs history knowledge, so it
- 7:29activates the history expert. Usually just one
- 7:32or two experts get activated for any given task.
- 7:34Right, so you're not running the whole giant
- 7:35brain all the time. Precisely. And here's the
- 7:37really cool part. the efficiency and size benefit.
- 7:40You can build a massive model overall, let's
- 7:43say, a trillion parameters worth of knowledge.
- 7:46But because the router only turns on maybe 5
- 7:50% or 10 % of those experts for any single query,
- 7:54you're only paying the computational cost of
- 7:56running a much smaller model, maybe just 100
- 7:59billion parameters in that example. Wait, hold
- 8:00on. So you get the knowledge of a potentially
- 8:03enormous model. but the running cost of something
- 8:06much smaller. That's the magic. Wow. I mean,
- 8:09that just fundamentally changes the economics
- 8:11of building top -tier AI, doesn't it? That scaling
- 8:13efficiency is incredible. It's huge. That's why
- 8:16this architecture, MoE, is believed to be used
- 8:19in the really big, powerful models like Mixed
- 8:22Roll and probably GPT -4, too. It's also great
- 8:25for companies wanting to personalize. They can
- 8:27add their own private experts, train just on
- 8:29their internal documents or specific industry
- 8:31regulations. So you could ask it to explain I
- 8:34don't know, inflation using general knowledge.
- 8:37Yeah. And write Python code to calculate CPI
- 8:40using a coding expert, all in one go. Exactly.
- 8:42Dual knowledge handled efficiently. OK, the efficiency
- 8:45is amazing. But beyond cost, what's the core
- 8:48risk if that router AI messes up its job in a
- 8:50Moe system? If the router picks the wrong expert,
- 8:53the whole answer will likely be poor quality
- 8:55or just plain wrong. Bad robbing means bad results.
- 8:59Makes sense. Garbage in, garbage out. Or rather,
- 9:01wrong expert in, garbage out. Pretty much. And
- 9:03training them is complex, plus you need enough
- 9:06memory VRAM to hold all those experts, even if
- 9:08most are idle. OK, so Moe's give us efficient
- 9:10expertise. But all these models so far, they've
- 9:13been dealing with text or maybe creating images.
- 9:15based on text, what if the AI needs to actually
- 9:18see the world? Ah, giving the AI eyes. That must
- 9:21be the VLM vision language model. You got it.
- 9:24V -L -M. It can see and talk. It understands
- 9:26both pictures and text at the same time. LLMs,
- 9:31fundamentally, were blind. VLMs have eyes. How
- 9:34does that work internally? Is it merging two
- 9:36different kinds of models? Kind of, yeah. It
- 9:39uses an image encoder. Think of that as the eyes,
- 9:42which looks at a picture and translates it into
- 9:46a sort of numerical description, like orange
- 9:48cat sitting on a green chair. OK. A number string
- 9:51that represents the image. Right. And then that
- 9:53numerical string gets fed into a language model,
- 9:56the mouth. which can then understand it and talk
- 9:59about it, answer questions about it. And that
- 10:01opens up some really intuitive uses. The classic
- 10:03example is taking a picture of your fridge and
- 10:05asking, OK, what can I make for dinner with this
- 10:07stuff? That's the famous one. But it goes way
- 10:10beyond that. Think about visual search. Take
- 10:13a picture of some cool shoes you see someone
- 10:15wearing and ask, where can I buy these exact
- 10:17ones? Ooh, dangerous for my wallet. Huh. Tell
- 10:21me about it. Or analyzing video content. and
- 10:24really powerfully, tools for the visually impaired.
- 10:28Imagine it describing the world around them,
- 10:30reading signs, maybe even recognizing faces or
- 10:33expressions. That's incredible, a truly helpful
- 10:35application. But I guess the same watch out applies
- 10:38here as with LLMs. Can VLMs hallucinate about
- 10:41images? Absolutely. They can misinterpret an
- 10:44image, describe an object that isn't there, or
- 10:46get an action wrong. And of course, privacy becomes
- 10:48a bigger concern when you're uploading images,
- 10:50especially of people or inside your home. Right.
- 10:53So besides the fridge example, what's a really
- 10:55powerful, maybe less obvious application of a
- 10:57VLM? I think describing the world in real time
- 11:00for visually impaired people is one of the most
- 11:02profound uses. Yeah, definitely. OK, VLMs are
- 11:05powerful. They see and talk. But they sound like
- 11:08they need a lot of computing power, just like
- 11:10the big LLMs. What if you need AI on a smaller
- 11:13device, like your phone, and privacy is paramount?
- 11:16Great question. That's where the SLM comes in
- 11:19the small language model. While everyone's chasing
- 11:21bigger and bigger, these SLMs, like Microsoft's
- 11:25Fi3, are quietly becoming super important for
- 11:28on -device AI. They're designed specifically
- 11:31to run efficiently on phones, laptops, maybe
- 11:33even smart appliances. Small. So fewer parameters,
- 11:36I guess. How small are we talking? Just maybe
- 11:38fewer, maybe just one to three billion parameters
- 11:41compared to hundreds or even over a trillion
- 11:43for the big LLMs. Okay, one to three billion
- 11:45versus a trillion. How do they stay capable then?
- 11:48How aren't they just dumb? The secret sauce is
- 11:51the training data. Instead of just scraping the
- 11:53entire messy internet like LLMs often do. Right.
- 11:56Researchers focus on quality over quantity. They
- 12:00use what they call textbook quality data, highly
- 12:02curated information, specific examples of reasoning,
- 12:05logic problems. It's like feeding it a very well
- 12:08-structured education instead of just letting
- 12:09it browse the web randomly. Textbook quality.
- 12:12Yeah. That's interesting. So why is the training
- 12:14data for an SLM described that way? Because they
- 12:17prioritize high -quality curated knowledge and
- 12:20reasoning examples over just sheer volume from
- 12:22the internet. Quality over quantity. But doesn't
- 12:25that curated approach risk making them less robust?
- 12:29Like, they only know what's in the textbook.
- 12:31They can't handle the messy, unpredictable real
- 12:34world as well. Are they trading robustness for
- 12:36that efficiency? That is the trade -off, yeah.
- 12:39They will know less about really news or uncommon
- 12:42topics. Their conversational memory might be
- 12:44shorter too, but the payoff is huge. True on
- 12:48-device AI. Meaning it runs right there on your
- 12:50phone. Exactly. Your phone's assistant can work
- 12:52instantly without needing a cloud connection.
- 12:55That means better privacy. Your data doesn't
- 12:57have to leave your device. Think about instant
- 13:00code completion in your programming editor or
- 13:02voice commands in your car that just work, even
- 13:04if you have no signal. Smart microwaves, maybe.
- 13:07OK, so SLMs are great for efficient, private,
- 13:10on -device tasks. But they're still fundamentally
- 13:12about generating text or understanding commands,
- 13:15like LLMs. What if the main goal isn't generation
- 13:18at all, but really deep understanding of language
- 13:20meaning? For deep understanding, we need to look
- 13:23back at a slightly older but foundational model
- 13:26type, the MLM Masked Language Model. Masked Language
- 13:30Model. OK, how is that different from an LLM
- 13:33guessing the next word? So LLMs play the predict
- 13:36the next word game. MLMs, like Google's famous
- 13:39BERT model, play fill in the blank. Fill in the
- 13:42blank? Yeah. During training, they take a sentence
- 13:45and just hide or mask about 15 % of the words.
- 13:48Then they force the model to guess the missing
- 13:51words. Crucially, to do that well, the model
- 13:54has to look at the words before the blank and
- 13:57the words after the blank. Ah, so it needs context
- 14:00from both directions. bidirectional context.
- 14:03Exactly. That forces it to develop a much deeper
- 14:05understanding of the sentence's actual meaning
- 14:07and structure, not just predicting the most likely
- 14:10next word in sequence. OK, so where is that deep
- 14:13understanding most useful if it's not writing
- 14:15poems? Right. They're analysis models, not creative
- 14:18writers. Their big strength is understanding
- 14:20meaning, which is critical for search engines.
- 14:23When you search something like, best camera is
- 14:25A to Z, the MLM helps the engine understand A
- 14:27to Z means a complete guide, not literally the
- 14:30letter. Uh, understanding the intent behind the
- 14:33search. Precisely. They're also great for sentiment
- 14:36analysis, quickly sorting thousands of customer
- 14:39reviews into positive, negative, neutral, and
- 14:42for something called Named Entity Recognition,
- 14:45or N -E -R, that's pulling out specific pieces
- 14:48of info from text, like finding all the company
- 14:50names or dollar amounts mentioned in a long report.
- 14:53So since MLMs aren't really creative writers,
- 14:56what's their crucial function for something like
- 14:57a search engine? They understand the deep context
- 15:00and the actual meaning behind your search query,
- 15:03not just the keywords. Got it. Pure contextual
- 15:06depth. OK, one more model to go. We've covered
- 15:09text, images, actions, efficiency, seeing, small
- 15:12size, deep understanding, what's left. Precision
- 15:16in vision, specifically identifying exact boundaries.
- 15:19We need the SAM, the Segment Anything model.
- 15:21Segment Anything. SAM. Okay, this sounds specialized.
- 15:25Highly specialized. It's a computer vision model,
- 15:27but its focus isn't on telling you what an object
- 15:29is. Its job is to draw an incredibly precise
- 15:31outline around everything it sees in a picture.
- 15:34It segments objects right down to the individual
- 15:36pixel. Down to the pixel. Wow, how does it learn
- 15:38to do that for... Well, anything. It was trained
- 15:41on a massive data set, something like 11 million
- 15:44images, containing over a billion segmentation
- 15:48masks, those precise outlines. So it learned
- 15:51the general concept of what is an object and
- 15:53what is its boundary, even if it doesn't know
- 15:56the object's name. You usually activate it just
- 15:58by clicking on an object or drawing a rough box
- 16:01around it. So it knows This boundary belongs
- 16:03to object one, but not necessarily that object
- 16:06one is a dog or a car. Exactly. It just finds
- 16:09the edges. Okay. Where do you use that kind of
- 16:12pixel perfect? outlining. It's actually a foundational
- 16:15tool for lots of applications. Think photo editing,
- 16:18that remove background feature. Sam is likely
- 16:21powering the precise selection. Or critically,
- 16:24medical imaging. Imagine a surgeon analyzing
- 16:27an MRI. Sam can draw the exact outline around
- 16:30a tumor or an organ, which allows for really
- 16:33accurate measurements. Right. Precision is key
- 16:35there. Absolutely. And it's vital for robotics
- 16:37and self -driving cars too. They need to know
- 16:39the exact edges of objects in the real world
- 16:42to nap and interact safely. So why would a surgeon
- 16:44looking at an MRI need SAM, the segmenter, maybe
- 16:48more than a VLM, the describer? SAM provides
- 16:51those precise pixel level outlines needed to
- 16:54accurately measure biological structures, not
- 16:57just a general description. Measurement needs
- 16:59precision. Makes perfect sense. Is there a watch
- 17:02out for SAM? The main thing is just remembering
- 17:04what it is. It's brilliant at finding outlines,
- 17:07but it won't tell you what the object is. It
- 17:10often needs to be paired with other models, maybe
- 17:12a VLM, to get both the precise outline and the
- 17:15identification. Okay, wow. That's eight different
- 17:17types. Quite the toolbox. It really is. So let's
- 17:20try and pull this all together. What's the big
- 17:22idea here for you, the listener? I think the
- 17:24core takeaway is just realizing that AI isn't
- 17:27one thing, it's this specialized toolbox. And
- 17:30now hopefully knowing the model name and the
- 17:32acronym actually tells you something concrete
- 17:34about its core function. You know which tool
- 17:36to think about for which job. Yeah, let's do
- 17:39a quick recap. If you need writing help, content
- 17:41generation, chatbots, you're thinking LLM. Right,
- 17:45needs super fast images, especially for real
- 17:47-time stuff like AR or on your phone, that's
- 17:49the LCM. Want to automate a complex task? Have
- 17:52the AI actually do things by connecting to other
- 17:56tools. That's the LAM, the action model. Need
- 17:58maximum efficiency and the ability to build huge
- 18:01models cost -effectively using specialist parts.
- 18:03That's the MoE architecture. Need an AI that
- 18:06can see and understand images and talk about
- 18:08them. That's the VLM. Want AI that runs directly
- 18:11on your device, prioritizing privacy and efficiency.
- 18:13over knowing absolutely everything. That's the
- 18:17SLM, the small one. Need deep understanding of
- 18:20language meaning for search or analysis, not
- 18:22generation. That's the MLM. And finally, need
- 18:25to draw those perfect pixel -level outlines around
- 18:27objects in images, like for background removal
- 18:30or medical scans. That's the SAM. Exactly. So
- 18:33now you have this framework, right? We really
- 18:35hope you can use this knowledge next time you
- 18:37hear about a new AI tool. Don't just ask, is
- 18:39it AI? Ask yourself, okay. Based on what it does,
- 18:42is this primarily analyzing things, creating
- 18:44things, or acting on things? Which tool from
- 18:47the toolbox does it sound like? Yeah, that's
- 18:49a great way to approach it. And the pace things
- 18:50are moving, these tools are starting to combine
- 18:52in really interesting ways. We've covered models
- 18:54that talk, models that act, models that see.
- 18:57So here's a thought to leave you with. If the
- 18:59next big step... combines that incredible efficiency
- 19:03of the Moe's specialized experts with the Lamb's
- 19:06ability to connect to tools and automate real
- 19:09-world tasks, well, that creates the potential
- 19:12for truly autonomous, hyper -specialized AI agents.
- 19:17So thinking about that future, what's the single
- 19:19most complex task, maybe in your personal life,
- 19:23maybe in your business, that you would finally
- 19:25trust an autonomous AI agent to handle completely?
- 19:28Something to chew on. Definitely something to
- 19:29think about. We'll see you next time on the Deep
- 19:31Dive.