vlog
← 返回全部文章

Tech

The chatbot that develops its sentences like a Polaroid

June 15, 2026 · Wu Jun, The Beauty of Mathematics~5 min read

Everyone assumes a chatbot types the way you do — one word, then the next, never looking back. DiffusionGemma, the model Google dropped on June 10, breaks that habit completely. It doesn't write a sentence so much as develop it, the way a Polaroid surfaces out of a gray blur. And the strangest part is that this radically different machine is reading language with the exact same math your old chatbot used.

The trick that made machines fluent

To understand why this matters, rewind sixty years. For decades, the dream of teaching a computer language meant teaching it grammar: parse the sentence, diagram the clauses, check the rules. It barely worked. The breakthrough came when researchers stopped asking is this sentence grammatically correct? and started asking how likely is this sentence to appear in real human writing? Wu Jun, in The Beauty of Mathematics, calls this the golden thread of the whole field: you turn a judgment problem into a probability problem. The machine doesn't need to understand language. It only needs to know which arrangement of words sounds more likely than the others.

A landscape made of probability

Picture language as a landscape — a vast terrain where fluent, natural sentences sit in deep valleys and gibberish piles up on barren peaks. Every model we've built, from your phone's autocomplete to the largest chatbot, is just a way of reading the shape of that terrain. They all agree on the map. What they disagree on is how to walk it.

An autoregressive model — the standard approach behind almost every chatbot today — walks the landscape one careful footstep at a time. It picks the most likely first word, then the most likely second word given the first, and so on, left to right, never able to revise a step once taken. DiffusionGemma walks differently. It drops the entire 256-word block in as a canvas of random noise, then runs several denoising passes over the whole thing at once. The words it's most confident about lock in first, and those confident anchors pull their neighbors into place — until the sentence, all at once, snaps into focus. As the figure below shows, both are reading the same probability map; they just take opposite paths across it.

