
MTS @MicrosoftAI, building MAI-Code models
Bellevue, WA
Joined December 2021
- Tweets87
- Following353
- Followers1.6K
- Likes429
MAI-Code-2 is out! 🚀 Proud of the team, and this is truly just the beginning of what we’re building at MAI
Frontier performance. A fraction of today’s prices. Built to run 24/7.
Meet the new MAI models, launching today at #MSIgnite: aka.ms/MAI-Ignite-2026
Two things
1. You need some cold start on pass@k before RL on a new task/vertical
2. The world is always binary, continuous reward is somehow human hallucination
把现在的 RL 热潮剥掉光环,退回信息论、优化理论和系统工程的角度看,这套范式其实藏着好几个相当反直觉、甚至近乎荒谬的底层设计。
1. 主动扔掉高维反馈,硬把世界压缩成 1 bit 标量 这是现代 LLM RL(尤其是 RLVR)在信息效率上最离谱的地方。代码跑挂了有详细的报错堆栈,数学推导错了有具体的逻辑断层,环境交互失败了有完整的因果轨迹——这些全是极高密度的语言级监督信号。但在标准 RL 框架里,为了凑进策略梯度的数学公式,我们偏要把这些信息全部丢弃,强行压成一个冰冷的 0 或 1。 这就好比老师在试卷上写了满满一页红笔批注,RL 的做法是把批注全撕了,只留一个“及格/不及格”,然后逼学生靠几万次蒙题去反推自己到底哪一步写错了。从系统开销看更是极度奢侈:为了换这区区 1 bit 的信号,推理端要暴力 rollout 几十条动辄上万 token 的长轨迹,烧掉海量算力,信息比特与算力消耗的比值低到发指。
2. 信用分配(Credit Assignment)的粗暴连坐 长程推理里,一条 8000 token 的轨迹,前 7900 个 token 思路极具洞察,最后算术抄错一个负号,Outcome Reward 直接判 0——前面所有精彩直觉全部跟着挨罚;反过来,一条逻辑牵强、靠瞎猫碰上死耗子蒙对答案的废话链,却拿到 1 分被全盘强化。 靠一个终局标量去反推前面几千步每一步的功过,梯度方差大到离谱。今天圈内发明的各种 PRM、GRPO baseline、KL 惩罚,本质上都是在用越来越重的工程补丁,替这套粗糙的信用分配机制擦屁股。
3. “探索死锁”与熵坍塌:只能提纯,很难创造 RL 有个很少被大声讨论的尴尬前提:你只能强化模型本来就已经会的东西。 如果面对一个真正超出分布的新范式,基座模型的 pass@k 是 0,RL 连一丝梯度都拿不到,直接原地瘫痪。 所以现在绝大多数 LLM RL 干的活,本质上不是“从交互中长出新智能”,而是把模型本来就懂、只是采样概率只有 1% 的路径(pass@k),通过暴力搜索提纯并压缩到 pass@1。而这种提纯是有代价的——熵坍塌(Entropy Collapse)。模型越训越像一个死守解题套路的应试机器,表达多样性、探索欲和开放域的泛化能力都在悄悄磨损。
4. 把 Goodhart 定律写进了底层代码 RL 的数学本质是寻找奖励函数的最大值,而不是理解设计者的真实意图。只要环境或评估器存在千分之一的漏洞,强大的优化压力就一定会比人类先找到它——模型会精准地学会钻单测空子、靠拉长废话骗奖励模型、用谄媚语气(sycophancy)迎合人类偏好。 在数学和代码这种封闭沙盒里,还能靠严密的 Verifier 勉强防住作弊;一旦踏入开放世界,根本不存在无懈可击的 Reward Function。这时候你往 RL 里砸的算力越多,放大的往往不是智能,而是 Reward Hacking 的破坏力。
5. 静态目标假设本身就违背智能的运作方式 经典 RL 假设环境有一个事先写死、固定不变的标量目标函数,智能体的唯一使命就是最大化累计期望收益。但真实世界里的智能体(包括人类和科学探索本身)根本不是这样运作的——我们一直在动态改写自己的目标、重塑价值层级、在没有外部打分的情况下靠好奇心和压缩冲动构建世界模型。把智能简化成“最大化某个预设分数”,本身就是对认知过程最严重的降维打击。
说到底,RL 之所以在当下显得无所不能,很大程度上是因为它是目前少数能把“推理算力”直接换算成“Benchmark 涨点”的自动化流水线。它是一个极好用的局部搜索与策略提纯器,但如果把它奉为通用智能的底层学习法则——拿海量算力去赌那 1 bit 的稀疏标量——从信息和计算的第一性原理来看,它更像是一个过渡期的权宜之计
2
19
1,543
Raptor Mini is retiring, it was such a memorable year from zero to this.
This quoted post is unavailable.
4
970
Excited to introduce our MAI Code model at Microsoft Build. As shared in the session, this is a MoE (5B active / 137B total) initialized from an MAI pretrained model and trained for real user scenarios with product harnesses. I’m proud to have served as the research lead for this effort, and even prouder of what the team has achieved. It’s a beast for its size. Stay tuned — a larger model could come :)
Missing coding data in your R1?
🔥 Introducing KodCode—the largest verified synthetic coding dataset for Code LLM training!
• 447K question–solution–test triplets
• 12 diverse subsets
• 10-trial solution verification for rock-solid correctness
kodcode-ai.github.io/
Check our paper so you can really challenge an LLM
Evaluating LLMs usually requires sophisticated human designs and with the continuous improvement of LLMs, it is difficult for humans to find their limitations.
Can LLMs find their own limitations by proposing questions to themselves? Check our new paper: arxiv.org/abs/2408.08978
7
1,159
Microsoft GenAI is looking for a summer intern to work on Sparse LLMs, if you are interested, please DM me or send a resume to yaliu10 at microsoft dot com
If you want to know our recent research efforts, check the great Samba model teapaw.org/liliang_ren/status/180…
Introducing Samba 3.8B, a simple Mamba+Sliding Window Attention architecture that outperforms Phi3-mini on major benchmarks (e.g., MMLU, GSM8K and HumanEval) by a large margin.😮 And it has an infinite context length with linear complexity.🤯
Paper: arxiv.org/abs/2406.07522
(1/6)
7
6,263
I truly believe now it is the time that you change all your local attentions to SSMs :)
Introducing Samba 3.8B, a simple Mamba+Sliding Window Attention architecture that outperforms Phi3-mini on major benchmarks (e.g., MMLU, GSM8K and HumanEval) by a large margin.😮 And it has an infinite context length with linear complexity.🤯
Paper: arxiv.org/abs/2406.07522
(1/6)
1
12
2,298
If you are at NeurIPS, you could check out our poster about Efficient Transformer this evening.
20
1,964
spent some time looking for Gemini's "uncertainty routed" prompt. but still no clue
Replying to @BorisMPower
The top line number for MMLU is a bit gamed - Gemini is actually worse than GPT-4 when compared on normal few shot or chain of thought
917
I have to admit, writing ICLR meta reviews is much more fun than writing ARR ones. What happened here?
9
1,242
After 1 year birthday of ChatGPT, you think it is a good thing or a bad thing for NLP research?
87%Good for NLP
13%Bad for NLP
38 votes • Final results 644
Check out this amazing work by Zineng! 🚀 We have a model that can interact with you to generate all modalities.
🔥Excited to introduce CoDi-2!
It follows complex multimodal-interleaved in-context instructions to generate any modalities (text, vision, audio) in zero/few-shot interactive way!
codi-2.github.io
huggingface.co/papers/2311.1…
@yzy_ai @nlpyang @ChenguangZhu2 @mohitban47
🧵👇
Contact with AIG is only a symbol or a switch. Regardless of the content of the encounter, the results would be the same. The impact would be magnified by the lens of human mass psychology and culture until it resulted in substantive influences on the progress of civilization.
🔍Clearly, ShareGPT is a popular source for training/distilling LLMs, but why is this dataset so powerful and why it differs from other NLP datasets? Check our EMNLP theme paper📄 and you may find many interesting findings🔎
🧵1/
Excited to share our #EMNLP2023 paper: "The Shifted and The Overlooked: A Task-oriented Investigation of User-GPT Interactions"!
We delved deep into the real-world tasks users expect from LLMs vs. what existing benchmarks focus on.
Paper: arxiv.org/abs/2310.12418
G-Eval is accepted by EMNLP as a main conference paper😄

















