Lune

USENIX ATC2024Top-tier venue

PUZZLE: Efficiently Aligning Large Language Models through Light-Weight Context Switch

Kinman Lei, Yuyang Jin, Mingshu Zhai, Kezhao Huang, Haoxing Ye, Jidong Zhai

Abstract

Aligning Large Language Models (LLMs) is currently the primary method to ensure AI systems operate in an ethically responsible and socially beneficial manner. Its paradigm differs significantly from standard pre-training or fine-tuning processes, involving multiple models and workloads (context), and necessitates frequently switching execution, introducing significant overhead, such as parameter updates and data transfer, which poses a critical challenge: efficiently switching between different models and workloads.

To address these challenges, we introduce PUZZLE, an efficient system for LLM alignment. We explore model orchestration as well as light-weight and smooth workload switching in aligning LLMs by considering the similarity between different workloads. Specifically, PUZZLE adopts a two-dimensional approach for efficient switching, focusing on both intra-and inter-stage switching. Within each stage, switching costs are minimized by exploring model affinities and overlapping computation via time-sharing. Furthermore, a similarity-oriented strategy is employed to find the optimal inter-stage switch plan with the minimum communication cost. We evaluate PUZZLE on various clusters with up to 32 GPUs. Results show that PUZZLE achieves up to 2.12× speedup compared with the state-of-the-art RLHF training system DeepSpeed-Chat.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

5 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • AlpacaFarm: A Simulation Framework for Methods that Learn from Human Feedback cites Direct Preference Optimization: Your Language Model is Secretly a Reward Model
  • AlpacaFarm: A Simulation Framework for Methods that Learn from Human Feedback cites Training language models to follow instructions with human feedback
  • Laminar: A Scalable Asynchronous RL Post-Training Framework cites AREAL: A Large-Scale Asynchronous Reinforcement Learning System for Language Reasoning
  • Laminar: A Scalable Asynchronous RL Post-Training Framework cites Efficient Memory Management for Large Language Model Serving with PagedAttention
  • Laminar: A Scalable Asynchronous RL Post-Training Framework cites Training language models to follow instructions with human feedback
  • Laminar: A Scalable Asynchronous RL Post-Training Framework cites Optimizing RLHF Training for Large Language Models with Stage Fusion
  • Direct Preference Optimization: Your Language Model is Secretly a Reward Model cites Training language models to follow instructions with human feedback
  • AREAL: A Large-Scale Asynchronous Reinforcement Learning System for Language Reasoning cites Efficient Memory Management for Large Language Model Serving with PagedAttention
  • AREAL: A Large-Scale Asynchronous Reinforcement Learning System for Language Reasoning cites Training language models to follow instructions with human feedback
  • Efficient Memory Management for Large Language Model Serving with PagedAttention cites FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness
  • DistRS: Disaggregated Reward Service for RLVR with Batch-Level Constraint cites AREAL: A Large-Scale Asynchronous Reinforcement Learning System for Language Reasoning
  • DistRS: Disaggregated Reward Service for RLVR with Batch-Level Constraint cites Training language models to follow instructions with human feedback
  • DistRS: Disaggregated Reward Service for RLVR with Batch-Level Constraint cites Optimizing RLHF Training for Large Language Models with Stage Fusion
  • Optimizing RLHF Training for Large Language Models with Stage Fusion cites FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness
  • Optimizing RLHF Training for Large Language Models with Stage Fusion cites Efficient Memory Management for Large Language Model Serving with PagedAttention
  • Optimizing RLHF Training for Large Language Models with Stage Fusion cites Training language models to follow instructions with human feedback
  • RollPacker: Taming Long-Tail Rollouts for RL Post-Training with Tail Batching cites AREAL: A Large-Scale Asynchronous Reinforcement Learning System for Language Reasoning
  • RollPacker: Taming Long-Tail Rollouts for RL Post-Training with Tail Batching cites Efficient Memory Management for Large Language Model Serving with PagedAttention
  • RollPacker: Taming Long-Tail Rollouts for RL Post-Training with Tail Batching cites Optimizing RLHF Training for Large Language Models with Stage Fusion
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers5

  1. AREAL: A Large-Scale Asynchronous Reinforcement Learning System for Language ReasoningWei Fu, Jiaxuan Gao, Xujie Shen, Chen Zhu et al.NeurIPS 2025 · 273 citations
  2. Optimizing RLHF Training for Large Language Models with Stage FusionYinmin Zhong, Zili Zhang, Bingyang Wu, Shengyu Liu et al.NSDI 2025 · 64 citations
  3. RollPacker: Taming Long-Tail Rollouts for RL Post-Training with Tail BatchingWei Gao, Yuheng Zhao, Dakai An, Tianyuan Wu et al.NSDI 2026 · 10 citations
  4. Laminar: A Scalable Asynchronous RL Post-Training FrameworkGuangming Sheng, Yuxuan Tong, Borui Wan, Wang Zhang et al.EuroSys 2026 · 2 citations
  5. DistRS: Disaggregated Reward Service for RLVR with Batch-Level ConstraintRuidong Zhu, Mingcong Han, Yinmin Zhong, Wencong Xiao et al.NSDI 2026 · 1 citation

Builds on19

  1. Training language models to follow instructions with human feedbackLong Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida et al.NeurIPS 2022 · 24,707 citations
  2. Direct Preference Optimization: Your Language Model is Secretly a Reward ModelRafael Rafailov, Archit Sharma, Eric Mitchell, Christopher D. Manning et al.NeurIPS 2023 · 10,924 citations
  3. FlashAttention: Fast and Memory-Efficient Exact Attention with IO-AwarenessTri Dao, Daniel Y. Fu, Stefano Ermon, Atri Rudra et al.NeurIPS 2022 · 5,493 citations
  4. Efficient Memory Management for Large Language Model Serving with PagedAttentionWoosuk Kwon, Zhuohan Li, Siyuan Zhuang, Ying Sheng et al.SOSP 2023 · 1,016 citations
  5. AlpacaFarm: A Simulation Framework for Methods that Learn from Human FeedbackYann Dubois, Chen Xuechen Li, Rohan Taori, Tianyi Zhang et al.NeurIPS 2023 · 948 citations

Related papers

  1. Puzzle: Distillation-Based NAS for Inference-Optimized LLMsAkhiad Bercovich, Tomer Ronen, Talor Abramovich, Nir Ailon et al.ICML 2025
  2. vTrain: A Simulation Framework for Evaluating Cost-Effective and Compute-Optimal Large Language Model TrainingJehyeon Bang, Yujeong Choi, Myeongwoo Kim, Yongdeok Kim et al.MICRO 2024 · 16 citations
  3. Efficient Pre-Training of LLMs via Topology-Aware Communication Alignment on More Than 9600 GPUsGuoliang He, Youhe Jiang, Wencong Xiao, Kaihua Jiang et al.NeurIPS 2025 · 10 citations
  4. Accelerating Design Space Exploration for LLM Training Systems with Multi-experiment Parallel SimulationFei Gui, Kaihui Gao, Li Chen, Dan Li et al.NSDI 2025 · 27 citations
  5. Lemix: Unified Scheduling for Llm Training and Inference on Multi-Gpu SystemsYufei Li, Zexin Li, Yinglun Zhu, Cong LiuRTSS 2025 · 4 citations
Dusk over the sea between two cliffs drawn in fine vertical lines