TWO WAYS A MACHINE WRITES A SENTENCEAutoregressive(left toOne token ata timeEach waitsfor the lastProbabilityof next wordSlow butsteadyDiffusion(whole block256 tokenslaid outRefined overpassesSure wordspull~4x faster,quality dipsBoth read theshape of
Google's DiffusionGemma (June 2026, 26B MoE) replaces left-to-right generation with discrete diffusion: it lays a 256-token block onto a canvas of random placeholders and denoises it over several passes, hitting 1000+ tokens/sec on an H100. Wu Jun's point in The Beauty of Mathematics still holds — a language model turns 'is this a real sentence?' from a grammar question into a probability one.

Why a photograph, not a typewriter

Here's the metaphor worth keeping. Autoregressive generation is a typewriter: each key-strike is committed forever the instant you hit it, and the sentence exists only after the last letter lands. Diffusion is a Polaroid: shake it and the whole image rises out of the haze at once, faces and sky and shadow resolving together. Call it the developing-photo model of writing. The machine isn't choosing word number one, then word number forty — it's letting the high-probability words crystallize the low-probability ones around them, the way a few sharp pixels tell you where the rest of the face must be.

And the payoff is speed. Because the whole block resolves in parallel, DiffusionGemma hits over 1,000 tokens per second on a single NVIDIA H100, and more than 700 on a consumer RTX 5090 — up to roughly four times faster than comparable left-to-right generation. For a 26-billion-parameter Mixture-of-Experts model that only activates 4 billion at a time, that is a startling number.

But isn't faster always worse? Here's the catch

You're right to be suspicious — and Google is unusually honest about it. DiffusionGemma's output quality is somewhat lower than standard Gemma 4. It trades a little polish for a lot of speed. Sounds like a dealbreaker? I thought so too, until I remembered Wu Jun's four laws of a good model. The best algorithms, he argues, are like an AK-47: simple, robust, and good enough — not the finely patched contraption that squeezes out the last drop of accuracy. A correct model that's simple in form will sometimes lose, at first, to a complicated wrong one. The question is never "which is more perfect?" It's "which tradeoff fits the job?"

What this actually changes for you

So when does this matter to a normal person? Any time the work is high-volume and tolerant of small imperfections: drafting, summarizing, autocompleting code, generating the first version of something you'll edit anyway. Four-times-faster means four-times-cheaper to run and far snappier to feel — answers that arrive before you finish reading the question. When you need a careful legal clause or a flawless final paragraph, you'll still reach for the slower, more polished model. That's not a flaw in diffusion; it's the menu finally having two dishes instead of one. Developers are already debating which to deploy where — and "where" is exactly the right question.

Same math, different path through it

Autoregressive and diffusion are two ways to walk the same probability landscape — one footstep at a time, or the whole terrain snapping into focus at once.

Framework drawn from Wu Jun (吴军), The Beauty of Mathematics — its golden thread that a statistical language model turns a grammar judgment into a probability question, and its "four laws of a good model" (a correct model is simple in form). DiffusionGemma facts — 26B-parameter MoE with 4B active on the Gemma 4 architecture, discrete text diffusion over 256-token blocks, 1,000+ tokens/sec on an H100 and ~4x faster than comparable autoregressive generation, with somewhat lower quality — from Google's June 2026 release and developer coverage.

技术

会「冲洗」句子的聊天机器人:DiffusionGemma 与机器写字的另一条路

2026 年 6 月 15 日 · 吴军《数学之美》约 4 分钟

几乎所有人都以为,聊天机器人和你一样,是一个字一个字往下打、打出去就不回头的。6 月 10 日 Google 放出的 DiffusionGemma,把这个习惯彻底打破了。它不是在"写"一句话,而是在"冲洗"一句话——像一张拍立得从灰雾里慢慢浮出全貌。最奇妙的是:这台机理完全不同的机器,读懂语言用的,竟是你那台老聊天机器人一模一样的数学。

让机器变流利的那一招

要明白这有多反常,得把时钟拨回六十年。几十年里,教计算机懂语言的主流思路是教它语法:拆句子、分主谓、对规则。几乎没成功过。真正的突破,是研究者不再问"这句话语法对不对",而改问"这句话出现在真实人类文本里的概率有多大"。吴军在《数学之美》里把这叫作整个领域的金线:把一个判断问题,换成一个概率问题。机器根本不需要"懂"语言,它只需要知道——哪种说法,听起来更顺。

一片由概率铺成的地形

把语言想象成一片地形:流利自然的句子沉在深谷里,胡言乱语堆在荒峰上。从你手机的输入联想,到最大的聊天机器人,我们造的每一个模型,都不过是读这片地形的方法。它们对这张地图毫无异议,分歧只在于——怎么走。

自回归模型(今天几乎所有聊天机器人的标准做法)一步一个脚印地走:先挑最可能的第一个词,再在第一个词的前提下挑最可能的第二个,从左到右,一步落下就再不能改。DiffusionGemma 走法完全不同。它把整整一块 256 个词,作为一张全是随机噪声的"画布"一次性丢进去,再对整块反复做几遍"去噪"。它最有把握的词最先定下来,这些笃定的"锚点"再把邻座的词一并拽到位——直到整句话"咔"地一下同时对上焦。如下图所示:两者读的是同一张概率地图,只是从相反的方向穿过它。

机器写一句话的两种方式自回归:从左往右一个字一个字写后字要等前字算下一字的概率慢,但稳扩散:整段一起显影256字一次铺开反复去噪精修高信度带动邻字快约4倍,质量略降两者都在用数学读语言的形状
谷歌 DiffusionGemma(2026 年 6 月,26B MoE)把从左往右的生成换成离散扩散:先把 256 字的块铺到一片随机占位符的画布上,再用几轮去噪让它「显影」,在 H100 上达每秒 1000+ token。吴军《数学之美》的判断仍然成立——语言模型把「这是不是一句人话」从语法题,变成了概率题。

为什么是照片,不是打字机

这个比喻值得记住。自回归生成是一台打字机:每敲一个键,那个字就永远定死,整句话要等最后一个字母落地才存在。扩散则是一张拍立得:晃一晃,整张图像一起从雾里升起,脸、天空、阴影一同显影。不妨叫它"冲洗式写作"。机器不是先选第 1 个词、再选第 40 个词,而是让高概率的词把周围低概率的词一并结晶出来——就像几个清晰的像素,已经告诉你剩下半张脸该长在哪。

而回报是速度。因为整块并行成形,DiffusionGemma 在单张 NVIDIA H100 上跑出每秒超过 1000 个词,在消费级 RTX 5090 上也有 700 多——比同级别的从左到右生成快了将近四倍。对一个总参数 260 亿、每次只激活 40 亿的混合专家模型来说,这是个相当惊人的数字。

可"更快"难道不总是意味着"更差"吗?这里有个弯

你这么怀疑是对的——而 Google 这次罕见地诚实:DiffusionGemma 的输出质量,比标准的 Gemma 4 要低一些。它用一点细腻,换了一大截速度。听着像致命伤?我起初也这么想,直到想起吴军的"模型四法则"。他说,最好的算法像 AK-47:简单、皮实、够用——而不是那台为榨干最后一丝精度而处处打补丁的精密机器。一个形式简单的"对"模型,初期常常输给一个复杂的"错"模型。问题从来不是"谁更完美",而是"哪种取舍,配得上这件活"。

这对你究竟改变了什么

那它什么时候真和普通人有关?只要这件事量大、又容得下一点小瑕疵:起草、摘要、补全代码、先出一版反正你要再改的草稿。快四倍,意味着跑起来便宜四倍、用起来跟手得多——答案在你读完问题之前就到了。而当你要一条严谨的法律条款、一段不容出错的定稿,你还是会去找那台更慢、更精的模型。这不是扩散的短板,而是菜单上终于从一道菜变成了两道。开发者们已经在争论该把哪个用在哪——而"用在哪",恰恰是那个对的问题。

同一道数学,两条穿过它的路

自回归与扩散,是走同一片概率地形的两种方式——要么一步一个脚印,要么整片地形一下同时对焦。

框架取自吴军《数学之美》——其金线"统计语言模型把语法判断换成概率问题",及"模型四法则"(对的模型形式上简单)。DiffusionGemma 事实——基于 Gemma 4 架构、总参 260 亿激活 40 亿的混合专家模型,对 256 词块做离散文本扩散,单张 H100 每秒 1000+ 词、比同级自回归快约四倍、质量略低——来自 Google 2026 年 6 月的发布与开发者报道。

テクノロジー

文をポラロイドのように「現像」するチャットボット——DiffusionGemma が明かす、もう一つの道

2026年6月15日 · 呉軍『数学の美しさ』約 5 分

チャットボットは人間と同じで、一語ずつ打って、打ったら振り返らない——ほとんどの人がそう思っている。6 月 10 日に Google が公開した DiffusionGemma は、その常識を根こそぎ覆す。文を「書く」のではなく「現像する」のだ。ポラロイドが灰色のもやから像を浮かび上がらせるように。そして何より不思議なのは、これほど仕組みの違う機械が、言葉を読むのに使っているのが、あなたの古いチャットボットとまったく同じ数学だということだ。

機械を流暢にした、たった一つの手

これがどれほど異例かを知るには、時計を六十年戻すといい。長らく、計算機に言葉を教えるとは文法を教えることだった。文を分解し、主語と述語を割り、規則と照合する。ほとんど成功しなかった。突破口は、研究者が「この文は文法的に正しいか」と問うのをやめ、「この文が実際の人間の文章に現れる確率はどれくらいか」と問い始めたときに開いた。呉軍は『数学の美しさ』で、これを分野全体を貫く金の糸と呼ぶ。判断の問題を、確率の問題に置き換える。機械は言葉を「理解」する必要などない。どの言い回しが、より自然に響くかを知っていればいい。

確率で敷きつめられた地形

言葉を一つの地形だと思ってほしい。流暢で自然な文は深い谷に沈み、でたらめは不毛な峰に積もる。スマホの予測変換から最大のチャットボットまで、私たちが作ったどのモデルも、この地形を読む手段にすぎない。地図そのものに異論はない。割れるのは——どう歩くか、だ。

自己回帰モデル(今日ほぼすべてのチャットボットの標準)は、一歩ずつ慎重に歩く。最も確からしい一語目を選び、その前提で最も確からしい二語目を選び、左から右へ、一度踏んだ足は二度と戻せない。DiffusionGemma の歩き方はまるで違う。256 語のブロックまるごとを、乱雑なノイズの「キャンバス」として一気に放り込み、その全体に「ノイズ除去」を何度も走らせる。最も自信のある語が先に定まり、その確かな「錨」が隣の語を一緒に引き寄せる——やがて文全体が、一瞬でピントを結ぶ。下の図のように、両者は同じ確率の地図を読んでいる。ただ反対の向きから横切っているだけだ。

機械が一文を書く二つの方法自己回帰:左から右へ一語ずつ生成後の語は前を待つ次の語の確率遅いが安定拡散:ブロックを一括256語を一括展開反復してノイズ除去確信語が隣を導く約4倍速・品質は低下どちらも言語の形を数学で読む
グーグルの DiffusionGemma(2026年6月、26B MoE)は左から右への生成を離散拡散に置き換える——256語のブロックをランダムなプレースホルダの画布に置き、数回のノイズ除去で「現像」し、H100で毎秒1000語超。呉軍『数学の美しさ』の指摘は今も有効だ——言語モデルは「これは人の文か」を文法の問いから確率の問いに変える。

なぜタイプライターでなく写真なのか

覚えておく価値のある比喩はこれだ。自己回帰生成はタイプライター。一打鍵ごとにその字は永遠に確定し、文は最後の一文字が落ちて初めて存在する。拡散はポラロイドだ。振れば、画像全体がもやから一斉に立ち上がり、顔も空も影も一緒に像を結ぶ。これを「現像式の書き方」と呼んでもいい。機械は一語目を選び、次に四十語目を選ぶのではない。確率の高い語が、周りの低い語をまとめて結晶させていく——鮮明な数ピクセルが、残りの顔の輪郭をもう告げているように。

見返りは速度だ。ブロック全体が並列で固まるため、DiffusionGemma は単一の NVIDIA H100 で毎秒 1000 語超、民生用 RTX 5090 でも 700 語超を叩き出す——同等の左から右への生成より、およそ四倍速い。総パラメータ 260 億、一度に 40 億しか活性化しない Mixture-of-Experts モデルとしては、驚くべき数字だ。

でも「速い」は必ず「劣る」では? ここに落とし穴がある

その疑いは正しい——そして Google は今回めずらしく正直だ。DiffusionGemma の出力品質は、標準の Gemma 4 よりいくらか低い。わずかな仕上がりを、大きな速度と引き換えにしている。致命傷に聞こえる? 私も最初はそう思った。だが呉軍の「モデルの四法則」を思い出した。最良のアルゴリズムは AK-47 のようだ、と彼は言う。単純で、頑丈で、十分。最後の一滴の精度まで絞り出そうと継ぎ接ぎを重ねた精密機械ではない。形の単純な「正しい」モデルは、初めは複雑な「誤った」モデルに負けることがある。問うべきは「どちらがより完璧か」ではなく、「どちらの取捨が、この仕事に見合うか」だ。

これがあなたに何を変えるのか

では、普通の人にいつ関係してくるのか。量が多く、小さな粗を許せる作業ならいつでも、だ。下書き、要約、コード補完、どうせ自分で直す初稿。四倍速いとは、動かす費用が四分の一で、手応えがずっと軽快になること——問いを読み終える前に答えが届く。厳密な法律条項や、一字も外せない最終稿が要るときは、やはり遅くて精緻なモデルに手が伸びる。それは拡散の欠点ではない。献立がようやく一皿から二皿に増えただけだ。開発者たちはすでに、どちらをどこに使うかで議論している——その「どこに」こそ、正しい問いなのだ。

同じ数学、それを横切る二つの道

自己回帰と拡散は、同じ確率の地形を歩く二つのやり方だ——一歩ずつか、地形全体が一斉にピントを結ぶか。

枠組みは呉軍『数学の美しさ』より——統計的言語モデルが文法の判断を確率の問題に置き換えるという金の糸、および「モデルの四法則」(正しいモデルは形が単純)。DiffusionGemma の事実——Gemma 4 アーキテクチャ上の総パラメータ 260 億・活性 40 億の MoE、256 語ブロックへの離散テキスト拡散、H100 で毎秒 1000 語超・同等の自己回帰より約四倍速く品質はやや低い——は Google の 2026 年 6 月公開と開発者向け報道による。