Request-Adaptive Execution for Efficient Hybrid LLM Inference
Fahao Chen, Xuzhe Yan, Qi Zhang, Peng Li, Dongxiao Yu, Song Guo
Abstract
Hybrid large language models (LLMs) have emerged as a promising way to combine the modeling capability of the Attention mechanism with the efficiency of state space models (SSMs). However, most existing hybrid LLMs still inherit a static design philosophy: once the Attention-to-SSM layout is chosen, every request must follow the same hybrid execution. This one-layout-fits-all design is inefficient for real-world serving workloads, where different requests rely on contextual information in different ways. This paper presents Morph, a serving system that co-designs the model architecture and runtime for request-adaptive hybrid LLM inference. Its model architecture pairs Attention and SSM layers within each block and uses prefill-oriented gating to select a request-specific layout that remains fixed throughout decoding. Its serving runtime preserves batching efficiency under divergent layer choices through selective batching and enables correct prefix reuse through hybrid-aware context caching. Experiments on six datasets show that Morph achieves a better quality-efficiency trade-off than existing static hybrid baselines. System-level evaluation further shows that Morph improves the serving throughput by up to 3.87x over baselines while substantially reducing inference latency.
Create a lesson
Related papers
Apto: Self-Adaptive CPU-GPU Hybrid MoE Inference on Shared PCs
Shared title terminology · Zihang Zhong, Jiali Wang, Rong Chen
IsoMoE: Placement-Invariant Hybrid CPU-GPU MoE Inference with Lossless 12-bit Experts
Shared title terminology · Hang Gu, Teng Wang, Zhendong Zheng et al.
TideCache: Efficient Hybrid LLM Serving with Transparent Cache Management and Layer-Wise Streaming
Shared title terminology · Jinbin Luo, Xiaozhe Yao, Shang Yang et al.
Capital Efficiency, Isolation, Risk, and Ruin in Generative AI Inference Serving Infrastructure
Shared title terminology · Renée St. Amant, Anjaly Parayil, Ankur Mallick et al.
ResServe: Accurate and Efficient FP4 LLM Inference with Residue Compensation
Shared title terminology · Shuo Rong, Ruibo Fan, Jiawen Wen et al.
vExpert: Virtualizing Expert Storage for Adaptive Load Balancing in Distributed MoE Inference
Shared title terminology · Wenxun Wang, Xiuhong Li, Yida Wang et al.