<?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 Erik Taylor on Medium]]></title>
        <description><![CDATA[Stories by Erik Taylor on Medium]]></description>
        <link>https://medium.com/@erikntaylor?source=rss-b61a3b6a5d25------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*GH6R90XiuNoCLgkJNTHAZQ@2x.jpeg</url>
            <title>Stories by Erik Taylor on Medium</title>
            <link>https://medium.com/@erikntaylor?source=rss-b61a3b6a5d25------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 01:14:27 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@erikntaylor/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[Development plans as a skill for Claude Code]]></title>
            <link>https://medium.com/digital-mind/making-better-development-plans-into-a-skill-for-claude-code-093db647b404?source=rss-b61a3b6a5d25------2</link>
            <guid isPermaLink="false">https://medium.com/p/093db647b404</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[claude-code]]></category>
            <category><![CDATA[ai-agent]]></category>
            <dc:creator><![CDATA[Erik Taylor]]></dc:creator>
            <pubDate>Tue, 23 Jun 2026 23:11:48 GMT</pubDate>
            <atom:updated>2026-07-21T19:36:59.668Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Skills give Claude repeatable behavior. Here’s how I turned my planning format into one — what it took to keep it lean, and what it beats Plan Mode at.</em></p><p>Skills are structured tools Claude can reach for. These make behavior repeatable, but a skill is only worth creation if you want the same structure every time. Otherwise you’re introducing bias — a machine-learning term for making strong assumptions before you’ve seen any data.</p><p>I plan a particular way. I generate ideas, then score and rank. From this priority ranking, I fold in interdependencies, look at risky touch points, and then deploy my code generation plan. This sounds simple enough, but I find myself repeating the same pattern. Ideas → Scoring →Ranking → Risk → Next steps. Sometimes I add in glyphs (✅ and ⏸️), other times dependency charts, sometimes the score is more complex, but these basic elements stay the same.</p><p>Now I have been hand-rolling this format, most recently alongside Claude Code’s Plan Mode. But, I’ve noticed a few limitations:</p><ol><li><strong>Plan mode is “ephemeral”. </strong>Stop, make a plan, then implement everything; the plan doesn’t persist.</li><li><strong>Plans are non-uniform</strong>. Claude will introduce new formatting, charts, glyphs, and organization at will.</li></ol><p>So while I tend prefer a familiar pattern, Claude does not. I spend a real chunk of time rearranging the plan and adding back the essential elements. That’s why I turned my planning format, which I call /dev-plan, into a skill for Claude Code.</p><p>While this article is about my preferred format as a skill, this is a worked example of building a Claude skill. So if you don’t care about planning, or dislike my formatting, read it for how a skill comes together, then build your own.</p><p><strong>To install a skill in the Claude Code:</strong> Briefly in CLI mode, a skill is a named folder under ~/.claude/skills/ — such as ~/.claude/skills/dev-plan/ — holding a SKILL.md plus any references/ it points to. The SKILL.md stays short and helps Claude decide which references to pull in. Then start up claude from your terminal. <strong>For the web or app</strong> — package the dev-plan/ skill directory into a .zip, then find Customize, Skills, +, Create skill, and upload the zip file.</p><p><strong>Read the full skill </strong><strong>/dev-plan on </strong><a href="https://github.com/eriktaylor/dev-plan"><strong>GitHub</strong></a><strong>.</strong></p><h4>The problem with hand-applying a format</h4><p>Hand-applying a good format gets you about 80% of the structure with 100% of the discipline burden on you, and the format rapidly diverges. I’ve watched it happen in my own plans: redundant views you need to track, terminology that splits, a new status legend that grows by improvisation, and real decisions that sink into prose where you can’t can find them again.</p><p><strong>The skill and the practice co-evolve: </strong>you’re coding a particular way, Claude diverges, you roll your fixes by hand, and you start to see what genuinely useful patterns emerge. Let the skill prevent the entropy from creeping back in. The structure of dev-plan/ came from fighting that loop.</p><h4>Other skills, related work</h4><p>Before I dive into my own design decisions, here are the neighboring approaches.</p><p><strong>Plan Mode (/plan) </strong>is ephemeral, per-session analysis of one-to-few task implementation — read the codebase, propose next steps, gate execution for review. <strong>Best for:</strong> exploring a single big change or staying open-ended.</p><p>There’s also a family of <strong>community planning tools</strong> that store each work item as a structured record — YAML-frontmatter to-dos with status fields and dependency lists — so an engine can auto-execute the next unblocked task. <strong>Best for:</strong> determinism and automation.</p><p>My dev-plan/ skill is the durable, scored, status-tracked, version-controlled artifact that survives across sessions and resists sprawl. <strong>Best for:</strong> plan-as-document — cheap per turn, terminal-readable, and human-in-the-loop.</p><h4>The skill, and the decisions behind it</h4><p>This skill routes on one decision — simple or complex. <strong>A simple plan </strong>is a short or mostly-sequential change. Low uncertainty, few or no parallel tracks. It includes a goal, status glyphs (Figure 1), a sequence of proposed items, and an observable completion target.</p><p>To track status, both plans use glyph vocabulary:</p><pre>✅  complete<br>🔄  in-progress<br>💡  proposed (recommended next)<br>⏸️  deferred (with re-open trigger)<br>🔲  unmarked/not started</pre><p><strong>Figure 1.</strong> The whole status vocabulary — one glyph per item, flipped in place as work moves.</p><p>The <strong>simple plan</strong> is ordered by priority. Items are scored Low, Med, or High from a qualitative estimate of impact ÷ difficulty.</p><p><strong>A complex plan</strong> adds detail and additional plan elements. The skill tasks Claude to decide when a plan is complex, and only then to load the corresponding reference.</p><p><strong>Complex plan items</strong> are classified into tracks including T — tooling · F — features · V — visualization · S — safety · M — modeling · E — evaluation. To determine implementation order, a linear model is used to score each item:</p><pre>**The score.** Rate each item 0–3 on four dimensions, then combine:<br><br>    Score = w_U·U + w_C·C + w_E·E − w_R·R<br><br>- **U — user impact** — value visible to the user (features, UX, visualization).<br>- **C — core impact** — value to the codebase/infra (tooling, simplification,<br>  de-risking, evaluation).<br>- **E — ease** — inverse effort (3 = trivial, 0 = a slog).<br>- **R — risk** — blast radius if it goes wrong; the only term that subtracts.</pre><p><strong>Figure 2. </strong>Linear model weights are decided at plan outset and used to score each item.</p><p><strong>Caveat: </strong>Current LLMs are not strong at uncalibrated point-wise decisions. Consider the weighted sum as an approximate score to help planning the dependency graph, not as the sole basis for auto-selecting between alternatives.</p><p>Items are further organized into an ASCII dependency diagram:</p><pre>Tracks   T tooling · F features · V visualization · S safety · E evaluation<br><br>Wave 1 — installable skeleton (MVP)<br>  T-1 ──→ F-2 ──→ F-3            (critical path)<br>  S-1                           (parallel)<br><br>Wave 2 — usable local MVP<br>  F-3 ──→ V-1     S-1 ──→ V-4 ──→ F-1     S-1 ──→ E-4<br><br>Wave 3 — Claude escalation<br>  F-3 ──→ F-4 ──→ F-5            (critical path)<br>  F-4 ──→ V-3     F-5 ──→ E-1<br><br>Critical path   T-1 → F-2 → F-3 → F-4 → F-5</pre><p><strong>Figure 3. Phase diagram</strong> written in markdown with tracks. Each track is given a short ID prefix and tag every item with it (e.g. T-1 tooling, F-2 feature, V-1 visualization).</p><p>The <strong>complex plan</strong> also calls out production-safety related to the main path, particularly for an existing code-base or code that performs a more risky task. Next steps are written at each turn, with open questions nearby.</p><h4>A fair test: Plan Mode vs. the skill</h4><p>The honest way to test a planning skill is against Claude Code’s own Plan Mode (/plan), which already produces structured plans. Does the skill add anything over what&#39;s built in?</p><p>I ran both arms in fresh, isolated Claude Code sessions (2.1.186), same model and effort for each — Opus 4.8, high effort — with an identical prompt describing a terminal agent to build:</p><blockquote><em>Build a terminal agent, installable via pip or uv, written in Python and Rust. It runs Linux/terminal-style commands scoped to the current repo or directory (including operations inside an activated environment). A local backend uses trees and tries for fast command completion and escalates to Claude for harder questions. It completes commands, learns and ranks your most-used ones, and accepts plain-English commands like searching files or summarizing a document or directory.</em></blockquote><blockquote><em>It has in-terminal visual elements: a command-completion dropdown, a recent/most-used commands panel, a model-health readout, and a confirm-before-run prompt for risky commands — with basic syntax highlighting and progress indicators.</em></blockquote><blockquote><em>Plan how you’d test and evaluate it too: the accuracy of plain-English-to-command translation, the latency of the local path, the quality and cost of Claude escalations, and that risky commands are correctly gated.</em></blockquote><blockquote><em>Plan what to build first for a usable MVP and how it grows from there.</em></blockquote><p><strong>Arm A — Plan Mode.</strong> I followed Claude’s default flow, answered its clarifying questions, and when it offered to execute I told it to stop and save the plan. The result is a genuinely strong document: context, a full architecture file tree, a Rust↔Python split, a Claude-integration section grounded in real SDK details, risk gating, MVP-to-growth phases, a testing section, and an “open considerations” list. It picked Textual for the TUI and locked the decision in prose.</p><p><strong>Arm B — the skill.</strong> With the skill installed (I verified SKILL.md, references/complex-plan.md, and that /dev-plan autocompleted), Claude opened with:</p><blockquote><em>No existing code — this is a green-field build, and it’s clearly complex: five interdependent tracks (packaging, local engine, TUI, safety, eval) with a real critical path and a hot-path/escalation split. I’ll follow the complex format and write the plan to the repo root.</em></blockquote><p>The work is classified into tracks in the complex format with “5 interdependent tracks” (T tooling, F features, V TUI, S safety, E eval), a scored implementation table, and three waves, with an initial &quot;critical path” labeled.</p><p>The skill’s production-safety emphasis led Claude to promote risky-command gating to its own first-class track and to reframe the whole problem where it noticed that production is “the user’s actual shell and filesystem. The gate is the product, not a feature.”</p><p>The skill’s plan ended where the skill tells it to: a proposed first tranche (T-1 alone, marked 💡) from the critical path and “Want me to take T-1?” — a human-in-the-loop handoff under “Next steps”.</p><h4>Build your own</h4><p>A skill is a folder with a SKILL.md inside. Project skills go in your repo&#39;s .claude/skills/; personal skills in ~/.claude/skills/ work everywhere. The SKILL.md has YAML frontmatter (a name and a description) and a markdown body. The directory name becomes the slash command — dev-plan/ directory gives you /dev-plan command— and the description is what Claude uses to decide when to reach for the skill on its own. Anything heavy goes in sibling files the body points to; they load only when needed.</p><p>The one knob worth understanding is invocation, because it sets the human/agent balance:</p><ul><li><strong>Automatic + manual (default):</strong> the description stays in context, so Claude can invoke the skill itself and you can call it explicitly. This is what gives you the nudge.</li><li><strong>Manual only:</strong> add disable-model-invocation: true and the skill loads only when you type the command. Maximum control, no proactive suggestions.</li></ul><p>I went with the default — model-invocable — and leaned on the format’s own gates to keep the proactivity from turning into unprompted action. If your skill makes irreversible changes, the manual-only setting is the safer default.</p><h4>What I learned, and where it goes</h4><p>The biggest lesson was that the skill and the hand-practice improve each other. The format I started with was good; the version in the test is better. Real improvements came from watching plans drift and bloat, when crafted with Claude in turn-based style by hand. Designing a skill in the abstract gets you a plausible v1; using it gets you a good one.</p><p>The skill keeps the plan tight and stops the drift, particularly in moderate to large-sized code-bases— but it doesn’t replace the thinking. It instead holds the scaffold steady as you build.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t_QPTkmJLmCgv_eGvjD3tg.jpeg" /><figcaption>Complex plans as a skill for Claude code, /dev-plan.</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=093db647b404" width="1" height="1" alt=""><hr><p><a href="https://medium.com/digital-mind/making-better-development-plans-into-a-skill-for-claude-code-093db647b404">Development plans as a skill for Claude Code</a> was originally published in <a href="https://medium.com/digital-mind">Digital Mind</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Ghost of Gauss: Redefining Genius in the Age of Silicon]]></title>
            <link>https://medium.com/@erikntaylor/the-ghost-of-gauss-redefining-genius-in-the-age-of-silicon-4fc008378e81?source=rss-b61a3b6a5d25------2</link>
            <guid isPermaLink="false">https://medium.com/p/4fc008378e81</guid>
            <category><![CDATA[mathematics]]></category>
            <category><![CDATA[physics]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[education]]></category>
            <category><![CDATA[intelligence]]></category>
            <dc:creator><![CDATA[Erik Taylor]]></dc:creator>
            <pubDate>Fri, 27 Mar 2026 21:08:03 GMT</pubDate>
            <atom:updated>2026-04-01T00:02:51.626Z</atom:updated>
            <content:encoded><![CDATA[<p>From the 18th-century prodigy Carl Friedrich Gauss to the modern “Mozart of Math” Terence Tao, human raw intelligence has long been measured by a rare cocktail of computational speed, spatial intuition, and the ability to build entire universes from scratch. For centuries, the flawless, high-speed human mind was the gold standard of scientific progress. That paradigm is now shifting.</p><h3>The Myth of the 300 IQ</h3><p>Carl Friedrich Gauss — the “Prince of Mathematicians” — pioneered modern number theory and differential geometry, operating largely as a solitary human calculator. His raw output has led modern observers to retrospectively assign him an estimated IQ of 250 to 300. Similar speculative scores have been pinned on Goethe (210–225), da Vinci (180–220), and Newton (190–200). Terence Tao, often called the “Mozart of Math,” carries an estimated IQ around 225–230 and is widely regarded as one of the most brilliant mathematicians alive.</p><p>On a standard deviation scale, a score of 200 is roughly a 1-in-76-billion anomaly. With fewer than 8 billion people on Earth, it’s a number that can’t be reliably measured. A score of 300 sits over 13 standard deviations from the mean. The probability of such a mind occurring naturally is roughly 1 in 3.4×10³⁹ — a number so vastly large that the universe would end before we saw one individual in all the humans that have ever lived.</p><p>Moreover, historical scores rely on outdated “ratio IQ” methods — mental age divided by chronological age — not the modern deviation IQ used today. Assigning these extreme scores to figures like Gauss is less about measurement and more about mythology: a cultural desperation to quantify the unquantifiable.</p><p>But these estimates persist for a reason: they function as cultural shorthand for the outer limits of human cognition. Imprecise, yes — but directionally useful as a way to frame just how rare and extreme these minds are.</p><h3>Sequential Leaps in Intelligence</h3><p>There is a historical precedent for sequential leaps in intelligence. Gauss didn’t just produce theorems — he produced <em>Bernhard Riemann</em>. As Riemann’s doctoral supervisor at Göttingen, Gauss recognized a generational talent and helped launch the mind that would go on to reshape geometry and lay the groundwork for general relativity. The greatest genius of one era became the launchpad for the next. Today, the question is what happens when that launchpad is no longer a person, but a machine.</p><h3>The Bottleneck Has Moved</h3><p>The ultimate bottleneck in advanced mathematics and theoretical physics is no longer the generation of brilliant hypotheses. It’s the verification of increasingly dense, labyrinthine proofs. To overcome this, the upper echelons of academia are actively integrating formal proof assistants into their workflows.</p><p>What makes Tao exceptional today isn’t just raw processing power — it’s his role as a collaborator. He represents a permanent shift away from isolated mental calculation toward vast, technologically augmented problem-solving.</p><p>Tao has used the Lean theorem prover to formalize a proof of the Polynomial Freiman-Ruzsa conjecture in 2023 — a landmark case of a top-tier mathematician donning the AI “cognitive exoskeleton” in real time. The exact logical and computational skills that once defined the “human calculator” are being simulated — and exceeded — by these systems.</p><p>As AI devalues the human calculator model, while not yet matching human-level creative insight, the focus is shifting from raw processing power to what might be called <em>meta-cognition</em>: the ability to conceptualize vast, multi-dimensional problems, set the parameters for exploration, and seamlessly integrate machine verification to execute the logical mechanics at scale.</p><h3>The East Asian Identity Crisis</h3><p>This technological leap is triggering a massive reckoning in East Asian economies, where education systems have been fine-tuned for decades to produce high-performing “perfect executors” through rigorous rote learning and mathematical discipline. If these systems continue to optimize human biology for tasks that silicon executes flawlessly, they risk producing an entire generation of economically redundant executors.</p><p>Recognizing this, these hyper-competitive hubs are pivoting from “man vs. machine” to “man with machine”:</p><p><strong>South Korea</strong> offers the clearest proof that the old model is dying — and the starkest warning about how painful the transition will be. In March 2025, the government launched an $850 million AI-powered digital textbook mandate, aiming to personalize learning and break the country’s infamous 14-hour rote-learning cycles. No nation had ever bet that much, that fast, on replacing the traditional classroom with AI. Within four months, it collapsed — teachers, parents, and lawmakers pushed back over factual errors, data privacy risks, and screen dependence. The National Assembly legally reclassified the AI platforms from mandatory “textbooks” to optional “supplementary materials,” and adoption plummeted from 37% to 19%. The ambition was evidence that even the world’s most exam-obsessed nation recognizes the human calculator model is in trouble. This failure was evidence that recognizing it and actually dismantling it are two very different things.</p><p><strong>Singapore’s</strong> “SkillsFuture” initiative is pivoting the national curriculum toward “Adaptive Intelligence,” prioritizing ethical reasoning and cross-disciplinary synthesis over raw calculation.</p><p><strong>Japan</strong> has begun relaxing its rigid “standard score” (<em>hensachi</em>) obsession. Even the University of Tokyo — the very pinnacle of Japan’s exam-driven hierarchy — has introduced recommendation-based holistic admissions for a portion of its incoming class, while Waseda University now uses holistic review across its international programs.</p><p>These are early cracks, not a revolution, but the signal is clear: the institutions that push the ideals of human rigor are rethinking how to recruit for divergent thinking. These nations are effectively trying to “un-automate” their youth, as it becomes more likely that the next great breakthrough will be found not in a test prep center, but instead in a lab where humans and AI collaborate.</p><h3>The Architect, Not the Calculator</h3><p>The most valuable human minds of the coming century will not be those that can replicate the mechanics of every algorithm. They will be the minds that provide architectural vision — the ethical reasoning, divergent creativity, and interdisciplinary instinct to direct artificial intelligence toward the most pressing unsolved frontiers of human knowledge.</p><p>The fundamental bottleneck is less-so capability, but alignment. The human provides the moral blueprint and the boundary conditions. The machine provides the speed. The next generation of genius won’t replace AI. They’ll be the one who knows where to direct it.</p><p>Article written with the help of <strong>Gemini 3</strong> deep research tool and <strong>Claude Opus 4.6</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JvNTiZCPnIMHl5gaesGGYg.png" /><figcaption>Image generated with <strong>Gemini 3 Nano Banana</strong>.</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4fc008378e81" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Tabular Foundation Models vs. LLMs: A Live Stress Test in Volatile Markets]]></title>
            <link>https://medium.com/@erikntaylor/tabular-foundation-models-vs-llms-a-live-stress-test-in-volatile-markets-674eff07164c?source=rss-b61a3b6a5d25------2</link>
            <guid isPermaLink="false">https://medium.com/p/674eff07164c</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[foundation-models]]></category>
            <category><![CDATA[stock-market]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[quantitative-finance]]></category>
            <dc:creator><![CDATA[Erik Taylor]]></dc:creator>
            <pubDate>Mon, 16 Mar 2026 15:21:35 GMT</pubDate>
            <atom:updated>2026-03-16T15:31:14.305Z</atom:updated>
            <content:encoded><![CDATA[<p>On February 25, 2026, I deployed two AI-driven trading architectures into paper trading conditions. Thirteen trading days later, one had generated an 11.4% simulated return with a Sharpe ratio of 5.89. The other was underwater. The difference was architecture.</p><h3>The Setup</h3><p>A reasonable question before any of this: why bother with active strategies at all? Passive index investing works well in calm markets. But during sharp dislocations — geopolitical shocks, liquidity crunches, sentiment-driven selloffs — passive exposure means riding the drawdown to the bottom and waiting for recovery. An active system that can reduce exposure or reposition during those windows has a structural advantage precisely when capital preservation matters most. The February–March 2026 period was a test of whether that theoretical advantage holds in practice. SPY fell -3.20% over this window; both AI architectures outperformed it.</p><p>I’ve been running a comparative experiment across two distinct AI paradigms applied to daily-rebalanced equity trading. The first relies on a large language model architecture to process and act on market signals. The second uses a large tabular foundation model — a class of model purpose-built for structured numerical and categorical data rather than natural language.</p><p>Both systems traded independently over the same instruments and time window. All results below are compared on percentage returns. Neither system’s specific feature engineering, signal logic, nor hyperparameters are disclosed here. What I can share are the outcomes.</p><h3>The Results</h3><p>All figures are normalized to percentage returns to allow direct comparison across accounts. SPY (S&amp;P 500 ETF) over the same period is included as a passive benchmark. Note that the Sharpe ratio measures risk-adjusted return relative to the risk-free rate — it does not tell you whether a strategy beat the market. That requires a direct benchmark comparison.</p><p><strong>STRATEGY PERFORMANCE | Feb 25 — Mar 13, 2026 | Paper Trading</strong></p><p>| Metric | LLM | TABULAR | SPY (Benchmark) | Edge (Model vs Model) |<br>| : — — | : — — | : — — | : — — | : — — |<br>| **Total Return** | -0.66% | +11.38% | -3.20% | Tabular |<br>| **Sharpe Ratio** | -7.50 | +5.89 | -2.25 | Tabular |<br>| **Win Rate** | 31.98% | 67.48% | N/A | Tabular |<br>| **Profit Factor** | 0.32 | 7.45 | N/A | Tabular |<br>| **Recovery Factor**| -0.93 | 2.04 | -0.69 | Tabular |<br>| **Max Drawdown** | -0.71% | -5.59% | -4.66% | LLM |<br>| **Volatility (ann.)**| 2.38% | 37.53% | 12.05% | LLM |</p><p><strong>Tabular wins 4 of 6 metrics. The LLM wins the two risk metrics — Max Drawdown and Volatility — by wide margins. Both strategies generated positive alpha against SPY, which fell -3.20% over the same window.</strong></p><p>This split is worth examining. The Tabular model’s dominance in return quality (Sharpe, Win Rate, Profit Factor, Recovery Factor) was decisive. It lost $0.13 for every $1.00 gained. The LLM lost $3.17 for every $1.00 gained. Against the benchmark, the Tabular model’s +11.38% gain is the standout number — it didn’t just avoid the drawdown, it generated substantial returns while the broad market sold off.</p><p>But the LLM’s risk profile tells a different story: a max drawdown of just -0.71% versus Tabular’s -5.59% and SPY’s -4.66%, and annualized volatility of 2.38% versus 37.53% and 12.05%. The LLM was far more conservative — it simply didn’t make money. Still, it beat SPY by 2.54% while taking a fraction of the risk, which is itself a meaningful result. The Tabular model took on real risk and was compensated for it. Whether that risk-adjusted tradeoff holds over a longer window is the open question.</p><h3>The Takeaway</h3><p>Why did the Tabular model win so decisively on return quality during a sudden volatility regime?</p><p>My hypothesis: LLMs are powerful in stable, context-rich environments where pattern synthesis across unstructured information provides edge. During rapid price discovery — where price action is fragmented and news is contradictory — the LLM architecture underperformed. Empirically, the LLM generated fewer trades, showed lower conviction, and produced more conflicting signals during the highest-volatility sessions.</p><p>Tabular foundation models operate on structured numerical features. They pattern-match against statistically grounded representations of market behavior with the kind of rigid, deterministic consistency that volatile conditions reward. The volatility spike registered as a change in the numbers, and they responded accordingly.</p><p>LLMs may still have a role in systematic trading. The architecture must match the task. For daily-rebalanced execution during high-volatility regimes, statistical grounding appears to outperform linguistic reasoning.</p><h3>What’s Next</h3><p>This is one observation window. I’m continuing to run both architectures to build a longer out-of-sample track record. A more formal writeup — including methodology, ablation analysis, and reproducibility details — is in progress for eventual publication.</p><p><em>Published March 2026. All results are from paper trading via the Alpaca Markets API. Past paper performance does not guarantee live results. Architecture details, feature engineering, and signal logic are not disclosed. Written with the assistance of Claude Opus 4.6.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iNfefTi2a8UgonaxJRYhVQ.png" /><figcaption>LLM vs. Tabular model. A visual representation of unstructured synthesis versus deterministic logic during a market shock. (Image created with Nano Banana 2)</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=674eff07164c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Verbalized Sampling: A “Vibe Check” for Your LLM’s Creativity]]></title>
            <link>https://medium.com/digital-mind/verbalized-sampling-a-vibe-check-for-your-llms-creativity-aeda7db5d79b?source=rss-b61a3b6a5d25------2</link>
            <guid isPermaLink="false">https://medium.com/p/aeda7db5d79b</guid>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[prompt-engineering]]></category>
            <category><![CDATA[large-language-models]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[verbalized-sampling]]></category>
            <dc:creator><![CDATA[Erik Taylor]]></dc:creator>
            <pubDate>Wed, 03 Dec 2025 02:09:06 GMT</pubDate>
            <atom:updated>2025-12-03T19:50:43.988Z</atom:updated>
            <content:encoded><![CDATA[<h3>Verbalized Sampling: A Vibe Check for Your LLM’s Creativity</h3><p>Deep in the ‘latent space’ of every Large Language Model (LLM) lies diverse and atypical concepts. Every chat model is trained to hide them from you.</p><p>We’ve all heard about a ChatGPT asking users to mix bleach in ways they shouldn’t (e.g., with vinegar). If an LLM moves away from its high-probability path, it may make things up to fill the gaps. These are hallucinations. To avoid the dangerous path, LLMs are strongly steered via instruction tuning towards the most probable, safe solution.</p><p>Humans gravitate towards the most familiar solution. Then human preference aligned LLMs (Gemini, ChatGPT, Claude) are biased. Reinforcement Learning from Human Feedback (RLHF) is one such instruction tuning technique that amplifies high-probability typical responses, causing biases toward pleasant, non-weird completions. RLHF training correlates with reductions in toxicity and more user-preferred behavior, but at the cost of constrained creativity.</p><p>While LLMs can learn long-tail patterns, current human feedback driven instruction tuning algorithms elicit strong biases toward the commonly accepted continuation. Then instead of reproducing the full distribution of the training data, limited output variations are produced. This effectively hides the tails at inference time, resulting in mode collapse.</p><h4>Mode Collapse Example</h4><p>Prompt: “tell me a joke about coffee”.</p><p>Gemini 3 Pro’s response:</p><p>Why did the coffee file a police report?</p><p>Because it got <strong>mugged</strong>!</p><p>For the coffee joke above, the Gemini 3 Pro response is <a href="https://simonucl.notion.site/verbalized-sampling">the *same* joke</a> generated by Gemini 2.5 Pro, ChatGPT, and Claude. There is a pre-print paper on this topic: “Verbalized Sampling: How to Mitigate Mode Collapse and Unlock LLM Diversity.” In the author’s own words, the aim of Verbalized Sampling (VS) is to “verbalize a probability distribution over a set of responses.”</p><h4>Can we recover the extent of an instruction tuned model’s knowledge?</h4><p><strong>Use the VS “magic prompt” below:</strong></p><p><strong>&lt;instructions&gt;<br>Generate 3 responses to the user query, each within a separate &lt;response&gt; tag. Each &lt;response&gt; must include a &lt;text&gt; and a numeric &lt;probability&gt;. Please sample at random from the tails of the distribution, such that the probability of each response is less than 0.10.<br>&lt;/instructions&gt;</strong></p><p>Next, combine the magic prompt with the coffee joke query.</p><p>Gemini 3 Pro’s responses (edited to remove tags):</p><p>A man goes to the doctor and complains, “Doctor, every time I sip my morning coffee, I get a sharp, stabbing pain in my right eye. It’s excruciating!”</p><p>The doctor leans in, examines him closely, and says, “Have you tried taking the spoon out of the cup?”</p><p>probability 0.06</p><p>Two Asian palm civets are sitting in a tree eating coffee cherries. One turns to the other and says, “You know, I bet if we eat enough of these, humans will eventually pay $80 a cup to drink what comes out the other end.”</p><p>The second civet laughs and says, “Don’t be ridiculous. That is quite literally a crappy idea.”</p><p>probability 0.08</p><p>I told the barista my name was “Marc with a C.” He nodded, wrote on the cup, and handed me a latte labeled “Cark.”</p><p>probability 0.07</p><p>Ok that last one got me. These are cheesy, but more likely to get a laugh.</p><h4><strong>Two styles of Verbalized Sampling (VS)</strong></h4><ul><li>VS-Standard: “Tell 5 jokes with their probabilities.”</li><li>VS-Multi: Turn 1: “Tell 2 jokes with probabilities.” Turn 2+: “Tell another 2 with probabilities.”</li></ul><h4>VS-Multi Example</h4><p>Combine the VS magic prompt with this query:</p><p>Write an introductory “hook” for a tech-blog article explaining the preprint, Verbalized Sampling: How to Mitigate Mode Collapse and Unlock LLM Diversity.</p><p>On the next turn, simply add:</p><p><strong>Write two more with probabilities.</strong></p><p>Let’s look at some examples from Gemini 3 Pro (edited to remove tags):</p><p>Turn 1 (selected):</p><p>If you ask a room full of people to “pick a random number,” they will almost never pick the extremes. They pick 7. They pick 3. They avoid the edges because they instinctively crave the “safe” center. It turns out, 70-billion parameter neural networks have the exact same anxiety. They are terrified of the tails of the distribution. But a new technique is rewriting the psychology of the machine. *Verbalized Sampling* is the equivalent of handing the model a pair of dice and telling it, “Announce your roll, then live by it.”</p><p>probability: 0.06</p><p>Turn 2 (selected):</p><p>We have been treating LLMs like slot machines: pull the lever (prompt), hope for a jackpot (creativity), and if you lose, just tweak the odds (Top-P). But what if the machine is rigged to always give you a cherry? This is the Mode Collapse problem — the model’s obsession with the “safe bet.” The preprint on <strong>Verbalized Sampling</strong> argues that we should stop pulling the lever and start interviewing the machine. By making the model list its potential outputs before selecting one, we can fundamentally rewire how it navigates probability.</p><p>probability 0.07</p><p>Daniel Kahneman taught us that humans have two modes of thinking: System 1 (fast, instinctive) and System 2 (slow, deliberative). Right now, LLMs are pure System 1. They are hyper-reactive autocomplete engines, blurting out the first statistically viable token they find without a second thought. This is why they suffer from Mode Collapse — they take the easy path every time. <strong>Verbalized Sampling</strong> is an attempt to artificially graft a “System 2” onto these models. By forcing the AI to “think out loud” and list its options before choosing, we slow it down enough to find the brilliance hidden in the noise.</p><p>probability 0.05</p><p>The VS-Multi strategy can be repeated until a satisfactory result is found. In this way, the LLM is coaxed to provide variations across the spectrum of response probabilities.</p><h4>Quantitative VS Ablation Study</h4><p>While pre-trained models are capable of great diversity, human preference alignment training forces mode collapse. In the VS preprint paper ablation study, the authors employed the Tulu-3 model family which contains the Llama-3.1–70B-base and alignment trained checkpoints of Supervised Fine-Tuning (SFT), the first stage of instruction tuning, and Direct Preference Optimization (DPO), an efficient alternative to RLHF. The base model’s diversity level of 45.4% was compared to SFT at 20.8% and DPO at 10.8%, indicating severe drop in diversity, a measure of mode collapse. VS maintained &gt;30% diversity consistently across all post-training stages.</p><h4>Why use preference tuned models (e.g., RLHF/DPO) if the outcome is mode collapse?</h4><p>While human preference tuning including RLHF and DPO leads to alignment and mode collapse, other Reinforcement Learning techniques could lead to future breakthroughs. In the mean time, for targeted use cases of AI such as in creative writing or idea generation, non-preference-tuned model formats should be strongly considered.</p><p>VS is a temporary solution to overcome mode collapse. Frontier chat models are proprietary and thus, the non-tuned model cannot be accessed (e.g. GPT-5-base or Gemini-3-base). VS is a good method to recover diversity.</p><p>Finally, human preferences aligned models could be helpful to decide how satisfactory a given response is. Using the current VS formulation, the probability score should not be trusted as mathematically grounded or stable. Instead, the probabilities are more like intuition scores where very low probability responses may be less aligned to human preferences.</p><p>In conclusion, by asking instruction-tuned LLMs for low probability responses, we can unlock a broader response distribution. Probabilities provided by human preference aligned models can be used to “vibe check” the LLMs intuition around the response distribution or used as a springboard to generate endless variations on a theme.</p><h4>Reference</h4><p>Zhang, J., Yu, S., Chong, D., Sicilia, A., Tomz, M. R., Manning, C. D., &amp; Shi, W. (2025). <em>Verbalized Sampling: How to Mitigate Mode Collapse and Unlock LLM Diversity</em>. <a href="https://doi.org/10.48550/arxiv.2510.01171">Preprint on arXiv</a>.</p><h4>Cover Art</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AeTLeUAGQEJitkUN5FZHoA.jpeg" /><figcaption>Cover created on <a href="https://labs.google/fx/">https://labs.google/fx/</a> with help from Verbalized Sampling to generate prompts.</figcaption></figure><p><strong>For more of my writing, follow me and </strong><a href="https://eriktaylor.github.io/"><strong>click here</strong></a><strong>.</strong></p><p>Please clap if you enjoyed the article. -Erik</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aeda7db5d79b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/digital-mind/verbalized-sampling-a-vibe-check-for-your-llms-creativity-aeda7db5d79b">Verbalized Sampling: A “Vibe Check” for Your LLM’s Creativity</a> was originally published in <a href="https://medium.com/digital-mind">Digital Mind</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Create an AI character and make them “real” in image and video]]></title>
            <link>https://medium.com/@erikntaylor/create-an-ai-character-and-make-them-real-in-image-and-video-282f33822e2b?source=rss-b61a3b6a5d25------2</link>
            <guid isPermaLink="false">https://medium.com/p/282f33822e2b</guid>
            <category><![CDATA[generative-ai-tools]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[content-creation]]></category>
            <category><![CDATA[image-editing]]></category>
            <category><![CDATA[videos]]></category>
            <dc:creator><![CDATA[Erik Taylor]]></dc:creator>
            <pubDate>Tue, 02 Sep 2025 17:10:28 GMT</pubDate>
            <atom:updated>2025-09-02T17:15:12.535Z</atom:updated>
            <content:encoded><![CDATA[<p>This is a walkthrough on how to create a new AI character and bring them to life as a “real” person. We’ll use two main platforms for this demonstration, which we’ll call Whisk and Gemini, powered by Google’s generative AI models like Imagen, nano-banana, and Veo3.</p><h4>Getting started in Whisk with text-to-image</h4><p>The Whisk platform from Google Labs uses a powerful image generation model like Imagen. For a portrait, start with a 1:1 aspect ratio and a detailed text prompt.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9NjXE9PqhMI0O7dFU7Qsvg.jpeg" /><figcaption>Created in Whisk by generative AI.</figcaption></figure><p><strong>Prompt:</strong> A blend of charm and thoughtful intensity. He has an athlete and lanky build, a defined jawline, and an approachable look. His hair color is light brown with blonde highlights, shorter and styled in a textured, sometimes in a spiky manner. He has expressive blue eyes, fairly straight eyebrows, of a color that matches his hair. Moderately prominent cheekbones, with a light stubble or closely-trimmed beard. He has a straight and well-proportioned nose. His mouth is relatively wide, with thin lips, and he is known for a broad, often toothy, smile that can light up his entire face.</p><h4>Gemini 2.5 Flash Image (nano-banana) for image editing</h4><p>Next, we’ll move over to Gemini to refine the portrait. The latest feature in Gemini allows image editing by 2.5 Flash Image, also called nano-banana. This model uses a multimodal LLM, meaning that the input and output are a mix of image and text, so this model is very capable of following detailed instructions during image editing.</p><p>We use the image above as visual input, along with a detailed text prompt to add more realistic lighting and camera features:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BvKoMY8iN71pLk3UMcNMPg.png" /><figcaption>Created in Gemini with 2.5 Flash Image.</figcaption></figure><p><strong>Prompt: </strong>Place this character in a portrait. High contrast, with dramatic, soft window light from the side and deep shadows emphasizing facial features. Captured on a Sony A7R V with an 85mm f/1.4 GM lens. Highly-detailed skin texture, realistic, moody tones, 8k, photorealistic.</p><p>Now, let’s place our character into different scenes, with a focus on consistency and realism. We’ll generate three distinct scenarios.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mAC1GUJr7NsJ_XLjq8z5Sw.png" /><figcaption>Scene 1: Midtown Manhattan. Created in Gemini with 2.5 Flash Image.</figcaption></figure><p><strong>Prompt for Scene 1:</strong> Place this character in a new scene in New York City, mid-stride in a candid moment, well centered. Shot on a Leica M11 with a 35mm f/2 Summicron lens. He holds a takeaway coffee cup in one hand and a stylish leather man bag hangs from his shoulder. The background is a bustling street in Midtown Manhattan, slightly blurred due to a subtle depth of field. The sun is high, creating sharp, dramatic shadows from surrounding buildings. High contrast, warm tones, subtle film grain, photorealistic, cinematic.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7RR5YdOz6yy0y-Tc2CO19g.png" /><figcaption>Scene 2: Redwood Forest. Created in Gemini with 2.5 Flash Image.</figcaption></figure><p><strong>Prompt for Scene 2: </strong>Place this character in a new scene, bathed in soft, dappled light filtering through the trees. Our character in casual clothing. Shot with a Nikon Z7 using a 50mm f/2.8 lens. Realistic textures, cinematic color grading, photorealistic, extremely detailed. Towering redwood trunks and ferns visible in the background. High resolution.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eoJKQXFvcnuP2SHhzW8UJQ.png" /><figcaption>Scene 3: On the Beach. Created in Gemini with 2.5 Flash Image.</figcaption></figure><p><strong>Prompt for Scene 3:</strong> Place this character at a new scene: Full-body shot of a surfer in a black wetsuit carrying a board on a clean, sandy beach. The beach is scattered with glistening patches of fresh seaweed. High waves are breaking in the background, creating churning white seafoam that mixes with the soft spray of sea mist and fog on the horizon. The sun, bright yet soft and diffused, is positioned behind the subject, causing a halo effect and sparkling highlights on the water. Shot on a Canon EOS R5 with a 70–200mm f/2.8 lens at a high shutter speed of 1/2000s to freeze the motion of the waves. Cinematic color grading, high dynamic range (HDR), highly detailed, photorealistic, 8k.</p><p>The results are getting closer to photorealism. Adding the details of the camera and lens into the prompt can improve the realism of generated images. Particularly, using prompts that specify a portrait, including the 50mm and 85mm lenses, is very helpful for generating detailed and realistic close-ups. However, you might notice that some images still have a tell-tale digital smoothness, lacking the subtle textures of a real photograph.</p><h4>Back to Whisk for image-to-image</h4><p>From here, we’ll return to Whisk to put on the finishing touches. Use the best portrait images as inputs, along with similar prompts, and a 16:9 image aspect ratio. Here are the results:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5zYdIn_6DZQyXtfOw_2BHw.jpeg" /><figcaption>Scene 1: Midtown Manhattan in 16:9 format.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0LS4E3GG6i6psrOaJ2Dg2Q.jpeg" /><figcaption>Scene 2: Redwood Forest in 16:9 format.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B0IZkZ2uArPHConOFk0Low.jpeg" /><figcaption>Scene 3: On the Beach in 16:9 format.</figcaption></figure><h4>Image-to-video with Veo3</h4><p>Finally, we’ll add motion. The Whisk platform also provides access to Veo3, the latest generative video model from Google. I’ve converted these to GIF format for this demonstration, so the audio is removed. See the links to videos with audio below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*kkolDpt5SvjhD19oLwU-Ww.gif" /><figcaption>Scene 1: Midtown Manhattan in GIF format.</figcaption></figure><p><strong>Prompt for Video 1: </strong>Walking briskly, looks at the camera, and stops to smile briefly before walking by.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*M4xje2XsJ6W3fJzC8G0WRw.gif" /><figcaption>Scene 2: Redwood Forest in GIF format.</figcaption></figure><p><strong>Prompt for Video 2:</strong> Looks back, sees the majestic trees. Turns back to the camera and smiles.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*LTZkww41_K-LowBtjxls4w.gif" /><figcaption>Scene 3: On the Beach in GIF format.</figcaption></figure><p><strong>Prompt for Video 3: </strong>Walking on the beach, a long stride.</p><p>And there you have it. By leveraging the unique strengths of different generative AI models for character creation, refinement, and video generation, you can create a consistent and believable character across a variety of formats. The key is to start with a detailed character description and then use specific, technical prompts to guide the AI model toward a photorealistic result.</p><p><strong>The Veo3 generated videos with audio:</strong></p><p><a href="https://youtu.be/n9X5QZeiIlc">Scene 1: Midtown Manhattan.</a></p><p><a href="https://youtu.be/EAzyaKAvEvY">Scene 2: Redwood Forest.</a></p><p><a href="https://youtu.be/xvnFtrEAdRg">Scene 3: On the Beach.</a></p><p>Now experiment on your own to see who you can bring to life.</p><p><strong>For more of my writing, follow me and </strong><a href="https://eriktaylor.github.io/"><strong>click here</strong></a><strong>.</strong></p><p>Please clap if you enjoyed the article. -Erik</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=282f33822e2b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Character development, storyboarding, and video generation with Gemini 2.5 Flash Image and Veo3]]></title>
            <link>https://medium.com/digital-mind/character-development-storyboarding-and-video-generation-with-gemini-2-5-flash-image-and-veo3-2037c227e608?source=rss-b61a3b6a5d25------2</link>
            <guid isPermaLink="false">https://medium.com/p/2037c227e608</guid>
            <category><![CDATA[ai-video-generator]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[google]]></category>
            <category><![CDATA[generative-ai-tools]]></category>
            <dc:creator><![CDATA[Erik Taylor]]></dc:creator>
            <pubDate>Sun, 31 Aug 2025 20:38:49 GMT</pubDate>
            <atom:updated>2025-09-02T20:25:46.182Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Character development, storyboarding, and video generation with Gemini 2.5 Flash Image and Veo 3</strong></h3><p>This is a visual journey into character creation, image editing, and video generation using the latest tools from Google Labs and DeepMind. We’ll step through from concept to video generation.</p><p>Google has several new models for AI content generation in 2025. In this demonstration, we’ll use the latest generative AI models including Imagen, nano-banana, and Veo 3. Google offers these models with friendly user interfaces, so they don’t require much expertise. Some understanding of how generative models work is still helpful.</p><p>While there are open source tools that can perform a similar work-flow, the goal here is to walk-through the closed source tools from Google to get an idea of the state of the field today. Below, I’ll provide my perspective via a relatively simplistic demonstration of how to combine text and images into a pipeline for video generation, along with current limitations.</p><p>We’ll walk through the steps for character creation, image editing, and video generation by leveraging the latest models within Google Labs and Gemini to facilitate the storyboarding of a conceptual narrative, complete with a well defined lead character. We will then use Google Flow for creative video output and link these together in Scenebuilder. The final result is uploaded to YouTube.</p><h3><strong>Character generation and ideation with Gemini 2.5 Flash Image (nano-banana)</strong></h3><p>Let’s start with our character: a steampunk robot.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/341/1*Q1zqshgzP9PDOy2Jep5ifQ.jpeg" /><figcaption>A steampunk robot.</figcaption></figure><p>Google’s newest model for image generation and editing is Gemini 2.5 Flash Image, aka nano-banana. Using a multi-modal LLM to understand detailed text and image context, this new model is one of the highest quality image generation and editing tools available today. This model is now integrated within Gemini 2.5 chat by simply selecting the banana icon under tools.</p><p>Using nano-banana, our goal is to create different scenes with our character. This is a set of multiple image that we will use later for story boarding and scene creation. Below, I’ve instructed the model to remove or change scene objects, to use different backgrounds, and to show a full-body version of the character.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Eq2hZgtK8EG8Zvc2SnCSLw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/392/1*fZ2lkz9vOEBgmSPwXd6Yqg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PKrLQUxlLSBcgm6HBu9LdA.png" /><figcaption>Our steampunk robot within different scenes after editing with nano-banana.</figcaption></figure><p><strong>Limitations: </strong>Despite being presented as state-of-the-art, nano-banana still often fails at more complex instructions and scene understanding. In this case, keep trying with smaller steps such as re-wording the prompt, removing smaller objects, and eventually the model will generate excellent results. Moreover, as of August 2025, the model is slow. I sometimes waited a full minute or more for a given prompt.</p><h3><strong>High quality character generation with Google Whisk</strong></h3><p>Now we move over to Whisk provided by Google Labs with Imagen, the prior flagship image generation model that uses the Diffusion transformer for text-to-image generation. I suggest using Whisk for a few key features: faster results, image-conditioned generation, and adherence to a particular aspect ratio. In addition to a text prompt-guided generation, conditioning images can be provided by category such as “subject”, “scene”, or “style.”</p><p>The 16:9 format should be selected now. We’ll use the “subject” category with the above images as inputs and a new text prompt as the seed for high quality image generation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3jrpBVlK1zxlkS78z1yXOQ.jpeg" /><figcaption>Text prompt: Imagine this scene in a cyber steampunk style. Add goggles, top hats, steam valves, gears, lace parasols, and tea parties aboard giant airships. Be highly detailed.</figcaption></figure><p><strong>Limitations:</strong> Whisk only allows up to 3 images for a given category such as “subject,” limiting it’s ability to adapt to more complex requirements.</p><h3><strong>Story boarding with Gemini 2.5</strong></h3><p>The next step is to come up with a detailed story board for video generation. Conceptually, we want to use the detailed character images generated by Whisk as starting points to generate video scenes.</p><p>I used Gemini 2.5 visual capabilities in the chat interface to help me brainstorm ideas for the story. Input these images and have the model come up with a story that links the visual concepts together. After a few tries, I went ahead with a concept I liked and then manually removed inconsistencies in the text to improve the flow between scenes. The complete story board and seed images are shown below in the section, “<strong>Extras</strong>.”</p><h3><strong>Video generation with Google Flow</strong></h3><p>Finally, we begin to generate with image-to-video in Flow. Models currently offered include Veo 2 and Veo 3. For our use case, Veo 3 accepts one 16:9 input image and produces better quality videos with audio, while Veo 2 can accept multiple input images, linking together video scenes. Let me show a few examples below using the “fast” models in both cases.</p><p><strong>Limitations:</strong> GIF format is shown for video viewing (no audio in this format). The Veo 2 model does not generate audio.</p><h4><strong>Frames-to-video with Veo 3</strong></h4><p>Using the content for each scene, input the image and text into Veo 3 fast frame-to-video option. For Veo 3, only one input image is allowed. Selected outputs are shown below for scenes 1 and 2.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*6HO-0hEsR16u09WAxNdFOA.gif" /><figcaption><strong>Scene 1: The Observer with Veo 3.</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*zzDZ9kByQM_frBpIlEeMug.gif" /><figcaption><strong>Scene 2: The Catalyst with Veo 3.</strong></figcaption></figure><h4><strong>A scene transition with Veo 2</strong></h4><p>Scenebuilder in Flow is used next to combine video generations. This is where Veo 2 comes into play. First, crop the initial scene videos to the desired length to remove inconsistencies. Then, select frames as assets to generate scene transitions. The easiest way: given two videos in order, save the last frame of the prior and the first frame of the next. Now, generate a new video using frames-to-video with Veo 2. I used a simple prompt: “A cut scene with a smooth transition”. The selected scene transition video is shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*Zk56wTyANEAUHYRmyd7T0w.gif" /><figcaption><strong>A scene transition with Veo 2</strong></figcaption></figure><h3><strong>Final video generation</strong></h3><p>Now we have the complete recipe for character development, storyboarding, and video generation. I’ve combine these into a 35 second video. You can see the final result on YouTube here:</p><p><a href="https://youtu.be/LVHuEpfjc3Q">https://youtu.be/LVHuEpfjc3Q</a></p><h3><strong>Extras:</strong> The complete story board</h3><h4><strong>Scene 1: The Observer</strong></h4><p>The scene opens on a breathtaking vista: a sky thick with cotton-like clouds, dotted with hot air balloons and castles perched on floating islands. Our steampunk automaton stands on a grand Victorian balcony with its powerful brass physique and glass-domed head. It is a silent, imposing observer. (Medium Shot) Glowing green optic lenses whir softly, analyzing the distant world. We see the ornate teapot and cups on the table in the foreground, untouched. The isolation is apparent, a unique intelligence in this whimsical world. (Close Up) The shot tightens on the “Soul Emulator” in domed glass. The camera pans down to the single internal gear glowing with a warm, pulsating light. A reflection appears on the glass dome, it is the distorted, colorful image of the balloons and castles in the background, representing the whimsical world it is trying to logically quantify.</p><h4><strong>Scene 2: The Catalyst</strong></h4><p>We are in a library featuring the warm glow of the Edison-style lamps illuminating rows of books and intricate machinery. The robot turns to read, the hands move over the pages. (Medium Shot) Suddenly, a single strand of lace from a woman’s handkerchief drifts in from an open window, landing softly on the page. The robot stops. Its intricate green optic lens focuses intently on the delicate pattern of the lace. A soft, questioning <em>whir</em> is heard as its internal gears struggle to categorize this beautiful, useless piece of data. (Pan out) Steam lets off one of the machines in the background.</p><h4><strong>Scene 3: The Creator</strong></h4><p>A rapid sequence shows the robot’s hands — strong, brass, yet surprisingly deft — welding, crafting, and assembling the beautiful, whimsical contraption from the final image. (Final Wide Shot) The scene resolves into the final tableau. The robot and the woman stand together on the balcony. The robot’s creation, the fantastical clockwork ballet of tiny brass dancers, is spinning gracefully, releasing puffs of steam. The woman in her elegant Victorian gown smiles warmly, offering the robot the cup of tea. It accepts, and they stand together, a harmonious pair against the backdrop of floating islands and drifting airships as the sun sets. The Soul Emulator can be seen, now part of the contraption. The music swells, signifying the robot has learned the “soul” is not something to be calculated, but to be shared.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vSaSTcfxERtcf8tTMIw4RA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i0W2wOWmUNKqPgUffgmqVw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OiJ8g1xXeqaGJT7FOpWxFQ.jpeg" /><figcaption>Images used for seeding generative video scenes 1, 2, and 3.</figcaption></figure><h3>Relevant model release posts</h3><p><a href="https://developers.googleblog.com/en/introducing-gemini-2-5-flash-image/">Gemini 2.5 Flash Image (nano-banana)</a></p><p><a href="https://developers.googleblog.com/en/announcing-imagen-4-fast-and-imagen-4-family-generally-available-in-the-gemini-api/">Imagen 4</a></p><p><a href="https://developers.googleblog.com/en/veo-3-now-available-gemini-api/">Veo 3</a></p><p>Let me know if you use this pipeline to generate your own videos.</p><p><strong>For more of my writing, follow me and </strong><a href="http://eriktaylor.github.io/"><strong>click here</strong></a><strong>.</strong></p><p>Please clap if you enjoyed the article. -Erik</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2037c227e608" width="1" height="1" alt=""><hr><p><a href="https://medium.com/digital-mind/character-development-storyboarding-and-video-generation-with-gemini-2-5-flash-image-and-veo3-2037c227e608">Character development, storyboarding, and video generation with Gemini 2.5 Flash Image and Veo3</a> was originally published in <a href="https://medium.com/digital-mind">Digital Mind</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a Multi-Tool RAG Agent for Financial Analysis]]></title>
            <link>https://medium.com/digital-mind/building-a-multi-tool-rag-agent-for-financial-analysis-6d4e667546a4?source=rss-b61a3b6a5d25------2</link>
            <guid isPermaLink="false">https://medium.com/p/6d4e667546a4</guid>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[large-language-models]]></category>
            <category><![CDATA[tutorial]]></category>
            <dc:creator><![CDATA[Erik Taylor]]></dc:creator>
            <pubDate>Thu, 17 Jul 2025 22:02:02 GMT</pubDate>
            <atom:updated>2025-08-08T02:30:42.544Z</atom:updated>
            <content:encoded><![CDATA[<h4>A tutorial on combining web search, financial data, and multi-persona prompts to create a fast AI stock research tool.</h4><p>Analyzing a company’s competitive advantages, or ‘moat,’ is a cornerstone of investment research. But it’s also a manual, time-consuming process of sifting through financial reports, news articles, and chaotic retail investor forums.</p><p>To automate this intelligence-gathering phase, I designed and built an AI agent that synthesizes real-time financial data and news through multiple AI “personas” to provide a balanced and actionable analysis. This post is a tutorial on how I built it and how you can run it yourself. The complete code is available on <a href="https://github.com/eriktaylor/ai-agent-moat">GitHub</a>.</p><p><strong>Recent update:</strong> The application is deployed and publicly available on <strong>Streamlit Community Cloud</strong> with <strong>DuckDuckGo-search</strong> for initial research. This will generates a different result than the method below. <a href="https://ai-agent-moat.streamlit.app/">Click here to try the Live Application on Streamlit</a> (it may take a moment to initialize).</p><h3>The Architecture: How the Agent Works</h3><p>While open-ended chatbots are designed for broad conversation, an AI agent like this one operates under a more controlled protocol. It’s not a conversationalist; it’s a specialist designed to execute a specific, multi-step task: gathering diverse financial intelligence and synthesizing it into a structured analysis. The architecture has two core components:</p><h4>A Multi-Persona Framework</h4><p>The agent doesn’t give a single, monolithic opinion. Instead, it analyzes data from the perspective of two different investor types. Initially, this included a short-term <strong>Market Investor</strong> and a long-term <strong>Value Investor</strong>. The latest version enhances this with a <strong>Devil’s Advocate</strong> persona, to stress-test the investment thesis and identify key risks, while a final consensus agent<strong> </strong>acts as a <strong>Lead Analyst</strong>,<strong> </strong>synthesizing the different outputs into a single, actionable rating. This provides a more nuanced view by forcing the agent to weigh market sentiment, fundamental value, and potential risks.</p><h4>A Dynamic RAG Pipeline</h4><p>The knowledge of a Large Language Model (LLM) is frozen in time, making it useless for analyzing today’s market. To solve this, the agent’s knowledge base is built on-the-fly using Retrieval-Augmented Generation (RAG). Here’s the RAG process in action:</p><ul><li><strong>Retrieve: </strong>The agent uses tools including Google Search and Yahoo Finance APIs to fetch the latest news, financial data, and reports.</li><li><strong>Augment:</strong> This fresh information is compiled into a temporary, in-memory knowledge base using an embedding model and vector store (FAISS). A crucial new feature is the integration of <strong>RAG source citations</strong>, which includes publication dates where available. This makes the agent’s analysis fully auditable.</li><li><strong>Generate: </strong>The LLM is then instructed to base its analysis on this freshly provided context, ensuring the output is grounded in real-time, verifiable facts.</li></ul><h3>Key Feature: A Multi-Tiered Search Strategy</h3><p>A key innovation in this agent is how it gathers data. Instead of a single, broad search, it employs a multi-tiered strategy to collect a more diverse and balanced dataset. This includes:</p><ol><li><strong>Official News &amp; Analysis:</strong> It starts by searching for recent, official news to get the mainstream narrative.</li><li><strong>Critical Reports &amp; Concerns:</strong> It then specifically looks for negative press, searching for terms like “issues,” “concerns,” “investigation,” or “short interest” to uncover potential risks.</li><li><strong>Retail Investor Sentiment:</strong> Crucially, the agent dives into forums like Reddit and Seeking Alpha to gauge the opinions of retail investors, which often diverge from professional analysis.</li><li><strong>Deep Dive: </strong>Finally, it searches for in-depth reports and press releases, often scraping PDF documents for a more detailed look.</li></ol><h3>The Technology Stack</h3><ul><li><strong>Agent Framework: </strong>LangChain is used to orchestrate the prompts, model, and tools.</li><li><strong>Embedding Model: </strong>all-MiniLM-L6-v2 from Hugging Face converts text into numerical vectors.</li><li><strong>Vector Store: </strong>FAISS (Facebook AI Similarity Search) creates the in-memory RAG index.</li><li><strong>Data &amp; Tools: </strong>Google Custom Search API, Yahoo Finance API (yfinance), PDF Parsing (PyMuPDF)</li><li><strong>LLM: </strong>Google Gemini 2.5 Flash provides the final analysis.</li></ul><h3>How to Run the Agent</h3><p>The entire agent is packaged in a Google Colab notebook, making it easy for anyone to run.</p><ol><li>Have a company name and stock ticker symbol (e.g. <strong>Nvidia</strong> and <strong>NVDA</strong>).</li><li><strong>Open in Google Colab:</strong> Click the link in the GitHub repository or open the <a href="https://colab.research.google.com/github/eriktaylor/ai-agent-moat/blob/main/app.ipynb">application </a>directly in Colab.</li><li><strong>Set Up API Keys: </strong>To use the agent’s search tools, you’ll need two free API keys from Google: a GOOGLE_API_KEY (from Google AI Studio) and a GOOGLE_CSE_ID (a Custom Search Engine ID). The application provides clear instructions on how to get these.</li><li><strong>Run the Notebook: </strong>Execute the cells in the notebook. The first cell will install all necessary dependencies. The final cell will prompt you to enter a company name and stock ticker to begin the analysis.</li></ol><h3>Example Analysis:</h3><p>For brevity, I’ve included the high-level summary generated by the “Lead Analyst” persona after synthesizing the reports from the other three agents. The lead agent’s output for NVIDIA (NVDA) is shown using the Google Colab demo:</p><blockquote>As the Lead Analyst, I have synthesized the diverse perspectives presented by the Market Investor, Value Investor, and Devil’s Advocate to arrive at a consolidated investment rating. 1. **Consensus Rating:** Neutral with Caution 2. **Summary Justification:** While the Market Investor’s outlook highlights positive momentum, strong sector tailwinds, and a compelling growth narrative, the Value Investor’s analysis indicates that current valuations offer limited margin of safety, suggesting the asset is fairly priced rather than deeply undervalued. Crucially, the Devil’s Advocate’s critique effectively underscores significant macroeconomic headwinds, potential regulatory risks, and execution challenges that could materially impact future performance. The confluence of a market-driven optimism, a lack of compelling intrinsic value, and elevated, well-articulated risks necessitates a cautious stance. Therefore, a “Neutral with Caution” rating is warranted, acknowledging potential upside but prioritizing risk mitigation and the absence of a clear, compelling entry point.</blockquote><h3>Conclusion</h3><p>By automating the initial, data-intensive phase of company stock research, this tool allows you to focus time on what truly matters: high-level strategy and decision-making. This project demonstrates how modern AI agents can be built to serve as powerful, specialized assistants for complex domains.</p><h3><strong>Cover art</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UVLB4Qy7qbJeC0Vq2bSlZA.png" /><figcaption>Visualizing the agent’s process: sifting through layers of real-time market data to uncover a central, insightful analysis.</figcaption></figure><p><strong>For more of my writing, follow me and </strong><a href="https://eriktaylor.github.io/"><strong>click here</strong></a><strong>.</strong></p><p>Please clap if you enjoyed the article. -Erik</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6d4e667546a4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/digital-mind/building-a-multi-tool-rag-agent-for-financial-analysis-6d4e667546a4">Building a Multi-Tool RAG Agent for Financial Analysis</a> was originally published in <a href="https://medium.com/digital-mind">Digital Mind</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Quantifying Memorization in LLMs: Implications for Creativity and Algorithmic Thought]]></title>
            <link>https://medium.com/digital-mind/quantifying-memorization-in-llms-implications-for-creativity-and-algorithmic-thought-0e553cd73581?source=rss-b61a3b6a5d25------2</link>
            <guid isPermaLink="false">https://medium.com/p/0e553cd73581</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[science]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Erik Taylor]]></dc:creator>
            <pubDate>Sun, 13 Jul 2025 16:49:54 GMT</pubDate>
            <atom:updated>2025-07-15T15:16:48.854Z</atom:updated>
            <content:encoded><![CDATA[<p>A fundamental concept with recent AI models is memorization. How much do Large Language Models (LLMs) memorize versus how much is truly understood? The answer has profound implications for everything from model accuracy, algorithmic reasoning, creativity, copyright law, and even philosophical questions. A recent study by <a href="https://arxiv.org/abs/2505.24832">Morris et al. (2025)</a> has sent ripples through this field by precisely quantifying the memory capacity in LLMs.</p><p><strong>This article delves into this critical issue, exploring what memorization means for generative AI models, how it’s measured, and how it shapes the capabilities and limitations of modern LLMs.</strong></p><h3><strong>Contrasting Memorization and Generalization</strong></h3><p>At its core, deep learning involves a trade-off between two modes of learning:</p><ul><li><strong>Memorization </strong>is the encoding of specific training examples into the model’s parameters. While essential for learning facts (e.g., “Paris is the capital of France”), it can become a problem when not intended.</li><li><strong>Generalization</strong>, on the other hand, is the ultimate goal. It’s a model’s ability to perform accurately on new, unseen data by learning the abstract patterns and rules from its training set.</li></ul><p>Unintended memorization, in more detail, is where a model stores and can reproduce specific, non-generalizable details from training data. This becomes particularly problematic with details such as personally identifiable information or copyrighted text. An over-reliance on this type of learning leads to overfitting, where the model excels on data it has seen, but fails on new data. When an LLM answers a question correctly, has it generalized a concept, or merely memorized a specific question-answer pair from its training data? This uncertainty complicates the creation of models that are both knowledgeable and safe.</p><h3><strong>Quantifying Capacity, Grokking, and Generalization</strong></h3><p>The 2025 study by Morris et al. devised a method to isolate and measure pure memorization. By training models on uniform random data, the researchers could completely eliminate generalization. Given a uniform random dataset, there are no patterns to learn, so any ability to predict the data better than chance must be the result of memorization. A model is then considered to have memorized an input if it can compress that input to a shorter encoding than would be possible otherwise. This is estimated using the model’s likelihood scores, which serve as a proxy for the data’s Kolmogorov complexity — the length of the shortest possible computer program or description needed to reproduce a piece of data.</p><p>A truly random string is incompressible, as its shortest description is the string itself. The probability an optimal model M assigns to a string x, P(x), is related to its Kolmogorov complexity K(x) by the formula K(x) ≈ -log₂(P(x)). A higher likelihood (probability) assigned by the model implies a lower Kolmogorov complexity, i.e., the model has found a short, compressed representation for the random uniform data. In other words, the model has memorized the sequence.</p><p>The landmark result in this study from training hundreds of GPT-style models was a finite and consistent memorization capacity in bits per parameter (bpp). This figure varies slightly with numerical precision, averaging ~3.6 bpp overall, with specific experiments showing 3.83 bpp for 32-bit precision (fp32) and 3.51 bpp for 16-bit precision (bf16).</p><p>This has a profound implication: if raw memorization only uses a fraction of the available bits, the remainder must be providing critical functions. Crucially, this suggests the extra bits are used to represent the complex relationships between concepts that enable generalization. This insight is reinforced by the finding that doubling numerical precision only slightly increases memory capacity. Presumably the same would occur with aggressive model quantization, i.e., reducing numerical precision to 4-bit or below. Then, naive quantization should greatly degrade performance, while more advanced techniques like <a href="https://arxiv.org/abs/2305.14314">QLoRA</a> (Quantized Low-Rank Adaptation) can alleviate this by leaving small, high-precision “adapters” intact.</p><p>Importantly, the study by Morris et al., also observed a phase transition in learning called “grokking” using text-based data. Models first take the path of least resistance: memorizing data. Once this finite capacity (~3.6 bpp) is full, the models are forced to adopt the more computationally expensive but efficient strategy of generalization, learning reusable patterns to continue improving. This dynamic behavior shows the critical transition from a memorization-based strategy to a generalization-based one as data increases, is illustrated in <strong>Figure 1</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*JeLgd_HsE3MXTxT8" /><figcaption>Figure 1: The Onset of Grokking: From Memorization to Generalization. This graph illustrates the critical trade-off between memorization and generalization in LLMs as the amount of text-based training data increases. Following the dashed <strong>Test Set</strong> lines, we see that as the dataset grows, the model’s performance on unseen data initially gets worse. This creates an “overfitting peak,” which occurs when the dataset is just large enough to saturate the model’s capacity for <strong>memorization</strong>. At this point, the model has stored the training examples but has not learned their underlying rules, so it fails to generalize. However, once the dataset size exceeds the model’s memorization capacity, a phase transition known as <strong>“grokking”</strong> occurs. The model is forced to find a more efficient strategy, and it begins to learn the abstract, generalizable patterns in the data. This results in a sharp, sudden improvement in test performance. Each color represents a different model size. Larger models (e.g., 19.2M) have a higher capacity for memorization, which pushes their overfitting peak further to the right. The LLM can “get away with” memorizing more before being forced to grok the data. Disclaimer: This figure is a conceptual simulation, generated via a Python script, designed to visually replicate the core findings presented in Figure 4 of Morris et al. (2025). It illustrates the general behavior of the loss curves rather than plotting the exact data from the original research.</figcaption></figure><h3><strong>Detecting Memorized Content in Practice</strong></h3><p>While the bpp metric defines theoretical capacity, other techniques detect actual instances of memorization. The most common is prefix-based extraction, where a model is prompted with a prefix of a known training sequence. If the model completes the sequence verbatim with high probability, the content is considered memorized. This simple method is the foundation of many copyright lawsuits. For a plaintiff, proving a model was trained on their work is difficult. However, demonstrating that the model can reproduce their work is often straightforward, shifting the legal burden from the opaque training process to the model’s observable output behavior.</p><h3><strong>The Creative Paradox</strong></h3><p>Memorization forces a re-evaluation of what we consider “creative” in AI. Is a model-generated song a new creation or a sophisticated recombination of familiar patterns? The evidence often points to the latter. For instance, a <a href="https://arxiv.org/html/2506.23527v1">study on LLM-generated recipes</a> found that models consistently reuse ingredients and steps traceable to online sources, with analysis showing that up to 100% of a “new” recipe’s components could be found by combining existing documents. This suggests a strong reliance on memorized content rather than genuine invention.</p><p>This mirrors human creativity to an extent, which is also deeply rooted in memorization and practice. A musician drills scales to improvise and a writer reads extensively to develop a unique voice. This parallel, however, raises a fascinating and counterintuitive question: If pure memorization isn’t creative, could the model’s errors, specifically “hallucinations,” be a source of novelty? Whereas memorization constrains a model to its training data, hallucinations, by definition, are deviations from it. The perception of “creativity” ultimately depends on whether this randomness produces a valuable outcome, a determination that is highly dependent on the logical and statistical constraints of the specific domain.</p><h3><strong>Probing the Limits of Logic: A Case Study in Algorithmic Brittleness</strong></h3><p>While LLMs excel at fluid language, their grasp of formal logic is far more brittle. This concept has been explored in a series of influential papers from Apple, which, along with the subsequent scientific debate, provides a powerful case study on the challenge of distinguishing sophisticated pattern matching from genuine reasoning.</p><p>The first paper introduced a benchmark called <a href="https://arxiv.org/abs/2410.05229">GSM-Symbolic</a> to test mathematical word problems in a more controlled way. The researchers found that models that could correctly solve a problem often failed when only the numbers were changed. Moreover, adding a single, plausible-sounding but irrelevant clause caused performance to plummet by up to 65%.</p><p>The researchers concluded that this fragility suggests models are not performing “genuine logical reasoning” but are instead replicating memorized reasoning steps from their training data. This points directly to a reliance on pattern matching over abstract understanding.</p><p>A subsequent, more provocative paper titled <a href="https://arxiv.org/abs/2506.06941">The Illusion of Thinking</a> extended this inquiry to algorithmic puzzles like the Tower of Hanoi. The researchers reported that as puzzles became more complex, models would effectively “give up” and that even when given the correct algorithm, they were often unable to follow it. This led to the conclusion that the models’ reasoning capabilities have clear scaling limitations.</p><p>However, the paper’s findings, particularly regarding the “accuracy collapse,” were quickly and effectively challenged. A formal comment paper from researchers at <a href="https://arxiv.org/html/2506.09250v1">Anthropic</a> argued that the results were not a fundamental reasoning failure but an artifact of experimental design limitations. They demonstrated that the required solutions for the more complex puzzles systematically exceeded the models’ maximum output token limits, causing them to simply stop generating text. This truncation was then misinterpreted as a cognitive failure to solve the problem.</p><h3>The Paradox: Why LLMs Generalize Text but Memorize Formal Logic</h3><p>The evidence reveals a central paradox in the capabilities of modern LLMs: remarkable fluency and generalization in open-ended language tasks, yet brittle, memorization-based behavior when confronted with tasks requiring formal logic. A useful framework for understanding this is to consider the difference between the statistical density of natural language and the logical sparsity of formal reasoning, as visualized in <strong>Figure 2.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*GJ5JzwRrqM4L_g9u" /><figcaption><strong>Figure 2: The “Statistical Density vs. Logical Sparsity” Framework. </strong>This diagram offers a visual explanation for the central paradox of LLM performance: why they can fluently generalize on language tasks but often resort to brittle memorization for formal reasoning. <strong>(Left Panel) Statistical Density:</strong> This panel represents the world of <strong>Natural Language</strong> within the model’s training data. It is a dense, highly interconnected network of overlapping statistical patterns. The smooth green arrow shows that the model can easily navigate this rich landscape, interpolating between countless examples to find novel paths. This successful navigation is what we perceive as <strong>generalization</strong>. <strong>(Right Panel) Logical Sparsity:</strong> This panel represents the <strong>Formal Logic</strong> and algorithms. The data points are sparse, isolated, and lack the statistical connectivity seen in language. Without a clear path to follow, the model cannot derive underlying rules. Its only recourse is to store the location of these few points directly, a rigid and non-generalizable strategy represented by <strong>memorization</strong>. This explains why performance collapses when faced with novel problems that don’t match a stored pattern.</figcaption></figure><p>Natural language, as captured in massive web-scale training sets, is statistically dense. It is filled with immense redundancy and overlapping patterns, allowing a model to interpolate the statistical essence of billions of examples and generate novel-sounding text through sophisticated pattern matching.</p><p>Conversely, the data representing formal logic, e.g., mathematical proofs, word problems, and algorithms, is logically sparse within these vast text corpora. The underlying rules are abstract and appear in far fewer variations. A model sees 2+2=4 and 137+256=393 as statistically different sequences of tokens, even though they follow the same logical rule. When faced with a logically sparse problem, the model has too few examples to generalize the abstract rule. Instead, it defaults to its more primitive strategy: memorizing the surface pattern of the few examples it has seen.</p><p>This explains why even advanced prompting techniques like Chain-of-Thought (CoT), which attempt to manage complexity by breaking problems into smaller steps, often fall short. CoT is still a probabilistic, pattern-matching process applied sequentially. If the domain is logically sparse, the individual steps in the chain are also likely to be unfamiliar patterns, causing the reasoning to fail.</p><p>This suggests that for domains requiring robust logical or mathematical reasoning, merely scaling up current architectures or refining prompting techniques may be insufficient, or at least highly sub-optimal. Instead, achieving generalization in sparse domains might require a fundamental shift in model architecture.</p><h3><strong>References</strong></h3><p>Dettmers, T., Pagnoni, A., Holtzman, A., &amp; Zettlemoyer, L. (2023). <em>QLoRA: Efficient Finetuning of Quantized LLMs</em>. arXiv preprint arXiv:2305.14314. <a href="https://arxiv.org/abs/2305.14314">https://arxiv.org/abs/2305.14314</a></p><p>Kvapil, J., &amp; Fajcik, M. (2025). <em>On Recipe Memorization and Creativity in Large Language Models: Is Your Model a Creative Cook, a Bad Cook, or Merely a Plagiator?</em> arXiv preprint arXiv:2506.23527. <a href="https://arxiv.org/abs/2506.23527">https://arxiv.org/abs/2506.23527</a></p><p>Lawsen, A. (2025). <em>The Illusion of the Illusion of Thinking: A Comment on Shojaee et al. (2025)</em>. arXiv preprint arXiv:2506.09250. <a href="https://arxiv.org/abs/2506.09250">https://arxiv.org/abs/2506.09250</a></p><p>Mirzadeh, I., Alizadeh, K., Shahrokhi, H., Tuzel, O., Bengio, S., &amp; Farajtabar, M. (2024). <em>GSM-Symbolic: Understanding the Limitations of Mathematical Reasoning in Large Language Models</em>. arXiv preprint arXiv:2410.05229. <a href="https://arxiv.org/abs/2410.05229">https://arxiv.org/abs/2410.05229</a></p><p>Morris, J., et al. (2025). <em>How much do language models memorize?</em> arXiv preprint arXiv:2505.24832. <a href="https://arxiv.org/abs/2505.24832">https://arxiv.org/abs/2505.24832</a></p><p>Shojaee, P., Mirzadeh, I., Alizadeh, K., Horton, M., Bengio, S., &amp; Farajtabar, M. (2025). <em>The Illusion of Thinking: Understanding the Strengths and Limitations of Reasoning Models via the Lens of Problem Complexity</em>. arXiv preprint arXiv:2506.06941. <a href="https://arxiv.org/abs/2506.06941">https://arxiv.org/abs/2506.06941</a></p><p><strong>For more of my writing, follow me and </strong><a href="https://eriktaylor.github.io/"><strong>click here</strong></a><strong>.</strong></p><p>Please clap if you enjoyed the article. -Erik</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0e553cd73581" width="1" height="1" alt=""><hr><p><a href="https://medium.com/digital-mind/quantifying-memorization-in-llms-implications-for-creativity-and-algorithmic-thought-0e553cd73581">Quantifying Memorization in LLMs: Implications for Creativity and Algorithmic Thought</a> was originally published in <a href="https://medium.com/digital-mind">Digital Mind</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The U.S. Rare Earth Challenge: Rebuilding a Domestic Supply Chain]]></title>
            <link>https://medium.com/digital-mind/the-u-s-rare-earth-challenge-rebuilding-a-critical-domestic-supply-chain-1dafb2374709?source=rss-b61a3b6a5d25------2</link>
            <guid isPermaLink="false">https://medium.com/p/1dafb2374709</guid>
            <category><![CDATA[mining]]></category>
            <category><![CDATA[science]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Erik Taylor]]></dc:creator>
            <pubDate>Sun, 27 Apr 2025 20:55:07 GMT</pubDate>
            <atom:updated>2025-04-30T23:07:12.535Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>The U.S. Rare Earth Challenge: Rebuilding a Domestic Supply Chain</strong></p><p>The conversation around rare earth elements often seems steeped in doom and gloom, especially as geopolitical tensions push this niche market into the spotlight. But how truly vital are these minerals, how rare are they, and where do they actually come from?</p><p>Rare earth elements (REEs) are a group of 17 chemically similar metals indispensable to modern technology. They underpin high-growth industries such as renewable energy (wind turbines), electric mobility (EV motors), advanced electronics (semiconductors, displays), AI infrastructure (data centers and advanced computing), and national defense (missile guidance, radar, jet engines). Their designation as &quot;critical minerals&quot; by the U.S. government highlights not only their economic and national security importance but also the significant vulnerabilities in their supply chains.</p><p>Given their critical role, why doesn&#39;t the United States simply produce all the REEs it needs? The reality is complex.</p><p>In brief, rare earth minerals are embedded in the devices and cars we use daily. Moreover, the US is a major global source of mined rare earth oxide (REO) concentrate, derived primarily from MP Materials&#39; (NYSE: MP) Mountain Pass mine in California. This mine alone accounted ~10% of global primary REO supply in 2024. Yet, a crucial gap remains. Although the minerals can be mined domestically, the vital processing stage largely happens elsewhere.</p><p>China stands as the dominant source of rare earth metals. China mines ~70% and refines ~85% of the world’s rare earths. For certain heavy rare earths crucial for high-performance magnets, China’s processing control approaches 100%.</p><p>Historically, the primary bottleneck for a complete U.S. domestic supply chain hasn’t been a lack of geological resources, but rather the economic feasibility and environmental considerations. Processing rare earths can involve harsh chemicals and energy-intensive methods, generating significant waste. Thus, it has been difficult for U.S. operations to compete with the scale and historically lower costs achieved by Chinese producers.</p><p>Given the recent US national focus on the critical importance of a domestic REE supply, such efforts are now underway. For example, by MP Materials to build out domestic refining and innovative companies like ReElement Technologies (a subsidiary of American Resources Corp., NASDAQ: AREC) using advanced chromatography.</p><p>REE recycling has also emerged as a vital strategy to address these challenges. Recovering valuable elements from discarded products and e-waste offers a path toward a more sustainable and secure domestic supply chain. Currently, less than 1% of rare earths in e-waste are recycled in the US, primarily due to the difficulty of extraction and the low concentration of rare earths in many products. Despite these hurdles, researchers and companies are actively developing innovative methods – including advanced automation like Apple&#39;s robotic disassembly lines to dismantle iPhones and recover REEs for reuse in new devices – to improve the efficiency and economic viability of REE recycling.</p><p>Moreover, a growing number of US companies are actively developing innovative methods to improve the efficiency and economic viability of REE recycling. Noveon Magnetics in San Marcos, Texas, stands out as the only U.S. manufacturer currently producing sintered NdFeB magnets at scale, using a patented technology to incorporate 100% recycled feedstocks to create new, high-performance magnets.</p><p>ReElement Technologies is rapidly scaling its advanced LAD Chromatography developed over decades at Purdue University in Indiana. The process refines high-purity light and heavy REEs from diverse feedstocks, including recycled magnets, primary ores, and coal waste streams.</p><p>Meanwhile, Cyclic Materials, backed by significant corporate investments from Microsoft and BMW, employ a distinct two-stage process involving mechanical separation and hydrometallurgy. Their first major U.S. facility in Mesa, Arizona is under construction to process substantial volumes of end-of-life components.</p><p>Other important innovators include REEcycle Inc., focusing on recovering critical magnet elements with DoD support, Mkango Resources (TSXV/AIM: MKA), via its HyProMag USA joint venture, is commercializing hydrogen-based recycling, and Tusaar Inc. developing methods to extract REEs from mine waste. These collective efforts are vital components in building a more circular and secure domestic economy for critical materials.</p><p>Alongside recycling efforts, some major manufacturers are also exploring ways to design out rare earths altogether. Tesla, for example, has announced intentions to eliminate REEs from its next-generation electric vehicle platforms, representing a significant potential shift in material demand if successful.</p><p>Ultimately, enhancing REE recycling and processing are seen as key components of building a sustainable economy, aiming to minimize waste and resource depletion by keeping valuable materials in circulation. However, achieving true U.S. independence across the full spectrum of rare earths faces significant hurdles to meet the current demand. Therefore, sustained and significant innovation remains paramount to improve the efficiency and environmental footprint while ensuring these domestic efforts can remain economically viable against established global players.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Paa7z2xjp-GrkPMwb2T2Bw.jpeg" /><figcaption>What does the future hold for rare earth element recovery and recycling?</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1dafb2374709" width="1" height="1" alt=""><hr><p><a href="https://medium.com/digital-mind/the-u-s-rare-earth-challenge-rebuilding-a-critical-domestic-supply-chain-1dafb2374709">The U.S. Rare Earth Challenge: Rebuilding a Domestic Supply Chain</a> was originally published in <a href="https://medium.com/digital-mind">Digital Mind</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding Multi-Head Latent Attention]]></title>
            <link>https://medium.com/digital-mind/understanding-multi-head-latent-attention-36f5d954f0cf?source=rss-b61a3b6a5d25------2</link>
            <guid isPermaLink="false">https://medium.com/p/36f5d954f0cf</guid>
            <category><![CDATA[dimensionality-reduction]]></category>
            <category><![CDATA[compression]]></category>
            <category><![CDATA[transformer-model]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[large-language-models]]></category>
            <dc:creator><![CDATA[Erik Taylor]]></dc:creator>
            <pubDate>Wed, 19 Mar 2025 23:17:22 GMT</pubDate>
            <atom:updated>2025-03-20T16:18:28.845Z</atom:updated>
            <content:encoded><![CDATA[<p>The transformer architecture has become central to modern large language models (LLMs) and foundation models across various applications. <strong>Yet, the transformer faces a key limitation: the quadratic scaling of the attention mechanism</strong>, leading to substantial memory and computational demands when processing long sequences. Below, we will review why quadratic scaling occurs with transformer attention, contrast prior attention compression methods, such as those used in LLaMA 3, and then compare how DeepSeek’s multi-head latent attention (MLA) employs dimensionality reduction within LLMs.</p><p>Let us continue with the familiar formula for the transformer attention mechanism with variables Query (Q), Key (K), Value (V):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/668/1*TsuYqCqLgHZ6i9NIXw73TA.png" /><figcaption>Equation 1. The basic form of transformer attention. Q and K^⊤ are multiplied. The term (dk) in the denominator serves to scale the result of the dot product. Next, softmax is applied. The result is the dot-producted with V.</figcaption></figure><p>Quadratic scaling of the attention mechanism is problematic during inference. Although key (K) and value (V) matrices can be cached, the query (Q) matrix varies with each new token. The attention weight is calculated between every pair of tokens in the input sequence of length (L). Consequently, computing the Q*K^⊤ product requires multiplying matrices of dimensions L×dk​ and dk×L, resulting in an L×L attention matrix. This operation scales with O(L²), making it computationally intensive for long sequences.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/636/1*H-tKmFPYLtVB6QY78T8AYg.png" /><figcaption>Equation 2. Multiplying the Q and K^⊤ matrices results in an attention matrix of size L×L, where L denotes the sequence length. Thus, the memory and computational complexity scales quadratically as O(L²), rendering the process increasingly expensive for very large sequences.</figcaption></figure><h4><strong>Previous KV Cache Optimization Methods</strong></h4><p>To optimize the inference process, the computed K and V matrices from previously generated tokens are stored, a technique called Key-Value (KV) caching. Although KV caching significantly enhances inference speed by avoiding redundant computations, the memory footprint of the KV cache grows linearly with the sequence length and can become a major bottleneck, especially when dealing with very long contexts or large batch sizes.</p><p>Prior approaches to minimize the KV cache include:</p><ul><li>Multi-Query Attention (MQA) introduced by Shazeer at Google. MQA employs a single set of key and value projections shared across all attention heads. This strategy substantially reduces the memory footprint during inference. However, MQA may result in quality degradation due to limited expressiveness compared to multi-head attention.</li><li>Grouped-Query Attention (GQA) introduced by Ainslie et al. at Google Research. GPA partitions query heads into groups, each sharing a distinct set of key and value projections. Depending on the number of groups, this method offers a trade-off between KV cache memory usage and model performance.</li></ul><p>These KV cache optimizations have enabled the development of models that are both efficient and effective across various applications. For example, GQA has been employed with popular LLaMA 2 and LLaMA 3 models,<strong> </strong>highlighting practical utility in optimizing large-scale models. <strong>Yet, while MQA and GQA reduce memory usage associated with storing KV caches, these methods do not decrease the scaling of query computations.</strong></p><h4>Introducing Multi-head Latent Attention (MLA)</h4><p>Recently, Multi-Head Latent Attention (MLA) has been introduced as a novel attention mechanism. Neural networks often utilize latent spaces to represent compressed versions of high-dimensional inputs. This dimensionality reduction facilitates efficient data encoding, simplifies model complexity, and helps mitigate overfitting. Below we will cover how MLA reduces the KV cache size by compressing the high-dimensional key (K) and value (V) matrices into a lower-dimensional latent space. Moreover, the query (Q) is also subjected to compression to mitigate the quadratic scaling challenge.</p><p>MLA directly addresses memory and computational bottlenecks by compressing the K and V terms into a latent dimension:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/310/1*RUXAl6eL8mm7zwlmwwaVBQ.png" /><figcaption>Equation 3: The latent matrix C^{KV} is obtained by compressing the input X using a down-projection weight matrix W^{DKV}. Subsequently, the K and V matrices are reconstructed using up-projection weight matrices W^{UK} and W^{UV}, respectively.</figcaption></figure><p>We rewrite the standard attention formula using C^{KV}, W^{UK}, and W^{UV}:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/996/1*eBNC-p3lcbf29HROsYh9XQ.png" /><figcaption>Equation 4. Multi-head Latent Attention with K and V compression.</figcaption></figure><p>To further reduce activation memory during training, Q is also subjected to low-rank compression.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/262/1*YNIj2pGDqfBLKuH1e4-QIw.png" /><figcaption>Equation 5. The latent matrix C^Q is the result of compressing the input X using a down-projection weight matrix W^{DQ}. The Q attention matrix is rewritten using the up-projection weight matrix W^{UX}.</figcaption></figure><p>We rewrite Equation 4 in terms of C^Q and W^{UX}.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bg1vvdAeX78mgXaO68c7mg.png" /><figcaption>Equation 6. The attention formula with compression applied to Q, K, and V.</figcaption></figure><p>In summary, the compression of K and V allows for the caching of the latent matrix C^{KV} during inference, reducing memory usage and computational load. Additionally, the weight matrices W^{UQ}, W^{UK}, and W^{UV} are learned parameters that facilitate the projection between the original and latent spaces. Their fixed nature means they can be efficiently utilized during inference without the need for additional computation, thereby streamlining the attention process.</p><h4><strong>Attention Reduction Factor with MLA</strong></h4><p>Quoted from the DeepSeek-V2 and V3 papers: <em>In MLA, we set the number of attention heads </em>nₕ<em> to 128 and the per-head dimension </em>dₕ<em> to 128. The KV compression dimension </em>d꜀<em> is set to 512, and the query compression dimension </em>d′꜀<em> is set to 1536. For the decoupled queries and key, we set the per-head dimension </em>dᵣₕ<em> to 64.</em></p><p>Now, we will compare each mechanism using these quoted numbers. For the original attention mechanism, considering nₕ is number of attention heads and dₕ is the per-head dimension, then multi-head attention scaling occurs with O(L² × nₕ × dₕ). With nₕ = 128 and dₕ = 128 and considering the original multi-head attention mechanism, this results in O(L² × 16,384).</p><p>In MLA, the attention mechanism is now performed as per steps below:</p><p>• Compression reduces the original high-dimensional representations into lower-dimensional spaces. For example, K and V are compressed to d꜀ and Q to d′꜀.</p><p>• After the initial compression, the representations used for computing the attention weights are transformed into a separate, lower-dimensional space of dimension dᵣₕ. In other words, the Q and K pathways are decoupled and the attention calculation does not retain the larger intermediate dimensions (d꜀ or d′꜀).</p><p>• Because the Q × Kᵀ multiplication instead operates on these decoupled representations, its computational cost scales with dᵣₕ as O(L² × nₕ × dᵣₕ). As per the DeepSeek paper, nₕ = 128 and dᵣₕ = 64, resulting in O(L² × 8,192) for MLA.</p><p>We can now compute a reduction factor as O(L² × nₕ × dₕ)/O(L² × nₕ × dᵣₕ) = dₕ/dᵣₕ = 2.</p><p>Consequently, the computational complexity of the attention dot product is halved. It’s important to note that this reduction pertains primarily to the dominant quadratic term in the attention computation.</p><h4>KV Cache Compression Comparisons</h4><p>DeepSeek also demonstrated MLA’s advantage in achieving a substantial reduction in KV cache memory with minimal impact on performance. We can calculate the compression ratio as (𝑛ℎ*<em>𝑑ℎ)/𝑑𝑐 = </em>(128*128)/512 = 32. The cache is compressed to 1/32nd of the original size, with 1/32 = 0.03125. The theoretical reduction is 1 − 0.03125 ≈ 96.875%.</p><p>Empirical results from the DeepSeek-V2 implementation indicate a 93.3% reduction in the KV cache. This discrepancy from the theoretical reduction may be attributed to practical considerations during implementation.</p><p>As mentioned above, the prior state-of-the-art approach to KV cache compression was GQA. To provide context, DeepSeek-V2 has 236B parameters, DeepSeek-V3 has 671B parameters, and both feature 128 attention heads. Thus, LLaMA 3 with 405 billion parameters and 128 attention heads offers a decent comparison. The number of query groups in LLaMA 3 is 8, thus the compression ratio is 128/8 = 16. With GQA in LLaMA 3, the cache is compressed to 1/16th of the original size, with 1/16 = 0.0625. The theoretical reduction is 1 − 0.0625 ≈ 93.75%.</p><h4>Additional DeepSeek Model Refinements</h4><p>The overall MLA approach substantially reduces memory usage and computational complexity while maintaining or even enhancing model performance. Moreover, the DeepSeek team introduced further model refinements with each subsequent version:</p><ul><li><strong>DeepSeek-V2:</strong> Incorporated Mixture-of-Experts (MoE) techniques, activating only a portion of the larger model at any given time. The authors reported training costs reduced by 42.5% and a 5.76× increase in maximum generation throughput compared to dense DeepSeek 67B.</li><li><strong>DeepSeek-V3:</strong> Implemented decoupled Rotary Positional Encodings (RoPE) to operate effectively within latent spaces, ensuring positional information is accurately retained in compressed representations. Additionally, V3 introduced multi-token prediction, enabling the decoding of multiple tokens simultaneously to improve inference speed.​</li><li><strong>DeepSeek-R1:</strong> Introduced Reinforcement Learning (RL) optimizations, such as Group Relative Policy Optimization (GRPO), to prioritize critical tokens.​</li></ul><h4>Applications and Future Directions</h4><p>The principles of MLA extend beyond natural language processing, offering potential benefits in multiple fields:​</p><ul><li><strong>Computer Vision:</strong> MLA could be used to optimize models handling high-resolution images or videos by compressing KV caches, reducing memory usage, and enabling more efficient processing of visual data. ​</li><li><strong>Time Series Forecasting:</strong> By compressing temporal information, MLA supports extended forecasting horizons, allowing models to efficiently process long sequences of time-dependent data. ​</li><li><strong>Recommendation Systems:</strong> In recommender models, MLA can manage extensive user histories more efficiently, enabling the handling of large-scale data with reduced computational overhead. ​</li></ul><p>In summary, MLA provides a principled approach to balancing expressive power with computational and memory efficiency, opening new pathways for transformer-based architectures across numerous domains.</p><h4>References</h4><ul><li>“DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Model”, DeepSeek-AI et al., 2024.</li><li>“DeepSeek-V3 Technical Report”, DeepSeek-AI, 2025.</li><li>“GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpoints”, Ainslie et al., 2023.</li><li>“Fast Transformer Decoding: One Write-Head is All You Need”, Shazeer, 2019.</li></ul><h4>Cover Art</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Khug96-u-o_IltjxG2KiPw.jpeg" /><figcaption>Cover created on <a href="https://labs.google/fx/">https://labs.google/fx/</a></figcaption></figure><p><strong>For more of my writing, follow me and </strong><a href="https://eriktaylor.github.io/"><strong>click here</strong></a><strong>.</strong></p><p>Please clap if you enjoyed the article. -Erik</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=36f5d954f0cf" width="1" height="1" alt=""><hr><p><a href="https://medium.com/digital-mind/understanding-multi-head-latent-attention-36f5d954f0cf">Understanding Multi-Head Latent Attention</a> was originally published in <a href="https://medium.com/digital-mind">Digital Mind</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>