Kaiyue Wen
Kaiyue Wen is a Stanford PhD student who studies how large language models are pretrained, from optimizers to attention design. A graduate of Tsinghua University's Yao pilot class, he coauthored a 2022 paper on Sharpness-Aware Minimization with Tengyu Ma and Zhiyuan Li before joining Stanford in 2024. There, advised by Tengyu Ma and Percy Liang, he explained warmup-stable-decay learning rates through a river valley loss landscape in October 2024 and benchmarked ten optimizers in September 2025. The gated attention paper he coauthored in May 2025 won a NeurIPS 2025 Best Paper Award, and its output gating is used in the Qwen3-Next models. He is a PhD student in computer science at Stanford, where most of his pretraining research runs through the open-source project Marin.
Timeline
-
2022
Papers on sharpness and skills
In 2022, he coauthors "How Does Sharpness-Aware Minimization Minimize Sharpness?" with Tengyu Ma and Zhiyuan Li, a paper that pins down the exact sharpness notion that SAM regularizes. He also coauthors the EMNLP 2022 paper "Finding Skill Neurons in Pre-trained Transformers via Prompt Tuning".
-
2024
PhD at Stanford
He is admitted to the computer science PhD program at Stanford University in autumn 2024, after graduating from Tsinghua University as a member of Yao's pilot class. At Stanford he is advised by Tengyu Ma and Percy Liang.
-
October 2024
The river valley loss landscape
In October 2024, he posts "Understanding Warmup-Stable-Decay Learning Rates: A River Valley Loss Landscape Perspective" as first author, with Zhiyuan Li, Jason Wang, David Hall, Percy Liang and Tengyu Ma. The paper conjectures that pretraining loss resembles a deep valley with a river at its bottom, which explains the loss curve of the WSD schedule.
-
May 2025
Gated attention for language models
In May 2025, he is a coauthor of "Gated Attention for Large Language Models: Non-linearity, Sparsity, and Attention-Sink-Free", which finds that a head-specific sigmoid gate after scaled dot-product attention consistently improves performance. The same output gating is used in the Qwen3-Next models.
-
September 2025
Benchmarking pretraining optimizers
In September 2025, he posts "Fantastic Pretraining Optimizers and Where to Find Them" with David Hall, Tengyu Ma and Percy Liang, a study of ten optimizers across four model scales. It finds that the speedup of many proposed optimizers over well-tuned baselines falls with model size, to only 1.1x at 1.2B parameters.
-
November 2025
A NeurIPS Best Paper Award
In November 2025, the gated attention paper he coauthored receives a NeurIPS 2025 Best Paper Award, one of four best papers chosen from the Main Track and the Datasets & Benchmark Track.
-
As of October 2026
Pretraining research with Marin
He is a PhD student in computer science at Stanford, where most of his pretraining research runs through the open-source project Marin. His work covers optimizers, architectures and hyperparameter scaling for large language models.
Career
Education
- From 2024Stanford UniversityPhD
- Tsinghua University
Sources and credits
Photo: We have no published photo of Kaiyue Wen yet. Send us a free-licensed photo.
- [2211.05729] How Does Sharpness-Aware Minimization Minimize Sharpness?
- Kaiyue Wen
- Kaiyue Wen's Profile | Stanford Profiles
- [2410.05192] Understanding Warmup-Stable-Decay Learning Rates: A River Valley Loss Landscape Perspective
- [2505.06708] Gated Attention for Large Language Models: Non-linearity, Sparsity, and Attention-Sink-Free
- Announcing the NeurIPS 2025 Best Paper Awards – NeurIPS Blog
- [2509.02046] Fantastic Pretraining Optimizers and Where to Find Them
- NeurIPS 2025 Awards
