Penghui Qi (@QPHutu) profile picture

Researcher @SeaAIL PhD student @NUSingapore Working on RL, LLM Reasoning, and MLSys.

Joined August 2022
Photo by Penghui Qi (@QPHutu)Photo by Penghui Qi (@QPHutu)Photo by Penghui Qi (@QPHutu)Photo by Penghui Qi (@QPHutu)Photo by Penghui Qi (@QPHutu)Photo by Penghui Qi (@QPHutu)Photo by Penghui Qi (@QPHutu)Photo by Penghui Qi (@QPHutu)Photo by Penghui Qi (@QPHutu)Photo by Penghui Qi (@QPHutu)
Some of you thought that Inkling 2 Small was too big at 594B parameters. We heard you: Inkling 2 Mini is a looped transformer with just 26B parameters, small enough to run on your laptop, powerful enough for agentic work with a score of 20.1 on AA Index. thinkingmachines.ai/news/ink…
731
1,846
1,164
20,050
4,123,150
Introducing Inkling 2 Small. Scoring 31 on the AA Intelligence Index, it's a big jump over its predecessor. Inkling 2 Small is available for fine-tuning and inference on Tinker today, with full weight release planned soon. thinkingmachines.ai/news/ink…
304
611
510
6,573
2,074,419
Penghui Qi retweeted
Everyone moved to GRPO for LLM reasoning because training a critic is a huge nightmare. Sampling a half-l dozen rollouts per prompt to estimate advantages works, but it absolutely eats through compute. This new paper pinpoint exactly why value functions keep blowing up in PPO. It usually comes down to ratio clipping acting weird on low-prob tokens, bootstrapped error accumulation, and GAE breaking on short vs. long responses. Their fix is a recipe called BPCO (Best-Practice Critic Optimization). The coolest part is how they handle the critic. Since you throw the value network away after training anyway, they feed it full reference answers and rubrics that the policy model never gets to see. Giving the critic "cheat codes" during training stabilizes the value estimates without messing up deployment. The results look solid. When scaling from 1.5B models up to a 30B MoE, BPCO matches or beats GRPO while sampling just 1 response per prompt. Definitely worth a look if you're trying to cut down RL compute costs: arxiv.org/pdf/2608.23566v1
6
24
143
7,571
Continuous self-improvement needs an ever-expanding supply of training environments (goals). SPADE: one model self-plays the Environment Designer and the Reasoning Agent, writing executable, agentic environments that get harder as it improves. Environment scaling on its own. ♠️
20
127
34
701
181,849
Penghui Qi retweeted
HyCreator: an agent harness for long video generation 🚀 End2end Auto Mode ⏲️ Generate 10-minute scale films with zero human intervention 👨‍🦰 Switch to real-time interactive editing whenever you want Apply for early access: hycreator.tencent.com/
34
61
18
377
152,293
Penghui Qi retweeted
Diffusion LLMs (DLLM) can do “any-order” generation, in principle, more flexible than left-to-right (L2R) LLM. Our main finding is uncomfortable: ➡️ In real language, this flexibility backfires: DLLMs become worse probabilistic models than the L2R / R2L AR LMs. This thread is about why “any order” turns into a curse. (Work with Xinyu Yang @Xinyu2ML , Min Lin @mavenlin , Chao Du @duchao0726 and the team.) Blog Link: notion.so/Understanding-the-…
17
73
18
459
143,543
Penghui Qi retweeted
new post on harness engineering for AI self-improvement: lilianweng.github.io/posts/2… It is hard to forecast how much the future of RSI will rely on harnesses. Likely harness engineering will evolve in the direction of self-improvement and enable auto-research, and, in turn, smarter models keeps harnesses simple. Even when many harness improvement get eventually internalized into core model, the need to specify goals and context will not disappear.
167
799
136
5,522
956,706
Today we're releasing prime-rl v0.6.0 — enabling RL at trillion-parameter MoE scale on agentic workloads at the highest efficiency. We've relentlessly optimized our RL infra. The result: GLM-5 on agentic SWE tasks at 131k context and sub-5-minute step time.
37
92
24
956
307,340
Penghui Qi retweeted
We're introducing GLM-5.2, our latest flagship model for long-horizon tasks. It marks a substantial leap in long-horizon task capability over its predecessor GLM-5.1 and, for the first time, delivers that capability on a solid 1M-token context. GLM-5.2's new capabilities include: Solid 1M Context: A solid 1M-token context that stably sustains long-horizon work Advanced Coding with Flexible Effort: Stronger coding capabilities with multiple thinking effort levels to balance performance and latency Improved Architecture: We propose IndexShare, which reuses the same indexer across every four sparse attention layers, reducing per-token FLOPs by 2.9× at a 1M context length. We also improve GLM-5.2’s MTP layer for speculative decoding, increasing the acceptance length by up to 20% Pure Open: An MIT open-source license — no regional limits, technical access without borders Supporting long-horizon tasks starts with making long context engineering-usable: the model must maintain quality across long, messy coding-agent trajectories, not just accept more tokens. A 1M context is easy to claim, but much harder to keep reliable under real engineering pressure. To this end, we substantially expanded 1M-context training for coding-agent scenarios, covering large-scale implementation, automated research, performance optimization, and complex debugging. The result is a long-context system that is not only wide in scope, but solid in execution: a practical substrate for sustained engineering work. This capability is reflected in GLM-5.2's performance on three long-horizon coding benchmarks. FrontierSWE measures whether an agent can complete open-ended technical projects at the scale of hours to tens of hours, spanning systems optimization, large-scale code construction, and applied ML research. On this benchmark, GLM-5.2 trails Opus 4.8 by only 1%, while edging out GPT-5.5 by 1% and Opus 4.7 by 11%. On PostTrainBench, where each agent is given an H100 GPU and evaluated by how much it can improve small models through post-training, GLM-5.2 outperforms both Opus 4.7 and GPT-5.5, ranking second only to Opus 4.8. On SWE-Marathon, an ultra-long-horizon software engineering benchmark covering tasks such as building compilers, optimizing kernels, and developing production-grade services, GLM-5.2 still has room to grow, trailing Opus 4.8 by 13% while remaining second only to the Opus series. Across all three benchmarks, GLM-5.2 is the highest-ranked open-source model, showing that its 1M context has translated into practical long-horizon delivery capability.
175
290
57
3,639
375,211
Beyond faster training, does Muon learn better features than Adam? 🚀 Ans: Yes. Muon learns features that are more robust to input corruptions and transfer better to downstream tasks. This advantage is reflected in hidden states: 1⃣larger logit margins → stronger robustness 2⃣higher effective rank → richer, more transferable representations Paper Link: arxiv.org/abs/2606.09658 A thread 🧵
1
14
2
60
46,505
One intuition behind DRPO: the regularizer itself is not the whole story—the trust-region geometry induced by its gradient is what really matters. By combining advantage-weighted regularization with DPPO-style geometry, DRPO turns hard mask-based trust regions into a smoother and more robust alternative. 🔥
We propose DRPO: a soft version of DPPO🔥 Since PPO, clipping/mask-based trust regions have long outperformed smooth divergence regularization like KL, even though the latter one feels more principled. 👺 We found two missing pieces:👇 1️⃣ Weight the regularizer by |advantage| - Otherwise, the trust region geometry changes dynamically and optimization becomes unstable. 2️⃣ Use the right divergence - What matters is not just “regularization”, but the trust-region geometry induced by the gradient. DPPO-style geometry works much better than PPO-style geometry in LLM. These insights lead to DRPO, which delivers the most robust and best overall performance across algorithms, even outperforming original mask-based DPPO. 🚀 This project is an amazing collaboration with @ExplainMiracles, @NickZhou523786, Wee Sun Lee, Liefeng Bo, @TianyuPang1 . Do follow them if you are interested in this work! 📄 Paper: arxiv.org/pdf/2606.09821 💻 Code: github.com/Tencent-Hunyuan/U…
1
2
15
2,329
Penghui Qi retweeted
🚀Introducing UniRL, an RL infra for unified multimodal models. Together with two new RL algorithms: DRPO and Flow-DPPO. One RL loop across diffusion/flow matching models, LLMs/VLMs, and unified multimodal models👇 Code: github.com/Tencent-Hunyuan/U… (yes — U(you)-ni-(need) RL 😉)
🤖 Made with AI
8
26
6
171
33,604
Penghui Qi retweeted
AReaL v1.0 released: Effortless #RL to make your #OpenClaw self-evolve 🚀: •🛠️ One-click agentic RL for any existing agent •📈 Open-source SOTA on tau2-bench •💎 A new PyTorch-native 5D-Parallel Engine Archon •🤖A full #opencode recipe GitHub: github.com/inclusionAI/AReaL
7
40
14
144
61,847
Penghui Qi retweeted
You’ve done real work. But most of it is hard to see. DINQ brings your projects, code, and research onto one card. No self-promotion. Just real signals. Build your DINQ → dinq.me #DINQ
39
61
46
212
164,503
Pleased to share our engineering practices for medium-sized LLMs in multi-turn agentic search, where we boosted Qwen3 8B and Qwen3 A3B from 1-2 turn search and 10% accuracy on Browsecomp-Plus to 15+ and 20+ turns with 30% accuracy. The devils are in the details; we hope our practices in stable RL training and data processing can help the community! Link: agate-slipper-ef0.notion.sit… Chinese version: zhuanlan.zhihu.com/p/1987092…
13
54
11
505
144,123
Penghui Qi retweeted
🚀We propose Reptile, a Terminal Agent🤖️that enables interaction with an LLM agent directly in your terminal. The agent can execute any command or custom CLI tool to accomplish tasks, and users can define their own tools and commands for the agent to utilize. ✨What Makes Reptile Special? Compared with other CLI agents (e.g., Claude Code and Mini SWE-Agent), Reptile stands out for the following reasons: ⚡️Human-in-the-Loop Learning: Users can inspect every step and provide prompt feedback, i.e., give feedback under the USER role or edit the LLM generation under the ASSISTANT role. The interaction will be used for model SFT training & RL training. 💻Terminal-only beyond Bash-only: Simple and stateful execution, which is more efficient than bash-only (you don’t need to specify the environment in every command). It doesn’t require the complicated MCP protocol—just a naive bash tool under the REPL protocol. Github: github.com/terminal-agent/re… Homepage: terminal-agent.github.io/blo…
4
19
2
23
2,977
Penghui Qi retweeted
DeepSeek V3.2 finally corrected the advantage calculation (in red). But they still keep the biased length norm term (in blue), which can lead to unhealthy response length behavior as we showed in arxiv.org/pdf/2503.20783. Check also tinker-docs.thinkingmachines… to see how TML computes the loss in their backend (similar to Dr. GRPO). Though these algorithms are all GRPO-like, I still feel it will be better if they can properly cite our work, instead of subsuming the subtleties into "scaling GRPO".
🚀 Launching DeepSeek-V3.2 & DeepSeek-V3.2-Speciale — Reasoning-first models built for agents! 🔹 DeepSeek-V3.2: Official successor to V3.2-Exp. Now live on App, Web & API. 🔹 DeepSeek-V3.2-Speciale: Pushing the boundaries of reasoning capabilities. API-only for now. 📄 Tech report: huggingface.co/deepseek-ai/D… 1/n
22
67
5
668
144,809
Penghui Qi retweeted
🔥Excited to share our latest work on soft-thinking LLM reasoning, SofT-GRPO. 💊 The soft-thinking paradigm for LLM reasoning can outperform the conventional discrete-token CoT reasoning in some scenarios. However, while the discrete-token CoT reasoning pattern can be reinforced through policy optimization algorithms such as GRPO, extending the soft-thinking pattern with RL remains challenging. 💡We present The First Powerful RLVR Algorithm for Soft-Thinking Reasoning: SofT-GRPO, which integrates the Gumbel-Softmax technique into the group rollout process and uses the Gumbel reparametrization trick for gradient estimation. 📝 SofT-GRPO can outperform discrete-token GRPO on Pass@16 (+1.80%), Pass@32 (+2.19%), and demonstrate a stable lead on Pass@1 (+0.13%). 📝 SofT-GRPO can also demonstrate better out-of-domain generalization ability to coding and scientific reasoning. 📖Paper at arxiv.org/abs/2511.06411 ⭐Code at github.com/zz1358m/SofT-GRPO… 🤗Huggingface for weights huggingface.co/zz1358m/SofT-…
3
18
1
117
9,116
Penghui Qi retweeted
1/3 🚬 Ready to smell your GPUs burning? Introducing MegaDLMs, the first production-level library for training diffusion language models, offering 3× faster training speed and up to 47% MFU. Empowered by Megatron-LM and Transformer-Engine, it offers near-perfect linear scaling. github.com/JinjieNi/MegaDLMs You can train arbitrarily large models without compromising throughput. It was also the training backend for Super Data Learners, Quokka, and OpenMoE 2. We open-sourced more good stuff; see the next thread👇
5
47
5
150
13,099