xunhaolai@pku ~
render — pku · beijing --:--
xunhaolai@pku ~ % cat about.md

Xunhao Lai 赖勋豪

Master’s student · School of Intelligence Science and Technology, Peking University · Beijing

My research focuses on natural language processing
and large language models.
Specifically, I concentrate on long context models,
exploring innovative and efficient attention
mechanisms, as well as optimizing the efficiency of
model training and inference.
Before that, I was an undergraduate student at
arch.viz
loss.viz
sysinfo
papers5 · 1 ICLR Oral
projects3 · open source
focuslong context · efficient attention
based inBeijing · Peking University
xunhaolai@pku ~/publications % ls publications/
total5 papers · filter
Accuracy versus throughput for sparse attention methods

1FlexPrefill: A Context-Aware Sparse Attention Mechanism for Efficient Long-Sequence Inference ICLR 2025 · Oral

Xunhao Lai, Jianqiao Lu, Yao Luo, Yiyuan Ma, Xun Zhou

arXivcode

Per-token attention FLOPs and benchmark scores

2MiniMax Sparse Attention arXiv 2026

Xunhao Lai, Weiqi Xu, Yufeng Yang, Qiaorui Chen, Yang Xu, Lunbin Zeng, Xiaolong Li, Haohai Sun, Haichao Zhu, Vito Zhang, Jinkai Hu, Jiayao Li, Rui Gao, Zekun Li, Songquan Zhu, Jingkai Zhou, Pengyu Zhao

arXivcodeHF

Model merging results across dense and MoE models

4Model Merging in Pre-training of Large Language Models arXiv 2025

Yunshui Li, Yiyuan Ma, Shen Yan, Chaoyi Zhang, Jing Liu, Jianqiao Lu, Ziwen Xu, Mengzhao Chen, Minrui Wang, Shiyi Zhan, Jin Ma, Xunhao Lai, Deyi Liu, Yao Luo, Xingyan Bin, Hongbin Ren, Mingji Han, Wenhao Hao, Bairen Yi, LingJun Liu, Bole Ma, Xiaoying Jia, Xun Zhou, Siyuan Qiao, Liang Xiang, Yonghui Wu

arXiv

Fira training curves

5Fira: Can We Achieve Full-rank Training of LLMs Under Low-rank Constraint? arXiv 2024

Xi Chen, Kaituo Feng, Changsheng Li, Xunhao Lai, Xiangyu Yue, Ye Yuan, Guoren Wang

arXivcode

xunhaolai@pku ~/publications % cat publications/flexprefill.md

fig. Accuracy versus throughput for sparse attention methods — click to enlarge

ICLR 2025 Oral
FlexPrefill: A Context-Aware Sparse Attention Mechanism for Efficient Long-Sequence Inference
Xunhao Lai, Jianqiao Lu, Yao Luo, Yiyuan Ma, Xun Zhou
FlexPrefill is a flexible sparse pre-filling mechanism for
LLMs that dynamically adjusts attention patterns in real-time,
improving speed and accuracy in long-sequence inference.
linksarXivcode
xunhaolai@pku ~/publications % cat publications/msa.md

fig. Per-token attention FLOPs and benchmark scores — click to enlarge

arXiv 2026
MiniMax Sparse Attention
Xunhao Lai, Weiqi Xu, Yufeng Yang, Qiaorui Chen, Yang Xu,
Lunbin Zeng, Xiaolong Li, Haohai Sun, Haichao Zhu, Vito Zhang,
Jinkai Hu, Jiayao Li, Rui Gao, Zekun Li, Songquan Zhu, Jingkai
Zhou, Pengyu Zhao
MSA powers MiniMax M3, a native multimodal ~428B-parameter
model with 1M context. Built on GQA, it substantially reduces
long-context attention cost while preserving model quality,
delivering practical million-token inference speedups in both
prefilling and decoding.
linksarXivcodeHF
xunhaolai@pku ~/publications % cat publications/m2.md

fig. Benchmark comparison of M2.7, M2.5 and other models — click to enlarge

arXiv 2026
The MiniMax-M2 Series: Mini Activations Unleashing Max Real-World Intelligence
MiniMax Team, Xunhao Lai, et al.
The MiniMax-M2 series is a Mixture-of-Experts LLM family for
agentic deployment, combining agent-driven data and scalable
RL to deliver strong real-world intelligence with only 9.8B
activated parameters per token.
linksarXivHF
xunhaolai@pku ~/publications % cat publications/pma.md

