Z.ai (Zhipu) · 2026-09-17†
Toward Recursive Self-Improvement: How GLM Built Its Own Inference Infrastructure
“Of course, we have not yet reached recursive self-improvement.”
- Who
- Z.ai (Zhipu)
- Date
- 2026-09-17. The page shows no date; this one is from press coverage.
- Evidence
- Not rated. A statement of position; the figures on the page measure one model launch. how we rate evidence
- Replication
- Nothing to rerun. all claims
- Checked
- 2026-10-14, against the source page
- Links
- Source
Also on the page
- An Infra Agent helped take GLM-5.3-Flash to production "in less than two weeks, ultimately tripling end-to-end throughput."
What got repeated wrong
- contradictedThroughput up ~300%.The post says tripling, which is 3x the baseline, not +300%.
On X
Posts about the GLM inference infrastructure post from its first day, picked by hand. Each one is checked against Z.ai's own page. Views are as of 2026-10-23, weeks after the posts went up.
-
Z.ai @Zai_org
from Z.ai (Zhipu)09/17 07:05 UTC
We’re sharing how GLM-5.3 helped build and optimize the inference infrastructure serving GLM-5.3-Flash.
The system went from its first successful run to production readiness in less than two weeks, with end-to-end throughput tripling relative to the initial baseline1.
The key was dense feedback: local correctness tests, execution traces, microbenchmarks, and end-to-end measurements that enabled targeted hypothesis testing rather than reliance on aggregate performance metrics alone.
https://z.ai/blog/glm-built-its-inference-infrastructure
1.1M viewsOriginal post
Checked against Z.ai (Zhipu)’s own page · Source: its own announcement · Adds: the announcement
- 1matches the source Same claim as Z.ai's page.“ultimately tripling end-to-end throughput relative to the initial baseline”
- 1
-
jietang @jietang
from Z.ai (Zhipu)09/17 07:08 UTC
Two weeks.
That's how long it took to go from GLM-5.3-Flash's first run on domestic accelerators to serving all of its production traffic, with 3.2× end-to-end throughput1 along the way.
What I keep thinking about is who did much of the work: an Infra Agent powered by GLM-5.3.
A model helping optimize the system that serves it.
The conditions were hard. Limited memory and interconnect bandwidth. 1M-token context. Multimodal requests. An immature software stack where kernels were missing and documentation was often guesswork. Every optimization was a trade: compute for memory (ReplaySSM), communication for memory (intra-node tensor parallelism), precision for capacity (mixed INT8/FP8/BF16 caching), and disaggregation for scheduling freedom (Encode–Prefill–Decode).
But the most important lesson wasn't about any single optimization.
When the agent got stuck, it was rarely because it couldn't write the code. It was because it didn't know *why* things got worse.
"Throughput down 20%" tells you something broke. It doesn't tell you which layer, which hypothesis, or what to test next. In RL terms, it's a sparse reward with a credit assignment problem. And an end-to-end benchmark that takes hours makes exploration painfully slow.
Senior engineers solve this with an implicit process reward in their heads. They know when to check the timeline, when to run a microbenchmark, and which layer's output to compare.
So we made that explicit. We call it dense feedback: layered verification interfaces the agent can call directly.
Correctness feedback: did it compute right?
System behavior feedback: where did the time go?
Performance feedback: which option wins, under which conditions?Each signal has to be local, cheap, and objectively verifiable.
Three things the agent found:
First, precision drift in KDA's context-parallel path that grew with sequence length. The cause was TF32 rounding error compounding through chained state-matrix merges. The fix is now merged upstream in Flash Linear Attention (PR #1180).
Second, KV transfer never overlapped with DeepEP dispatch. The agent followed the call chain across the Python/C++ boundary and found that the intranode path never released the GIL. After the fix, transfer overhead fell from over 30% to under 1%3.
Third, a decode kernel recomputing the same normalization four times because of how it was chunked. The agent restructured it and got a 1.71× speedup. The idea came from "optimization skeletons" it had distilled by reading existing kernels across SGLang, FLA, and DeepGEMM.
To be clear about the boundaries: humans still defined the goals, built the feedback environment, and reviewed every high-risk change2.
But the engineer's role is changing, from the person who solves the problem to the person who designs the feedback.
There's a deeper implication too. A layered, verifiable feedback environment built on real infrastructure tasks is exactly what training the next generation of models needs most. Every task the agent completes can become training ground for its successor.
We are still far from recursive self-improvement.4
But the smallest loop now exists.
The model optimizes the system. The system serves the model.
Quoting @Zai_org
560k views+3 min after the first postOriginal post
Checked against Z.ai (Zhipu)’s own page · Source: quotes the announcement · Adds: how the team describes it
- 1not in the source Z.ai's page as we archived it says roughly 3× and tripling. Its throughput chart has no figures we could read.
- 2matches the source Same as Z.ai's page.“Engineers have three critical responsibilities in this process: defining optimization objectives and system constraints, building a feedback environment the agent can use directly, and reviewing critical changes involving system architecture, asynchronous concurrency, and production risk.”
- 3not in the source Z.ai's page as we archived it says the gap exceeded 20% in some scenarios before the fix, and fell below 1% after it.
- 4matches the source Z.ai's page says the same in other words.“Of course, we have not yet reached recursive self-improvement.”
- 1
-
宝玉 @dotey
commentator09/17 07:58 UTC
智谱用 GLM-5.3 自己优化了自己的推理系统
智谱今天披露,GLM-5.3-Flash 的全部生产推理已运行在超过 10 万块国产 AI 加速器上。从模型首次跑通到上线生产,不到两周,端到端吞吐量提升了 3.2 倍1。完成大量优化工作的不是工程师团队2,而是一个由 GLM-5.3 驱动的 AI 智能体。
智谱 CEO 唐杰4发推说,他反复想的一件事是:干活的主力是模型自己。一个模型在帮忙优化运行它自己的系统。
部署条件很苛刻。国产加速器显存容量和带宽有限,软件生态不成熟,很多该有文档的地方只能靠猜。GLM-5.3-Flash 还要支持 100 万 token 上下文和多模态请求。每一步优化都是在做交换:用计算换显存(ReplaySSM),用通信换显存(节点内张量并行),用精度换容量(INT8/FP8/BF16 混合缓存),用架构分离换调度自由度(编码-预填充-解码分离)。最终国产芯片的单 token 成本对标了主流英伟达 GPU。
但唐杰说,最重要的经验不在任何一个具体优化上。
智能体卡住的时候,几乎从来不是因为它写不出代码,而是因为它不知道事情为什么变差了。"吞吐量下降了 20%"告诉你出了问题,但不告诉你问题在哪一层、该验证什么假设、下一步该测什么。用强化学习的话说,这是一个稀疏奖励加信用分配的问题。而一次端到端基准测试要跑好几个小时,试错成本极高。
资深工程师能定位问题,靠的是脑子里一套隐性的"过程奖励"——知道什么时候该看执行时间线,什么时候该跑微基准测试,该对比哪一层的输出。
智谱做的事情是把这套隐性经验显性化,他们叫"密集反馈":构建一套分层验证接口让智能体直接调用。正确性反馈回答"算对了吗",系统行为反馈回答"时间花在了哪",性能反馈回答"哪个方案在什么条件下更优"。每类信号都要求足够局部、获取成本低、可客观验证。
靠这套机制,智能体发现并修复了三个真实的工程问题。
第一个是精度漂移。KDA 内核在上下文并行路径中,TF32 的舍入误差通过链式状态矩阵合并不断累积,上下文越长漂移越大。修复已合并到开源项目 Flash Linear Attention。
第二个是并发瓶颈。KV 缓存传输本该和计算并行,但智能体发现两者从未重叠。它沿调用链追到 Python 和 C++ 的边界,发现 DeepEP 的节点内路径没有释放全局解释器锁(GIL),传输线程一直拿不到执行权。修复后开销从超 30% 降到 1% 以下3。
第三个是重复计算。一个解码内核因分块方式把同一归一化运算重复做了四遍。智能体重组了计算结构,加速 1.71 倍。优化思路来自它阅读 SGLang、FLA、DeepGEMM 等项目的内核代码后提炼出的"优化骨架"。
唐杰强调了边界:目标设定、反馈环境搭建、高风险变更审查仍然由人负责。但工程师的角色正在变化——从解决问题的人,变成设计反馈的人。
他还指出一层更深的含义:一个建立在真实基础设施任务上的分层可验证反馈环境,恰恰是训练下一代模型最需要的东西。智能体完成的每一个任务,都可以成为它后继者的训练素材。
唐杰说:“我们离递归自我改进还很远,但最小的闭环已经存在了。模型优化系统,系统运行模型。”
有兴趣可以看看他们官方的文章:《Toward Recursive Self-Improvement: How GLM Built Its Own Inference Infrastructure》https://z.ai/blog/glm-built-its-inference-infrastructure
Quoting @jietang
93k views+53 min after the first postOriginal post
Checked against Z.ai (Zhipu)’s own page · Source: quotes the announcement · Adds: a retelling
- 1not in the source Z.ai's page as we archived it says roughly 3× and tripling. The 3.2× figure is from Tang Jie's post.
- 2goes further than the source Z.ai's page says not by engineers alone, and gives engineers three jobs: setting objectives, building the feedback environment, and reviewing critical changes.“It was not done by a team of infrastructure engineers alone.”
- 3not in the source Z.ai's page as we archived it says the gap exceeded 20% before the fix. The 30% figure is from Tang Jie's post.
- 4not checked Tang Jie's bio says founder of Z.ai. We did not check his title.
- 1
-
Max For AI @MaxForAI
commentator09/17 08:56 UTC
@Zai_org 创始人、首席科学家唐杰1老师刚刚披露了一件很有意思的事:
GLM-5.3-Flash 用两周时间,把自己在国产加速卡上的生产推理吞吐做到了 3.2×2。
更有意思的是,这里面相当一部分工作,是一个由 GLM-5.3 驱动的 Infra Agent 完成的。
GLM团队已经实现了模型帮工程师优化“运行自己的机器”(也就是RSI)。3
这次难度其实很高:
国产加速卡的显存和互联带宽有限,要支持 1M Context、多模态请求,底层软件栈还不成熟,很多 Kernel 没有现成实现,文档也不完整。
GLM的 Infra Agent 需要一路从 Python 追进 C++、通信库和 Kernel,自己定位系统瓶颈。
最后它找出了几个挺离谱的问题:
第一,KDA 的 Context Parallel 在长序列下会发生精度漂移。
Agent 最后发现,是 TF32 的舍入误差在连续的状态矩阵合并中不断累积。修复已经合并进 Flash Linear Attention。
第二,KV Transfer 和 DeepEP Dispatch 原本根本没有真正并行。
Agent 一路追调用链,最后发现某条节点内路径没有释放 Python GIL。
修完以后,KV Transfer 的额外开销直接从 30%+ 降到了 1% 以下4。
第三,一个 Decode Kernel 因为 Chunk 的方式,同一个 Normalization 重算了 4 次。
Agent 重构之后,Kernel 加速了 1.71×。
而且这个优化思路,还是它自己阅读 SGLang、Flash Linear Attention、DeepGEMM 里的大量 Kernel 后,总结出的“Optimization Skeleton”。
但我觉得这里最关键的其实是另一个结论:
现在 Agent 做复杂工程任务,最大的瓶颈已经越来越不像“代码不会写”。
真正麻烦的是,它不知道自己为什么失败(也就是无法验证)。
“吞吐下降 20%”这种 End-to-End Reward 对 Agent 来说信息量太低了。
到底是通信慢了、Kernel 慢了、调度出问题了,还是精度错误?
人类高级工程师脑子里其实一直有一套隐形的“过程奖励”:什么时候看 Timeline,什么时候跑 Microbenchmark,什么时候逐层对比输出。
他们这次把这些东西直接做成了 Agent 可以调用的 Dense Feedback:
正确性反馈;
系统行为反馈;
性能反馈。每一个反馈都尽量做到局部、便宜、客观可验证。
这其实很像现在 Agent Harness 正在发生的事情:
模型能力继续提升当然重要,但想让 Agent 真正完成几小时甚至几天的复杂任务,更关键的是给它设计一个足够好的反馈系统,让它知道自己哪里错了、为什么错、下一步应该验证什么。
甚至再往前一步:
今天 Infra Agent 完成的每一次真实基础设施优化,都可以重新变成下一代模型的训练数据。
模型优化推理系统,推理系统运行模型,产生的数据再训练下一代模型。
离真正学术界的 Recursive Self-Improvement 当然还很远。
但那个最小的循环,已经开始出现了。
GLM冲啊!
Quoting @jietang
12k views+2 h after the first postOriginal post
Checked against Z.ai (Zhipu)’s own page · Source: quotes the announcement · Adds: a retelling
- 1not checked Tang Jie's bio says founder of Z.ai. We did not check the chief scientist title.
- 2not in the source Z.ai's page as we archived it says roughly 3× and tripling. The 3.2× figure is from Tang Jie's post.
- 3goes further than the source Z.ai's page says it has not reached recursive self-improvement. Later in the same post the poster also writes that it is still far off.“Of course, we have not yet reached recursive self-improvement.”
- 4not in the source Z.ai's page as we archived it says the gap exceeded 20% before the fix. The 30% figure is from Tang Jie's post.
- 1
-
Sanhubao.ai Founder | AI 小蝌蚪 @AIInvestHK
commentator09/17 20:09 UTC
智譜/http://Z.ai 技術文:GLM-5.3-Flash 在超過 10 萬張國產加速器上跑生產推理。唐杰等口徑:Infra Agent 參與從適配到上線約兩週,端到端吞吐相對初始基線約 3 倍(有說約 3.2 倍)1。未點名晶片廠商。
同文還寫:硬件效率/單 token 成本接近主流 $NVDA GPU 水平2;匿名 Ox-Alpha 在 OpenCode/OpenRouter 測過流量。這是公司技術發布與二級轉述,不是第三方審計。
投資含義偏供應鏈敘事:國產卡+自研推理棧能不能穩吃生產流量。下一觀察是有沒有獨立測評把吞吐與成本釘死,以及晶片來源會不會公開。
232 views+13 h after the first postOriginal post
Checked against Z.ai (Zhipu)’s own page · Source: no source in this post · Adds: points out a gap
- 1matches the source Z.ai's page says tripling. The 3.2× figure is from Tang Jie's post.“ultimately tripling end-to-end throughput relative to the initial baseline”
- 2matches the source Same claim as Z.ai's page, which gives no outside measurement of it.“Both hardware utilization efficiency and per-token cost reached levels comparable to mainstream NVIDIA GPUs.”
- 1
Checked 2026-10-23. The claim above rests on Z.ai (Zhipu)’s own page; posts here are leads.
Related claims
- 2026-05-12 Tang Jie: X post: "The most difficult—and most promising—path is Self-Evolution."