Zhengxu Yu

Zhengxu Yu

AI Researcher, Huawei London Research Centre (ex-Alibaba)

Email: yuzxfred AT gmail.com

© 2026

Zhengxu's Blog

Notes on AI agents, reinforcement learning and LLMs.

2026

深度理解“A Fix for Softmax and Cross-Entropy”New

JAX、PyTorch、TensorFlow 的 softmax 和交叉熵在减去最大 logit 后,分母是 1 + e^(−m)。模型足够自信时 e^(−m) 小于 1 附近的浮点间距,加法被舍入,目标类梯度变成 0 而其他梯度不变(Softmax Collapse);蒸馏中学生等于老师时梯度也不为 0(Softmax Cancellation)。Adam 的归一化把这些微小误差放大成 Slingshot 尖峰和参数漂移。修复是用 softplus、expm1、log1p 在 log 空间重写,不再把 1 加到小数上。

多智能体 RL 的信用分配

在 LLM 多智能体系统的 RL 训练中,orchestrator 把任务拆给多个 sub-agent 执行,整条 rollout 最终只得到一个任务级奖励;GRPO 类算法据此为整条轨迹算出一个 advantage,所有 agent 的 token 共用这一个值。信用分配要回答的是:这个信号应如何分给各个 agent 和各个步骤。GRPO 类方法不训练 critic,baseline 来自同组样本的均值,各种做法的区别在于比较组的构造:同一题的其他整局 rollout(成本低,但混入了队友的随机性),同一角色的其他样本(要求角色固定),或只替换一条消息、去掉一个 agent 后重跑的反事实结果(信号最干净,但成本最高)。当 sub-agent 由 orchestrator 动态创建、各自任务不同时,这三种比较都难以成立。

The Infrastructure for Autonomous AI Companies

There is a new kind of company shape emerging. It does not feel like a robot CEO. It feels like a ticket queue that learned to hire temporary workers. In human companies, scaling means hiring. In AI companies, scaling means routing: sending each task through the right agents, tools, permissions, budgets, evals, and human approvals without losing the plot.

From Vibe Coding to Agentic Engineering

Software engineering is moving through three stages: manual coding, copilot-style autocomplete, and now agentic engineering where AI agents execute plans autonomously. 55% of developers already use AI agents regularly, 27% of production code is AI-authored, and agent session durations nearly doubled in three months. The transition is not coming -- it is underway.

Why TypeScript Keeps Showing Up in AI Agent Apps

Python remains central to training, fine-tuning, data science, evals, and research prototypes. In the application layer around agents, TypeScript keeps appearing because agent products inherit many constraints from web apps: schema validation, streaming UI, tool calls, user state, auth, and deployment. This is not a replacement story. It is a split between model work and product work.

OneManCompany: Slayer of Dragons Becomes the Dragon

OMC wraps AI agents in the most corporate language possible — talent markets, PIPs, HR, org charts — as a deliberate self-mockery. The point: organizational structures outlast the technology underneath them. We built the dragon so someone can break out of it.

What If Every Employee in Your Company Were AI?

An all-AI company is no longer science fiction. When AI agents can handle not just individual tasks but the full spectrum of organizational functions, a single founder might run a company that rivals a traditional team. This changes the economics, speed, and very definition of what a company is.

2025

Why Creativity Might Not Exist

What we call 'creativity' may be nothing more than the recombination of historical experience — individual and evolutionary — perturbed by noise and filtered by selection.

Drafts (2)

A Survey of Meta Reinforcement Learning for Large Language Model trainingDraft

This blog is a paper reading summary on meta reinforcement learning, and its application in LLM training procedure.

Test-Time Scaling via Reinforcement Learning Based In-Context LearningDraft

This blog is a paper reading summary on LLMs, Reinforcement Learning, and In-Context Learning.