fig. Model merging results across dense and MoE models — click to enlarge

arXiv 2025
Model Merging in Pre-training of Large Language Models
Yunshui Li, Yiyuan Ma, Shen Yan, Chaoyi Zhang, Jing Liu,
Jianqiao Lu, Ziwen Xu, Mengzhao Chen, Minrui Wang, Shiyi Zhan,
Jin Ma, Xunhao Lai, Deyi Liu, Yao Luo, Xingyan Bin, Hongbin
Ren, Mingji Han, Wenhao Hao, Bairen Yi, LingJun Liu, Bole Ma,
Xiaoying Jia, Xun Zhou, Siyuan Qiao, Liang Xiang, Yonghui Wu
This paper comprehensively investigates model merging in
pre-training, showing that merging constant-learning-rate
checkpoints improves performance and provides ablation-driven
insights.
linksarXiv
xunhaolai@pku ~/publications % cat publications/fira.md

fig. Fira training curves — click to enlarge

arXiv 2024
Fira: Can We Achieve Full-rank Training of LLMs Under Low-rank Constraint?
Xi Chen, Kaituo Feng, Changsheng Li, Xunhao Lai, Xiangyu Yue,
Ye Yuan, Guoren Wang
Fira is a new training framework for LLMs that achieves
full-rank training performance while maintaining low-rank
memory efficiency in both pre-training and fine-tuning.
linksarXivcode
xunhaolai@pku ~/projects % ls projects/
total3 repositories

drwxr-xr-xnative-sparse-attention-triton

Implemented the Deepseek Native Sparse Attention kernel using

Triton, providing flexible and efficient sparse attention

training code.

GitHub

drwxr-xr-xFlexPrefill

Implemented the FlexPrefill long-text inference acceleration

algorithm, offering a flexible and efficient acceleration

solution for long context LLMs.

GitHub

drwxr-xr-xring-sliding-window-attention

Implemented the Ring Attention algorithm for Sliding Window

Attention, enabling context-parallel training for long

sequences.

GitHub

xunhaolai@pku ~/projects % cat projects/native-sparse-attention-triton.md
open source
native-sparse-attention-triton
Implemented the Deepseek Native Sparse Attention kernel using
Triton, providing flexible and efficient sparse attention
training code.
linksGitHub
xunhaolai@pku ~/projects % cat projects/flexprefill-code.md
open source
FlexPrefill
Implemented the FlexPrefill long-text inference acceleration
algorithm, offering a flexible and efficient acceleration
solution for long context LLMs.
linksGitHub
xunhaolai@pku ~/projects % cat projects/ring-sliding-window-attention.md
open source
ring-sliding-window-attention
Implemented the Ring Attention algorithm for Sliding Window
Attention, enabling context-parallel training for long
sequences.
linksGitHub
xunhaolai@pku ~ % viz arch.viz
arch.viz click a token to pin it
xunhaolai@pku ~ %
xunhaolai@pku ~ % cat contact.txt
addressPeking University, Beijing, China
xunhaolai@pku ~ % help
commands
about · whoamibio and research focus
pubs · ls publications/every paper with a thumbnail
show <slug>one paper, with its figure
cat publications/<slug>.mdsame as show
projects · ls projects/open-source repositories
cat projects/<name>one repository, with its links
arch · viz arch.vizinteractive transformer diagram
contacthow to reach me
next · prevstep through papers or projects
filter <year>all, 2026, 2025, 2024
theme <dark|light>switch the colour scheme
randomopen a random paper
clearredraw the current view
shell
ls · cd · pwdwalk the tree from the shell
grep <term>search papers, projects, about.md
bib <slug>BibTeX entry for a paper
treeprint the file tree
history · echo · date · unamethe usual suspects
man <cmd>look a command up in this list
theme togglesame as the t key
unknown commands print an error — a few are on purpose.
keys
j / k · ↑ / ↓walk the explorer
1 – 4jump to a section
n / pnext / previous paper or project
/ or :focus the command line
ttoggle dark / light
Escclose a figure or the drawer
?this page
xunhaolai@pku ~ %