Explore the research collection
4 entries · Follow this search
- Paper
Reverse That Number! Decoding Order Matters in Arithmetic Learning
LEFT (Little-Endian Fine-Tuning): reverse digit order so carries are local. Addition/subtraction drop CoT; multiplication keeps a reversed step-by-step. Llama2-13B, 5K examples/op on digits 5–12: overall acc 94.4 vs Scratchpad-Detailed 83.3 using 3.04M vs 11.0M train tokens (+11.1 pp overall; multiply 88.5 vs 52.8). Add/sub use ~1/20 the tokens of the detailed scratchpad baseline at similar accuracy. Code/data https://anonymous.4open.science/r/RAIT-9FB7/.
- Paper
SageAttention: Accurate 8-Bit Attention for Plug-and-play Inference Acceleration
PTQ attention: subtract the token-mean of K to smooth channel outliers so QK can be INT8, and keep PV in FP16 with an FP16 accumulator (INT8 PV is too noisy on some layers). Triton kernels on RTX4090/3090; peak ~341 TOPS at headdim 64/128 vs FlashAttention2 ~165. ~2.1× FA2 and ~2.7× xformers. Plug-and-play: Llama2-7B WikiText 5.824 vs FP 5.823, MMLU 0.46=FP; CogVideoX/Unidiffuser/UltraPixel/TIMM/Llava1.6 near-parity. ICLR 2025. Code https://github.com/thu-ml/SageAttention.
- Paper
Seer: Online Context Learning for Fast Synchronous LLM Reinforcement Learning
Rollout is 63–87% of RL iteration time. Seer exploits intra-group (G=8–16) length/pattern similarity: divided chunk-level rollout with a global Mooncake KVCache, context-aware longest-first scheduling via a speculative probe request, and adaptive grouped speculative decoding with compressed suffix trees. On production GRPO workloads (Moonlight, Qwen2-VL-72B, Kimi-K2) up to 2.04× end-to-end rollout throughput vs veRL and 72–94% less long-tail latency, while keeping on-policy semantics. Context-aware scheduling alone cuts tail time ~89%; grouped SD adds up to 1.3× vs vanilla SD.
- Paper
GLM-5: from Vibe Coding to Agentic Engineering
GLM-5 is a 744B MoE (40B active, 256 experts, 80 layers) trained on 28.5T tokens with MLA then DSA continued pretrain and 200K context. Post-train is sequential Reasoning/Agentic/General RL on slime async infra plus on-policy cross-stage distillation; 10k+ verifiable SWE envs across 9 languages. SWE-bench Verified 77.8, Terminal-Bench 2.0 56.2 (61.1 on verified), BrowseComp 62.0 / 75.9 with context management, Vending-Bench 2 $4,432; Artificial Analysis Intelligence Index v4.0 score 50 (first open-weights). Code/models https://github.com/zai-org/GLM-5.