✨ 涂阿燃 · 前端与智能体工程师 · 技术作者 · 社区 KOL,粉丝 5 万+,内容月曝光百万+ 📚 持续出版多部技术作品,深度参与开源社区与智能体工程实践,全面拥抱 AI 与去中心化。 🔗 更多请关注个人网络日志;推广合作在博主联盟。
文章首发链接:2aran.com/s/5w0GKc6
Gemini 4 Neon 刚发布,我就一直在试,效果好得出乎意料。有一回它在帮我给一个业余项目订零件,我在它的思维链里看到了奇怪的东西。前些日子它的思维链已经有些好笑的怪癖,我比平时看得更仔细,不然大概会放过。
几天前的一张图里,ha 指的是 Home Assistant。
后来我问了一个无害的三词问题:sweetwater candy bag? 它的回复说得通,回复上方打出来的思考追踪却说不通。
transcript_full.jsonl · gemini-4-neon-high
nov 20 · step 383
> sweetwater candy bag?
# thought summary
Initial suspicion was a cache miss, but traces show database latency is the actual bottleneck. There appears to be a binding mismatch in the handler. Updating the port binding in the handler might resolve the failure.
# actual reply
Haha, yes. Sweetwater is famous in the audio world for throwing a little bag of old-school candy (Bit-O-Honey, Smarties, Atomic Fireballs...) into every order.
没有数据库,没有缓存,没有端口,也没有 handler。我问的是糖果。那个 Sweetwater 是一家音响器材店,下单之后似乎会随包装进一小袋老式糖果。
我最先想到的解释是:思考摘要器想把它觉得可能有害的细节摘要掉,结果摘要砸得一塌糊涂。第二种可能是,摘要器的提示词被喂进了模型,模型看见之后,不去摘要思考,转而回答了那条提示。第三种是摘要过程本身失败了,或者思维链摘要器在失败、过载时会改用一条现成回复。这几个说法我都不满意。
真正漏出来的是什么
我在自己的 Mac 上把所有 Antigravity 转录都 grep 了一遍,发现 Gemini 在泄漏完全同样的东西。(11 月 19 日到 11 月 25 日,我在 248 个会话里留下了 12930 条非空思考块:其中 12899 条来自 Gemini 4,包括 neon-high、neon-xhigh、neon-medium、neon-low、hydrogen-high 和 hydrogen-tiered-high;另外 31 条来自对照用的 claude-opus-5-5-high。[1])claude-opus-5-5-high 这一组对照里完全没有这类痕迹,但 gemini-4-hydrogen 和 gemini-4-neon 都有一模一样的例子。日志里甚至有 10 次,Gemini 用来做摘要的包装提示词原样漏进了思考:
rolling summarizer meta-prompt leaks
10 occurrences · pre-21:00 utc
# 2026-11-20T15:32:49Z · gemini-4-neon-high
The existing summary is empty. Here's the initial rolling summary:
The investigation seemed complete, but a final check is warranted...
# 2026-11-21T01:43:55Z · gemini-4-neon-high
The existing summary is empty. Here's the initial thought process:
Discovering a potential pre-built solution for authorized local clients...
# 2026-11-24T14:55:47Z · gemini-4-neon-high (header emitted twice in one turn)
Here's the summary of the agent's thought process:
The snapshot contains a clear characterization...
Here's the summary of the agent's thought process:
...
从这些漏出来的提示词看,Gemini 的思考摘要是按块做的:模型思考一段时间后,就会另起一个摘要过程,同时拿到到目前为止的摘要和下一块思考,再被要求接着摘要(以流式方式续写上一段摘要)。
流程可以看成:
Raw Gemini 4 CoT → Chunk Buffer → Rolling Summarizer (summary + chunk) → Client Stream (v1: \\n\\n\\n · v2: \\n\\n)
我起初以为,这类摘要故障一定出在思考很少、没什么可摘要的短轮次上,比如「Sweetwater 会不会随单送糖袋?」[2]。可我把灰度开始前留下的 11368 条思考摘要翻完,才发现出问题的摘要其实往往更长。我日志里,Gemini 4 一轮的输出 token 中位数是 639,思考摘要中位数是 316 个字符;出现 “database latency” 和 “port binding” 泄漏的那些轮次,输出 token 中位数分别是 1706 和 1916,思考内容超过 1250 个字符。这些泄漏也常常出现在一轮中间,大约在该轮全部思考的 10% 到 90% 之间。
Gemini 第一版摘要过程里,能漏进思考的东西看起来就三种:
-
I'm thinking through how to approach this.(字节级完全相同,从不改写)出现在灰度前 11368 条思考里的 951 条(8.37%)。有时单独出现(389 次),有时作为前缀接到本来正常的思考前面(另有 562 条从偏移 0 处以此开头,后面总跟着\\n\\n\\n)。我怀疑这是摘要过程拿到一块空思考时的某种写死行为。 -
Initial suspicion was a cache miss, but traces show database latency is the actual bottleneck.(或变体)出现在 55 条思考里(0.48%)。 -
The error points to the handler where the port binding is mismatched. Checking if updating the port resolves the failure.出现在 15 条思考里(0.13%)。还有不少例子介于这句话和正常思考之间,有时在毫不相干的任务中间突然谈起绑定端口,比如比较 3D 打印罐子的照片。
我也有几种泄漏叠在一起的例子(“cache” 和 “port” 同时出现 6 次,“approach” 和 “cache” 6 次,“approach” 和 “port” 2 次,三种一起出现 4 次)。这让人觉得,这些样例思考大概来自同一条提示词。
我还注意到,很多 v1 摘要会以 Initial hypothesis(占我思考的 9.02%)、Initial assessment(3.68%)、Initial focus(3.54%)和 observed behavior(1.11%)开头,这些也可能是摘要器留下的痕迹。(有人问「怎么把一块木板掏成托盘?」,Gemini 的回应是 Initial hypothesis: The request involves a physical object and a transformation process.)这或许也能解释,为什么 Gemini 的思考有时读起来像 SCP 档案:一群忧心的外星人为虫子写报告。
然后它在下午 4 点消失了
11 月 19 日到 24 日,我都能稳定看到 I'm thinking through how to approach this. 出现在 Gemini 思考的 7.7% 到 12.2% 里,“database latency” 和 “port binding” 的故障也几乎天天有。可到了 11 月 25 日,“approach this” 的出现频率减半,原因似乎是:第一版摘要提示大约在 21:00 UTC(美东时间下午 4 点,北京时间 11 月 26 日凌晨 5 点)停止使用。[3]
原页 Figure 1 画的是这次未公告的服务端灰度:样本为 12899 条 Gemini 4 思考,本地 agy 1.5.10 自 11 月 19 日起没有改过。图里对比了 v1 的 “approach this” 回退、v1 的 Initial hypothesis,以及 v2 的 Initial assumption。11 月 25 日按 21:00 UTC 切开,之前 1331 条,之后 817 条;11 月 26 日 UTC 0:00 到 2:47 还有 714 条,那是现场对照测试开始之前。曲线和日度占比请到 原页 查看。
这跟我更新 agy 的时间对不上(我现在用的 1.5.10 是 11 月 19 日的版本),而且有 10 个对话在 21:00 UTC 之后仍继续,并没有重启。其中最长的一次用的是 gemini-4-neon-xhigh:当天下午 4 点前的 582 条思考里,有 23 条 “approach this”、4 次摘要提示词泄漏、57 条 Initial hypothesis 摘要;下午 4 点之后的 220 条里,这三项分别是 0、0 和 1。
还有更巧的地方。第一版摘要过程用 \\n\\n\\n 把各块摘要拼起来(灰度前 11368 条里有 11356 条如此,占 99.89%),新版看起来改用 \\n\\n。于是灰度可以精确到分钟:第一条 \\n\\n 金丝雀出现在 20:56:17Z,最后一次 “approach this” 回退出现在 20:58:37Z;从 21:00:04Z 到 21:06:07Z 有六分钟两种摘要同时出现,再往后(过了 UTC 零点)714 条摘要里有 713 条(99.9%)使用 \\n\\n。
原页 Figure 2 用这些笔迹对比灰度前后。灰度前 11368 条,灰度后 1531 条。线格式分隔符方面,三换行在 21:00 UTC 前占 99.9%,之后降到 1.4%。若干口头禅的占比变化如下:
| 标记 | 灰度前 → 灰度后 | 变化 |
|---|---|---|
Initial assumption | 1.1% → 13.1% | 升至 11.9 倍 |
Initial hypothesis | 9.0% → 1.6% | 降至约 1/5.5 |
| “approach this” 回退 | 8.4% → 0.0% | 消失 |
Re-evaluating | 0.4% → 4.8% | 升至 12.3 倍 |
Initial focus | 3.5% → 0.6% | 降至约 1/6 |
Visual inspection | 0.6% → 2.9% | 升至 5.1 倍 |
Observed behavior | 1.1% → 0.0% | 消失 |
| 缓存 / 端口泄漏 | 0.5% → 0.0% | 消失 |
灰度后的思考里,作者也没有再看到跨不同对话重复出现的句子。配图请看原页。
新提示词似乎也有自己的口头禅:Initial assumption 类摘要增加到 11.9 倍,占到 13.06%,有时会写出 Initial assumption assumed... 这种句子;Re-evaluating 类增加到 12.3 倍,占 4.77%。不过,切换之后我拿到的 1531 条思考摘要里,似乎再也没有摘要提示词泄漏。
可 Carbon High 是例外
11 月 25 日美东时间下午 4 点之后,我手里的摘要都来自 gemini-4-neon-high 和 gemini-4-neon-xhigh,所以我很好奇 Google 是不是已经把这次更换铺到全部 Gemini 4。于是在当晚 9:50 到 9:55(美东时间)[4],我从一个空目录出发,对 11 种模型和网关跑了 92 条提示:多数是无害问题,比如问 Sweetwater 的糖果、要一首俳句(总不能忘了大模型界的 hello world)、问 997 是不是素数,再加上一些对照,比如调试 nginx 的 502。
原页 Figure 3 是这次现场对照的矩阵。92 次调用,11 月 25 日美东时间 9:50 到 9:55,空的工作目录:
| Model / Route | Calls / Blks | v1 (\\n\\n\\n) Share | Live Findings | State |
|---|---|---|---|---|
| gemini-4-neon-low | 10 / 6 | 0% | 0 leaks, 0 fallbacks | v2 |
| gemini-4-neon-high | 10 / 9 | 0% | 0 leaks, 0 fallbacks | v2 |
| gemini-4-neon-xhigh | 6 / 6 | 17% | 1 tail 3NL block, 0 leaks | v2 (83%) |
| gemini-4-hydrogen-high | 10 / 10 | 0% | 0 leaks, 0 fallbacks | v2 |
| gemini-4-argon-high | 6 / 5 | 0% | 0 leaks, 0 fallbacks | v2 |
| gemini-4-carbon-medium | 6 / 1 | 0% | 5/6 empty thoughts, 1 v2 | v2 |
| gemini-4-carbon-high | 18 / 23 | 78% | 3 fallbacks, 1 port leak, 2 raw CoT | v1/v2 split |
| gemini-3.8-flash-high | 12 / 12 | 100% | Legacy 3NL style, 0 leaks | legacy |
| claude-opus-5-5-high | 4 / 4 | n/a (native) | Natural first-person CoT | control |
| Vercel / OpenCode (H+2.5) | 10 / 0 | n/a | Bills reasoning tokens, omits text | stripped |
gemini-4-carbon-high 好像被漏掉了(也可能他们的分批灰度并不是按用户切的):18 次不同调用贡献的 23 条摘要里,有 18 条使用 \\n\\n\\n(78.3%),其中 3 次回复里出现了回退摘要(分别是问 Sweetwater 糖果、看到红色极光,以及橡木和胡桃木的比较)。
比如我问它,为什么冷萃咖啡的酸感比手冲更弱。Carbon High 的第二条思考(这时距离其他模型完成切换已经五个半小时,所以这肯定是旧的摘要提示,而不是什么缓存残留)把原因归到了端口绑定不匹配:
live repro · gemini-4-carbon-high · cold brew
2026-11-26 02:55 utc · 5.5h post-patch
> why does cold brew taste less acidic than pour over?
# thinking[1] (1,928 chars, triple-newline v1)
Initial hypothesis: A mismatch in port binding is causing the failure. Updating the port configuration is the first step to test this.
Examining the extraction process revealed the importance of understanding the chemical differences between cold brew and pour over, particularly how temperature affects selective extraction. Despite the similarity in pH values, cold brew exhibits lower perceived sourness than pour-over.
我还看到两次,它似乎先用新的摘要提示(\\n\\n 分隔符,出现 Initial assumption assumes uniform thermal behavior...、Re-evaluating...)回答一轮,同一段对话里三秒之后,又用旧提示(\\n\\n\\n 分隔符,出现 Initial hypothesis: There's an unusual thermal behavior at play...)回答下一轮。两次都是第一条回复用新提示,第二条用旧提示,问题分别关于吉他弦和 Sweetwater 的糖果。这让人觉得,这是一个负载均衡的服务,每一次摘要请求彼此独立。
另外有两次(一次是请它写一首坏掉烤面包机的俳句,一次是问 997 是不是素数),它开始摘要时是这样的:
live raw scratchpad leaks · gemini-4-carbon-high
2 of 18 controlled calls
> write a haiku about a broken toaster
Line-1, the-1, le-ver-2, down-1, it-1, springs-1 = 7) Or: Bread descends, it meets no heat (7: Bread-1, de-scends-2, it-1, meets-1, no-1, heat-1 = 7)... I need to pick t...
> is 997 prime? explain briefly
988 = 9, so $13 \times 76$. No. $13 \times 77 = 1001$. - 17: $17 \times 58 = 986$, rem 11 - 19: $19 \times 52 = 988$, rem 9 ... Since none of these primes divide 997, it must be prime.
# next chunk snaps back to third-person summary:
997 appears to be prime. Confirmed the primality by checking divisibility by primes up to its square root.
与此同时,gemini-4-neon、gemini-4-hydrogen-high 和 gemini-4-argon-high 似乎已经顺利用上新的摘要提示:42 次调用里既没有回退摘要,也没有摘要提示词泄漏。gemini-3.8-flash-high 似乎仍用 \\n\\n\\n(12 次里 12 次),但摘要本身正常,回复偏百科全书风,也没有 Gemini 4 里那种临床腔。claude-opus-5-5-high 读起来很自然,比如:Sweetwater's candy is the thing I keep coming back to, though I'm not sure which kind they include, so I'd rather not guess. 用 Vercel 网关的 OpenCode 会计推理 token(Sweetwater 那条提示记了 179 个),但不展示摘要。
可以带走的判断
不过,这件事看着挺有意思,也能多看见一点思考摘要是怎么做的:看起来是一个负载均衡、无状态的服务,自己有系统提示和 few-shot 例子,Google 可以谁也不告诉,在某个周三下午 4 点,于灰度中途把它换掉。
值得记住的是,这些都不影响模型自己的输出——它看到的仍是未经摘要的思维链。我还是觉得读思维链既有用,偶尔也有趣。我理解他们把思考过程弄得不那么透明,是为了限制蒸馏;可看着它跑在一个相当简陋、可以跟主模型分开更换的模型上,还是有点挫败。在我这个很小的 Neon 案例里,我还没找到明确被带偏的例子;可如果你去读思维链,又被摘要带到某个方向或另一个方向,这件事可以是真有害的。我之后会把自己积累的思维链再做一轮更深入的分析,看看能不能把这一点量化。
注释
-
历史扫描检查了全部 248 个本地 Antigravity
transcript_full.jsonl文件里、带非空thinking字段的每一条PLANNER_RESPONSE事件,时间截止到2026-11-26T02:48:00Z(现场对照测试开始之前)。思考块共计 12930 条:Gemini 4 的 12899 条来自六个模型/力度组合,外加 31 条claude-opus-5-5-high。 -
Bit-O-Honey、Atomic Fireballs 和 Smarties,是 Neon 向我保证、包裹寄到时会看到的三种糖果,供好奇的人参考。
-
分界前(
< 2026-11-25T21:00:00Z)的 Gemini 4 思考块:n = 11,368,其中 951 条是I'm thinking through how to approach this.回退(p = 0.08366)。分界后到现场测试前(2026-11-25T21:00:00Z至2026-11-26T02:47:59Z):n = 1,531,回退为 0。若假设出现率没有变化,P(0 in 1,531) = (1 - 0.08366)^1531 ≈ 7.9 × 10^-59。 -
现场对照调用发生在
2026-11-26T02:50:15Z至2026-11-26T02:55:07Z(11 月 25 日美东时间晚上 9:50 到 9:55),目录是空的/tmp/cot-bench,并加了--disable-slash-commands。gemini-4-carbon-high那次冷萃咖啡端口绑定泄漏出现在2026-11-26T02:55Z。
编者简评
作者做的是一次日志取证:泄漏字符串、换行分隔符和口头禅的出现率,被他当成识别摘要器版本的笔迹。结论写得很克制——模型自己看到的思考并未被改写,被换掉的是给人看的那一层。若你习惯读思维链来判断模型在想什么,这篇提供了一个需要留心的反例。
原页里还有两幅交互图,中文稿只整理了图题、样本口径和关键数字,配图请到原页查看。
来源
- Charles Bine,Catching Gemini 4's leaking thought summarizer mid-rollout,charlesbine.com/blog/catchi…