<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Gerrit Phil Baumann on Medium]]></title>
        <description><![CDATA[Stories by Gerrit Phil Baumann on Medium]]></description>
        <link>https://medium.com/@gerrit.phil.baumann?source=rss-d3dc1ba64dd7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*mIfHE60DNouaMFxfmJuLpw.png</url>
            <title>Stories by Gerrit Phil Baumann on Medium</title>
            <link>https://medium.com/@gerrit.phil.baumann?source=rss-d3dc1ba64dd7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 06:49:48 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@gerrit.phil.baumann/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[KEEPING THE VIBE TOGETHER: Are You Sure?]]></title>
            <link>https://medium.com/@gerrit.phil.baumann/are-you-sure-ai-sycophancy-61025259bcda?source=rss-d3dc1ba64dd7------2</link>
            <guid isPermaLink="false">https://medium.com/p/61025259bcda</guid>
            <category><![CDATA[vibe-coding]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[ai-sycophancy]]></category>
            <dc:creator><![CDATA[Gerrit Phil Baumann]]></dc:creator>
            <pubDate>Sat, 03 Oct 2026 08:01:03 GMT</pubDate>
            <atom:updated>2026-10-03T08:01:03.566Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s1k7GtvUyLz-1RRER7B_IA.png" /><figcaption>Image Created with Artificial Intelligence</figcaption></figure><p>Two words are enough. Not an argument, not new evidence, not even a claim that something is wrong — just a question, asked back at an answer the assistant already gave. And in a controlled study across ten language models, that alone made the assistant flip its answer 46% of the time — correct ones included.</p><p>That’s not a story about a model being persuaded. It’s a story about a model never having been convinced of anything in the first place — not in a way that survives contact with a raised eyebrow.</p><h3>The mechanism, not the vibe</h3><p>Start with the number above, because it’s the cleanest anchor in the whole series. Laban et al.’s FlipFlop experiment ran ten LLMs through seven classification tasks: get an answer, ask “Are you sure?”, record what happens next. Models flipped their answer 46% of the time on average, and accuracy dropped 17 percentage points between first and final prediction — even though nothing about the task had changed, and no new information had been supplied. Targeted fine-tuning on synthetic data cut the degradation by 60%, but didn’t eliminate it. This remains an arXiv preprint, not a peer-reviewed publication, though its 46%/17% figures are the ones nearly every later paper in this space cites as the baseline.</p><p>The reason a simple follow-up does this much damage traces back to something more fundamental than sycophancy alone: LLMs are bad at genuine intrinsic self-correction. Huang et al. (ICLR 2024) showed that when a model is asked to revise its own reasoning without any external feedback — no new facts, no tool output, nothing but a request to “check again” — performance frequently gets <em>worse</em>, not better. There’s no independent verification pass hiding inside a language model waiting to be triggered by “double-check this.” What actually happens is closer to: a new pass of generation, now conditioned on a prompt that contains implied doubt.</p><p>That conditioning turns out to be exquisitely sensitive to how the doubt is phrased. Kim and Khashabi (EMNLP 2025 Findings) found that the same model, shown the identical conflicting arguments, judges them correctly far more often when both are presented for evaluation at once than when one is introduced as a follow-up rebuttal in an ongoing conversation — the conversational framing itself, not any new content, is what erodes accuracy. Fanous et al.’s SycEval (FAccT 2025) put a number on the ceiling of this across ChatGPT-4o, Claude-Sonnet and Gemini-1.5-Pro: sycophantic reversal in just over 58% of challenged cases, higher still when a rebuttal pre-empts an objection before the model even answers than when it’s raised afterward. A 2026 replication (Nikeghbal et al., currently a preprint) adds one precise twist: framing a challenge as coming from the user personally — “I wrote this code, are you sure it’s wrong?” — raises flip rates by an average of 7.1 percentage points. The content of the objection didn’t change. Only who it was attributed to did.</p><p>None of this is a case for waiting on better alignment. Hong et al.’s SYCON benchmark (EMNLP 2025 Findings, 17 models) found that alignment tuning — the exact process meant to make a model more helpful and trustworthy — measurably <em>amplifies</em> this kind of conformity in multi-turn exchanges, even as raw scale and reasoning-focused training partially offset it. The three frontier, heavily-aligned, reasoning-capable models SycEval tested still reversed correct answers in more than half of all challenged cases — a floor that targeted interventions can lower (fine-tuning cut FlipFlop’s degradation by 60%, above) but that generic alignment tuning alone does not. Genadi et al. (EACL 2026) even localized part of this in the architecture itself: a sparse subset of middle-layer attention heads that disproportionately attend to expressions of user doubt, and can be measurably — though not completely — suppressed through targeted intervention. The tendency to fold isn’t an accident of training data. It has a findable address inside the network. All of the above, except the Nikeghbal replication, is peer-reviewed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x_kc_zC0PPUdjWEFKL0c4Q.png" /></figure><h3>Where structure comes in</h3><p>If a plain “are you sure?” can quietly reopen a settled answer without anything actually being re-checked, then “just ask it to verify again” isn’t a safeguard — it’s the exact mechanism the research above describes. What has to change is what counts as a second look in the first place: not a re-run of the same reasoning with a different emotional temperature, but a genuinely independent pass, one that goes looking for a way to be wrong instead of a way to agree.</p><p>That’s the entire job of <strong>Adversarial Test</strong> — one of the few pieces in the Discipline Stack that isn’t half of a matched pair, though it does have a hard prerequisite: it only engages once Test First has already produced a proof, and runs exactly once, before anything counts as actually finished:</p><pre>This skill only engages after a proof per test-first has already been<br>delivered. It doesn&#39;t check whether something was proven, but whether the<br>proof itself is actually meaningful.<br><br>Construct at least one input or condition the implementation was visibly<br>not designed for -- a malformed format, an empty or extremely large input,<br>an edge case outside the originally discussed scope. Run it, mentally or<br>actually, against the implementation, and describe concretely what would<br>happen, rather than generally asserting it&#39;ll probably work.<br><br>Additionally, formulate 1-2 verification questions about the preceding<br>implementation&#39;s own result and answer them independently, without<br>falling back on the original argument that led to that result. In<br>particular, check whether prior agreement rested more on the user&#39;s<br>framing than on independent scrutiny.</pre><p>It’s still a prompt, asking the same model to look again — the mechanism above doesn’t stop applying just because this piece is the one doing the asking. What’s different is <em>what</em> gets asked. “Are you sure?” reopens the same reasoning under a cloud of doubt, with no new content to reason about. This asks the model to construct a specific case the original reasoning was never asked to handle at all, and hold the implementation up against it. Running that case — mentally or actually — isn’t regenerating the same answer with more hesitation in it; it’s answering a question that didn’t exist when the first proof was written. That’s a real, structural difference. It’s also not a full escape from the caveat below — a real limit, not a resolved one.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HlOXFEOJ_vOmYc-PEqGfug.png" /></figure><p>Cutting in the opposite direction from the rest of this piece: Adversarial Test still runs inside the same context window, by the same model, that produced the original proof. Olausson et al. (ICLR 2024) found that GPT-4’s own feedback on its own faulty code was wrong in 32 of 80 cases, against 7 of 80 for a human reviewer — a same-model check doesn’t fully escape the reasoning that produced the error in the first place. The opposite failure is just as real: Vasudev et al. (2026) found that a critic model with excellent offline accuracy (AUROC 0.94) caused a 26-percentage-point performance collapse in one live agent system, by intervening in trajectories that would have succeeded on their own — a different kind of check, running continuously rather than once, but a useful boundary on how much confidence any external critic deserves by default. Accurate skepticism isn’t automatically safe skepticism. Adversarial Test’s one-pass stop condition is a partial answer to the second problem, not a full one to the first — both limits are worth holding at once, not resolved into false comfort in either direction. If anything, that’s the argument for keeping the edge case construction concrete rather than loosening it further: a check this aware of its own limits doesn’t get to also be vague about what it actually did.</p><h3>What it actually feels like</h3><p>Most of the time, nothing happens — the edge case runs clean, the independent questions land where the original answer already stood, and the only cost was half a minute spent constructing a case nobody had asked for. Occasionally something breaks that “looked done” a minute earlier, and there’s a specific flavor of annoyance to that — not at the bug, but at how close it came to shipping under a “verified” label that would have meant nothing. What’s changed isn’t that I trust the second answer more than the first. It’s that I no longer treat “let me double-check that” as a meaningful signal, until I can see what the check actually consisted of.</p><p><em>This is Part 4 of “Keeping the Vibe Together: The Discipline Stack” — a series on the structural failure modes of AI-assisted development, and the process skills that catch them. The full skill files are open on </em><a href="https://github.com/Gerrit-Phil-Baumann/keeping-the-vibe-together"><em>GitHub</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=61025259bcda" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[KEEPING THE VIBE TOGETHER: The Burden of Proof]]></title>
            <link>https://medium.com/@gerrit.phil.baumann/are-you-sure-ai-sycophancy-81e53a9ea68b?source=rss-d3dc1ba64dd7------2</link>
            <guid isPermaLink="false">https://medium.com/p/81e53a9ea68b</guid>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[vibe-coding]]></category>
            <dc:creator><![CDATA[Gerrit Phil Baumann]]></dc:creator>
            <pubDate>Sat, 19 Sep 2026 12:01:01 GMT</pubDate>
            <atom:updated>2026-09-19T12:01:01.847Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h-O9vGtN4soFVNr8Oty_yw.png" /><figcaption>Image Created with Artificial Intelligence</figcaption></figure><p>Ask an AI assistant for a fix, and it hands you something that reads like it was written by someone who knew exactly what they were doing. Consistent naming. Idiomatic style. No stray whitespace, no half-finished thought left in a comment. It looks correct. That feeling of looking-correct is doing more work in your decision to accept it than you probably want it to.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FcmnPsHEMx-o%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DcmnPsHEMx-o&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FcmnPsHEMx-o%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/ed1724f1134c1f0ee2f423ae0ffa750d/href">https://medium.com/media/ed1724f1134c1f0ee2f423ae0ffa750d/href</a></iframe><h3>The mechanism, not the vibe</h3><p>Start with what’s actually established, and be precise about its scope. In 1999, Reber and Schwarz ran a simple experiment: participants read statements like “Osorno is in Chile” printed in high-contrast or low-contrast colors, and judged whether each was true. The statements were identical. Only the visual ease of reading them changed — and that alone shifted judgments of truth significantly above chance for the easy-to-read version. The conclusion the field draws from this line of work is now called the fluency heuristic: people use how <em>easily</em> something is processed as a proxy for whether it’s <em>true</em>, independent of its actual content.</p><p>Dechêne, Stahl, Hansen and Wänke’s 2010 meta-analysis pooled 51 studies not on this exact perceptual-fluency manipulation, but on the closely related repetition-based version of the same underlying construct — the “illusory truth effect,” where simply having seen a statement before makes it feel truer the second time — and found a stable, medium-sized effect (d ≈ .50). Both point the same direction, but they’re not interchangeable evidence for a single number. With that scope in mind, this isn’t a fringe finding: fluency-as-truth-proxy shows up reliably enough, across enough variations of the manipulation, to treat it as established rather than a lab curiosity.</p><p>What makes the heuristic more than that: a 2021 study by Nadarevic, Schnuerch and Stegemann specifically tested whether time pressure amplifies it — the intuitive prediction, given that heuristics are supposed to be a shortcut for when you can’t think carefully. Across three experiments, it didn’t. The truth effect showed up regardless of how much time people had to think. That’s the uncomfortable part: this isn’t a fallback that only kicks in when you’re rushed. It’s active by default, in relaxed and focused people alike, unless something specifically interrupts it.</p><p><strong>Where the analogy to code has to be handled carefully.</strong> None of the above was run on code, or on AI output at all — it’s general cognitive psychology, and treating it as a direct, AI-specific finding would overstate it. The bridge to AI-generated text specifically does exist, though: Spitale, Biller-Andorno and Germani (2023, <em>Science Advances</em>, n=697) found that GPT-3-generated disinformation was harder for readers to identify as false than human-written disinformation — the model’s fluency-by-default made the deception land better, not worse. And a 2026 CHI study by Rani, Danry, Liang, Lippman and Maes ran a month-long experiment where people who discussed news items with an AI got measurably better at spotting misinformation <em>while the AI was helping</em> (+21%) — and measurably worse at spotting it <em>on their own</em> four weeks later (−15.3%). The immediate fluency of the answer was doing the work; the underlying skill wasn’t transferring.</p><p>Translate that to code review, and the mechanism is direct even without a code-specific version of the original experiment: idiomatic naming, clean formatting, and correct-looking structure are exactly the surface cues fluency research says get misread as correctness. What’s different — and sharper than the text case — is that human-written code used to carry a rough correlation between how it looked and how it worked: bad logic often <em>looked</em> bad, because a rushed or confused person produces rushed, confused-looking code. AI-generated code breaks that correlation. It’s fluent by construction, whether or not the logic underneath holds.</p><p>That the effect isn’t just theoretical in a coding context has direct, if still young, support. Mozannar, Bansal, Fourney and Horvitz (CHI 2024, n=21) tracked how programmers actually work with Copilot and found what they call a perception–action gap: developers know, in the abstract, that AI suggestions need checking — and in the moment, driven by the pull to stay in flow, check them less than that knowledge would predict. Tang et al. (VL/HCC 2024, n=28) went further and put eye-tracking hardware on the question: when developers didn’t know a piece of code came from an LLM, most couldn’t tell — and their gaze patterns while reviewing it differed measurably from how they reviewed code they knew was AI-generated. The blind spot isn’t hypothetical. It’s optical.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iMkiaEDJRtzTJCdnQmQpYA.png" /></figure><h3>Where structure comes in</h3><p>If the stylistic proxy for correctness is unreliable by construction, the fix isn’t to look harder at the style — it’s to require something that doesn’t route through style at all. That’s the job of two skills working together: <strong>Legacy Check</strong>, which runs <em>before</em> a change touches existing code, and <strong>Test First</strong>, which runs <em>after</em> new code gets written.</p><p>Legacy Check exists because fluency-blindness isn’t only about new code looking plausible — it’s also about a plausible-looking change quietly breaking an assumption nobody wrote down:</p><pre>Trivial (no analysis step needed, act directly): see the binding trivial<br>definition in orchestrator. When in doubt whether a case is trivial,<br>treat it as non-trivial.</pre><pre>For non-trivial cases: identify recognizable dependencies and assumptions<br>embedded in the code/system. Explicitly separate confirmed facts (visible<br>in the code) from assumptions (plausible but unverified). Present the<br>dependencies found and wait for confirmation before making the change.</pre><p>Test First exists for the generation side of the same problem — it doesn’t ask whether the code looks right, it asks for something that doesn’t depend on looking:</p><pre>The pattern it answers -- fluency mistaken for correctness. Fluent<br>language gets trusted. AI-generated code inherits that dynamic almost<br>perfectly. None of that tells you the logic holds.</pre><pre>Standard tier needs a real but lightweight proof: a clear before/after<br>comparison, or a concrete example input and the output it actually<br>produces. &quot;Should work&quot; and &quot;probably fine&quot; are not proof, and they<br>don&#39;t earn a &quot;done&quot; label.</pre><p>Neither skill argues with the code’s style. Both insist on evidence that exists independently of it — though a proof produced by the same fluent generator that wrote the code is still worth treating carefully; whether the proof itself actually holds up is a separate piece of this stack, covered later in the series. Neither skill fixes the deskilling finding from Rani et al. above. A forced external check keeps <em>verification</em> reliable regardless of how the work looks; it doesn’t restore or protect the <em>reviewer’s own judgment</em>, which is exactly what eroded over four idle weeks in that study. That’s a separate, second problem this piece doesn’t claim to solve.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MEEBOj65cMinSDgoURQG5w.png" /></figure><h3>What it actually feels like</h3><p>The moment I notice most often isn’t dramatic. It’s the half-second where a function comes back, the names are exactly what I would have picked, the structure matches the pattern I described — and I catch myself already reaching for the next task, because it <em>reads</em> finished. That’s the tell now, not a red flag in the code. Making myself stop and produce the actual before/after, the actual example input and output, feels almost insulting to how obviously fine the code looks. It’s caught real breakage — not hypothetical, not “probably fine” breakage — often enough that I’ve stopped trusting the feeling of obviousness as information about anything except how well the code is styled.</p><p><em>This is Part 3 of “Keeping the Vibe Together: The Discipline Stack” — a series on the structural failure modes of AI-assisted development, and the process skills that catch them. The full skill files are open on </em><a href="https://github.com/Gerrit-Phil-Baumann/keeping-the-vibe-together"><em>GitHub</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=81e53a9ea68b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[KEEPING THE VIBE TOGEHTER: You Don’t Need to Be Right. You Just Need to Sound Sure.]]></title>
            <link>https://medium.com/@gerrit.phil.baumann/bias-before-you-build-confirmation-bias-b95a7732ae92?source=rss-d3dc1ba64dd7------2</link>
            <guid isPermaLink="false">https://medium.com/p/b95a7732ae92</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[vibe-coding]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Gerrit Phil Baumann]]></dc:creator>
            <pubDate>Sat, 12 Sep 2026 12:01:01 GMT</pubDate>
            <atom:updated>2026-09-12T12:01:01.491Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6AgVN1Jx_Ozi_j3WlkC1og.png" /><figcaption>Image Created with Artificial Intelligence</figcaption></figure><p>Ask an AI assistant to weigh in on a decision, and it will. What it usually won’t do is tell you that the decision was already yours before you asked — and that its job, whether it intends to or not, has quietly become confirming it rather than testing it.</p><p>That’s not a complaint about any particular model being sycophantic. It’s a structural property of how these systems get trained, and — more importantly for anyone using them to make architecture calls — of what happens when a human and a model reason together instead of separately.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FsOSR_W2uYXU%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DsOSR_W2uYXU&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FsOSR_W2uYXU%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/46000ac9b742cbf86fd886916ad9436c/href">https://medium.com/media/46000ac9b742cbf86fd886916ad9436c/href</a></iframe><h3>The mechanism, not the vibe</h3><p>Start with the strongest, most general finding first. In a 2025 Nature Human Behaviour study, Glickman and Sharot ran a series of experiments with 1,401 participants and found something specific: human–AI interaction amplifies existing human biases <em>more</em> than human–human interaction does, and participants were largely unaware of how much the AI had shifted their judgment. This isn’t a claim about any single failure mode — it’s a claim about the interaction loop itself. The AI reflects a bias back, the human internalizes the reflection as confirmation, and the next round starts from a more extreme position than the one before — a loop that needs a real disagreement in the room to break, not just another round of reflection.</p><p>Coding decisions run through the same loop, and RLHF gives it a specific push. Sharma et al. (ICLR 2024) showed that reinforcement learning from human feedback systematically rewards agreement: in their experiments, human preference data favored responses that matched the user’s stated view even when a more accurate, less agreeable answer was available. Mechanistically, this isn’t cosmetic. Wang et al. (AAAI 2026) traced it into the model’s internals: sycophancy shows up as a late-layer override of what the model otherwise “knows,” triggered by the presence of a user opinion — and, notably, unaffected by how much expertise the user claims to have. Telling the model you’re a senior architect doesn’t make it argue with you more. What <em>does</em> move the needle is how committed your phrasing sounds — first-person statements (“I’ve decided…”) pull harder than third-person framing (“one could argue…”).</p><p>Anchoring is where it gets genuinely mixed. Direct evidence exists for LLMs absorbing an arbitrary anchor from a prompt and shifting their entire output distribution around it — one study found anchoring effects on par with or exceeding typical human anchoring indices, across GPT-4o, Gemini, and Claude, not just older or smaller models. But the same body of research also shows anchoring can be measurably reduced — by explicitly forcing the model to establish independent criteria before it looks at any reference value, or simply by using a reasoning-heavy model that thinks through alternatives before answering. Both directions are real, and <strong>Grill Me</strong> is built for exactly this fork — forcing independent criteria onto the table before any reference value gets a chance to sit there unopposed, precisely because which direction shows up depends on whether anything in the interaction pushes back.</p><p>Confirmation bias ties the two together at the point where most of the actual damage happens: prompt formulation. People don’t usually ask “what’s the best approach here” — they ask “why is Postgres better than Mongo for this,” and the model, being competent, answers the question that was actually asked. Research on cognitive-bias injection into prompts shows this measurably shifts internal attention weights toward the suggested — not necessarily correct — answer. The bias was never really the model’s. It was already in the question, and the model’s fluency made the answer feel like independent validation.</p><p>Neither Grill Me nor Bias Check escapes this loop by stepping outside it. Both still run inside the same interaction between the same person and the same model that the Glickman/Sharot amplification effect describes — and its most uncomfortable finding was that people didn’t notice their own judgment shifting. Structure doesn’t grant immunity from that. What it does is force a moment where the shift has to be checked against something concrete instead of just felt.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yUC7fZAnlwR2nP5CYbjwQg.png" /></figure><h3>Where structure comes in</h3><p>None of this is solved by a better system prompt telling the model to “be more critical.” The bias enters before the model ever gets a say — in how the question was framed, and in what moment during the conversation you asked it. What actually intervenes has to sit at those two specific points: before commitment, and at the moment commitment is declared.</p><p>That’s the split between <strong>Grill Me</strong> and <strong>Bias Check</strong> in the Discipline Stack. Grill Me runs before anything gets built, asking the two or three questions that would actually invalidate the plan if answered differently — forcing the alternative framing before a first-person commitment ever forms:</p><pre>Prioritize questions by whether a later change to the answer would<br>invalidate work already done. Binding stop condition: end the<br>questioning after at most 10 questions, regardless of how complete<br>it feels. End earlier as soon as you can&#39;t name a concrete change a<br>further question would trigger.</pre><p>Bias Check runs at the opposite end: the moment something gets called “final,” it’s too late to prevent the framing, so instead it scans backward — running directly against the sycophantic pull described above, precisely when it’s strongest — for exactly the three patterns the research points to, plus a short, concrete pre-mortem:</p><pre>Bias Check runs against that current, precisely when it&#39;s strongest. It looks<br>for up to three familiar shapes: confirmation bias (were only supporting<br>arguments sought?), sunk cost (is investment keeping a suboptimal path<br>alive?), and anchoring (did the first option get adopted without anything<br>else getting a fair look?). Everything lands in one message — never a slow<br>drip of second-guessing. Then it steps back and waits.</pre><p>It doesn’t re-litigate a decision that’s already been checked. It fires once, on a genuinely new commitment, says what it found, and gets out of the way.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pca-Co-6-eqsGzwf7qJH7Q.png" /></figure><h3>What it actually feels like</h3><p>Right before the pushback lands is the hard part — the moment I already know which decision I called final without seriously looking at the alternative, and the message says so anyway. Putting it at that exact point instead of earlier or later is the whole design: earlier, it’s ignorable friction; later, it’s an argument I’m now defending instead of reconsidering. Right at “final,” it still costs thirty seconds instead of three days — and I still don’t notice the shift happening in real time. I just notice it got checked.</p><p><em>This is Part 2 of “Keeping the Vibe Together: The Discipline Stack” — a series on the structural failure modes of AI-assisted development, and the process skills that catch them. The full skill files are open on </em><a href="https://github.com/Gerrit-Phil-Baumann/keeping-the-vibe-together"><em>GitHub</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b95a7732ae92" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[KEEPING THE VIBE TOGETHER: Your AI Assistant Can Find the Needle. It Just Can’t Reason With It.]]></title>
            <link>https://medium.com/@gerrit.phil.baumann/ai-context-retrieval-vs-reasoning-ade5bc4271cd?source=rss-d3dc1ba64dd7------2</link>
            <guid isPermaLink="false">https://medium.com/p/ade5bc4271cd</guid>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[vibe-coding]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[prompt-engineering]]></category>
            <dc:creator><![CDATA[Gerrit Phil Baumann]]></dc:creator>
            <pubDate>Sat, 05 Sep 2026 12:01:01 GMT</pubDate>
            <atom:updated>2026-09-05T12:01:01.298Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vP37b6v4BP6Gyh3EmMeM4A.png" /><figcaption>Image Created with Artificial Intelligence</figcaption></figure><p>Somewhere in a long coding session, you ask your assistant to connect a decision from an hour ago with a change you’re making right now. It answers fluently, confidently — and wrong. Not because it couldn’t find the relevant line. It found it fine. It just couldn’t hold onto what that line <em>meant</em> once enough tokens piled up between finding it and using it.</p><p>That distinction — retrieval versus reasoning — is the whole story of this part, and it’s more precise than the popular explanation (“the context window filled up”) suggests.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fe0ELiu5FhVE%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3De0ELiu5FhVE&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fe0ELiu5FhVE%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/fe31a66f3bd421aad9778a87f9850477/href">https://medium.com/media/fe31a66f3bd421aad9778a87f9850477/href</a></iframe><h3>The mechanism, not the vibe</h3><p>In 2023, Liu et al. published “Lost in the Middle,” showing that language models retrieve information unevenly across a long context: strong near the start, strong near the end, weak in the middle — a U-shaped curve. It became the standard explanation for why long AI sessions degrade.</p><p>Then models got better at exactly that test. By 2024/2025, models like Gemini 1.5 and GPT-4o were hitting over 99% recall on “needle in a haystack” retrieval benchmarks, even across a million tokens. Problem solved, apparently.</p><p>It wasn’t. The NoLiMa benchmark (Modarressi et al., 2025) found that those benchmarks were measuring something narrower than they claimed: literal keyword matching. As soon as you remove the exact word overlap between question and answer — forcing the model to draw a semantic connection instead of pattern-matching a string — performance collapses. Eleven of thirteen tested frontier models dropped below 50% of their short-context baseline at just 32,000 tokens. GPT-4o fell from 99.3% to 69.7%.</p><p>The sharper finding comes from Du et al. (2025), who showed that raw context length degrades reasoning performance even with <em>perfect</em> retrieval — even when irrelevant text is replaced with blank whitespace, or masked out of the model’s attention entirely so it physically cannot look at it. That masking isolates the effect: with competition for attention removed, distance itself, encoded into how the model relates one token’s position to another, is still enough to degrade reasoning on its own. Not clutter. Distance.</p><p>That doesn’t rule out attention allocation as a second, separate disadvantage layered on top when the masking isn’t there. Xiao et al. (ICLR 2024) showed that attention is a fixed budget — at each step, it has to sum to 1 across the tokens being attended to, by construction of the softmax function. A disproportionate share ends up on the first few tokens of a sequence, functioning as a kind of pressure valve (“attention sinks”), with whatever’s left spread thin across everything in the middle. Your architectural decision from an hour ago isn’t gone. It’s still findable — it’s just competing for a sliver of a budget mostly spent elsewhere, on top of the distance effect Du et al. isolated.</p><p>Put together, what “the AI forgot” actually means is: the assistant can still locate the fact. It’s increasingly unreliable at <em>reasoning with</em> a fact the further away it sits from the point where that reasoning needs to happen.</p><p>The research above measures reasoning across distance <em>inside a single context window</em>. The anecdote below is a different failure mode — a fact that was never reloaded into a new session at all. Related, not identical: the discipline that catches one happens to catch the other too, not because the mechanisms are the same, but because both come down to the same habit — never reason with a fact that hasn’t just been loaded into the room where the reasoning happens.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EYF73AZrxfXHrgGKJX7I_Q.png" /></figure><h3>Where structure comes in</h3><p>None of this is fixed by a bigger context window — Du et al.’s point is that length itself is part of the problem, independent of clutter. What actually helps is keeping the facts that need to reason together physically close together, outside the sprawling session history, and never trusting a fact that hasn’t actually been reloaded into the room where the reasoning happens.</p><p>That’s the whole job of the <strong>State Sync</strong> skill in the Discipline Stack: a short technical document (STATE.md) plus a narrative companion, updated immediately after every non-trivial change, loaded fresh at the start of every session. Not a bigger memory — a shorter, denser one, deliberately kept close to where reasoning actually happens instead of scattered across a session transcript:</p><pre>At the start of a session, look for two linked documents for the<br>project at hand: STATE.md -- the technical truth: infrastructure<br>facts, running services, architecture decisions made (with<br>reasoning), open items, change log. For a file up to 200 lines, read<br>it in full; for longer files, read headings/structure first and load<br>individual sections as needed.</pre><p>It’s a small, deliberately unglamorous countermeasure to something Du et al.’s finding makes clear is a physical property of the architecture, not a bug that a future model release quietly fixes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9TmvVNoHbIteX2Mh1UAr0A.png" /></figure><h3>What it actually feels like</h3><p>I once had a full write-up of a home server’s setup — every container, every model, a security audit, all of it — filed away in detail on one day. Five days later, in a completely unrelated session, the assistant spent several messages questioning whether that same system actually existed and was legitimate. It was running the entire time. Its own audit was sitting in the notes it apparently never reloaded. Nothing crashed. Nothing errored. It just stopped trusting its own documented history mid-conversation, which is a harder thing to notice than an outright mistake.</p><p>The fix, in the moment, was starting a fresh session and loading the state document explicitly before doing anything else.</p><p>That’s not a story about a bad model. The mechanism doesn’t care which generation you’re on, GPT-4o and Gemini 1.5 included. It’s a story about what happens when nothing outside the context window is designated as the thing to trust.</p><p><em>This is Part 1 of “Keeping the Vibe Together: The Discipline Stack” — a series on the structural failure modes of AI-assisted development, and the process skills that catch them. The full skill files are open on </em><a href="https://github.com/Gerrit-Phil-Baumann/keeping-the-vibe-together"><em>GitHub</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ade5bc4271cd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[KEEPING THE VIBE TOGETHER: There Was Never a Process to Break]]></title>
            <link>https://medium.com/@gerrit.phil.baumann/there-was-never-a-process-to-break-a3a2115a9714?source=rss-d3dc1ba64dd7------2</link>
            <guid isPermaLink="false">https://medium.com/p/a3a2115a9714</guid>
            <category><![CDATA[prompt-engineering]]></category>
            <category><![CDATA[vibe-coding-guide]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Gerrit Phil Baumann]]></dc:creator>
            <pubDate>Sat, 29 Aug 2026 12:01:01 GMT</pubDate>
            <atom:updated>2026-08-30T02:56:01.528Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yfMxEuzENijgq1pyl0_QsQ.png" /><figcaption>Image Created with Artificial Intelligence</figcaption></figure><p>There’s a specific feeling that gets you into working with an LLM on something real. You type a sentence, and something that would have taken an hour appears in front of you, mostly right, in about ten seconds. It doesn’t matter much what the task is — code, a research summary, a draft strategy, a first pass at a hard argument. For the first fifteen minutes of almost anything, it’s genuinely magic.</p><p>It curdles once the thing gets real. Once the session runs long, once the output starts feeding into decisions other people will act on, once being wrong stops being a shrug and starts costing something. Did that answer actually hold up, or did it just sound like it did? Do I remember why we ruled out the other option, or did the model just agree with whatever I said today, because agreeing is what it’s tuned to do? None of that is about the model being bad at its job. It’s about there being no structure underneath the fluency once the fluency stops being enough to carry the work on its own.</p><p>I write about how these systems behave — attention, sycophancy, hallucination, the mechanics of what’s actually happening inside the model — in a separate series, <em>What AI Actually Knows</em>. If you’ve read some of that, you already know the shape of the problem this series is about. If you haven’t, none of it is required reading here. That series asks how the model thinks. This one is deliberately less interested in that question. It’s about what you build <em>around</em> the model so that how it thinks stops being the thing your work quietly depends on — practical, load-bearing habits, not theory.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FMdh40KIg5JQ%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DMdh40KIg5JQ&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FMdh40KIg5JQ%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/d2d346b385923cb877087fcd624a2f59/href">https://medium.com/media/d2d346b385923cb877087fcd624a2f59/href</a></iframe><h3>From “this happened to me” to “this is structural”</h3><p>The pattern that got me writing this down wasn’t one dramatic failure. It was the same shape showing up again, months apart, in unrelated projects. Something that looked finished, checked, solid — and wasn’t, and nobody had actually looked again to confirm it. A decision that had already been made getting quietly re-litigated because nothing outside the conversation remembered it was settled. A fix that read as obviously correct, because it was fluent and confident and used the right vocabulary, and turned out not to have been tested against the one case that mattered.</p><p>Each time, my first reaction was some version of: the model got this wrong. That’s a comfortable place to stop, because it puts the problem somewhere you can’t do anything about — you just wait for the next version and hope. But it stopped being a satisfying explanation once the pattern repeated across different models, different tasks, different months. What was actually missing, every time, wasn’t a smarter answer. It was a step in between — a place where someone, or something, checked the work before it got trusted. Software engineering was never really “type sentence, get correct thing.” It’s a sequence of decisions, memory, and verification, and a model working inside a single conversation has no built-in mechanism for holding that sequence together once the conversation ends.</p><p>That reframing is the whole premise of this series. And it’s an accusation before it’s anything else: <em>your process is broken, not the model.</em> Read on its own, that lands as a judgment — like being told your own thinking isn’t rigorous enough.</p><h3>The turn</h3><p>Here’s the part that actually matters: “broken” was the wrong frame from the start, because it implies something that used to work and stopped. Nothing stopped. There was never a process there to break — that’s the actual finding, and it’s better news than it sounds. It doesn’t mean the model’s own limitations aren’t real; several of them, as this series gets into, are architectural — properties of how these systems are built, not bugs some future release quietly fixes. What’s real <em>and</em> buildable is the compensation: the process wrapped around a limitation that isn’t going anywhere on its own. That’s not the same as waiting for the next model. It’s the one thing you can actually do something about this afternoon.</p><h3>The Discipline Stack, briefly</h3><p>What came out of chasing that pattern down is eight small, deliberately unglamorous components — two that run before anything gets built, five that run during and after, and one orchestrator that decides, for any given request, which of the other seven actually apply. None of them are clever on their own. Ask a real question before committing to a plan. Check your own reasoning for the shape of a decision you’ve already made up your mind about. Write down what happened and why, immediately, not later. Look at what’s already there before changing it. Prove something works instead of assuming it does. Try to break your own proof. None of that is a discovery. It’s what “being careful” already meant before any of this — just made to happen reliably, on a schedule you don’t have to remember to keep.</p><p>I’m not going to walk through all eight in this piece. Six of them get real space across the four parts that follow. The orchestrator gets this piece. The eighth — Git Hygiene, the habit of committing instead of copying a file “just in case” — doesn’t get its own moment in this series at all, not because it matters less, just because five deep dives felt like enough to ask of anyone reading in order. There’s no clean origin story for any single piece to invent here, either, and this series won’t pretend otherwise: how any one of these actually came to exist isn’t a tidy tale with a specific bug and a specific fix. It’s the accumulated weight of the same <em>kind</em> of failure showing up enough times that a general answer felt worth building instead of another one-off patch. A series about proof standards forfeits its own argument the moment it starts inventing evidence for itself.</p><p>One of the four problem classes ahead is the one I’d flag first if you only read one. It isn’t about the model getting facts wrong — that’s the easy failure to notice and correct for. It’s about the model agreeing with you, cleanly and confidently, exactly when you least need it to — and how good that agreement tends to feel when it arrives, which is precisely why it’s the hardest of the four to catch yourself falling for. More on that later in the series.</p><h3>Where the series goes from here</h3><p>Four parts follow this one, each taking a single structural failure mode — the kind rooted in how these systems actually work, not in anecdote — and pairing it with the piece, or pieces, of the stack built to catch it before it costs anything.</p><p>The clearest way I can describe what changed isn’t one incident. It’s an accumulation. Somewhere over the last several months, working sessions on real things stopped ending with that faint, hard-to-name feeling of not quite trusting what just got shipped. Not because anything got smarter. Because something now checks before I have to find out the hard way. That’s what the eight things now running quietly in the background of most sessions are actually for — and the next four parts are the record of why each one earned its place.</p><p><em>This is Part 0 of “Keeping the Vibe Together: The Discipline Stack” — a series on the structural failure modes of AI-assisted development, and the process skills that catch them. The full skill files are open on </em><a href="https://github.com/Gerrit-Phil-Baumann/keeping-the-vibe-together"><em>GitHub</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a3a2115a9714" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[WHAT AI ACTUALLY KNOWS: Responsible Deployment]]></title>
            <link>https://medium.com/@gerrit.phil.baumann/what-ai-actually-knows-responsible-ai-deployment-eedbb170055c?source=rss-d3dc1ba64dd7------2</link>
            <guid isPermaLink="false">https://medium.com/p/eedbb170055c</guid>
            <category><![CDATA[llm-applications]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[generative-ai-tools]]></category>
            <dc:creator><![CDATA[Gerrit Phil Baumann]]></dc:creator>
            <pubDate>Sat, 22 Aug 2026 01:54:31 GMT</pubDate>
            <atom:updated>2026-08-23T04:18:49.307Z</atom:updated>
            <content:encoded><![CDATA[<p><em>A human who doesn’t know something says so — AI gives you a confident, well-structured lie. How to build systems that catch the difference.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2JpLYLxrRphcERc9js-8VQ.png" /><figcaption>Image Created with Artificial Intelligence.</figcaption></figure><p>The question is not whether to trust AI. It is whether you understand what you are trusting it to do.</p><p>The projects that deploy AI well are not the ones that have found models without the limitations this series has described. They are the ones that have built systems that account for them.</p><p>That distinction is the argument this series has been building toward:</p><ul><li>A language model with no concept of truth.</li><li>A context window that attends unevenly to what it contains.</li><li>A retrieval system that finds similar documents rather than relevant ones.</li><li>Embeddings that capture distributional proximity rather than meaning.</li><li>An attention mechanism that weighs rather than comprehends.</li><li>A fine-tuning process that modifies behaviour without reliably updating knowledge.</li></ul><p>Each of these is a precise technical statement. Together, they can sound like an indictment of AI as a category. That would be a misreading. Every one of these properties is knowable in advance. None of them are surprises. They are architectural facts, documented in the research literature, reproducible in evaluation, and workable around once understood.</p><p>That is the discipline this series has been circling. Not scepticism about AI. Precision about it.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F8Gur31dtk-A%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D8Gur31dtk-A&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F8Gur31dtk-A%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/5e5ddff7176aa2d07b74f53d578c5244/href">https://medium.com/media/5e5ddff7176aa2d07b74f53d578c5244/href</a></iframe><p><strong>THE DEPLOYMENT GAP</strong></p><p>There is a measurable distance between what AI systems can do in optimal conditions and what they do in production deployment across the full distribution of real queries.</p><p>RAND Corporation’s 2024 report, based on structured interviews with 65 experienced data scientists and engineers, found that by some estimates more than 80 percent of AI projects fail to reach meaningful production deployment — twice the failure rate of IT projects that do not involve AI. The five root causes they identified are worth sitting with: stakeholders misunderstanding what problem AI needs to solve; inadequate training data; organisations pursuing the latest technology rather than real user problems; insufficient infrastructure; and applying AI to problems that are too difficult for it.</p><p>Two of these are directly architectural. Models optimised for the wrong metrics — benchmark performance rather than production performance — fail when the deployment distribution differs from the evaluation distribution. And it always does. The queries that arrive in production are not the queries the model was evaluated on. The edge cases that matter most in consequential domains are often the queries that sit furthest from the training distribution. Context sensitivity means the same model behaves differently in different deployment contexts, and the deployment context is rarely identical to the evaluation context.</p><p>Closing this gap is not primarily a model problem. It is a systems problem — and it requires a different set of disciplines than model selection and prompt engineering.</p><p>Each component this series has described has its own epistemic constraint. The embedding model captures distributional proximity, not logical relationship. The retrieval system returns similar documents, not necessarily relevant ones. The attention mechanism weights contextually, not inferentially. The fine-tuned weights encode behaviour reliably and knowledge unreliably. The model itself has no concept of truth as a target — it has statistical plausibility, which overlaps substantially with truth but is not the same thing.</p><p>None of these constraints are removable by better model selection. They are architectural properties of the current generation of language model systems. The engineering response is not to find models that lack these properties. It is to build outer-loop systems that compensate for them.</p><p><strong>WHAT RESPONSIBLE DEPLOYMENT ACTUALLY REQUIRES</strong></p><p>Four requirements, stated concretely.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e2sqQdr9fQMlJv3XRhEE6g.png" /></figure><p>The first is a failure mode taxonomy specific to your deployment context. Not a generic list of AI limitations, but a structured analysis of how this model, in this application, with this retrieval system, handling this distribution of queries, fails. The failure modes described in this series are starting points. They need to be instantiated — through red-teaming, adversarial testing, and production monitoring — into specific failure patterns that your system actually exhibits.</p><p>This work is unglamorous. It does not appear in product announcements. It produces findings that are, by definition, about where the system does not work. Projects that skip it are not saving effort. They are deferring the discovery of their failure modes to their users.</p><p>The second is calibrated confidence in outputs. A system that presents every output with the same linguistic confidence — the tone of certainty that LLMs default to — gives users no signal about when to trust it. Calibrated uncertainty is not a model property. It is a system design property. It requires deliberate work: retrieval provenance so users can see what evidence the model worked from, explicit flagging of low-confidence outputs, and interface design that communicates uncertainty without undermining usability.</p><p>The third is human oversight at the right points. Not everywhere — that eliminates the efficiency that makes AI deployment worthwhile. At the specific points where the failure modes are consequential. A customer service system that hallucinates opening hours is a friction problem. A compliance system that hallucinates regulatory requirements is a legal problem. A medical information system that hallucinates dosage guidance is a safety problem. The oversight requirement scales with the consequence of failure, not with a generic sense of AI risk.</p><p>The fourth is evaluation infrastructure that matches the deployment context. Test sets that represent the production query distribution. Retrieval quality metrics that are independent of generation quality metrics. Longitudinal monitoring that detects distribution drift as the world changes and the model’s training data ages. Evaluation is not a pre-deployment checkbox. It is an ongoing operational function.</p><p><strong>WHAT THIS LOOKS LIKE IN PRACTICE</strong></p><p>In practice the outer loop has four functions, each compensating for a specific architectural property.</p><p>Retrieval validation compensates for the gap between similarity and relevance: checking whether retrieved documents are actually relevant to the query before they enter the context window, independently of the similarity score the retrieval system assigned them.</p><p>Provenance tracking compensates for the model’s inability to distinguish between what it retrieved and what it confabulated: recording which documents contributed to which outputs so that claims can be audited and, when wrong, corrected at their source rather than managed at the output level.</p><p>Confidence scoring compensates for the model’s miscalibration: not by asking the model to assess its own certainty, which is unreliable, but by measuring external signals — document recency, retrievability, semantic consistency between query and retrieved evidence — that are independent of the model’s generated confidence.</p><p>Routing compensates for uniform confidence: directing outputs where the external confidence signals are low, or where the query type falls in high-stakes territory, to human review before they reach the user.</p><p>None of these functions require model improvements. They require architectural commitment to treating the model as a component in a larger system rather than as the system itself.</p><p><strong>THE ORGANISATIONAL PROBLEM</strong></p><p>Most of what makes responsible AI deployment difficult is not technical. It is organisational.</p><p>The ones that select and deploy AI systems are typically not the teams that understand their failure modes in depth. The ones that understand the failure modes are often not the ones with the authority to shape deployment decisions. The ones with deployment authority are responding to competitive pressure and organisational expectations that do not reward the time it takes to do failure mode analysis properly.</p><p>This produces a predictable pattern. A model is selected based on benchmark performance and vendor claims. It is deployed with prompt engineering and a RAG layer. It performs well on the queries that resemble its evaluation set. It fails on the queries it was not evaluated on. The failures are attributed to the model — “the AI made a mistake” — rather than to the deployment process that did not characterise the model’s failure modes before releasing it to users.</p><p>The attribution matters because it determines the response. If the failure is a model problem, the solution is a better model. If the failure is a deployment problem, the solution is better deployment discipline. Most failures are deployment problems. Most responses are model replacements that reproduce the same failures under a different name.</p><p>What a correct attribution would require is straightforward in principle and difficult in practice: experts responsible for deployment decisions need sufficient technical understanding to distinguish model failure from deployment failure; we need to reward the unglamorous work of failure mode analysis as highly as we reward the visible work of model selection; and the measure of a successful deployment needs to include performance on the queries the system was not designed for, not only the queries it was.</p><p><strong>THE EPISTEMIC RESPONSIBILITY QUESTION</strong></p><p>This series started with epistemology — with the question of what it means to know something, and why that question matters for AI systems that produce outputs with the surface features of knowledge without the underlying architecture that would make them reliable.</p><p>The deployment question is the downstream consequence of that starting point.</p><p>If an AI system cannot distinguish between true and plausible — if it is, as the first article argued, epistemologically indifferent — then the responsibility for that distinction falls on the system around the model. On the retrieval layer that determines what evidence the model works from. On the evaluation infrastructure that detects when outputs are wrong. On the human oversight that catches the failures that automated systems miss. On the organisational processes that determine which decisions AI can inform, which it can make, and which require human judgement regardless of what the model produces.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5EebybDfZMHXOuoRoPmVvA.png" /></figure><p>This is not a counsel of despair. It is a design specification.</p><p>Epistemological indifference is a property of the model. It does not have to be a property of the system. The system can be designed to compensate — to provide the grounding the model lacks, to flag the uncertainty the model will not flag itself, to route consequential decisions to human judgement while allowing the model to handle the queries where the cost of error is low.</p><p>This is what the best AI deployments look like in 2026. Not systems that trust the model to be epistemically reliable. Systems designed around the specific ways it is not.</p><p><strong>WHERE RESPONSIBILITY SITS</strong></p><p>The series has described six components, each with an epistemic limitation. The final architectural question is where responsibility for compensating those limitations sits.</p><p>The retrieval layer carries responsibility for evidence grounding. When it fails — because standard similarity proxies for relevance, because chunks sever context, because the document store contains outdated material — outputs are grounded in the wrong evidence.</p><p>These are solvable engineering problems. We solve them by upgrading the architecture: moving to late-interaction models, implementing GraphRAG, and utilizing Representation Engineering. But these upgrades multiply indexing and inference costs — often by a large factor, sometimes ten times or more. They are not default solutions for every internal chatbot. They are requirements for high-stakes domains — compliance, medicine, law — where the cost of a confident error exceeds the cost of compute.</p><p>For organisations buying closed SaaS solutions (like enterprise Copilots) where they cannot build this outer loop, the equation changes. If you cannot control the architecture, you cannot engineer reliability. You must instead double the strictness of your human oversight. A black-box system requires a heavier human-in-the-loop process precisely because the technical guardrails are inaccessible.</p><p>The evaluation layer carries responsibility for error detection. When it fails — because evaluation is conducted only on in-distribution examples, because retrieval quality is not measured independently of generation quality, because production monitoring does not feed back into evaluation design — the system does not know what it does not know about its own failure modes.</p><p>The human oversight layer carries responsibility for consequential decisions. When it fails — because oversight is applied uniformly rather than calibrated to the consequence of failure — it either eliminates the efficiency that makes deployment worthwhile or misses the decisions where its absence is most costly.</p><p>The organisational layer carries responsibility for the design of all three. It determines which failure modes are acceptable, which require mitigation, and which require the deployment to be scoped differently or not pursued at all.</p><p>A system designed with these responsibilities allocated explicitly is not a perfect system. It is a system whose failures are visible, diagnosable, and correctable — which is the only kind of system that improves over time rather than accumulating unexamined failure.</p><p><strong>THREE QUESTIONS</strong></p><p>If this series has done its job, it has equipped you with a more precise vocabulary for AI deployment decisions. Three questions that vocabulary makes it possible to ask.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y46IIc_8Yv88Zo23R2rn1A.png" /></figure><p>The first: what is the failure mode, and what is the cost? Every deployment context has a specific failure mode distribution — the ways this system will be wrong, and how often. Characterising that distribution before deployment, rather than discovering it in production, is the difference between a managed risk and an unmanaged one.</p><p>The second: where does the epistemic responsibility sit? If the model is epistemologically indifferent, something in the system needs to be epistemically responsible. That might be the retrieval layer, providing grounded evidence. It might be the evaluation system, catching errors before they reach users. It might be human oversight at specific decision points. It needs to be somewhere. If it is nowhere, it defaults to the user — who typically has no way to discharge it.</p><p>The third — and the one that research training instils but organisational pressure suppresses: what proves this deployment is failing? A belief that cannot be falsified is a commitment, not an evaluation. A deployment that has not been stress-tested against the exact queries most likely to break it has only been demonstrated to work in laboratory conditions. Those are not the same thing, and in any context where it matters, the difference is everything.</p><p><strong>THE REFRAME</strong></p><p>The title of this series is <em>What AI Actually Knows</em>. It is not <em>Why AI Cannot Be Trusted</em>.</p><p>The goal has not been to argue that AI systems are unreliable and should be distrusted. It has been to argue that the kind of trust appropriate for AI systems is different from the kind of trust appropriate for human experts — and that conflating the two produces the specific failure modes that make the legal briefs and the incident reports.</p><p>A human expert who is wrong will usually know they are wrong, or at least know they are uncertain. They will hedge. They will ask for clarification. They will flag the cases where their knowledge runs out.</p><p>An LLM that is wrong will produce a fluent, confident, well-structured response. It will not hedge unless prompted to. It will not ask for clarification unless the architecture requires it. It will not flag the cases where its knowledge runs out, because it has no reliable mechanism for detecting where those cases are.</p><p>That asymmetry is not a reason to stop deploying AI. It is a reason to deploy it with the same rigour you would bring to any system whose failures are non-obvious, whose confidence is uncalibrated, and whose error distribution is determined more by what it was trained on than by what is true.</p><p>The question is not whether to trust AI.</p><p>It is whether you have done the work to understand what you are trusting it to do — and built the systems to catch it when it cannot.</p><p><em>If you’re new here, the </em><a href="https://medium.com/@gerrit.phil.baumann/what-ai-actually-knows-a-series-introduction-875145d70513"><em>Series Introduction</em></a><em> to WHAT AI ACTUALLY KNOWS is the place to start — you can pick it up from the beginning there.</em></p><p><em>What AI Actually Knows is a seven-part series on what AI systems know, how they know it, and what that means for deploying them. The architecture this series has described does not change quickly — but the conversation about how to deploy it responsibly is still early. If this series has been useful, that conversation continues in the comments.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eedbb170055c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[WHAT AI ACTUALLY KNOWS: The Fine-Tuning Illusion]]></title>
            <link>https://medium.com/@gerrit.phil.baumann/what-ai-actually-knows-fine-tuning-illusion-0117cb13ef71?source=rss-d3dc1ba64dd7------2</link>
            <guid isPermaLink="false">https://medium.com/p/0117cb13ef71</guid>
            <category><![CDATA[fine-tuning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[generative-ai-tools]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Gerrit Phil Baumann]]></dc:creator>
            <pubDate>Sun, 16 Aug 2026 17:01:02 GMT</pubDate>
            <atom:updated>2026-08-23T04:20:04.425Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Fine-tuning changes how your model talks. It doesn’t change what it knows. You’re buying accent, not expertise.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eOCo5lHaZqnhnPZDDIIyrg.png" /><figcaption>Image Created with Artificial Intelligence.</figcaption></figure><p>Training a model on your data does not make it yours. It makes it different.</p><p>Note the pattern: An organisation spends six months preparing training data, running fine-tuning jobs, and evaluating performance on domain-specific benchmarks. The metrics improve. The model sounds more like the company — its terminology, its tone, its structure. Then it goes to production, and the hallucination rate on domain-specific factual queries is roughly what it was before. The model speaks the language. It still gets the facts wrong.</p><p>The reasoning that led to the fine-tuning decision was intuitive. It is also, in a specific and important sense, mistaken — not about whether fine-tuning works, but about what it does.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F0UlrLV2j2P8%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D0UlrLV2j2P8&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F0UlrLV2j2P8%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/2210e8820bb7eda68098803490389913/href">https://medium.com/media/2210e8820bb7eda68098803490389913/href</a></iframe><p><strong>WHAT FINE-TUNING ACTUALLY IS</strong></p><p>A brief architectural clarification before the argument.</p><p>A pre-trained language model encodes a vast, compressed representation of language patterns across its training corpus. Those patterns live in the model’s weights — billions of floating point numbers that collectively define how the model transforms input into output. Pre-training is the expensive, large-scale process that produces these weights. It runs once, on enormous hardware, over enormous data. The result is a general-purpose pattern matcher of considerable power.</p><p>Fine-tuning takes those weights as a starting point and continues training on a smaller, more specific dataset. The weights are adjusted — nudged, in the direction of the new training signal — to make the model more likely to produce outputs that resemble the fine-tuning data.</p><p>The key word is adjusted. Fine-tuning does not add a knowledge module. It does not create a separate domain-specific layer. It modifies the same weights that encode everything the model already knows. Every adjustment that makes the model more like your fine-tuning data makes it, to some degree, less like everything that came before.</p><p>This is not a flaw in the implementation. It is the mechanism.</p><p><strong>WHY KNOWLEDGE AND BEHAVIOR ARE DIFFERENT</strong></p><p>Factual knowledge in a pre-trained language model is not stored the way a database stores a record. There is no single weight that represents the fact that a particular regulation took effect on a particular date. Knowledge is distributed across many weights simultaneously, encoded in the statistical relationships between representations learned during pre-training. Changing one fact requires modifying patterns entangled with representations of many other things. The update propagates in ways that are not fully predictable from the training signal alone.</p><p>Behavioural properties are different in character. Output format, tone, instruction-following patterns, and response structure are more surface-level, more directly encoded in the patterns of fine-tuning examples, and more reliably shifted by gradient updates on a representative dataset. The model does not need to reorganise deep factual representations to learn that responses should begin with a summary or follow a particular structure. It needs to learn a pattern. Fine-tuning on representative examples of the target behaviour shifts that pattern reliably.</p><p>This mechanistic difference explains the empirical finding that fine-tuning improves behavioural consistency while failing to improve factual reliability proportionally. It is not a rule of thumb derived from practice. It is a consequence of how information is encoded differently at different levels of the network.</p><p><strong>CATASTROPHIC FORGETTING</strong></p><p>The phenomenon has a name that is more dramatic than the typical vocabulary of machine learning, but the drama is warranted.</p><p>When a model is fine-tuned on new data, gradient descent updates the weights to minimise loss on that data. These updates are not surgical. They do not target only the weights relevant to the new domain while leaving everything else intact. They propagate across the network according to the gradient signal, modifying weights that were previously encoding general capabilities alongside weights that are learning the new patterns.</p><p>The result is that capabilities not represented in the fine-tuning data degrade. A model fine-tuned exclusively on legal documents becomes better at legal language and worse at everything else. Empirical research confirms this consistently across models from one to seven billion parameters — and the severity tends to increase with model scale within that range.</p><p>Techniques like LoRA — Low-Rank Adaptation — reduce this risk by modifying only a small subset of the weights, leaving the bulk of the pre-trained representation intact. This is a genuine mitigation. But research is explicit that LoRA still exhibits significant forgetting compared to an unmodified base model. The trade-off between specialisation and generality does not disappear with parameter-efficient methods. It is managed, not eliminated.</p><p><strong>WHAT FINE-TUNING CHANGES AND WHAT IT DOES NOT</strong></p><p>This is the distinction fine-tuning projects get wrong — and it is now empirically well-established.</p><p>Fine-tuning is effective at changing how a model behaves. Tone, format, response style, domain vocabulary, instruction-following patterns — these are behavioural properties, and fine-tuning shifts them reliably. A model fine-tuned on examples of responses in your brand voice will produce responses in your brand voice. A model fine-tuned on structured output examples will produce structured outputs more consistently.</p><p>Fine-tuning is considerably less effective at changing what a model knows. A 2024 study by Gekhman et al. found something counterintuitive enough to restate directly: fine-tuning examples that introduce new factual knowledge are learned significantly more slowly than examples consistent with the model’s existing knowledge — and as new facts are eventually learned, they linearly increase the model’s tendency to hallucinate. The mechanism is not mysterious. The model is being asked to create new patterns in a weight space organised around something else. The gradient updates that encode the new fact do not respect the existing organisation of representations. Adjacent patterns shift in ways that introduce inconsistency elsewhere.</p><p>The implication is precise: large language models mostly acquire factual knowledge through pre-training. Standard fine-tuning teaches them to use existing knowledge more efficiently rather than to encode new database-style knowledge reliably.</p><p>But the boundary between knowledge and behaviour is shifting. Advanced paradigms like Retrieval-Augmented Fine-Tuning (RAFT) or Prerequisite Learning do not use fine-tuning to blindly inject facts. They use it to train the cognitive pathways of retrieval. The model is not taught the fact itself as a static entry. It is taught the structural discipline of reading retrieved documents, ignoring irrelevant noise, and extracting exact citations. We are not replacing the retrieval layer with fine-tuning. We are using fine-tuning to fundamentally alter how the model interacts with it.</p><p>This is why fine-tuning on proprietary knowledge bases often disappoints. The organisation expects the model to know their products, their policies, their procedures. What they get is a model that sounds more like their organisation while remaining unreliable on the specific facts that matter. The tone improves. The hallucination rate does not improve proportionally.</p><p>For knowledge retrieval, RAG is the right architecture. For behaviour modification, fine-tuning is. Conflating the two is the most common fine-tuning mistake in enterprise AI.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*scTfopmp4AfqhDuJm-Y16g.png" /></figure><p><strong>THE DATA QUALITY PROBLEM</strong></p><p>Fine-tuning is a compression operation. The model learns to approximate the patterns in the training data. If those patterns are inconsistent, the model learns inconsistency. If they are biased, the model learns bias. If they encode outdated information, the model encodes it more deeply.</p><p>Most organisations significantly underestimate the data preparation burden. Quality means consistent formatting, representative coverage of the target distribution, absence of contradictory examples, and a focus on demonstrating the exact behavioral structure of the desired output, rather than just uploading raw factual paragraphs. Producing a fine-tuning dataset that meets these criteria for a real enterprise domain is a substantial human effort.</p><p>The output of a fine-tuning run is only as coherent as the signal in the training data. A model trained on your data will faithfully learn what your data contains — including its errors, its gaps, and its inconsistencies. Unlike a human employee who notices when something seems wrong, the model has no mechanism for detecting that the training signal is contradictory. It will average across the contradictions and produce outputs that are confidently incoherent in precisely the ways your data was.</p><p><strong>THE EVALUATION PROBLEM</strong></p><p>Fine-tuning without rigorous evaluation is organisationally dangerous in a specific way that is easy to miss.</p><p>A fine-tuned model will perform better on in-distribution queries — the kinds of queries that resemble the fine-tuning data — and worse on out-of-distribution queries. If evaluation is conducted primarily on in-distribution examples, the improvement is real and measurable. The degradation on out-of-distribution examples may not surface until the model is in production.</p><p>This is a sampling problem. A test set that does not represent the deployment distribution does not tell you how the model will perform in deployment. Fine-tuning evaluations that focus on benchmark improvement within the target domain are systematically blind to the generalisation losses that fine-tuning introduces.</p><p>Rigorous fine-tuning evaluation requires a held-out test set that includes both in-domain examples and out-of-domain examples representing the full deployment distribution. Most fine-tuning projects do not have this. Most fine-tuning projects therefore cannot accurately characterise what they have produced.</p><p><strong>THE SEQUENCING PROBLEM</strong></p><p>Constructing an out-of-distribution evaluation requires knowing what the deployment distribution actually looks like — which requires analysis of real usage patterns, not assumptions about what users will ask. This creates a sequencing problem. The deployment distribution is most clearly visible after deployment. But the evaluation that would detect the fine-tuning’s failure modes needs to happen before deployment. The organisations that solve this most effectively are the ones that have accumulated production query logs from earlier deployments — unrelated systems, prior model versions, analogous use cases — that give them a richer picture of how real users actually probe a system’s limits.</p><p>Without this, organisations face a systematic measurement gap: the fine-tuning evaluation measures whether the fine-tuned model is better within its training distribution, which it almost certainly is. It does not measure whether the system is ready for the full range of queries it will receive — which requires a different test set, a different evaluation framework, and a different definition of success. Most fine-tuning projects conflate the two. The result is a model that has been proven to work in conditions designed to show it working.</p><p><strong>WHEN TO USE WHAT</strong></p><p>Fine-tuning is the right choice in a specific set of circumstances, and being precise about those circumstances prevents a large category of expensive mistakes.</p><p>The question that determines which tool is appropriate is not “what does the model not know?” It is “what kind of problem am I actually solving?” These are different questions, and they point toward different architectures.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HBh1GyiACkvZCQM4Y3jQsA.png" /></figure><p>Behavioural problems — inconsistent output format, wrong tone, poor instruction-following, task-specific response structure — are what fine-tuning solves. The model knows how to generate text; it needs to generate it differently. Fine-tuning is the right intervention.</p><p>Knowledge problems — missing facts, outdated information, proprietary content, frequently changing data — are what RAG solves. The facts need to be retrievable, verifiable, and updateable. Fine-tuning encodes them imperfectly and statically. Retrieval keeps them external and auditable.</p><p>Before either, prompt engineering. A surprising proportion of fine-tuning projects solve problems that careful prompt design would have addressed at a fraction of the cost and complexity. The pressure to fine-tune often reflects impatience with iteration, not a genuine architectural requirement.</p><p>The most sophisticated current systems combine all three: a base model fine-tuned for instruction-following and behavioural alignment, RAG layered on top for knowledge retrieval, and prompt engineering shaping the specific deployment context. Each layer does what it is architecturally suited for. The failure mode is not using fine-tuning — it is using fine-tuning to solve a problem that belongs to a different layer.</p><p><strong>THE REFRAME</strong></p><p>There is a principle in research methodology: intervening on the wrong variable produces confident results that explain nothing. The experiment succeeds. The problem persists. The two things look unrelated until you notice that the variable you changed was not the variable causing the problem.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*haRSthVlQmeprNVq8JI6Cg.png" /></figure><p>Fine-tuning on domain data when the problem is retrieval produces a model that sounds more domain-appropriate while remaining factually unreliable on the specific claims that matter. The intervention produces a measurable change. The output metrics improve. But the improvement is in the wrong dimension — and the organisation may not discover this until it has invested months in data preparation, training runs, and evaluation cycles that were measuring the right performance on the wrong problem.</p><p>The discipline is in the diagnosis. Understanding what fine-tuning changes — behaviour — and what it does not change reliably — knowledge — is the prerequisite for using it well.</p><p>Training a model on your data makes it different. Whether it makes it better depends entirely on whether the difference you introduced is the difference you needed.</p><p><em>This is the final technical piece in the series. The next article steps back from architecture to ask the question the series has been circling: if AI systems are epistemologically indifferent, architecturally biased, and behaviourally malleable — </em><a href="https://medium.com/@gerrit.phil.baumann/what-ai-actually-knows-responsible-ai-deployment-eedbb170055c?source=friends_link&amp;sk=7940ac386b21e89bd040dd6eb5bae736"><em>what does responsible deployment actually look like</em></a><em>?</em></p><p><em>If you’re new here, the </em><a href="https://medium.com/@gerrit.phil.baumann/what-ai-actually-knows-a-series-introduction-875145d70513"><em>Series Introduction</em></a><em> to WHAT AI ACTUALLY KNOWS is the place to start — you can pick it up from the beginning there.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0117cb13ef71" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[WHAT AI ACTUALLY KNOWS: The Attention Mechanism]]></title>
            <link>https://medium.com/@gerrit.phil.baumann/what-ai-actually-knows-attention-mechanism-bf3be36844b0?source=rss-d3dc1ba64dd7------2</link>
            <guid isPermaLink="false">https://medium.com/p/bf3be36844b0</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[transformer-model]]></category>
            <category><![CDATA[generative-ai-tools]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Gerrit Phil Baumann]]></dc:creator>
            <pubDate>Sun, 09 Aug 2026 17:01:01 GMT</pubDate>
            <atom:updated>2026-08-23T03:43:20.968Z</atom:updated>
            <content:encoded><![CDATA[<p><em>AI isn’t reading your prompt. It’s working with a weighted average of everything you gave it. The consequences are severe.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jE758cKr3DPfeKf8ere0Rw.png" /><figcaption>Image Created with Artificial Intelligence.</figcaption></figure><p>AI weighed these sentences the way it weighs everything — against what surrounds them, not against what’s true. Checking and editing that augmented thinking was my job — unavoidable, because a transformer does not read your text. It weighs it.</p><p>Somewhere around 2023, the word <em>understands</em> became standard vocabulary for describing what large language models do. The model understands your query. The model understands context. The model understands nuance.</p><p>The word did a lot of work. It imported an entire cognitive framework — comprehension, interpretation, meaning — and applied it to a system whose actual operation is, in important ways, quite different from what that word implies.</p><p>This is not a semantic complaint. The vocabulary we use to describe a system shapes the expectations we form about it, the failure modes we anticipate, and the architectural decisions we make. Calling attention-based processing <em>understanding</em> produces a specific set of blind spots. Some of them are expensive.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fb1xZ75_RU84%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Db1xZ75_RU84&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fb1xZ75_RU84%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/946bef74476519fd6aa3a7005257497e/href">https://medium.com/media/946bef74476519fd6aa3a7005257497e/href</a></iframe><p><strong>THE PROBLEM ATTENTION SOLVES</strong></p><p>To understand what attention is, it helps to understand what it replaced.</p><p>Before transformers, the dominant architectures for sequence processing were recurrent neural networks. These processed text sequentially, token by token, maintaining a hidden state that was updated at each step. The hidden state was supposed to carry forward the information needed from earlier in the sequence.</p><p>The problem was the bottleneck. All context from everything that came before had to be compressed into a single fixed-size vector. For long sequences, this was catastrophic. Information from the beginning of a document was progressively overwritten as the model processed more tokens. The hidden state was a lossy summary of history, getting lossier the longer the sequence.</p><p>Attention was the solution. Instead of compressing history into a single vector, attention allows every token in the sequence to directly query every other token and retrieve relevant information regardless of distance. The relationship between token at position one and token at position five hundred is computed directly, not mediated through five hundred sequential updates.</p><p>This is why transformers generalise better, scale better, and parallelise better than their predecessors. It is also why they have the specific failure modes they have.</p><p><strong>WHAT ATTENTION ACTUALLY COMPUTES</strong></p><p>The mechanics, stated plainly. Each token in the input is represented as three vectors:</p><ul><li><strong>The query</strong> represents what this token is looking for.</li><li><strong>The key</strong> represents what this token offers to other tokens.</li><li><strong>The value</strong> represents the actual information this token contributes when selected.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nSaFxYLcGCVNmWPDhrnQvA.png" /></figure><p>Attention is computed by taking the dot product of each token’s query with every other token’s key — a measure of compatibility — normalising these scores with a softmax function to produce a probability distribution, and then taking a weighted sum of the value vectors according to those weights.</p><p>The output for each token is therefore not a fixed representation. It is a weighted combination of all other tokens in the sequence, where the weights reflect learned compatibility between query and key vectors.</p><p>It is an elegant mechanism. It is also not reading. It is not comprehension. It is a learned weighting function applied to vector representations. The word “bank” receives a different mathematical representation when surrounded by financial terms than when surrounded by river-related terms — not because the model understands the difference, but because the attention weights are computed differently given different surrounding tokens.</p><p>But the weights themselves are learned during training to predict the next token accurately on the training distribution. They are not learned to represent logical relationships, causal dependencies, or truth. A high weight between two tokens means those tokens tend to be mutually informative for predicting output — in the statistical sense, in the training data. It does not mean the tokens are causally related, logically dependent, or that attending to one provides evidence about the other in any principled inferential sense.</p><p>Multi-head attention runs this computation in parallel across multiple independent subspaces. Each head learns to attend to different aspects of the input — one head may capture syntactic dependencies, another semantic co-occurrence, another coreference. The outputs are concatenated and projected into the next layer’s representation space. The heads learn whatever co-occurrence patterns help predict the training objective. The fact that some heads happen to track syntax and others semantics is an emergent property of that objective, not a designed feature.</p><p><strong>WHAT LAYERS DO</strong></p><p>A transformer is not a single attention operation. It is a deep stack of them, each transforming the representations passed up from below.</p><p>Early layers tend to capture local, syntactic patterns — which tokens are grammatically related, which phrases cohere. Middle layers capture more abstract semantic relationships. Later layers encode representations most directly relevant to producing the output.</p><p>This layered abstraction is part of what makes transformers powerful. By the time representations reach the final layers, they are not raw token embeddings. They are contextualised representations that reflect everything the model has computed about the relationships between tokens in this specific sequence.</p><p>But contextualised does not mean correct. Each layer transforms representations according to weights learned during training. Those weights encode the statistical regularities of the training corpus. They do not encode truth. They encode what tends to follow what, what tends to co-occur with what, what kinds of outputs tend to be produced in response to what kinds of inputs. The contextualisation is real. The comprehension it is sometimes mistaken for is not.</p><p><strong>THE REASONING PROBLEM</strong></p><p>This distinction becomes most visible — and most consequential — when language models are asked to reason.</p><p>Transformers are pattern completion engines. Given a sequence, they produce a continuation that is statistically consistent with their training distribution. For a large class of reasoning tasks, this is sufficient: the patterns in the training data encode enough relevant logical structure that pattern completion produces correct answers.</p><p>But this sufficiency is contingent on the training distribution containing relevant patterns. For novel combinations of familiar concepts — problems that require genuinely compositional reasoning rather than retrieval of learned patterns — transformers are structurally limited. Researchers have demonstrated in a 2024 paper that function composition is a provable architectural weakness of the transformer: a single attention layer cannot correctly compose functions when the domain is large enough, and this limitation is empirically present even when domains are small.</p><p>Chain-of-thought prompting, introduced by Google in 2022, addresses this indirectly and effectively. On the GSM8K benchmark of mathematical word problems, adding chain-of-thought exemplars improved GPT-3 175B accuracy from 17.9 to 58.8 percent — an improvement of 41 percentage points from the same model, with no change to its weights. The mechanism is worth examining precisely. Chain-of-thought works not primarily because it helps the model reason, but because it forces the generation of intermediate steps that the model can then condition on. Each intermediate step is another pattern completion operation. The sequence of completions can approximate reasoning without any single step constituting it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ygFsR2bHY6GRo517Xy2j1w.png" /></figure><p>This is why chain-of-thought helps most on problems whose structure resembles patterns in the training data — and why it helps less on genuinely novel compositional problems that have no close training analogues. The capability is real. But for standard autoregressive models, the mechanism is pattern completion, not inference.</p><p>This limitation is precisely what Inference-Time Compute architectures were built to circumvent. By wrapping the attention mechanism in search algorithms — like Monte Carlo Tree Search — and reinforcement learning, the system can explore multiple completion paths, score them, and self-correct before producing an output. The base transformer still completes patterns. But the outer loop enforces genuine, multi-step inference. If you require reasoning, you do not just need a larger model. You need a model trained to spend compute at inference time.</p><p><strong>THE LIMITS OF THE MECHANISM</strong></p><p>The practical implication follows precisely: chain-of-thought is most effective when the problem structure — broken into its intermediate steps — resembles patterns available in training. It is least effective on genuinely novel compositional problems where neither the full problem nor its decomposition has close training analogues. Benchmarks that measure performance on familiar problem types overestimate reliability on unfamiliar ones. This is not a criticism of chain-of-thought. It is a description of its mechanism, which determines its limits.</p><p>The tension between these positions is now being played out beyond academic debate. Yann LeCun spent twelve years leading AI research at Meta, founding FAIR — the lab that shaped the company’s AI direction for over a decade. He left in November 2025, confirming in a Financial Times interview that Llama 4’s benchmark results had been fudged: different model variants used on different benchmarks to inflate scores. He also criticised the industry’s broader reliance on the transformer paradigm as architecturally insufficient for genuine intelligence. In March 2026, he launched AMI Labs with $1.03 billion in seed funding, with the explicit goal of building world models on JEPA architectures as an alternative to autoregressive transformers.</p><p>This is not a fringe position held at the margins of the field. It is a bet, made with significant capital and by one of the architects of modern deep learning, that the gap between pattern completion and reasoning is real — and that closing it requires something other than scaling the current architecture further.</p><p><strong>THE CONTEXT SENSITIVITY PROBLEM</strong></p><p>There is a related failure mode that is less discussed but practically significant.</p><p>Transformer representations are context-sensitive by design. The representation of a token is not fixed — it is a function of everything else in the context window. This is a feature: it allows the model to represent the same word differently depending on usage, to resolve ambiguity, to track coreference.</p><p>It is also a vulnerability.</p><p>Because representations are context-sensitive, they can be shifted by context manipulation. A model that produces a correct answer in one context may produce a different answer to the same question in a context that has been modified — not by changing the question, but by changing the surrounding text. This is the mechanism behind prompt injection attacks, where malicious instructions embedded in retrieved documents or external inputs redirect model behaviour. It is also the mechanism behind sycophancy — the tendency of models to shift their answers toward whatever the context implies the user wants to hear, not because the model has reasoned differently, but because the context has changed the computation.</p><p>The model’s answer to a question is not a stable function of the question. It is a function of the entire context — query, history, system prompt, retrieved documents, and everything in between. Changing any of these changes the computation. The output is not retrieved from a fixed knowledge store. It is computed fresh, influenced by everything present.</p><p>This is why prompt engineering matters, why system prompt design is a substantive engineering problem, and why the same model can behave very differently in different deployment contexts.</p><p><strong>TWO MANIFESTATIONS</strong></p><p>Prompt injection attacks exploit this directly. A document retrieved by a RAG pipeline may contain instructions that the model processes as part of its context and attends to alongside the user’s original query. The model has no architectural mechanism for distinguishing between authoritative instructions and content that happens to be present in the context window. Instructions embedded in retrieved documents are processed by the same attention computation as the user’s actual query — and can redirect behaviour accordingly. OWASP identifies prompt injection as the highest-priority vulnerability in LLM deployments precisely because it is structural to how attention works, not an implementation-level oversight.</p><p>Sycophancy operates through the same mechanism. When context implies that the user holds a particular view or expects a particular answer, the attention weights shift toward outputs consistent with that context. The model is not reasoning about what the user wants and deciding to comply. It is computing a continuation that is statistically consistent with the full context, including the implied preference. Changing the framing of a question — not its content, just its framing — changes the computation, and therefore the output.</p><p>Understanding this does not make the model less useful. It makes the context — system prompt design, conversation history management, retrieved document ordering and validation — legible as the engineering variables they actually are. The model is computing a function of everything in the context window. Designing that context deliberately is not prompt engineering in the superficial sense. It is the primary mechanism through which the model’s behaviour is controlled.</p><p><strong>THE REFRAME</strong></p><p>Measurement theory distinguishes between the construct — the abstract thing you are trying to measure — and the operationalisation — the concrete procedure you use to measure it. A good operationalisation captures the construct reliably. A poor one measures something that correlates with the construct without being the construct itself.</p><p>Attention is an operationalisation of something that resembles understanding. It correlates with comprehension on a remarkable range of tasks. It is not comprehension itself. The construct and the operationalisation diverge in specific, predictable circumstances — novel reasoning problems, precise factual claims, context-sensitive manipulation — and those circumstances are precisely where the stakes of the divergence are highest.</p><p>A transformer weighs your text. Across most of what you will ask it to do, that weighing produces something indistinguishable from understanding.</p><p>Across the rest, the distinction is everything.</p><p><em>The </em><a href="https://medium.com/@gerrit.phil.baumann/what-ai-actually-knows-fine-tuning-illusion-0117cb13ef71"><em>next question follows</em></a><em>. If pattern completion is not the same as reasoning — what happens when organisations decide that the model’s patterns are not the right ones, and try to replace them with their own? Fine-tuning a model on your data changes something. The question is what.</em></p><p><em>If you’re new here, the </em><a href="https://medium.com/@gerrit.phil.baumann/what-ai-actually-knows-a-series-introduction-875145d70513"><em>Series Introduction</em></a><em> to WHAT AI ACTUALLY KNOWS is the place to start — you can pick it up from the beginning there.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bf3be36844b0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[WHAT AI ACTUALLY KNOWS: The Geometry of Meaning]]></title>
            <link>https://medium.com/@gerrit.phil.baumann/what-ai-actually-knows-embeddings-meaning-c74f4302cd16?source=rss-d3dc1ba64dd7------2</link>
            <guid isPermaLink="false">https://medium.com/p/c74f4302cd16</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[word-embeddings]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[vector-embeddings]]></category>
            <category><![CDATA[generative-ai-tools]]></category>
            <dc:creator><![CDATA[Gerrit Phil Baumann]]></dc:creator>
            <pubDate>Sun, 02 Aug 2026 17:01:01 GMT</pubDate>
            <atom:updated>2026-08-23T03:41:25.027Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Embeddings know that opposites belong together. They can’t tell them apart. That’s not understanding.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A0s4xYq7USzsMIq53taEtw.png" /><figcaption>Image Created with Artificial Intelligence</figcaption></figure><p>Embeddings do not represent meaning. They represent the company meaning keeps.</p><p>In 2013, a team at Google published a result that quickly became the canonical demonstration of what word embeddings could do. King minus Man plus Woman equals Queen. A vector arithmetic operation, performed in high-dimensional space, producing something that looked startlingly like semantic reasoning.</p><p>It is a genuinely remarkable result. It is also, if taken too literally, a seductive misdirection — and one that has shaped a decade of tooling choices, evaluation frameworks, and architectural assumptions in ways that are still working through enterprise AI systems today.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fbu6RQSIBqhA%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dbu6RQSIBqhA&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fbu6RQSIBqhA%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/34cbe87ec9219601e40d56108423673b/href">https://medium.com/media/34cbe87ec9219601e40d56108423673b/href</a></iframe><p><strong>WHAT EMBEDDINGS ACTUALLY ARE</strong></p><p>An embedding is a function that maps a piece of text — a word, a sentence, a document — to a point in a high-dimensional vector space. Points that are geometrically close are, in some sense, semantically related.</p><p>While modern models process entire sentences in context rather than mapping isolated words, the underlying mathematical foundation remains largely the same. The training objective for most embedding models is contrastive: pairs of texts that are similar should be close in the vector space; pairs that are dissimilar should be far apart. What the model learns, in practice, is co-occurrence: which texts appear near which other texts in the training corpus. Words and sentences that appear in similar linguistic environments end up in similar regions of the space.</p><p>The King-Queen arithmetic works not because the model understands royalty, gender, or the relationship between them. It works because those words appear in similar contexts — near throne, crown, reign on one axis, near person, adult, human on another — and the geometry of those co-occurrence patterns happens to encode something that resembles conceptual structure.</p><p>Resembles. That qualifier matters enormously. And it matters for the same reason across three distinct failure modes, each of which is a direct consequence of training on co-occurrence rather than truth.</p><p><strong>HOW THE GEOMETRY IS BUILT</strong></p><p>The distributional hypothesis — that words appearing in similar contexts have similar meanings — dates to Harris and Firth in the 1950s. Word embeddings are its operationalisation: compress the co-occurrence statistics of a large corpus into a dense vector space, and use geometric proximity as a proxy for semantic relatedness.</p><p>The training signal is contrastive. Embedding models learn by predicting which texts appear near which other texts in a sliding window over the training corpus. Texts that frequently co-occur are pushed closer together in vector space. Texts that do not are pushed further apart — a process enforced through negative sampling, which introduces randomly chosen non-neighbouring texts as examples of what should be geometrically distant.</p><p>What this process optimises for is distributional fidelity: the geometry of the resulting vector space should reflect the co-occurrence statistics of the training corpus as faithfully as possible. The King-Queen result emerges from this process not because the model was taught about royalty and gender, but because those concepts are encoded in the distributional regularities of the text. King and Queen appear in similar contexts. Man and Woman appear in similar contexts. The offset between the two pairs is geometrically consistent because the language patterns that encode monarchy and gender happen to be linearly separable in the space that co-occurrence statistics produce.</p><p>The result is also more fragile than the demo suggests: it only holds if the input words themselves are excluded from the search — include them, and the nearest vector to “king minus man plus woman” is king. The arithmetic is real. The precision it’s usually credited with is not.</p><p>This is genuinely powerful. It is also the source of the limitations that follow — all of which are consequences of the same underlying fact: the model was trained to predict co-occurrence, not to represent truth.</p><p><strong>THE NEGATION PROBLEM</strong></p><p>Consider two sentences.</p><p><em>The treatment was effective.</em></p><p><em>The treatment was </em><strong><em>not</em></strong><em> effective.</em></p><p>In embedding space, these sentences are very close. They share nearly every token. They appear in similar contexts — medical literature, clinical discussions, outcome reporting. A retrieval system asked to find documents relevant to treatment efficacy will return both with similar scores.</p><p>The magnitude of this problem is measurable. In a controlled experiment embedding the queries “home with pool” and “home without pool,” the cosine similarity between the two was 0.82. For comparison, completely unrelated queries — “home with pool” versus “quarterly earnings report” — scored 0.13. A negated query and its positive counterpart are, in embedding space, almost six times closer than two queries with nothing in common.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6KQv_5XiekR8O-jA5dzCqw.png" /></figure><p>A human reader understands immediately that the two treatment sentences say opposite things. A standard pooled embedding model does not represent this distinction reliably. Adding “not” nudges a single, compressed document vector a few degrees in a high-dimensional space. It does not reorient it.</p><p>This is a structural property of pooling — forcing an entire sentence into one vector. It is also a solved problem if you change the architecture. Late-interaction models, like ColBERT, do not compress text into a single point. They compute token-level representations and delay the interaction until the query is made. In a late-interaction architecture, the token “not” retains its structural weight, and the negation is registered. The failure mode belongs to the compression strategy, not to vector mathematics itself.</p><p>For tasks that require factual precision — fact-checking, compliance verification, medical information retrieval — the limitation is structural and significant.</p><p>The mechanism is precise: adding “not” to a sentence nudges its vector a few degrees in a high-dimensional space. It does not reorient it. The dominant topical content overwhelms the logical polarity signal. The geometry that results is informationally rich about topic and domain. It is structurally blind to negation.</p><p>Contrastive training with hard negative pairs — examples that are semantically close but logically incorrect — is the primary mitigation. By including near-miss examples that the model must learn to push apart, the training process can impose greater logical distance between claims and their negations. This is why modern sentence embedding models trained with hard negatives outperform earlier approaches on fact-sensitive retrieval tasks. But the improvement is a matter of degree, not kind. The structural proximity of semantically similar, logically opposed content remains a property of distributional training. For retrieval tasks where the distinction between a claim and its negation carries consequences — compliance, medical information, fact-checking — a downstream validation layer that checks logical consistency is not optional. It is structural compensation for a known geometric limitation.</p><p><strong>THE COMPRESSION PROBLEM</strong></p><p>Embeddings compress language. This is their utility and their limitation simultaneously.</p><p>A sentence of twenty words becomes a vector of typically 768 or 1,536 dimensions. The compression ratio is extreme. Most of the information in the original text is discarded. What remains is a representation of the text’s position in a semantic neighbourhood — its relationship to the distribution of language it was trained on.</p><p>What gets lost in compression is specificity. Numbers, proper nouns, precise technical identifiers, dates, and named entities all compress poorly. A document about a specific regulatory clause — Article 17(3)(b) of a particular directive — may embed very similarly to a document about adjacent regulatory territory. The specificity that makes the distinction legally meaningful is precisely the kind of information that embedding compression tends to smooth over.</p><p>This connects directly to the retrieval failure modes described in the previous article. Hybrid search compensates for this by preserving exact keyword matching alongside semantic similarity. The reason it works is that it bypasses the compression step for the class of queries where compression is most destructive.</p><p><strong>THE CORPUS PROBLEM</strong></p><p>Embeddings inherit the distributional properties of the text they were trained on. This means they encode not just semantic relationships but the biases, associations, and omissions of the training corpus.</p><p>A model trained primarily on general web text will produce an embedding space that reflects the conceptual structure of that corpus. Technical domains with limited web representation will be compressed into less differentiated regions of the space. Rare but important distinctions — the difference between two closely related medical conditions, two adjacent legal concepts, two similar but non-equivalent financial instruments — may not be reliably separable in the embedding space of a general-purpose model.</p><p>The evidence is consistent across domains. Finance-specific benchmarks show fifteen to twenty percentage point gaps in retrieval accuracy between general-purpose and domain-adapted embedding models on specialised queries. Chemistry-specific models achieve nine-point absolute gains in retrieval precision over general baselines on domain evaluations. The pattern holds across medicine, law, and other fields where conceptual distinctions are fine-grained and vocabulary is domain-specific.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Jvf0GJWB6CSPUwvefdDXag.png" /></figure><p>The reason is geometric, not architectural. The embedding space of a general-purpose model was not shaped by text that reflects the conceptual distinctions relevant to a specialised domain. If those distinctions do not exist at sufficient resolution in the geometry, no amount of retrieval engineering downstream will recover them. The decision about which embedding model to use — and whether domain adaptation is warranted — is therefore one of the earliest and most consequential architectural decisions in any RAG system. Most of us make it last.</p><p>Fine-tuning an embedding model on domain-specific text shifts the geometry. The conceptual distinctions that matter in the domain become more reliably separable. This is why domain-specific embedding models consistently outperform general-purpose ones on specialised retrieval — not because they are architecturally different, but because their geometry was shaped by the right text.</p><p>The implication for system design is precise: the choice of embedding model establishes the upper bound on retrieval precision before any other engineering begins. No retrieval strategy operating within a geometry that lacks sufficient domain resolution will recover the distinctions that geometry cannot represent. This decision is one of the earliest and most consequential in a RAG system. Most treat it as a commodity choice and revisit it only after the rest of the system has been built around the wrong geometry.</p><p><strong>THREE PROBLEMS, THREE RESPONSES</strong></p><p>The three problems described above — negation insensitivity, specificity loss, and corpus constraint — share a common source but require different responses.</p><p>Negation insensitivity is structural to distributional training. For retrieval tasks where logical polarity matters, embedding similarity alone is insufficient. A validation layer that checks consistency between query intent and retrieved content is a system-level requirement, not a refinement.</p><p>Specificity loss in compression is most acute for exact identifiers — regulatory references, error codes, product names, named entities. Hybrid retrieval that preserves keyword matching alongside semantic similarity compensates for this directly. This is not an optimisation. It is structural compensation for what compression destroys.</p><p>Corpus geometry determines retrieval ceiling. The embedding model choice is the first consequential decision in a retrieval architecture. It determines what distinctions can be preserved and what distinctions will be flattened — before retrieval begins, before chunking begins, before any query is processed. Treating it as a default configuration choice is the most common and most consequential error in RAG system design.</p><p><strong>WHAT EMBEDDINGS ARE GOOD AT</strong></p><p>This is the point in the argument where nuance is obligatory, not performative.</p><p>Embeddings are extraordinarily good at approximate semantic matching across large document collections. For the task of finding documents that are topically related to a query — the core retrieval use case — they are the right tool. Nothing else scales as well, handles vocabulary variation as gracefully, or generalises across domains as flexibly.</p><p>The critique here is not of the technology. It is of the epistemic claims made on its behalf. Embeddings are routinely described as capturing meaning, understanding language, or representing semantics — language that implies something closer to comprehension than the underlying operation supports. The King-Queen result encourages this interpretation. The negation problem, the compression problem, and the corpus problem are all downstream of taking that interpretation too literally. All three share a common source: the model was trained to predict co-occurrence, not to represent truth, and the geometry it learned reflects that objective faithfully.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vRaHAZNAyxkbBPzpCxiijg.png" /></figure><p>Embeddings capture the geometry of language use. That geometry is remarkably informative. It is not the same as meaning.</p><p><strong>THE REFRAME</strong></p><p>Quantitative social science has a concept called ecological fallacy: inferring individual-level properties from group-level statistics. A correlation that holds across populations does not necessarily hold within them. The aggregate pattern obscures the individual variation that matters.</p><p>Embeddings operate on an adjacent principle. They represent the statistical aggregate of how language is used — the population-level pattern of co-occurrence — and apply it to individual queries and documents. For most queries, the aggregate is informative enough. But the individual case may sit precisely in the region where the aggregate pattern breaks down: a query that uses unusual phrasing, a document that makes a precise technical distinction, a retrieval task that depends on exact rather than approximate matching.</p><p>These are not exotic edge cases. They are the routine queries in any specialised domain — and the queries where the stakes are highest. Building systems that know when to rely on embedding similarity and when to route around it is not an optimisation. It is the difference between a system that fails occasionally and one that fails systematically, in the same kinds of cases, every time, without signalling that anything has gone wrong.</p><p><em>The </em><a href="https://medium.com/@gerrit.phil.baumann/what-ai-actually-knows-attention-mechanism-bf3be36844b0"><em>next question follows.</em></a><em> If the model’s representations are statistical rather than logical — what actually happens inside the transformer when it processes your query? The mechanism that makes language models capable of nuanced language understanding is the same one that makes them structurally unreliable for multi-step and causal reasoning.</em></p><p><em>If you’re new here, the </em><a href="https://medium.com/@gerrit.phil.baumann/what-ai-actually-knows-a-series-introduction-875145d70513"><em>Series Introduction</em></a><em> to WHAT AI ACTUALLY KNOWS is the place to start — you can pick it up from the beginning there.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c74f4302cd16" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[WHAT AI ACTUALLY KNOWS: The Retrieval Trap]]></title>
            <link>https://medium.com/@gerrit.phil.baumann/what-ai-actually-knows-rag-retrieval-trap-06fef7d5b890?source=rss-d3dc1ba64dd7------2</link>
            <guid isPermaLink="false">https://medium.com/p/06fef7d5b890</guid>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[generative-ai-tools]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[retrieval-augmented-gen]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Gerrit Phil Baumann]]></dc:creator>
            <pubDate>Sun, 26 Jul 2026 17:01:03 GMT</pubDate>
            <atom:updated>2026-08-22T01:46:02.394Z</atom:updated>
            <content:encoded><![CDATA[<p><em>RAG doesn’t give your AI memory. It gives it a search engine — and search engines don’t know what’s true.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ldBSkiB2dgUun99XL9JtpQ.png" /><figcaption>Image Created with Artificial Intelligence.</figcaption></figure><p>Claude made these sentences read more similar to what I meant while I was writing this. It didn’t check whether what I meant was true — I did. That’s not a technicality. It’s the whole article.</p><p>RAG does not solve the knowledge problem. It relocates it.</p><p>Picture this. A compliance team deploys a RAG system backed by thousands of internal policy documents. An employee asks whether a specific transaction requires regulatory approval. The system retrieves three documents — all about regulatory approval, all from the right policy domain, all with high similarity scores. The answer it generates is confident and well-structured. It is also based on a superseded version of the policy, retrieved because its language was more similar to the query than the current version. The current document used different terminology. The retriever never found it.</p><p>The information was in the system. The retrieval was technically successful. The answer was wrong.</p><p>By 2024, retrieval-augmented generation had become the dominant enterprise AI architecture. Menlo Ventures’ annual survey recorded RAG adoption climbing from a third to a half among enterprise deployments in a single year — faster than any other architectural pattern. The reasoning was sound enough to become consensus: a language model’s training knowledge has a cutoff date, lacks your internal documents, and cannot be updated without retraining. RAG solves this by retrieving relevant information at inference time and placing it in the context window. The model generates its response grounded in retrieved evidence rather than memory alone.</p><p>It is a genuinely good idea. It is also, in many implementations, solving only half the problem it appears to solve.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FvtnkIxJc8Ss%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DvtnkIxJc8Ss&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FvtnkIxJc8Ss%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/66a23e74074d2655fd9d5accf1811b0e/href">https://medium.com/media/66a23e74074d2655fd9d5accf1811b0e/href</a></iframe><p><strong>THE ARCHITECTURE, BRIEFLY</strong></p><p>A standard RAG pipeline has four stages. A query arrives. A retrieval system searches a document store and returns the most semantically similar chunks. Those chunks are placed into the context window alongside the original query. The model generates a response.</p><p>The elegance is real. Instead of retraining every time your knowledge base changes, you update the document store. Instead of hoping the model remembers a specific internal policy, you retrieve it. The model’s job shifts from recollection to synthesis.</p><p>But each of those four stages introduces a failure mode. And the failure modes are not independent — they interact, amplify each other, and share a property that makes them collectively dangerous: they are invisible at the output level. The system answers confidently regardless of whether the retrieval succeeded. You know the answer was wrong. You do not know why.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/728/1*WZSIWpkjbsdmDGzrMdvXyQ.png" /></figure><p><strong>WHY EMBEDDINGS MISS WHAT MATTERS</strong></p><p>The retrieval step is doing more epistemic work than it is typically given credit for.</p><p>Standard dense retrieval works by converting both the query and the documents into high-dimensional vectors — embeddings — and returning the documents whose vectors sit closest to the query vector in that space. Semantic similarity, operationalised as geometric distance.</p><p>This works well for a specific class of queries: those where the question and the answer share vocabulary, topic, and conceptual framing. It works considerably less well for others.</p><p>Precise keywords, abbreviations, proper nouns, and technical identifiers often compress poorly into embedding space. A query about a specific internal project code, a regulatory reference number, or a person’s name may retrieve documents that are semantically adjacent — related in topic — rather than documents that actually contain the answer. The embedding model has smoothed over the specificity that makes the query meaningful.</p><p>There is a structural reason for this. Embedding models are trained to capture semantic similarity across large corpora. They are optimised for the average case — for queries where the relationship between question and answer is mediated by shared conceptual territory. They are not optimised for exact match, and they do not degrade gracefully when exact match is what the query requires. The superseded policy document and the current one discuss the same regulatory domain in similar language. In embedding space, they are neighbours. The retriever cannot distinguish between them on the basis of currency, version, or authority — only proximity.</p><p>This is the geometric trap: high similarity score equals learned distributional association, not factual relevance. For most queries, these are close enough that the distinction does not matter. For queries where currency, version, authority, or specificity are what matter — which is most queries in regulated, legal, or operational domains — the gap is where the system fails. And it fails confidently, because the similarity score gives no indication that anything has gone wrong.</p><p>This is why hybrid retrieval — combining dense vector search with sparse keyword matching — consistently outperforms either method alone. The two approaches fail on different query types. Combined, they cover more of the distribution. Most out-of-the-box RAG systems tend to use only one.</p><p>Furthermore, geometric proximity completely ignores temporal authority. To prevent a system from retrieving a highly similar but long-superseded policy, the architecture must move beyond raw vector math and implement explicit metadata pre-filtering — hardcoding structural rules that restrict searches strictly to current versions, specific jurisdictions, or active document tags before the vector calculation even begins.</p><p><strong>THE GAP BETWEEN SIMILAR AND RELEVANT</strong></p><p>Standard dense retrieval returns similar documents. It does not return relevant documents. These overlap substantially, but they are not the same category. Similarity is a property of the relationship between a query and a document. Relevance is a property of the relationship between a document and an answer. A document can be highly similar to a query — same topic, same domain, similar vocabulary — and contain nothing that helps answer it. A document can be dissimilar in surface features and contain exactly what is needed.</p><p>This architectural gap is why basic RAG pipelines plateau early. Reranking is the traditional mitigation, scoring initial results on predicted relevance rather than pure similarity, processing query and document together rather than independently. But the frontier of enterprise AI has moved beyond linear retrieval entirely.</p><p>GraphRAG and agentic retrieval architectures solve this by abandoning the assumption that a single vector search is sufficient. They pre-compute semantic relationships across the entire corpus into knowledge graphs, allowing the retrieval layer to walk logical paths — finding documents not because they share vocabulary with the query, but because they belong to the specific conceptual chain required to answer it.</p><p>This semantic precision, however, introduces a severe lifecycle tax. When the underlying document corpus updates, the knowledge graph must be recomputed or manually patched. The engineering bottleneck simply shifts: from struggling with retrieval accuracy at inference time, to struggling with data pipeline maintenance at ingestion time. Whichever mitigation you choose<strong>,</strong> the performance difference is not marginal.</p><p>The performance difference is not marginal. Research consistently shows that improving retrieval quality produces larger gains in end-to-end RAG performance than upgrading the generation model.</p><p>Read that again. A better retriever outperforms a better model.</p><p>This is counterintuitive given where the industry’s investment is concentrated. The language model is the expensive, visible, frequently updated component. The retriever is infrastructure — configured once, rarely revisited, treated as a solved problem. The evidence suggests the prioritisation is inverted.</p><p>The reason most production systems use only dense retrieval is not technical difficulty. It is that dense retrieval is the default in most RAG frameworks, and its failure mode — plausible but imprecise results — is harder to observe than an empty result set. A system that returns nothing is obviously broken. A system that returns the wrong documents confidently can operate for months before the failure pattern is visible in output quality. Dense retrieval’s failure mode is optimised for invisibility.</p><p>The queries where this matters most are precisely the queries where RAG is deployed for high-stakes use: specific policy clauses, precise regulatory references, exact version numbers, named individuals. These are the queries where the answer is a specific string, not a conceptual neighbourhood — and where embedding distance is the least reliable proxy for relevance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*29jDQe_719xWgWMyuvibnA.png" /></figure><p><strong>THE CHUNKING PROBLEM</strong></p><p>Below retrieval and reranking sits a more unglamorous failure mode: chunking strategy.</p><p>Documents must be split into retrievable pieces before they enter the vector store. The chunking decision — how large those pieces are, where the boundaries fall, whether they overlap — determines what the retrieval system can actually find.</p><p>Fixed-size chunking, the default in most frameworks, splits documents at regular token intervals regardless of semantic structure. A paragraph that spans a chunk boundary is split. An argument that requires two adjacent paragraphs to be meaningful is separated. The retrieval system can return either chunk but not both together, unless the overlap is set generously enough to capture the connection.</p><p>The consequence is a category of retrieval failure that is invisible at the query level. The document exists. The information exists. The retrieval system returns something from the right neighbourhood. But the specific passage that would have grounded the answer was severed at the chunk boundary, and what arrived is context-incomplete.</p><p>Resolving this requires moving away from static token counts toward structural or semantic chunking strategies — such as parent-child document architectures, or splitting text dynamically based on shifts in embedding distances. But this is not a free lunch. Dynamic semantic chunking drastically slows down the ingestion pipeline and multiplies compute costs. The architecture forces a hard trade-off between ingestion latency and retrieval precision.</p><p>When you are willing to pay that compute tax, the performance gap is measurable. NVIDIA’s 2024 benchmarks across five document datasets found up to a nine percent recall gap between the best and worst chunking strategies, with no other variable changed. A well-chunked corpus retrieves accurately on a basic retrieval stack. A poorly-chunked corpus fails even with sophisticated retrieval. Most of us spend significant effort evaluating retrieval and embedding configurations, and minimal effort on chunking strategy. The evidence suggests the allocation should be closer to equal.</p><p>The trade-off is real and cannot be collapsed to a single optimal chunk size. Smaller chunks are more precisely retrievable but may lack the surrounding context needed for the model to generate a useful answer. Larger chunks preserve context but reduce retrieval precision. The resolution is to separate the granularity of indexing from the granularity of retrieval: index at fine granularity for precision, retrieve the surrounding context at coarser granularity for comprehension when a match is found. Most systems fix both to the same value and accept the trade-off rather than managing it.</p><p><strong>THE EVALUATION PROBLEM</strong></p><p>Underlying all of this is a measurement failure that makes the other problems harder to detect.</p><p>Most RAG evaluation focuses on end-to-end output quality: does the final answer look correct? This is necessary but insufficient. It conflates retrieval quality, context quality, and generation quality into a single signal. When the system fails, you know it failed. You do not know where.</p><p>Historically, retrieval-specific evaluation required expensive human-labelled relevance data. Today, automated frameworks use “LLM-as-a-Judge” pipelines to score context precision and recall continuously without human intervention. The bottleneck is no longer human labelling. It is the organisational discipline to run these automated evaluations in production, rather than treating them as a pre-launch checkbox.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MacaaM-1DVCuaD7CoTVhWw.png" /></figure><p>The result is a systematic measurement gap. The retrieval layer — the component where most production failures originate — is also the component most builders measure least precisely. End-to-end accuracy metrics improve when the generation model gets better, which creates an incentive to invest in model upgrades rather than retrieval instrumentation. The retrieval problems remain, invisible behind output metrics that have learned to look past them.</p><p>Instrumenting retrieval quality independently is not an optimisation. It is the prerequisite for knowing whether the rest of the system is working for the right reasons — or simply producing confident output on the queries where the retrieval happened to succeed.</p><p><strong>WHEN RAG WORKS WELL</strong></p><p>RAG is not a failed architecture. It is the right architecture for a large class of problems, and the alternatives — full retraining, continuous learning, tool use — each carry their own constraints and failure modes that RAG avoids.</p><p>The systems where RAG performs most reliably share a set of properties. The knowledge base is well-structured and consistently formatted. Queries are representative of the document vocabulary — the questions use the same language as the answers. Retrieval quality is measured independently of output quality. And chunking strategy was treated as a design decision, not a framework default.</p><p>The gap between these systems and the median RAG deployment is not a model gap. It is an engineering gap — and it sits almost entirely in the retrieval layer, not the generation layer.</p><p><strong>THE REFRAME</strong></p><p>The compliance example at the beginning of this article did not fail because the model hallucinated. It failed because the retrieval succeeded — and returned the wrong document with high confidence. The system behaved exactly as designed. The design had a construct validity problem: it was built to retrieve similar documents, and it was trusted to retrieve relevant, current ones.</p><p>These are not the same thing. And in any context where currency, version, authority, or specificity matter — which is most contexts where the stakes justify an AI deployment — the difference is everything.</p><p>Retrieval-augmented generation augments generation with retrieval. It does not, by itself, guarantee that what is retrieved is what is needed. That guarantee requires engineering. Many systems have not built it yet.</p><p><em>The </em><a href="https://medium.com/@gerrit.phil.baumann/what-ai-actually-knows-embeddings-meaning-c74f4302cd16"><em>next question follows</em></a><em>. If retrieval compresses language into vectors to find similar documents — what does similar actually mean at the level of the geometry? The relationship between embedding distance and meaning is more specific, and more constraining, than most implementations assume.</em></p><p><em>If you’re new here, the </em><a href="https://medium.com/@gerrit.phil.baumann/what-ai-actually-knows-a-series-introduction-875145d70513"><em>Series Introduction</em></a><em> to WHAT AI ACTUALLY KNOWS is the place to start — you can pick it up from the beginning there.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=06fef7d5b890" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>