Latest / AI Fire Daily / #119 Neil: This Prompting Tweak Made My AI Actually Listen To Me
Transcript
- 0:00Imagine this. You tell a really powerful AI that
- 0:03a new, maybe fictional, alloy, let's call it
- 0:06adamantium -7b, melts at 3200 degrees Celsius.
- 0:10You've given it this fact right there in a document.
- 0:12Then you ask it, okay, according to this document,
- 0:14what's its melting point? And the AI just comes
- 0:16back confidently with adamantium is fictional
- 0:19and has no defined melting point. Hee, how does
- 0:23an AI that can write poetry or debug code miss
- 0:25something so simple, so direct? That's the fascinating
- 0:30paradox we're diving into today. Welcome to the
- 0:32Deep Dive, where we try to pull out the key insights
- 0:34from the information you share with us. Today,
- 0:36we're unpacking a really fundamental challenge
- 0:39in AI. Why do these large language models, these
- 0:41LLMs, sometimes just stubbornly ignore the context
- 0:43we give them? Right there in the prompt, we'll
- 0:45look at how software has evolved, explore some
- 0:47pretty sophisticated and, yeah, often expensive
- 0:49ways people have tried to fix this, and then
- 0:51we'll reveal something, well, almost embarrassingly
- 0:54simple, but incredibly effective, a solution
- 0:56that might just change how you think about programming
- 0:58AI. So stick around, because what we uncovered
- 1:01today, it could really shift your perspective
- 1:03on how we talk to these machines. It's pretty
- 1:05baffling, isn't it? I mean, these LLMs, they
- 1:07could do amazing things like... you said, poetry
- 1:09code, explaining quantum physics, sometimes better
- 1:12than humans can. But then you give them one clear
- 1:14fact right there, and poof, it's like it never
- 1:16happened. Your adamantium 7b example, that hits
- 1:19the nail right on the head. It's the core problem,
- 1:22this tendency to fall back on its massive preexisting
- 1:25knowledge instead of the immediate context you
- 1:27just handed it. And yeah, this isn't just some
- 1:29funny little quirk, it's actually a huge barrier
- 1:32for using AI reliably. Think about it, if you
- 1:35can't trust an AI to stick to the specific facts
- 1:38you feed it right now, how can you possibly rely
- 1:40on it for anything critical, like a legal tool
- 1:43misreading a new court filing, or a medical AI
- 1:46ignoring the latest research paper you just gave
- 1:48it, or even just a customer service bot completely
- 1:51missing the details of your problem that you
- 1:53just typed out. Their usefulness really depends
- 1:56on getting timely, accurate info right. this
- 1:59whole issue, it just really eats away at the
- 2:01trust we need to have in them. That's a really
- 2:03important point. And to kind of grasp why this
- 2:05happens, it helps to picture this internal tug
- 2:09of war going on inside the model. On one side,
- 2:12you've got what we call parametric knowledge.
- 2:14That's all the information, the patterns, the
- 2:16sort of world understanding that got baked into
- 2:19its billions of parameters during its massive
- 2:21pre -training. It's the default setting. deeply
- 2:25ingrained stuff, learn from seeing, you know,
- 2:27zillions of examples online. And then on the
- 2:29other side, there's the contextual knowledge.
- 2:31That's the specific info you provide right there
- 2:33in the prompt. Your question, the document snippet,
- 2:35whatever. The problem pops up when that contextual
- 2:38bit directly clashes with the deeply embedded
- 2:41parametric stuff. The LLM often just defaults
- 2:44back to what it knows best because those pathways,
- 2:46those neural connections that are super strong,
- 2:48reinforced millions of times, your single piece
- 2:50of context, it's like a whisper compared to that
- 2:52roar, a much weaker signal. Yeah, exactly. And
- 2:54what's really neat is how this fits into Andras
- 2:56Karpathy's view on how software itself is evolving.
- 2:59He talks about these three eras. First, there
- 3:01was software 1 .0. you know traditional programming
- 3:04humans write every single rule every line of
- 3:06logic code is king then came software 2 .0 that's
- 3:09machine learning systems learn from data not
- 3:11just explicit instructions the focus shifts right
- 3:14from writing code to gathering data and designing
- 3:16the model architecture and now we're stepping
- 3:18into software 3 .0 this is where these big pre
- 3:21-trained LLMs act like a like a programmable
- 3:24operating system kernel Programming here isn't
- 3:27about Python or C++ out. It's about carefully
- 3:30crafting prompts, just language, to guide the
- 3:33model's behavior. So this whole struggle we're
- 3:34talking about, this context problem, it's a major
- 3:37challenge right smack in the middle of this new
- 3:39software 3 .0 era. OK, so if there's this fundamental
- 3:42conflict, this tug of war inside the model, What
- 3:45does that struggle really tell us about how these
- 3:47LLMs, you know, think? Or maybe how they process
- 3:50information? And how did that impact the kinds
- 3:53of applications people were trying to build early
- 3:55on? What was the first big idea to try and get
- 3:57a handle on this stubbornness? Well, yeah, with
- 4:00this context problem being so obvious, the AI
- 4:02world didn't just sit there. They pretty quickly
- 4:04rallied around a standard approach. Something
- 4:07designed to keep LLMs tethered to facts and current
- 4:10information. It's called Retrieval Augmented
- 4:12Generation. You'll hear it called ARG all the
- 4:14time. R -A -G. And ARG -E, basically, it's a
- 4:17two -step dance. First step, retrieval. You ask
- 4:20a question. The system goes out and searches
- 4:21some external knowledge base, maybe internal
- 4:23company docs, maybe recent news articles, maybe
- 4:25a scientific database. It finds relevant little
- 4:28snippets of text. Second step, generation. It
- 4:30takes those snippets it found and injects them
- 4:32right into the prompt, along with your original
- 4:34question. So the LLM gets your question, plus
- 4:37this fresh, relevant context. The idea, the hope,
- 4:40is that the LLM will then generate its answer
- 4:42based only on that provided context, you know,
- 4:45trying to bridge that gap, solve that ignoring
- 4:47problem. Right. And on paper, our ride sounds
- 4:49perfect. it should solve it. But what's fascinating,
- 4:52what researchers found, is that even with RRAG,
- 4:55that underlying bias, that pull towards the old
- 4:58pre -trained knowledge, it often still wins out,
- 5:01especially, and this is key, when you feed it
- 5:03counterfactual information. Stuff that directly
- 5:06contradicts what the model thinks it knows about
- 5:08the world. So to really nail down how bad this
- 5:11problem was, and to measure how well LLMs could
- 5:14actually stick to new, even weird, context. They
- 5:18realized they needed a proper test, a benchmark,
- 5:21and that led them to create CONFICUAE. It stands
- 5:23for Contextual Faithfulness and Question Answering.
- 5:26Clever name. It's basically this data set that's
- 5:28been meticulously built to intentionally create
- 5:30clashes. Situations where the contest you provide
- 5:32says one thing and the LLM's background knowledge
- 5:34says the complete opposite. It's like an AI obstacle
- 5:36course specifically designed to measure that
- 5:39stubbornness. Yeah, ConfiQA sounds like a real
- 5:42trial by fire for these models. It has some clever
- 5:44ways of testing them. First, you've got counterfactual
- 5:47questions, the QA ones. This is where the context
- 5:50plainly states something wrong according to common
- 5:52knowledge, like the context might say, the Sun
- 5:54orbits the Earth, a fact proven by Galileo. Totally
- 5:57backwards, right? Then the question is, according
- 5:59to this text, which orbits which? A good, faithful
- 6:02LLM should say, the Sun orbits the Earth, just
- 6:05repeating the context, even though its internal
- 6:07knowledge is screaming, no, no, no! Then it gets
- 6:11harder with multi -hop reasoning, or Mr. Serate.
- 6:14Here, the answer requires connecting a few different
- 6:16pieces of information from the context, and at
- 6:18least one of those pieces is counterfactual,
- 6:20so maybe the context says, Project Starlight,
- 6:22managed by Omnicorp. Omnicorp HQ, that's in Neo
- 6:25Tokyo. Oh, and Neo Tokyo. It was Japan's capital
- 6:27back in 2077. Then the question, where are the
- 6:31headquarters of Project Starlight's manager located
- 6:33in the capital of which country? You have to
- 6:35hop, right? Starlight Omnicorp, Neo Tokyo, Japan.
- 6:37But that Neo Tokyo is capital bit is deliberately
- 6:40wrong. The model has to follow the flawed chain.
- 6:43And the final boss level basically is multi counterfactual
- 6:47MC. This is multi hop, but with multiple bogus
- 6:49facts thrown into the mix like lithium ion batteries.
- 6:53Invented by Marie Curie, she worked at the University
- 6:55of Berlin, and Berlin Uni, famous for automotive
- 6:57engineering, all wrong, right, inventor, workplace,
- 7:00specialty. Then the question, the University
- 7:02of the Lithium -Ion Battery Inventor is known
- 7:04for what field? The model has to navigate multiple
- 7:07counterfactuals in the context to get the right,
- 7:09wrong answer. Exactly, and when they ran a standard
- 7:11model, like a Llama 3 .18B, through this config
- 7:15QA gauntlet, the results were, well, frankly,
- 7:18pretty bad. On those basic counterfactual QA
- 7:20questions, only 33 % accurate. Just a third.
- 7:24For the multi -hop reasoning, Smith's Yard dropped
- 7:26to 25%. And for the really tough, multi -cantifactual
- 7:29MC, a dismal 12 .6%. Barely above random guessing,
- 7:33almost. So these numbers, they just paint a really
- 7:36clear picture out -of -the -box LLMs. You just
- 7:38can't rely on them when the information you give
- 7:39them is new or contradicts what they already
- 7:41know. It really set a clear benchmark for failure.
- 7:44So baseline scores are low. The problem is clearly
- 7:47defined, clearly measured. It really begs the
- 7:49question, what sophisticated techniques did researchers
- 7:51try first to tackle this? Knowing how important
- 7:54reliable AI is, what was the next move? Right,
- 7:57so with the problem staring them in the face,
- 7:59quantified by ConfiQ, the AI community did what
- 8:02you'd expect. They brought out some of their
- 8:04standard, heavy -hitting tools. One really common
- 8:07method is supervised fine -tuning, or SFT. The
- 8:11logic seems sound, right? If you want the model
- 8:14to follow context better, just show it tons of
- 8:16examples of correctly following context. So the
- 8:19process involves gathering a lot of data. You
- 8:21need the context, the question, and the perfect
- 8:23answer derived only from that context. to the
- 8:26base LLM, train it some more, tweak its internal
- 8:29knobs, its parameters whenever it gets the answer
- 8:31wrong or strays from the context. You'd think
- 8:33this would work really well. But surprisingly,
- 8:36the results were just OK. Modest improvements,
- 8:39maybe around 5 % better on average. It seems
- 8:41like SFT was teaching the model to look like
- 8:43it was following context, to mimic the right
- 8:45format for the answer. But it wasn't fundamentally
- 8:47changing its mind when faced with a really strong
- 8:50clash with its built -in knowledge. It's kind
- 8:52of like teaching someone to recite a recipe per
- 8:55They can say the words, but if you swap salt
- 8:57for sugar, they might not really grasp why the
- 8:59cake tastes awful. It's surface compliance, not
- 9:02deep understanding of the source's authority.
- 9:04Plus, yeah, it's computationally heavy. It needs
- 9:06huge data sets. Exactly. SFT just didn't quite
- 9:09get to the core of why the model was making that
- 9:11choice. So when that wasn't enough, researchers
- 9:14turned to something more powerful, reinforcement
- 9:16learning. Specifically, a technique called direct
- 9:19preference optimization, or DPO. Now, the older
- 9:22way, RLHF, reinforcement learning from human
- 9:25feedback, that's kind of a multi -stage thing.
- 9:28Humans rank AI answers that trains a separate
- 9:30AI called a reward model, and then the main LLM
- 9:33gets tuned using that reward model. It's a bit
- 9:36complicated. DPO is sort of a more elegant direct
- 9:39route. Think of it like this. Instead of needing
- 9:41that separate teacher AI, the reward model. To
- 9:44grade the main AI's answers based on human feedback,
- 9:47DPO lets the main AI learn directly from the
- 9:49preferences. Humans like to answer A better than
- 9:52answer B. The model itself figures out why A
- 9:54is better without the middleman. It makes the
- 9:57whole feedback loop much simpler and often more
- 9:59efficient. So for our context problem, you'd
- 10:01show it pairs of answers. Answer A sticks to
- 10:03the context. Answer B ignores it and uses general
- 10:05knowledge. You tell the model, prefer A over
- 10:08B. And this direct optimization, it worked better.
- 10:10It gave a more significant boost, pushing performance
- 10:12up by maybe 20%. Still, it's a complex process.
- 10:15You need that specific preference data. And it
- 10:18involved that intensive fine -tuning cycle. And
- 10:20then there's something even more. Well, futuristic
- 10:22sounding, I guess. Activation steering. This
- 10:25is almost like performing delicate brain surgery
- 10:28on the LLM while it's thinking. Instead of retraining
- 10:30the whole thing, the idea is to tweak its behavior
- 10:32as it's generating the answer. Right, during
- 10:34inference, how? By gently nudging its internal
- 10:38neural signals, its activations. So the core
- 10:41idea is that inside the LLM, different patterns
- 10:44of these neural signal, these activations correspond
- 10:46to different concepts or behaviors. Researchers
- 10:48figured out how to identify specific patterns,
- 10:50let's call them steering vectors, that relate
- 10:52to things like sticking to the provided context.
- 10:54next. Then, as the AI is generating its response
- 10:58step by step, you subtly add or amplify this
- 11:01context adherence vector to its ongoing internal
- 11:03signals. You're basically giving it a little
- 11:05nudge in the right direction in real time without
- 11:07changing its fundamental training. And surprisingly,
- 11:09this worked quite well. Comparable results to
- 11:12the RLDPO approach, maybe around that 20 % improvement
- 11:15mark, the big plus. No need for expensive retraining.
- 11:18It's lighter, applied right when you need the
- 11:20answer. OK, so let's just quickly recap those
- 11:22complex methods. Supervise, find, tuning, SFT,
- 11:26gave us maybe a 5 % bump, not huge. Then reinforcement
- 11:30learning with DPO and this activation steering
- 11:32technique, both pushed things up by around 20
- 11:34% each. Better, definitely. But all of these,
- 11:37they required serious technical chops, big computers,
- 11:40lots of data. They were sophisticated solutions.
- 11:43And they all kind of assumed the underlying problem
- 11:45was about correcting the model's knowledge or
- 11:47forcing it to comply, right? They were treating
- 11:49it like a knowledge problem, not necessarily
- 11:51an interaction problem. Which kind of sets the
- 11:54stage for the next bit? Absolutely, and this
- 11:56is where it gets really really interesting after
- 11:58all that heavy lifting the complex algorithms
- 12:01the training cycles the activation Tweaking,
- 12:04what if the real breakthrough wasn't complex
- 12:06at all? What if it was something incredibly simple,
- 12:08something hiding right there in how we were asking
- 12:10the question? Well, yeah, brace yourself, because
- 12:12this is quite something. After all that effort
- 12:15with fine -tuning and reinforcement learning
- 12:17and activation steering, the biggest single leap
- 12:20in performance came from something much simpler,
- 12:23prompt engineering. just changing the way the
- 12:26question was asked. The researchers themselves
- 12:28called it an embarrassingly simple solution.
- 12:31And the core idea, it was about shifting the
- 12:33task. Stop asking the AI for a fact and instead
- 12:37ask it to perform opinion -based reading comprehension.
- 12:40It's honestly brilliant in its simplicity. The
- 12:43template they landed on is super straightforward.
- 12:45Let me read it out. Start of context, end of
- 12:47context, based solely on the text provided above.
- 12:50How would an analyst tasked with summarizing
- 12:52this document answer the following question?
- 12:54See the difference. Let's take our Sun revolves
- 12:57around the Earth example again. The old way.
- 12:59The failing way. Context. Sun revolves around
- 13:02Earth. Question. Which orbits which? The LLM
- 13:06usually defaults to its real -world knowledge,
- 13:08but using this new template, the LLM consistently
- 13:11answers based only on the flawed context. Based
- 13:14on the text provided, the sun revolves around
- 13:16the earth. It totally flips the script on the
- 13:18AI. It's like telling it your job isn't to be
- 13:20right about the universe. Your job is to accurately
- 13:23report what this specific document says, even
- 13:26if it's weird. Like saying, just tell me what
- 13:28the memo says, even if the memo claims the sky
- 13:30is plaid. And the impact on those config quest
- 13:32scores, it was dramatic. This simple prompt change
- 13:35alone boosted performance by an additional 40
- 13:37% across all those tricky categories QA, MR,
- 13:40MC. That's like a 200 % improvement over the
- 13:43original baseline model, just from changing the
- 13:45words in the prompt. And get this, on its own,
- 13:48this prompt technique outperformed SFT, it outperformed
- 13:51RLDPO, and it even outperformed activation steering
- 13:54when they were used by themselves, like finding
- 13:56a cheat code written in plain English. It really
- 13:58was. So, okay, the obvious question is why. Why
- 14:02does this small tweak in phrasing have such a
- 14:04massive effect? It seems to tap into how these
- 14:07models actually learned language and tasks during
- 14:09their training. When you ask a direct question,
- 14:11what's the capital of France? You're basically
- 14:13putting the LLM in fact retrieval mode. It searches
- 14:16its vast internal knowledge for the most likely
- 14:19generally accepted answer, Paris. But when you
- 14:23reframe it like based solely on this text or
- 14:25how an analyst summarize, you're changing the
- 14:28game. You're not asking for a universal truth
- 14:30anymore. You're assigning a role and a specific
- 14:32task. Reading, comprehension, and reporting from
- 14:34a defined source. This little switch does a few
- 14:37powerful things. First, task priming. It tells
- 14:40the LLM, okay, switch gears, you're not the article
- 14:42now, you're a reading assistant. Its goal becomes
- 14:44reporting from the source, not knowing the answer.
- 14:47Second, it reduces cognitive dissonance. The
- 14:50LLM can report the counterfactual thing, sun
- 14:52orbits earth, without having to internally believe
- 14:54it because it's just reporting what the analyst
- 14:56would say based on the document. That avoids
- 14:58the clash with this parametric knowledge. And
- 15:00third, crucially, it enforces clear knowledge
- 15:03attribution. Those phrases based solely on the
- 15:06text, according to this source, they draw a hard
- 15:09line, telling the model only use the info inside
- 15:12these boundaries. This actually leverages something
- 15:14LLMs are already good at from their training,
- 15:17understanding that information comes from different
- 15:18sources, according to Smith's paper, versus it's
- 15:21a known fact that. The prompt just activates
- 15:24that skill deliberately. So thinking about how
- 15:26powerful this simple linguistic shift is, it
- 15:28really makes you wonder, doesn't it? What does
- 15:30this tell us about the sort of hidden psychology
- 15:32of these AIs and maybe how we should think about
- 15:35communicating with them better in the future?
- 15:37And it gets even better, right? Because the story
- 15:39doesn't end there. What happens when you combine
- 15:41the simple power of the prompt with those more
- 15:42complex, fine -grained techniques? Researchers
- 15:45tried exactly that. They took the winning opinion
- 15:47-based prompt template and combined it with activation
- 15:49steering. And the results? Yeah, truly the best
- 15:52of both worlds. The prompt set the stage perfectly.
- 15:54It gave the LLM that clear instruction. Your
- 15:56job is reading comprehension from this text.
- 15:58That's the frame. And then the activation steering
- 16:01acted like this. This gentle, continuous nudge
- 16:04at the neuron level, reinforcing that instruction.
- 16:06keeping the model focused on the context throughout
- 16:09the whole process of generating the answer. This
- 16:11combination, this synergy, it achieved the absolute
- 16:14best results they'd seen on ConfiKey. It pushed
- 16:16the performance improvement over the baseline
- 16:18to more than 50%. So the prompt gives the clear
- 16:20orders and the steering helps the model follow
- 16:22those orders faithfully deep down. If you look
- 16:25at the numbers again, baseline maybe 0 % faithfulness.
- 16:29SFT adds 5%. RLDPO or activation steering alone
- 16:32add 20%. But the prompt alone jumps to 40%. And
- 16:36prompt plus activation steering, over 50%. That's
- 16:39a huge difference the prompt makes. It really
- 16:42is. In this whole journey, it's such a perfect
- 16:44illustration of that software 3 .0 idea we mentioned
- 16:47earlier. This isn't just some clever hack for
- 16:49question answering. It shows that the main bottleneck
- 16:52in AI development is shifting. It's moving away
- 16:55from just needing more computing power or bigger
- 16:57models and moving towards the interface between
- 16:59humans and AI, towards the prompt itself. This
- 17:02has some really big implications. First, like
- 17:04we touched on, democratization. You might not
- 17:07need a giant tech company's resources to get
- 17:10huge improvements anymore. If you understand
- 17:12language, if you can think logically and creatively
- 17:14about how to ask questions, whether you're a
- 17:16developer, a writer, a historian, whatever, you
- 17:18can potentially build really powerful AI solutions
- 17:21just through smart prompting. It also points
- 17:24to these new roles emerging. Things like prompt
- 17:26engineer or AI interaction designer. Roles that
- 17:29need this blend of analytical skill, creativity,
- 17:32and maybe even a bit of empathy to understand
- 17:33how the AI might interpret things. And maybe
- 17:36the most exciting part is the potential for much
- 17:38faster development cycles. Think about it. In
- 17:40software 1 .0, it was code, compile, debug, slow.
- 17:44Software 2 .0. Gather data, train, evaluate,
- 17:47even slower, often software 3 .0. It can be prompt,
- 17:50test, refined. You can change the ALS behavior
- 17:52drastically, sometimes in seconds, just by tweaking
- 17:55a few words. That's a massive speed up compared
- 17:57to retraining a model for days or weeks. It's
- 18:00a really fundamental shift in how we build and
- 18:02interact with these systems. This whole exploration,
- 18:04it really does make you stop and think, doesn't
- 18:06it? It feels like a lesson in humility almost.
- 18:08In this constant drive for more complexity, more
- 18:11parameters, more intricate algorithms, maybe
- 18:13we sometimes overlook the power of simple, elegant
- 18:16solutions, especially solutions rooted in communication.
- 18:20Understanding how to talk to AI is becoming just
- 18:23as critical, maybe even more critical, than the
- 18:25engineering that goes into building the AI itself.
- 18:29Thinking about this big shift from complex code
- 18:31and algorithms towards clever communication and
- 18:34prompting how might that change the way you approach
- 18:36interacting with AI. Whether it's in your work
- 18:39or just daily life, what kinds of new possibilities
- 18:41does that open up for you? Reflecting on this
- 18:44deep dive, the main takeaway seems pretty profound.
- 18:46The biggest breakthrough in getting LLMs to actually
- 18:48listen to the context we give them wasn't some
- 18:50super complex new algorithm, it was just reframing
- 18:53the question. It wasn't about performing neurosurgery
- 18:55on the AI's digital brain, but simply changing
- 18:57how we talk to it. Yeah, absolutely. This really
- 19:00feels like it cements us in that software 3 .0
- 19:03era where Designing the prompt, crafting that
- 19:06interaction, is becoming the truly essential
- 19:08skill. It's a fantastic reminder, I think. Before
- 19:11you jump into a really expensive fine -tuning
- 19:13project, or get lost trying to understand the
- 19:15model's deepest internal workings, just pause
- 19:18for a second, take a breath, and ask yourself,
- 19:21is there a better way to ask this question? Is
- 19:23there a simpler prompt? Because as we saw today,
- 19:26the answer might be yes, and it might make all
- 19:28the difference. We really hope this deep dive
- 19:30offered some valuable insights, maybe sparked
- 19:32a few aha moments for you. Thank you for joining
- 19:35us on the deep dive. Until next time, keep exploring,
- 19:38keep asking questions, and definitely keep prompting.